blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
476f7082b9b260260f80644006a9ada67ee8fcb7 | 25b914aecd6b0cb49294fdc4f2efcfdf5803cc36 | /homeassistant/components/color_extractor/__init__.py | 73e8e09101c38ea10b25ef93ae14eb5b08dbdd04 | [
"Apache-2.0"
] | permissive | jason0x43/home-assistant | 9114decaa8f7c2f1582f84e79dc06736b402b008 | 8bf6aba1cf44ee841de063755c935ea78040f399 | refs/heads/dev | 2023-03-04T01:14:10.257593 | 2022-01-01T12:11:56 | 2022-01-01T12:11:56 | 230,622,861 | 1 | 1 | Apache-2.0 | 2023-02-22T06:15:07 | 2019-12-28T14:45:43 | Python | UTF-8 | Python | false | false | 4,528 | py | """Module for color_extractor (RGB extraction from images) component."""
import asyncio
import io
import logging
from PIL import UnidentifiedImageError
import aiohttp
import async_timeout
from colorthief import ColorThief
import voluptuous as vol
from homeassistant.components.light import (
ATTR_RGB_COLOR,
DO... | [
"[email protected]"
] | |
db10855a9829a6b7fc7b3239048bf8d6e30c8849 | 83e18f5d4fcd7084defb32981337a8f9b646c4c7 | /python/91.decode-ways.py | 926f10a41f2cdbf2fa346422937918a04b9d8437 | [
"MIT"
] | permissive | Zhenye-Na/leetcode | 709037a318e1be7e6ab92751f8695d888900591a | 18d91a6ba813f91531b04632563212dfde2cceb9 | refs/heads/master | 2023-04-10T07:06:06.502224 | 2023-04-01T00:18:44 | 2023-04-01T00:18:44 | 145,656,854 | 19 | 9 | MIT | 2022-05-16T03:14:02 | 2018-08-22T04:39:25 | Python | UTF-8 | Python | false | false | 2,549 | py | #
# @lc app=leetcode id=91 lang=python3
#
# [91] Decode Ways
#
# https://leetcode.com/problems/decode-ways/description/
#
# algorithms
# Medium (27.50%)
# Likes: 4791
# Dislikes: 3513
# Total Accepted: 593.9K
# Total Submissions: 2.1M
# Testcase Example: '"12"'
#
# A message containing letters from A-Z can be en... | [
"[email protected]"
] | |
b042229ecf57d55791109c255c5332fd28a2c071 | c1a1d21ff56175c00f89cfb721f3eec1575e1b2e | /code/python/leetcode/pascals-triangle-ii.py | 36f76aa085ab7d4d90bb6611a02743c65d565a16 | [] | no_license | zhuzeyu22/cowry | ee8501049447b694d35cce88392405610334382e | e135038caff7fc0743e33525413d415ac69ac898 | refs/heads/master | 2020-05-29T11:53:10.981688 | 2016-06-02T14:18:31 | 2016-06-02T14:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | class Solution:
# @return a list of lists of integers
def generate(self, numRows):
if numRows == 0:
return []
l = [[1],]
while len(l) < numRows:
nrow = [1] + [0] * (len(l)-1) + [1]
for i in range(1, len(nrow) - 1):
# print i, nrow, l
... | [
"[email protected]"
] | |
6076b1d83d498c7d5098c42a7e74abd9531c111f | 47082917dde1e8af42197dbc299e69e62297b34f | /config/urls.py | 6352f0ca3dac2706a3823b1f981270aedd27e0c3 | [] | no_license | navill/Dstagram-repository | 66520ed6fd5e8cf3fe633c04c7a1eaaae9bc57c0 | fb44acea8906fcac5724d4f9bdfdfe4e218f947a | refs/heads/master | 2020-06-10T20:59:28.581733 | 2019-06-25T16:31:58 | 2019-06-25T16:31:58 | 193,745,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"[email protected]"
] | |
a4e1afe224daa8082b4cdfd04c6122d18cf4637c | 8cc862aa51d3fec95d094dc4bd3151e1155d240a | /pythonProject/imports/using_sys.py | 4c609d014e0a48228c4d6084ff8263843af572e3 | [] | no_license | activehuahua/python | bcbf3a2190025e2315399bfd0c725f598211632b | cc36a93c01c53f856426ccf2724848142524d9c0 | refs/heads/master | 2023-04-14T10:23:21.590765 | 2019-08-12T06:52:15 | 2019-08-12T06:52:15 | 160,277,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
'''
@Author : zhaojianghua
@File : using_sys.py
@Time : 2018/12/5 9:54
'''
import sys
print('命令行参数如下:')
for i in sys.argv:
print(i)
print('\n\nPython 路径为:', sys.path, '\n') | [
"[email protected]"
] | |
dba0a06a82fbbfd3e411a7aa0a4f2a0711b37607 | 423ca5205aaf0b2d3bfff9affe2172fec21bfad0 | /web/pgadmin/browser/server_groups/servers/databases/schemas/domains/domain_constraints/tests/test_domain_constraints_add.py | b7f603fdfd4c1adca8a359d0d07247caee18a598 | [
"PostgreSQL"
] | permissive | adityatoshniwal/pgadmin4 | 25cc665d1438f82bdb17f13270933c43e3a98f4b | 2aea5b41ad8b6bd4a408a87a6743fcbfc88ed329 | refs/heads/master | 2023-09-03T20:04:15.941551 | 2023-07-31T09:32:30 | 2023-07-31T09:32:30 | 419,212,569 | 0 | 0 | NOASSERTION | 2023-01-02T05:37:03 | 2021-10-20T06:34:38 | Python | UTF-8 | Python | false | false | 4,748 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2023, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import json
impor... | [
"[email protected]"
] | |
047ddbf79cd824eea356100f84caef3d7a7612d3 | e4a9a67f1d79b3430aa43ebdb905a08717ee118a | /COT/helpers/tests/test_vmdktool.py | 58e36f57ba914bde6ee0b591ad71cdbf5d7e9a20 | [
"MIT"
] | permissive | digideskio/cot | 30c724c5b76abd5187a9c1e3c6f15a462b324da8 | 8fc84c8c72a9acb4adffca859154055f2857b53f | refs/heads/master | 2021-01-12T20:50:05.208963 | 2016-05-11T15:31:29 | 2016-05-11T15:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,826 | py | #!/usr/bin/env python
#
# test_vmdktool.py - Unit test cases for COT.helpers.vmdktoolsubmodule.
#
# March 2015, Glenn F. Matthews
# Copyright (c) 2014-2015 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/C... | [
"[email protected]"
] | |
e99a04d4cf4a320eea6c46709c2ddc8dda6c5981 | b648a0ff402d23a6432643879b0b81ebe0bc9685 | /scripts/json-equals.py | 7704bba587a813f68c8ef03a1c5c9db9af33cc46 | [
"Apache-2.0"
] | permissive | jviotti/binary-json-size-benchmark | 4712faca2724d47d23efef241983ce875dc71cee | 165b577884ef366348bf48042fddf54aacfe647a | refs/heads/main | 2023-04-18T01:40:26.141995 | 2022-12-19T13:25:35 | 2022-12-19T13:25:35 | 337,583,132 | 21 | 1 | Apache-2.0 | 2022-12-17T21:53:56 | 2021-02-10T01:18:05 | C++ | UTF-8 | Python | false | false | 323 | py | import sys
import json
with open(sys.argv[1], mode='r') as json_data:
data1 = json.loads(json_data.read())
with open(sys.argv[2], mode='r') as json_data:
data2 = json.loads(json_data.read())
if data1 == data2:
print("Files are equal!")
sys.exit(0)
else:
print("Files are NOT equal!")
sys.exit(... | [
"[email protected]"
] | |
8018f217c6e18cdb2bb6f2517df37cde252a8c36 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/programming/libs/exiv2/actions.py | 368c4462143cec10373c6bedb7c05cc40a320ad6 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure()
def build():
... | [
"[email protected]"
] | |
90d887816136ef7ea406db5120f7ddfd8554e2c9 | f58a1dcae97115b566409704dcf1a46a5f86df47 | /Bellevue University/Courses/DSC640/Matplotlib for python Developers/7900_Code/Chapter 03/7900_03_15.py | 20b070bc387075f7ddde931334627adb0d70a5ca | [] | no_license | safarie1103/Safarie1103 | 318519ace23c33fcf6d36337392156e5381abd49 | a86172bfc47eff0af65285b641af0ad26e13fd12 | refs/heads/master | 2023-06-13T01:43:35.761325 | 2023-06-07T16:01:16 | 2023-06-07T16:01:16 | 205,732,823 | 0 | 1 | null | 2022-11-28T15:55:13 | 2019-09-01T21:11:38 | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
plt.figure(figsize=(3,3))
x = [45, 35, 20]
labels = ['Cats', 'Dogs', 'Fishes']
plt.pie(x, labels = labels)
plt.show() | [
"[email protected]"
] | |
f5e1b29ce42118842f5d23bc27518c4a367946ef | 8585e7b3bbb71218fcb4dcb8fb99b46f6973ed72 | /healthack/construct_dirs.py | 9d57d47edf4a4cc7a436084333b5f4f8b8baa03f | [] | no_license | koike-ya/health | eeed56a8940d1c30333069a2ab339bb6d5937118 | 87bd1842d49e34abef8c66f666b6526d3fb18522 | refs/heads/master | 2021-10-11T13:59:19.625847 | 2019-01-27T08:55:09 | 2019-01-27T08:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from pathlib import Path
Path(Path.cwd() / "setup.py").touch(exist_ok=True)
Path(Path.cwd() / "config").mkdir(exist_ok=True)
Path(Path.cwd() / "config" / "const.py").touch(exist_ok=True)
Path(Path.cwd() / "notebooks").mkdir(exist_ok=True)
Path(Path.cwd() / "data" / "processed").mkdir(exist_ok=True, parents=True)
Path(... | [
"[email protected]"
] | |
e0c7b019890ee9b53c7d4fa7a809375a21ccfc2b | 4864e58bb9ac93c34f2988f50bec143fbe7b5278 | /blog/migrations/0019_auto_20210114_1845.py | db6d08a76a1bd9374d50ba620e0ae0600f5031ca | [] | no_license | Subhrans/Blog_App | 7e536b868645c5ffc0a35a4a63b206ddd5ab0965 | a81b4adeb8c0cb3bea5ffa85c6f1e2954c23e54a | refs/heads/main | 2023-04-21T05:25:09.113818 | 2021-05-08T18:23:38 | 2021-05-08T18:23:38 | 327,252,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # Generated by Django 3.0.1 on 2021-01-14 13:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0018_auto_20210114_0331'),
]
operations = [
migrations.RemoveField(
model_name='post',
... | [
"[email protected]"
] | |
590d8055aec2d9c89103005c1b857abc0f8fab1d | 7d4a3504bb9daa2589e2580de21e0e15c334787c | /tst/select/select_suite.py | 1226f95721a4f90fecbad8c9e3c507bf770c10a1 | [
"MIT"
] | permissive | ericwu/pumbaa | 4cfac76c29dc35223a3df1a89dbde2f6bbf44719 | e355c0a9ec28cfcfa3daabea9ba4c7cb55907efb | refs/heads/master | 2021-01-13T16:53:42.408105 | 2017-01-23T18:31:04 | 2017-01-23T18:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | #
# @section License
#
# The MIT License (MIT)
#
# Copyright (c) 2016, Erik Moqvist
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the... | [
"[email protected]"
] | |
194f0811f4c2ee6cea15e7c6797edd4496899d26 | d282fe910d95b3f23254e5e0d5309c082de81419 | /Ent/E4/demo_skylineviewer.py | 2bf167edf196ad83e52e2d6df59c9ed989dffc8f | [
"Apache-2.0"
] | permissive | Mi7ai/Algoritmia2 | 54fff6d3925ddc8067303d2e507ccde8ba9a025a | 2f1c7b3990e4971f4f977fd0ea4d308004ab3db5 | refs/heads/master | 2021-06-21T18:45:57.875364 | 2021-03-22T12:54:47 | 2021-03-22T12:54:47 | 207,576,996 | 0 | 0 | null | 2021-03-22T12:54:47 | 2019-09-10T14:08:46 | Assembly | UTF-8 | Python | false | false | 346 | py | from Utils.skylineviewer import SkylineViewer
buildings = [(1, 10, 3), (2, 5, 5), (3, 6, 3), (4, 7, 5), (10, 10, 3), (9, 4, 6), (20, 8, 4), (22, 6, 6), (25, 10, 2)]
skyline = [1, 10, 4, 7, 9, 4, 10, 10, 13, 4, 15, 0, 20, 8, 24, 6, 25, 10, 27, 6, 28]
viewer = SkylineViewer(skyline)
for b in buildings:
viewer.add... | [
"[email protected]"
] | |
323b5f80a3a048ee37471233c5e6663d18ed90b6 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task3/BD_198_225_960_HjAczew.py | 153f36b21dacb14ce5be9b6efaf652ff426bd9c2 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,380 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
#from pyspark.sql import Row,SQLContext
import sys
import requests
import re
from operator import add
def process_rdd(time, rdd):
# print("----------=========- %s -=========----------" % str(tim... | [
"[email protected]"
] | |
97bcf5441c08a2e89ecd3c1db61840c55422e13d | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p283.py | 3a6704dc2d9bb763a3c83885a6be6906ca384262 | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | class Solution:
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
def swap(a, i, j):
tmp = a[i]
a[i] = a[j]
a[j] = tmp
for i in range(len(nums)):
... | [
"[email protected]"
] | |
4c81f1a6460a9bb7ccdc7063e49e475861567b6c | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/python/ops/numerics.py | bd96d9a72cc653be506d2fa812d7b341a44bdafe | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"[email protected]"
] | |
37490c2e36c27fde373437a4c3e932557b84fc75 | 4d360320e06339a4f7d2a2723cddf02ff02a306e | /0x06-python-classes/3-square.py | f4c53a022a14d9265165fae9db6fb90f9362d80f | [] | no_license | AmineNeifer/holbertonschool-higher_level_programming | fd6ccdb1b5f0dc85e10750e9f2c7824290697e85 | f5c42bff003b85a7c19702e0233997645fce2fb1 | refs/heads/master | 2020-09-29T02:56:52.286548 | 2020-05-15T00:12:50 | 2020-05-15T00:12:50 | 226,933,206 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!/usr/bin/python3
class Square:
def __init__(self, size=0):
"""Args:
size: size of the Square.
"""
if type(size) is not int:
raise TypeError("size must be an integer")
elif size < 0:
raise ValueError("size must be >= 0")
else:
... | [
"[email protected]"
] | |
a95c0d6cbc8db379f298e52cebd758fbec611534 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/uniformtext/_mode.py | a3fdc332612749ea2308c67e4091aac3c79eb00a | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 468 | py | import _plotly_utils.basevalidators
class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="mode", parent_name="layout.uniformtext", **kwargs):
super(ModeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"[email protected]"
] | |
33f989d69d8aef0c49fbf0a3dbee6ff0647c9d01 | 253f3a81b582ee53b86451dc5a06d6dc8923b0dd | /src/commands/commandslist.py | 946bf2c4b052a3394de39102411e47b230dc7f67 | [] | no_license | bdubyapee/akriosmud | c02ff2c9e3916efedc4837b19e02caf6255045f9 | d6c234e22fc56422315553217639bcb3e4c49984 | refs/heads/master | 2020-04-16T04:53:02.163852 | 2020-02-17T01:09:10 | 2020-02-17T01:09:10 | 165,284,647 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Project: Akrios
# Filename: commands/commandlist.py
#
# Capability: player
#
# Command Description: Listing of currently available commands filtered by capabilities.
#
# By: Jubelo
from commands import *
name = "commandslist"
version = 1
requirements = {'capability': ['player'],
'generic_fail': "Se... | [
"[email protected]"
] | |
ebe543088903155d46d06e03f07284f75a632e35 | 09996c147d498e61352683c5e7df0f3cd517ea27 | /test/oldcrab/whelicity_DataDoubleEl_SE_GH_cfg.py | 485f08167cd51bc90018ac079a2e540233e35f86 | [] | no_license | shchenarani/whelicityAnalyzer | 3e3320a6d03eab21de6d51dad60f057b6a2f3d47 | 8b4586f7210c6a166b949470c22310b25683da4f | refs/heads/master | 2021-09-10T12:22:52.088849 | 2018-03-26T07:52:54 | 2018-03-26T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
process.source = cms.Source ("PoolSource",f... | [
"[email protected]"
] | |
29a1f916d57515291923131169a4a24024185702 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /aav/util/model_utils.py | 70f397164e6eed14c9701edf79d67e33b353a1f5 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 3,577 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"[email protected]"
] | |
e7d70888cafcdf8d8f016d284cb11462549acf2c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_189/ch30_2019_08_26_19_06_32_624802.py | 0bf8b64bd817ff2689f3209d5285dc5d58edda50 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def distancia(ang,vel):
import math
dist=((vel**2)*math.sin(2*ang))/9.8
return dist
if 98<=distancia(ang,vel)<=102:
print("Acertou!")
elif distancia(ang,vel)>102:
print("Muito longe")
else:
print("Muito perto")
| [
"[email protected]"
] | |
0294350b106cf605e7bc42c9069605f5e39f7c89 | 22bf2740e893b5020088b0d47f7b57eb2f9a2b5f | /version3/source/insert.py | 435e9f58028892f9d0b4a196e61675f5c9c0353e | [] | no_license | letianccc/latin_database | f2c1f9c58f398d322f722a3b1dade2296a2da19a | 1aa6c7eed57f6ea72d6e82e0a19b7a9614fb34c8 | refs/heads/master | 2021-04-15T09:26:48.132616 | 2018-04-12T23:40:17 | 2018-04-12T23:40:17 | 126,196,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from version3.source.catalog import Catalog
class Insert:
def __init__(self, table_name, tuple_, tran_id=None):
self.table_name = table_name
self.tuple = tuple_
self.tran_id = tran_id
def execute(self):
hf = Catalog.name_to_file(self.table_name)
hf.insert_tuple(self.t... | [
"[email protected]"
] | |
07e22436ef683aac6402b919ca8971015eb64d89 | 938a496fe78d5538af94017c78a11615a8498682 | /algorithms/401-500/434.number-of-segments-in-a-string.py | 30057d9c241f8500cb524ddb181e94c26947fdca | [] | no_license | huilizhou/Leetcode-pyhton | 261280044d15d0baeb227248ade675177efdb297 | 6ae85bf79c5a21735e3c245c0c256f29c1c60926 | refs/heads/master | 2020-03-28T15:57:52.762162 | 2019-11-26T06:14:13 | 2019-11-26T06:14:13 | 148,644,059 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # 字符串中的单词数
class Solution(object):
def countSegments(self, s):
"""
:type s: str
:rtype: int
"""
# 人家的解法
s = s.strip()
if len(s) == 0:
return 0
else:
sum = 0
s = s.split(' ')
for v in s:
if... | [
"[email protected]"
] | |
8a76e10c251ffe4ca5c2f5adaf0fea29dc57a5b3 | 29ec9a3ba90f12da111d3e25cf75bc7c3db5d8ac | /tests/test_core.py | 27223608f8d79526ceb4cdbed94134a7a6f2049f | [] | no_license | frnsys/drip | cf16d1d917dc7433bb2b279e6dcea18d0394a2ae | 9b9733900c6ca799650e665f228c525dfa143476 | refs/heads/master | 2021-01-10T11:06:57.133358 | 2016-02-28T04:00:31 | 2016-02-28T04:00:31 | 52,692,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | import json
from datetime import datetime
from drip.datastore import db
from drip.cluster import cluster
from drip.nlp import title, multisummarize
from drip.models import Event, Story, Article, Feed, Source, Keyword
from tests import TestCase
class CoreTest(TestCase):
def setUp(self):
self.events = json.... | [
"[email protected]"
] | |
cb9110d27d0004f8563f7d1a8891ee2eb95d49ef | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/common/test_run/atan2_run.py | 93b020c539675af05a758ffe81d5f4fcf035e136 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 1,719 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"[email protected]"
] | |
b45b2b0b78cb932e1697bb6f7b744db3618136d2 | 855e455b7113d32ad7bebca8e64cece441308b70 | /adafruit_matrixportal/wifi.py | e9411a9fe01ef6b5288209b6bb65a68689dbccaa | [
"MIT"
] | permissive | dsstewa/Adafruit_CircuitPython_MatrixPortal | f7687077d9d8ac83980f5ec75a52e1ca3942a1e3 | 885fb7edfbda0b763dbddbf9865d3fa62528e4c9 | refs/heads/master | 2023-02-09T23:03:50.751414 | 2021-01-05T18:22:43 | 2021-01-05T18:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
`adafruit_matrixportal.wifi`
================================================================================
Helper library for the MatrixPortal M4 or Adafruit RGB Matrix Shield + Metro ... | [
"[email protected]"
] | |
72461308ceaf06759f6556c4bf62da939683c9d0 | 1575d5acc07eb67cb4e3cd523a24bb1d39efcb84 | /nn-pima/cv2MLP.py | 3518ebea717713ebf5dd3b51f3e480d47cf3ed97 | [] | no_license | ChenLiangbo/DeepLearning | 4bd80ddb2a41b883ef70947a8b1fdb3b19656df0 | 3464c27116dc00bd597d2b9c25313964e1d89797 | refs/heads/master | 2020-12-24T12:39:27.666215 | 2017-05-09T13:49:44 | 2017-05-09T13:49:44 | 72,974,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!usr/bin/env/python
# -*- coding: utf-8 -*-
import numpy as np
from bayesClassifier import BayesClassifier
import cv2
dataset = np.load('pima-indians.npy')
columns = np.hsplit(dataset,9)
xsample = np.hstack(columns[0:8])
ysample = columns[8]
shape = xsample.shape
xsample = np.float32(xsample)
ysample = np.float32(y... | [
"[email protected]"
] | |
0c6469587fb87fb9776a74d943a5d7a7ee89bd7e | 51e6234f683ed70207f53d6ee3f537c715082517 | /test/setup.py | d98509b0fedc1c07bf389086c75fd98e825bbd80 | [
"BSD-2-Clause"
] | permissive | ninjaaron/fast-entry_points | d13d36ee7c4d73a425fba1d0f167aba1e8970127 | a3a26f320c7ae2191fde71b79d4f4bf325d162f3 | refs/heads/master | 2021-10-09T16:16:14.618890 | 2021-10-07T11:55:03 | 2021-10-07T11:55:03 | 64,887,433 | 131 | 23 | BSD-2-Clause | 2021-06-21T19:49:44 | 2016-08-03T23:57:37 | Python | UTF-8 | Python | false | false | 236 | py | from setuptools import setup
import fastentrypoints
setup(
name='dummypkg',
version='0.0.0',
py_modules=['dummy'],
description='dummy package for the test',
entry_points={'console_scripts': ['hello=dummy:main']},
)
| [
"[email protected]"
] | |
371e51252c8dd93d6a036b76d919eb54d33bbba8 | 237162607427106ae9564670d47427a62356861f | /core/migrations/0153_divisionlocation.py | 87a4cdf31d325f60c95cbffe34744975f8ef282d | [] | no_license | pitipund/basecore | 8648c1f4fa37b6e6075fd710ca422fe159ba930e | a0c20cec1e17dd0eb6abcaaa7d2623e38b60318b | refs/heads/master | 2020-09-13T20:16:02.622903 | 2019-11-20T09:07:15 | 2019-11-20T09:07:15 | 221,885,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2019-01-14 11:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0029_auto_20190114_1040'),
('core', '0152... | [
"[email protected]"
] | |
15551af86e94ba02d1ac2f0711c56efd691bcc5b | 3ee04e8eef626c3d65f7b4ff218fbb01ba7dcff4 | /main/migrations/0010_auto_20180331_1204.py | a80cf707c589b92029eb2d2c4ac58bd6c57d808f | [] | no_license | David-OConnor/books | 44499fba804394187103567b021252ecff9b906c | 1c03b8c026de08eb1989e99171af01e7e8a7bbc9 | refs/heads/master | 2021-01-10T18:07:40.559040 | 2019-10-18T18:57:06 | 2019-10-18T18:57:06 | 43,619,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # Generated by Django 2.0.3 on 2018-03-31 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20180331_1117'),
]
operations = [
migrations.CreateModel(
name='AdelaideWork',
fields=[
... | [
"[email protected]"
] | |
3b0dbff77c453d04d05c68a3fe87fc404a795510 | dc76018904675c64b6eb728d253a162802a584be | /urls.py | d4c2bf2fa81994fffdc6df56a2b8599172bf517e | [] | no_license | edb-gjengen/mbftns | ee36b0e28b5d8f0200b1407bb3940f220a75e553 | 0434c7ec16743467602481615ef1b87bf53df565 | refs/heads/master | 2021-01-20T20:53:17.284180 | 2012-09-05T12:18:29 | 2012-09-05T12:18:29 | 65,237,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'main.views.index', name='index'),
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('main.urls')),
url(r'^accounts/login', 'django.contrib... | [
"[email protected]"
] | |
838eda0275474ae5c472ea23d89a3ed57c710874 | 1a29735113eeb8061527c9e785fb3e16abe10449 | /lib/pymod/pymod/test/command/refresh.py | 1ba750637b0f0e168538bde48a54c2f2fd2ceed5 | [] | no_license | tjfulle/Modulecmd.py | db3fb96db63e42666056e8086f433a779f5bfc86 | 42e3d34b76a53f4ff557e96ba2af3cb83b963ad2 | refs/heads/master | 2023-02-21T10:16:49.408099 | 2021-11-18T06:29:59 | 2021-11-18T06:29:59 | 141,306,544 | 0 | 0 | null | 2019-05-09T04:51:09 | 2018-07-17T15:09:16 | Python | UTF-8 | Python | false | false | 739 | py | import pytest
import pymod.mc
from pymod.main import PymodCommand
@pytest.fixture()
def modules_path(tmpdir, namespace, modulecmds):
m = modulecmds
one = tmpdir.mkdir("1")
one.join("a.py").write(m.setenv("a"))
one.join("b.py").write(m.setenv("b"))
one.join("c.py").write(m.setenv("c"))
one.joi... | [
"[email protected]"
] | |
cf7bf48f6a2df6d3cec9391c5bb31ea49634341b | c2fcc0709ed113037201c707fcebe298966e5694 | /tests/test_base.py | 5eec23115c64d8b527e308c49cb795e72b51b47e | [] | no_license | HyperSuprime-Cam/astshim | da1364f301847d8a2cdb6fad63e96aeb4780f694 | a72da6bbfa9d1fec5e5d87d1aa560234f2b95958 | refs/heads/master | 2022-04-03T16:35:25.002206 | 2020-01-23T20:12:51 | 2020-01-23T20:12:51 | 109,919,007 | 0 | 0 | null | 2017-11-08T02:46:38 | 2017-11-08T02:46:38 | null | UTF-8 | Python | false | false | 1,069 | py | import unittest
import numpy as np
from numpy.testing import assert_equal
import astshim as ast
from astshim.test import ObjectTestCase
class TestBase(ObjectTestCase):
def test_arrayFromVector(self):
nAxes = 3
nValues = 5
np.random.seed(1)
dataVec = np.random.rand(nAxes * nValue... | [
"[email protected]"
] | |
9d2ef5da9fc5d97e998e8ead3784d778354cd46f | b06978b6020ce3240912ba5c131c4f38a86d7996 | /Pycharm_files/Dictionaries/Chapter_5_reading.py | 5200f5c68a50cfdff5f9eff732463af79a87c2c7 | [] | no_license | mn4774jm/PycharmProjects | 95dc8ee6b89a85ba02d4134aa5b5bce11004647b | 886bcf2400abc9a1f797fe98d09241f99fa16322 | refs/heads/master | 2021-08-09T10:20:27.907847 | 2020-09-04T15:21:21 | 2020-09-04T15:21:21 | 219,878,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,906 | py | # # Birthdays.py
#
# birthdays = {'Alice':'Apr 1', 'Bob':'Dec 12', 'Carol':'Mar 4'}
#
# while True:
# print('Enter a name: (blank to quit)')
# name = input()
# if name =='':
# break
#
# if name in birthdays:
# print(birthdays[name] + ' is the birthday of '+ name)
# else:
# pr... | [
"[email protected]"
] | |
7642e99717c9f80209dd05eb0cc3bd3525ee7d19 | 92a1d7c2bb2119c67d9e33f1e48a1a02335772ce | /book/p8/8_10.py | 3519916dc5e72c9ccce016fab3c0190fe9f2d6f8 | [] | no_license | zephyr123/blibli | b615fb2ee2f1f98deaf5709640e18d3be1a656ac | d45ba1bcce66dc1df185a475abe01f744c128c1b | refs/heads/master | 2021-07-07T09:23:18.347107 | 2020-03-08T13:40:29 | 2020-03-08T13:40:29 | 244,829,368 | 0 | 0 | null | 2021-06-10T22:38:02 | 2020-03-04T06:55:15 | Python | UTF-8 | Python | false | false | 307 | py | def show_magicians(names):
for name in names:
print(name)
def make_great(names):
while names:
curr_names = "the Great " + names.pop()
mod_names.append(curr_names)
magic_names = ['liuqian','zhuxun','dongqing']
mod_names = []
make_great(magic_names)
show_magicians(mod_names) | [
"[email protected]"
] | |
e8cb02f30831c8e4ad17d9e2d6f87fb1386d7d12 | daee54824cb107f9b5749e3c12e7f09f544bac0e | /modules/vtk_basic/vtkJPEGWriter.py | cd7a99ec769de84b521d124207929c1fb3f9fdcc | [] | no_license | JoonVan/devide | 8fa556d2b42c5ad70c3595303253f2a171de0312 | 586225d68b079e2a96007bd33784113b3a19a538 | refs/heads/master | 2020-12-26T06:25:01.744966 | 2017-01-22T19:47:50 | 2017-01-22T19:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkJPEGWriter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.vtk... | [
"[email protected]"
] | |
b17ffa7de9e79f3f88860099d16d5ecd324368a4 | 70f1c694bea6178c98b134b9c44952ef6693be9f | /Manuscript/figure/Figure_MITE_auto_promoter/Auto_target/scripts/make_activeTE-pep-msa-one.py | 5f10b1bc98f0a04409b2db8ab671d463341e6a2d | [] | no_license | JinfengChen/Rice_pop | 5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3 | ef272bf4825b29610c94de55eb53f231fb5febc6 | refs/heads/master | 2020-04-07T04:55:36.606594 | 2018-03-02T16:52:53 | 2018-03-02T16:52:53 | 33,501,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | #!/usr/bin/env python
import sys
import os
import fnmatch
import os.path
import subprocess as subp
import fastaIO
args = sys.argv[1:]
def usage():
print """
Usage: make_activeTE-pep-msa.py <pep-cluster_MSA_folder> <match_pattern> <run_name> <found_superfamily_list>
"""
sys.exit(-1)
if (len(ar... | [
"[email protected]"
] | |
b02f08e27f8000cd103dda67c861f67cd6103769 | 77e303d8353170f4181ab9ff66ac77cb57d46caf | /src/508A.py | 4df01f6a789a6ea263d31dfc23439685b3bc3af6 | [
"MIT"
] | permissive | viing937/codeforces | 14f689f2e3360939912e927fb830c69f7116b35c | 5bd8c2bec0e48cb2b4830c26849ea7fda447267c | refs/heads/master | 2022-09-25T19:51:03.891702 | 2022-08-15T15:32:54 | 2022-08-15T15:32:54 | 32,905,529 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # coding: utf-8
n, m, k = [int(i) for i in input().split()]
mark = [[0 for i in range(m+2)] for j in range(n+2)]
for c in range(k):
i, j = [int(i) for i in input().split()]
mark[i][j] = 1
if ( mark[i-1][j-1]==1 and mark[i][j-1]==1 and mark[i-1][j]==1 ) \
or ( mark[i][j-1]==1 and mark[i+1][j]==1 and mark... | [
"[email protected]"
] | |
09529835a8153d35821c70fe6e90354fc9ab7438 | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-math/sum_of_square_numbers.py | 0b0dfde875e4a0b998dba553d721bfd19bf60025 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 807 | py | # https://leetcode.com/problems/sum-of-square-numbers
# https://leetcode.com/problems/sum-of-square-numbers/solution
import math
class Solution:
# 90.88%
def judgeSquareSum(self, c):
if c < 0:
return False
if 0 == c:
return True
smaller, larger = 1, int... | [
"[email protected]"
] | |
adbb25263a000d69f883646bd0fbdb9d76a046b6 | cb10a56ab0515703bf65c5d9ab6e9c75b2e53031 | /src/images/training_images/try.py | d447233f1299786ae5526dc3aeb5b1f9382ae69a | [
"MIT"
] | permissive | JuanMorenoS/Captcha-With-Neuronal-Network | 2d09bc6e5ac308559aa7d8a0aa590b3c847e6022 | 3c4a119cb4df999011760caaa8f8271027de4897 | refs/heads/master | 2020-03-11T00:47:36.133301 | 2018-05-05T23:51:25 | 2018-05-05T23:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from PIL import Image
import pytesseract
import argparse
import cv2
import os
for i in range(4746,10001):
print(i,pytesseract.image_to_string(Image.open(str(i)+".jpg") ,config='-c tessedit_char_whitelist=abcdef0123456789') )
| [
"="
] | = |
f23f7227996acd01fd328809befc31c62faa0a5b | ea178f0977127189c7559dfa9ca2faadceef5ff8 | /python/jittor/test/test_new_fused_op.py | 32b9c488039e6b263c6ec0c9b443abf92f54ef20 | [
"Apache-2.0"
] | permissive | AbbasMZ/jittor | a0bb5b2cbceeffb40c61405b863e7e4b91567756 | fcec57f70422b52d6b8d0235e29f91fd2212f559 | refs/heads/master | 2023-06-20T07:07:22.952846 | 2021-07-15T14:40:54 | 2021-07-15T14:40:54 | 386,115,280 | 0 | 0 | Apache-2.0 | 2021-07-15T00:42:22 | 2021-07-15T00:39:53 | null | UTF-8 | Python | false | false | 1,451 | py | # ***************************************************************
# Copyright (c) 2021 Jittor. All Rights Reserved.
# Maintainers:
# Guowei Yang <[email protected]>
# Dun Liang <[email protected]>.
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this ... | [
"[email protected]"
] | |
cb05cede811123fa5e3a317f94586695225fe6ed | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/MadGraphModels/python/models/scalar_singlet_750_UFO/coupling_orders.py | fe4f223b9c8dbcde3bda5f37220247ddec40d888 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # This file was automatically created by FeynRules 2.3.7
# Mathematica version: 10.2.0 for Linux x86 (64-bit) (July 28, 2015)
# Date: Thu 26 Nov 2015 09:52:28
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hierarch... | [
"[email protected]"
] | |
8dbc5c3a580ccb580ec81f61fc49b76815891337 | e7b312b4cc3355f4ca98313ef2ac9f3b0d81f245 | /kickstart/2018/round_c/a/make_large_input.py | 04519b5c74a2e0bdcab79f66b28555502a3fd222 | [] | no_license | minus9d/programming_contest_archive | 75466ab820e45ee0fcd829e6fac8ebc2accbbcff | 0cb9e709f40460305635ae4d46c8ddec1e86455e | refs/heads/master | 2023-02-16T18:08:42.579335 | 2023-02-11T14:10:49 | 2023-02-11T14:10:49 | 21,788,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import array
from bisect import *
from collections import *
import fractions
import heapq
from itertools import *
import math
import random
import re
import string
import sys
T = 100
print(T)
for t in range(T):
N = 1000
print(N)
used = set()
for n in ra... | [
"[email protected]"
] | |
66ac2692352f0a5f791832e0e94b339c0114130d | 578bdcf2720805c1075ba348764983d99031911f | /Udacity/Hackerrank/Python Generators/prime_number.py | 0cd0ae59c44eb3425187659a67b59dfde8620d90 | [] | no_license | mrudula-pb/Python_Code | 994de4720289ded0a55017407d27b1d0f0b08c65 | 0dcdc6589d3c614bd1e6a03aa5c2b55664b9e6b2 | refs/heads/master | 2023-03-25T16:52:27.420925 | 2021-03-22T21:40:37 | 2021-03-22T21:40:37 | 350,476,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py |
def check_prime(number):
for divisor in range(2, int(number ** 0.5) + 1):
if number % divisor == 0:
return False
return True
value = check_prime(2)
print(value)
| [
"[email protected]"
] | |
f8357c5fbc9d1cc8439c6f4dcde1207b8d795b57 | 29f6b4804f06b8aabccd56fd122b54e4d556c59a | /CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/astroid/tests/resources.py | 03d45623fecda846c17a7b4088d054413c44c475 | [
"Apache-2.0"
] | permissive | obahy/Susereum | 6ef6ae331c7c8f91d64177db97e0c344f62783fa | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | refs/heads/master | 2020-03-27T11:52:28.424277 | 2018-12-12T02:53:47 | 2018-12-12T02:53:47 | 146,511,286 | 3 | 2 | Apache-2.0 | 2018-12-05T01:34:17 | 2018-08-28T21:57:59 | HTML | UTF-8 | Python | false | false | 2,373 | py | # Copyright 2014 Google, Inc. All rights reserved.
# contact http://www.logilab.fr/ -- mailto:[email protected]
#
# This file is part of astroid.
#
# astroid is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundat... | [
"[email protected]"
] | |
2b8be2aeed918c270e1676da965fe5fdcb587c62 | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /BOJ/Python/5430_AC.py | 99d3c6a86c437339ec939eb8199c2b0eed1a0f4d | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | # baekjoon source = "https://www.acmicpc.net/problem/5430"
import sys
T = int(sys.stdin.readline())
for test_case in range(T):
meto = sys.stdin.readline().strip()
count = int(sys.stdin.readline())
len_meto = len(meto)
first = -1
c = sys.stdin.readline()
len_c = len(c)
c = c[1:len_c - 2].s... | [
"[email protected]"
] | |
30e1c976566bb28599db9f3287b764540219faef | 30a37ab89a4a8101fb53308301628e8a7458d1fe | /test/functional/mempool_limit.py | cec38f48e5de886c44c4177d801a91ffd1a9f984 | [
"MIT"
] | permissive | BFBCOIN/bfbcoin-core | 1001e55f54a073ac645443c40fd5c7e6d117c07c | 7c3b6dcc8e63f8041331846e0d8230c8db059e23 | refs/heads/master | 2020-04-03T15:31:05.749852 | 2018-10-30T11:36:00 | 2018-10-30T11:36:00 | 155,365,385 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Copyright (c) 2017 The bfb Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mempool limiting together/eviction with the wallet.""... | [
"[email protected]"
] | |
1e7107daf91ac3e6cc7dc2170334bdc94649cb89 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/AlonH/2014C1A.py | c5e1e86cdaf0c09e44104a4a883bdd4b1e7750b8 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import math
f = open("A-small-attempt0.in","r")
o = open("A-small-answers.txt","w")
T = int(f.readline())
for t in range(1,T+1):
inp = [float(a) for a in f.readline().split("/")]
p = inp[0]
q = inp[1]
print(p,"/",q)
b = int(math.log(q,2))
print(b)
p = p/(q/(2**b))
print(p)
... | [
"[email protected]"
] | |
916921a156a5df7facf6056f5dbcab774da038e9 | 0e0cf67455424e68705c428fc2a5cd71e74879f6 | /practico_03/ejercicio_04.py | 378e079e9a55c528232d49537c3db72bfe3d1fce | [] | no_license | JoacoDiPerna/frro-soporte-2019-12 | cf43a3a6f722350891051816aac9d7e50a91add4 | f918c094346ba350c0672596fe316c60ae8fdc7c | refs/heads/master | 2020-04-29T00:29:57.757014 | 2019-08-09T19:39:30 | 2019-08-09T19:39:30 | 175,695,790 | 1 | 0 | null | 2019-08-09T19:39:32 | 2019-03-14T20:38:41 | Python | UTF-8 | Python | false | false | 1,118 | py | # Implementar la funcion buscar_persona, que devuelve el registro de una persona basado en su id.
# El return es una tupla que contiene sus campos: id, nombre, nacimiento, dni y altura.
# Si no encuentra ningun registro, devuelve False.
import datetime
from practico_03.ejercicio_01 import create_connection
from practi... | [
"[email protected]"
] | |
b67611e1022940616dfa02c1031329d904b7f33e | 426742533fc90d9240d01f0d0347a1648cc91430 | /freeways/migrations/0002_auto_20150621_0106.py | ddf17e24c9e4270ee812a4c5a5b93968f01785a1 | [] | no_license | kdechant/freeways | 5093a67ad917cf02fab4706ea21b81b05d41e84a | 8a9b73304db06c2423b2729bbe8f72aaa1bff53d | refs/heads/master | 2021-09-29T05:39:48.687864 | 2020-01-08T04:32:42 | 2020-01-08T04:33:46 | 37,783,501 | 0 | 0 | null | 2021-06-10T17:35:47 | 2015-06-20T19:45:57 | Python | UTF-8 | Python | false | false | 1,164 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('freeways', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='routesegment',
name... | [
"[email protected]"
] | |
b12fd17fff74d25b03c124c311932fb6787afc78 | b34808a8571340dcb3d70bd29d59930a6a3e4463 | /catalogueapp/views.py | eb6bf54a399a469eece4d25c8cec86c633a415a4 | [] | permissive | OpenDataServices/iCAN-Scot-Catalogue | 110ee5030b258555a45e9061feb97a5ce031cc48 | 205cf3e6e8ef984f3f4e3d89537c21bdafb805a1 | refs/heads/master | 2021-08-04T08:31:15.411708 | 2020-06-25T09:24:32 | 2020-06-25T09:34:27 | 191,113,427 | 1 | 1 | BSD-3-Clause | 2020-06-05T21:15:14 | 2019-06-10T06:52:06 | Python | UTF-8 | Python | false | false | 6,626 | py | from django.shortcuts import render, redirect
from django.http import Http404, JsonResponse
from django.contrib.auth.decorators import permission_required, login_required
from catalogueapp.forms import AddForm, EditOrganisationForm
from catalogueapp.tools import ALISS_URL, ALISS_Importer
from catalogueapp.models import... | [
"[email protected]"
] | |
b7e62fcc6d1d6be43665ce941a5acff73bb88b22 | 92207eb2c2d8014da01831c3273efc581929f5c7 | /step1/app.py | 95d48d2908cb9ca1917bf5984e015f3806c89131 | [] | no_license | garetroy/createyourownserver | 8de61511a96f65330056f06c23a5a5d880193248 | 768c587fb14a047ba838caca28f8ff519f10cb4b | refs/heads/master | 2020-03-26T04:18:21.643119 | 2018-08-12T20:37:55 | 2018-08-12T20:37:55 | 144,496,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import flask, os
from flask import render_template, Flask
app = flask.Flask(__name__)
@app.route('/')
def home():
return flask.render_template('home.html')
@app.route('/page2')
def page2():
return flask.render_template('secondpage.html')
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app... | [
"[email protected]"
] | |
564417eb8bcf4a0b26bad12b6b03cb0d0390b708 | ce6538b5b7da162c1c690a346e7ec9ae0a6291f3 | /glass_mine.py | 6247053e40d8deebcb40be09594181b1019c11c7 | [] | no_license | DaniTodorowa/Softuni | 391f13dd61a6d16cd48ee06e9b35b2fd931375df | f7c875fda4e13ec63152671509aaa6eca29d7f50 | refs/heads/master | 2022-11-25T23:34:49.744315 | 2020-08-02T08:23:44 | 2020-08-02T08:23:44 | 278,938,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Glass:
capacity = 250
def __init__(self):
self.content = 0
def fill(self, ml):
if (self.capacity - self.content) >= ml:
self.content += ml
return f"Glass filled with {ml} ml"
return f"Cannot add {ml} ml"
def empty(self):
self.content = 0
... | [
"[email protected]"
] | |
072e921e8d2f60228a301e318a11571a82146dd8 | c2e49d32b2613d702dd06067bd0ec7846a319fd5 | /arelle/DialogArcroleGroup.py | cc9e7e8f45295a1a9ffd5633177bd3217e776755 | [
"Apache-2.0"
] | permissive | hamscher/Arelle | c9a020a5955a313c14a4db3a4e7122ec9599714c | 64c1beddcc7163e571011faf07a03d8ffe18bb78 | refs/heads/master | 2023-08-24T14:12:49.055954 | 2021-10-17T16:55:56 | 2021-10-17T16:55:56 | 284,703,106 | 0 | 0 | Apache-2.0 | 2020-08-10T15:48:15 | 2020-08-03T13:08:08 | Python | UTF-8 | Python | false | false | 7,702 | py | '''
Created on Jun 15, 2012
@author: Mark V Systems Limited
(c) Copyright 2012 Mark V Systems Limited, All rights reserved.
'''
from tkinter import Toplevel, N, S, E, W, PhotoImage
try:
from tkinter.ttk import Frame, Button
except ImportError:
from ttk import Frame, Button
import os, re
from arelle.UiUtil impo... | [
"[email protected]"
] | |
8ddae95edc4c8a92a22c923d4aa6fc4611593209 | 23f59ad45ac6b889f40b029a506fcc310c06aadb | /web/tests/test_request_context.py | 99450ac6e3553a206fe50cc8847514944f406b5b | [] | no_license | ForeverDreamer/im | bac08b9b28fbdd7cc0ced9c4c1f152f318ecb670 | 962c512226422b00d12dbb31de3d448eca4cbbdc | refs/heads/main | 2023-07-17T17:19:34.400825 | 2021-08-12T10:07:11 | 2021-08-12T10:07:11 | 369,503,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from flask import request
from web.app import app
def test_request_context():
with app.test_request_context('/?name=Peter'):
assert request.path == '/'
assert request.args['name'] == 'Peter'
| [
"[email protected]"
] | |
e44f26b7a18c8d4a5582ff84ed15f48867d9be49 | 2eb779146daa0ba6b71344ecfeaeaec56200e890 | /python/oneflow/test/modules/test_adaptive_pool.py | d8b2c08d0e1713a48de811b2e58505d8ab5d9f1a | [
"Apache-2.0"
] | permissive | hxfxjun/oneflow | ee226676cb86f3d36710c79cb66c2b049c46589b | 2427c20f05543543026ac9a4020e479b9ec0aeb8 | refs/heads/master | 2023-08-17T19:30:59.791766 | 2021-10-09T06:58:33 | 2021-10-09T06:58:33 | 414,906,649 | 0 | 0 | Apache-2.0 | 2021-10-09T06:15:30 | 2021-10-08T08:29:45 | C++ | UTF-8 | Python | false | false | 3,468 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"[email protected]"
] | |
79d739837ad0c7eb49a3da4aa3773672688ce62f | 4b3c4878b48b618608d42de1a7b476a37b46b9b8 | /atcoder/abc100c.py | 065fe6541fd2bf67959f14a90eec4756d9e3005f | [] | no_license | zfhrp6/competitive-programming | 3efd2a35717974c5ed9af364181a81144b6c8f19 | 459e7106ac4ba281217ce80cdc014023ce794bc3 | refs/heads/master | 2021-01-10T01:42:20.496027 | 2019-08-03T12:10:43 | 2019-08-03T12:10:43 | 51,929,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | N = int(input())
a = list(map(int, input().split()))
def div2count(num):
ret = 0
while num % 2 == 0:
ret += 1
num = num // 2
return ret
print(sum(map(div2count, a)))
| [
"[email protected]"
] | |
870a6ee86f3d3892ed79a10bc1bd26231e441502 | fb8792f0a62f3b3658197a7aabd6aeecf8e311c9 | /news/views.py | 6ea24217bedd4ceae946a571f306a01414e25d96 | [] | no_license | munisisazade/matrix_tutorial | 5ddb3af6ba958e663465356de24ae1e3112f5559 | 22718e2b937bc8856ac024059b9ba2780af38f7e | refs/heads/master | 2020-03-22T06:11:36.399412 | 2018-07-11T17:59:43 | 2018-07-11T18:00:14 | 139,616,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.shortcuts import render
from django.http import HttpResponse
from news.models import Article
from news.forms import ArticleForm
from django.contrib import messages
from django.core.paginator import Paginator
# Create your views here.
def index(request):
if request.method == 'GET':
obj = {}
... | [
"[email protected]"
] | |
8ef6aae5ce529d7db5c1522ac34dfb38391949bd | 7bc0075367290ff06565991e19033b13f0604f96 | /Mundo 3/aula16/desafio073.py | 74b06bdc97ec15c23b8957a536d52baf2183d0f8 | [] | no_license | iamtheluiz/curso_em_video_python | 298acd90e36473fbf797ba7bf85d729d0ca28407 | aa4247b7d206771f9c9b08ad5d8585c3813ddaff | refs/heads/master | 2020-04-12T16:17:51.672662 | 2019-01-22T00:10:41 | 2019-01-22T00:10:41 | 162,608,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # imports
print("""
|******************|
| Desafio073 |
|******************|
""")
print("Tabela do Brasileirão!")
# Variáveis
tabela = ('Palmeiras', 'Flamengo', 'Internacional', 'Grêmio', 'São Paulo', 'Atlético-MG', 'Athletico-PR', 'Cruzeiro', 'Botafogo', 'Santos', 'Bahia', 'Fluminense', 'Corinthians', 'Chapeco... | [
"[email protected]"
] | |
dff03e0fa17d53d82ad062bc2d6e9dd9b6101a86 | 24a13b07623ce41e57ea4df1fcce0befb14d3406 | /model/densenet201/model4_val5.py | 55e955e927b2209bb720ad20719f51cf1d10ecd0 | [
"MIT"
] | permissive | shorxp/jd-fashion | 5f37e6c2235200944869e9a0da4d741c89d63b9e | 817f693672f418745e3a4c89a0417a3165b08130 | refs/heads/master | 2021-09-22T18:40:13.030601 | 2018-09-13T13:50:05 | 2018-09-13T13:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | py | """
以model1为原型,新增real crop
"""
import math
import os
import queue
import time
import keras
from keras.layers import Dense, BatchNormalization, Activation
import config
from util import data_loader
from util import keras_util
from util.keras_util import KerasModelConfig
model_config = KerasModelConfig(k_fold_file="1.... | [
"[email protected]"
] | |
dd8785c0296e0a16b4aa8fe1670176cd02aefe7c | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_8_390c.py | 35f9f192188dc8a48a12c80b619a504e65823cbe | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #
#
# Euler 278
#
#
from time import time
from Functions import primes,RetFact
from collections import defaultdict
from math import sqrt
def FactorSieve(n):
n += 1
f = defaultdict(list)
for p in xrange(2, n):
if p not in f:
for i in xrange(p + p, n, p):
j, k = i, 1
while j % p... | [
"[email protected]"
] | |
6c3bcd0588462a4e5f7f60dd06b5f197d341edf8 | 19049316bb6d769bffcb61d2dfb2b241b65fdb65 | /server/app/ai/mmfashion/mmfashion/models/registry.py | 8cbc143707cb4ee919a9e5b735f1957dcb75e9fe | [
"Apache-2.0"
] | permissive | alveloper/fashion-scanner-v1 | 7e43b515ad329d19982e5dd5fe92dfbab0bad948 | 067d73cbe3417c2ef337e64ca251c4f883713974 | refs/heads/master | 2023-08-12T03:21:32.169558 | 2021-09-07T15:38:58 | 2021-09-07T15:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from ..utils import Registry
BACKBONES = Registry('backbone')
GLOBALPOOLING = Registry('global_pool') # global pooling
ATTRPREDICTOR = Registry('attr_predictor') # predict attributes
CATEPREDICTOR = Registry('cate_predictor') # predict category
LOSSES = Registry('loss') # loss function
PREDICTOR = Registry('predic... | [
"[email protected]"
] | |
14c48c22b1e687c04b46200c8bfa69ee603b2a11 | e47bc9571c59b1c6e8aeb4231a286ab8577802d4 | /easy/888-fair-candy-swap.py | 8aee86dc55f4d02630c6b484960f1a8054bca360 | [
"MIT"
] | permissive | changmeng72/leecode_python3 | d0176502dfaf3c8b455ec491c72979dd25b66b3e | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | refs/heads/main | 2023-05-27T10:35:43.465283 | 2021-06-09T00:20:59 | 2021-06-09T00:20:59 | 375,127,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class Solution:
def fairCandySwap(self, aliceSizes: List[int], bobSizes: List[int]) -> List[int]:
aliceSum = sum(aliceSizes)
bobSum = sum(bobSizes)
diff = (aliceSum - bobSum)/2
bob_dict = {}
for i in range(len(bobSizes)):
bob_dict[bobSiz... | [
"[email protected]"
] | |
99393122c191269914bababfb52fe894d63c4585 | f889bc01147869459c0a516382e7b95221295a7b | /swagger_client/models/bundle_data_bundle_option_extension_interface.py | 186314a8a23389437f249b99836d42fcf7756f20 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import... | [
"[email protected]"
] | |
0a3864ab0e1a31b27abb83ceb06746239bded135 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03600/s387875234.py | e5d97020c3d1d82fca4cb72b6c976aa6b076e6c5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | import heapq
from collections import deque
N = int(input())
A = [[int(a) for a in input().split()] for _ in range(N)]
def dijkstra_heap(s, edge, n):
#始点sから各頂点への最短距離
d = [10**9+1] * n
used = [True] * n #True:未確定
d[s] = 0
used[s] = False
edgelist = []
for a,b in edge[s]:
heapq.heappu... | [
"[email protected]"
] | |
6a7f5db06b119930e8b4142194d3392943046c09 | 3d50cdc1fd01717dbcc43007d96a390631725ab4 | /models/api/backtest/analysis.py | 588e064d6eec6a3962b2eb0095390f9a30caab1e | [] | no_license | danielwangxh/golden_eye | 22540fc9b60e710263d348de2ecce13928b795fc | 1f6c9dc6b5cb806398024e5b678f150c074a689a | refs/heads/master | 2021-06-12T06:02:15.028910 | 2017-02-05T04:31:16 | 2017-02-05T04:31:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,485 | py | # -*- coding: utf8 -*-
import os
from simplejson import loads
import pandas as pd
from models.api.backtest.calculator import FittingDataCalculator
from sell_signals.base import SellSignal
from consts import ema_file_dir, init_point, init_time, init_offset
from libs.utils import ifcode_day_map
def read_df(path):
... | [
"[email protected]"
] | |
62ff16334955a6f7413d9d5e053b966753d69de4 | e47bd43968732b55907aa1b8d3530b9ec12bc0e1 | /pipeline/pipeline_stack.py | 91dd67f89f5ee450816f3521282190c65eac6b36 | [
"Apache-2.0"
] | permissive | damshenas/enechobot | 523763c8bb3d54e86fb6586c4883ca3008704014 | 9e346a87433abc1d95c60c3b9ee9401becf7a88f | refs/heads/main | 2023-06-28T16:21:08.637064 | 2021-08-09T10:19:08 | 2021-08-09T10:19:08 | 394,225,747 | 0 | 0 | Apache-2.0 | 2021-08-09T10:19:09 | 2021-08-09T09:15:21 | null | UTF-8 | Python | false | false | 4,368 | py |
import json
from aws_cdk import (core, aws_codebuild as codebuild,
aws_codecommit as codecommit,
aws_codepipeline as codepipeline,
aws_codepipeline_actions as codepipeline_actions,
aws_s3 as s3,
aws_lambda as lambda_)
class PipelineStack(core.Stack):
de... | [
"[email protected]"
] | |
e96ceb65864385e40bf500f14c613be2609612c7 | ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c | /venv/Lib/site-packages/qiskit/chemistry/algorithms/ground_state_solvers/minimum_eigensolver_factories/vqe_uvccsd_factory.py | b6420e3857c9e732031dfb81131ff2bd2a339632 | [
"MIT",
"Apache-2.0"
] | permissive | shivam675/Quantum-CERN | b60c697a3a7ad836b3653ee9ce3875a6eafae3ba | ce02d9198d9f5a1aa828482fea9b213a725b56bb | refs/heads/main | 2023-01-06T20:07:15.994294 | 2020-11-13T10:01:38 | 2020-11-13T10:01:38 | 330,435,191 | 1 | 0 | MIT | 2021-01-17T16:29:26 | 2021-01-17T16:29:25 | null | UTF-8 | Python | false | false | 6,073 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"[email protected]"
] | |
f69e4d4f4288a29c8508e0ac794a2eaa0995a2b8 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/1/proxy/proxy/spiders/maoyan_20200705155728.py | f4c680398e9df42ea33eb12d51a8bd6097744c5a | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 2,559 | py | import scrapy
from proxy.items import ProxyItem
import lxml.etree
class MaoyanSpider(scrapy.Spider):
name = 'maoyan'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/']
header = {
'Content-Type': 'text/plain; charset=UTF-8',
'Cookie' : '__mta=251934006.159307299... | [
"[email protected]"
] | |
fe29ddbba5045df30a1934eb9bcd7574cdc67eb7 | 71c9bf59320d5a67d1395c02ee7d68805f820db7 | /solutions/A_h_djikshtra's_algorithm.py | 28868dd91a4a652195450a6db4e23dc99f6283b9 | [] | no_license | AnjalBam/iw-assignment-python-iii | 34609eef05f4b57a3cc17166603c121c1635b2a9 | c1a05c1a0091de3b718fcb476bbc906817492294 | refs/heads/master | 2022-11-13T20:23:39.642580 | 2020-07-13T09:45:00 | 2020-07-13T09:45:00 | 279,208,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | """
A. Make pythonic solutions for each of the following data structure
and algorithm problems.
e) Dijkshtra's Algorithm
"""
from collections import deque, namedtuple
# we'll use infinity as a default distance to nodes.
inf = float('inf')
Edge = namedtuple('Edge', 'start, end, cost')
def make_edge(start, end, cost=... | [
"[email protected]"
] | |
9299880d2374060c24d9a6fd117a920d11784c44 | ea2cf796332879d86561f80882da93b672966448 | /configs/rotated_retinanet/ssdd/rotated_retinanet_hbb_r50_adamw_fpn_6x_ssdd_oc.py | 6b6e85da78c1deeca585141b1fa61f5de0d0f2e7 | [
"Apache-2.0"
] | permissive | yangxue0827/h2rbox-mmrotate | 968c34adf22eca073ab147b670226884ea80ac61 | cfd7f1fef6ae4d4e17cb891d1ec144ece8b5d7f5 | refs/heads/main | 2023-05-23T10:02:58.344148 | 2023-02-14T05:28:38 | 2023-02-14T05:28:38 | 501,580,810 | 68 | 8 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | _base_ = ['./rotated_retinanet_hbb_r50_fpn_6x_ssdd_oc.py']
optimizer = dict(
_delete_=True,
type='AdamW',
lr=0.0001,
betas=(0.9, 0.999),
weight_decay=0.05,
paramwise_cfg=dict(
custom_keys={
'absolute_pos_embed': dict(decay_mult=0.),
'relative_position_bias_table'... | [
"[email protected]"
] | |
bfa0210d76e2501a11b68119104d1f8ddab47ced | e76ea38dbe5774fccaf14e1a0090d9275cdaee08 | /src/xwalk/tools/build/win/FILES.cfg | 446675943eaebc95282133c60583a38067c11deb | [
"BSD-3-Clause"
] | permissive | eurogiciel-oss/Tizen_Crosswalk | efc424807a5434df1d5c9e8ed51364974643707d | a68aed6e29bd157c95564e7af2e3a26191813e51 | refs/heads/master | 2021-01-18T19:19:04.527505 | 2014-02-06T13:43:21 | 2014-02-06T13:43:21 | 16,070,101 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | cfg | # -*- python -*-
# ex: set syntax=python:
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is a buildbot configuration file containing a tagged list of files
# processed by the stage/archive scr... | [
"[email protected]"
] | |
7ff073702298c100dd9cd88ef17679ad6ee1850e | 412b699e0f497ac03d6618fe349f4469646c6f2d | /env/lib/python3.8/site-packages/Crypto/Util/Padding.py | da69e55987227357a55f8e1b57fae5f7eb8cac74 | [
"MIT"
] | permissive | EtienneBrJ/Portfolio | 7c70573f02a5779f9070d6d9df58d460828176e3 | 6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd | refs/heads/main | 2023-09-03T15:03:43.698518 | 2021-11-04T01:02:33 | 2021-11-04T01:02:33 | 411,076,325 | 1 | 0 | MIT | 2021-10-31T13:43:09 | 2021-09-27T23:48:59 | HTML | UTF-8 | Python | false | false | 4,313 | py | #
# Util/Padding.py : Functions to manage padding
#
# ===================================================================
#
# Copyright (c) 2014, Legrandin <[email protected]>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the... | [
"[email protected]"
] | |
fd7b4afd97e2ab6d8426692b6eb6f7be4be4d1e6 | 6b1fd67270b150ec3a4983945f6374c532e0c3b5 | /pymesh/examples/md5/main.py | 6ab99a96b6f2a2fccd3c3a7466c0a19d02bdf929 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | adamlwgriffiths/PyMesh | 8078e2ff4cc93e9def368b4fbbbf52b9f8b3292e | dbed5c7a226b820fc3adb33e30f750ab1ffbd892 | refs/heads/master | 2016-09-05T09:42:43.068368 | 2013-02-03T14:52:11 | 2013-02-03T14:52:11 | 5,817,565 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | import os
from pymesh.md5 import MD5_Mesh, MD5_Anim
def load_mesh( filename ):
print 'Loading', filename
md5 = MD5_Mesh()
md5.load( filename )
# print the data out for verification
print 'version', md5.md5_version
print 'num_joints', md5.num_joints
print 'num_meshes', md5.num_meshes
... | [
"[email protected]"
] | |
516e94a8bd08fc5bf28a46f5f4ec6ff8a5dce10d | e7164d44058a06331c034cc17eefe1521d6c95a2 | /tools/tieba/urate/python-wrapper/melt_predict.py | 3805c92f412dc70ce42b65f942925d6170288160 | [] | no_license | chenghuige/gezi | fbc1e655396fbc365fffacc10409d35d20e3952c | 4fc8f9a3c5837e8add720bf6954a4f52abfff8b5 | refs/heads/master | 2021-01-20T01:57:18.362413 | 2016-11-08T15:34:07 | 2016-11-08T15:34:07 | 101,304,774 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import os
import sys
import glob
from pyplusplus import module_builder
root = '/home/users/chenghuige/rsc/'
name = 'melt_predict'
#define_symbols = ['GCCXML','PYTHON_WRAPPER','NO_BAIDU_DEP']
define_symbols = ['GCCXML','PYTHON_WRAPPER']
files = [
'./gezi.include.python/commo... | [
"[email protected]"
] | |
483e5aadac9f2d40958e1167b76c220a451edcaf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02403/s798093890.py | f1e8cb17072b4b550e16ce6c68a1df20760dc0e6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import sys
x=y=1
while True:
x,y=map(int,input().split())
if x==0: break
for i in range (1,x+1):
for j in range (1,y+1):
sys.stdout.write('#')
print('')
print('') | [
"[email protected]"
] | |
0e29b7eea6f44cbedda24a54fc2477b33a4ff5fb | 62166473c5b237bbe97c7abcafd2623a1bfc3a77 | /linked_list_queue.py | e2b18155e138b3ebc3ba7bd14cca4538c8bf0f96 | [] | no_license | ananyajana/practice_problems | bc70bd55b9012fa7fafc2037ea606bc34bd63cad | 0071a8a3753c8a9135c21fecf6b175ee3774c177 | refs/heads/master | 2023-05-15T01:23:35.146811 | 2021-06-11T21:27:40 | 2021-06-11T21:27:40 | 109,902,077 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # problems from geeksforgeeks must do coding questions
T = int(input())
st_list =[]
N_list = []
for t in range(T):
N_list.append(int(input()))
st_list.append(input())
class Node:
# fn to initialize the node object
def __init__(self, data):
self.data = data
self.next = None
class MyQue... | [
"[email protected]"
] | |
280d995579a3904e0a74306a09310df360636dd4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2182/61406/303898.py | 0fcb1dffc2380878a68d6135d58d8e3a3cb4ebba | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | T = int(input())
for a in range(0,T):
nk = input().split(' ')
n = int(nk[0])
k = int(nk[1])
circle = []
for b in range(0,n):
circle.append(1)
ptr = 0
count = 0
m=0
while count<n-1:
if ptr>n-1:
ptr = ptr-n
while circle[ptr]==-1:
ptr+=1
... | [
"[email protected]"
] | |
9eacff23f758535c87a7687002c988a9cad9bb7d | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/RZLT.py | 79c2560d453f46f7fd8351357550d6986f2de632 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://www.rezolutebio.com/news/press-releases'
... | [
"[email protected]"
] | |
75ad1cf37bc5ac16b62c19cd737a317a998c3347 | f47ac8d59fe1c0f807d699fe5b5991ed3662bfdb | /binary23.py | 6f1107467849f636bfca3fa944aa05d18d2fb699 | [] | no_license | YanglanWang/jianzhi_offer | 5561d8a29881d8504b23446353e9f969c01ed0c5 | 1c568f399ed6ac1017671c40c765e609c1b6d178 | refs/heads/master | 2020-06-16T10:41:44.979558 | 2019-08-03T09:07:37 | 2019-08-03T09:07:37 | 195,543,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | class Solution:
def VerifySquenceOfBST(self, sequence):
# write code here
if len(sequence) == 0:
return False
if len(sequence) == 1:
return True
root = sequence[-1]
for i in range(len(sequence)):
if sequence[i] > sequence[-1]:
... | [
"[email protected]"
] | |
f288784a0437bf94488c1a422eb9e0f0ca36f3e1 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/data/kernel_tests/repeat_test.py | 88e83da5bc27a9aeaa9b63ef9e314e6f97cb074f | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 3,445 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"[email protected]"
] | |
b3e56b32c4b8350754af374e43a7c8207d17fd73 | f0f56524d54b924eda0bc1abcc386589ccf2a026 | /dittodemo/settings/defaults.py | 40f9289fd1b893ec30d6ee20799ba3c67e0154ac | [
"MIT"
] | permissive | vanderwal/django-ditto-demo | 052d116419b8f67db40cd7a71b793bd702672c0f | abb251d44de48191b32ef54768f638920d39d081 | refs/heads/master | 2022-02-03T21:07:14.860800 | 2017-02-09T13:50:36 | 2017-02-09T13:50:36 | 66,157,322 | 0 | 0 | null | 2016-08-20T16:43:14 | 2016-08-20T16:43:13 | null | UTF-8 | Python | false | false | 5,235 | py | """
Django settings for dittodemo project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"[email protected]"
] | |
916e183c70b1243b4a91f925cfb582f468642add | c8cd63041471e7a20bf3a15c3ca96b7573f5f727 | /load_test_parser.py | 2aa9ecfacbaac77a83ac5488be6c85d639cefd4b | [] | no_license | ansonmiu0214/airbus_prototype | a992b9a04ba35da54088ff399975aac4efc7046a | 0647ec3cee330e4c58a40e10a946e57478e316ad | refs/heads/master | 2020-04-26T09:24:12.565650 | 2019-03-09T11:42:39 | 2019-03-09T11:42:39 | 173,453,998 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/bin/python3
if __name__ == "__main__":
with open('output_2.txt', 'r') as f:
lines = f.readlines()
relevant = [line.strip().split('Current latency')[1] for line in lines if line.startswith('Current latency')]
relevant = list(map(float, map(lambda x: x.strip(), relevant)))
max_latency = max(rele... | [
"[email protected]"
] | |
31e9cd4c46e9ca7dcf3f0bccfa1cf4e7f7aa7945 | 27aaadf435779c29012233cb1dacf27bd9dd0d0f | /imagesearch-20201214/setup.py | 158893f64912b1bb6ea8f0b27a99576256e3835a | [
"Apache-2.0"
] | permissive | aliyun/alibabacloud-python-sdk | afadedb09db5ba6c2bc6b046732b2a6dc215f004 | e02f34e07a7f05e898a492c212598a348d903739 | refs/heads/master | 2023-08-22T20:26:44.695288 | 2023-08-22T12:27:39 | 2023-08-22T12:27:39 | 288,972,087 | 43 | 29 | null | 2022-09-26T09:21:19 | 2020-08-20T10:08:11 | Python | UTF-8 | Python | false | false | 2,842 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"[email protected]"
] | |
2cd72276ffa96c0292769e9e855768fde32ae8b2 | f28b2ec517ac93526ac66b0b4a4fccc8614739d0 | /HRC_arlac_monitor/Save/zinfo.py | 7b806e9f132141ae3ab8e3b52d11d788f490533d | [] | no_license | tisobe/HRC | 8b8f7137e0804d7478da17d0796c0f25c19c04e6 | aaba4e5512b14c92b8d413dd173e9e944041fa4d | refs/heads/master | 2020-03-17T14:43:00.972966 | 2018-05-16T15:28:29 | 2018-05-16T15:28:29 | 133,683,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,944 | py | #!/usr/bin/env /proj/sot/ska/bin/python
#############################################################################################################
# #
# hrc_gain_find_ar_lac.py: find new AL Lac ... | [
"[email protected]"
] | |
a5df9c3956ce741cb2eb6a9c0155d07349363a1d | 7cb626363bbce2f66c09e509e562ff3d371c10c6 | /multimodel_inference/py3_v1/olds/sc3emlsm.py | dd484cd9338ae7f71742e4f7d8a632754eab4a2b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | z0on/AFS-analysis-with-moments | 76bfd6b0361ab7e9173144dbd21b6fa2c7bf1795 | eea4735b3b6fbe31c4e396da3d798387884a1500 | refs/heads/master | 2023-07-31T20:49:20.865161 | 2023-07-19T06:57:32 | 2023-07-19T06:57:32 | 96,915,117 | 4 | 5 | null | 2020-09-02T17:39:08 | 2017-07-11T16:38:03 | Python | UTF-8 | Python | false | false | 3,249 | py | #!/usr/bin/env python
# split, three epochs in each pop, asymmetric migration at same rates in all epochs
# n(para): 11
import matplotlib
matplotlib.use('PDF')
import moments
import pylab
import random
import matplotlib.pyplot as plt
import numpy as np
from numpy import array
from moments import Misc,Spectrum,Numeri... | [
"[email protected]"
] | |
e8d46842c93e593d1abf393ca6aab62c76269e13 | 9f35bea3c50668a4205c04373da95195e20e5427 | /third_party/blink/renderer/bindings/scripts/bind_gen/path_manager.py | 84b01c38d33b1cf2e4c6f677ce0cd1442c1f52c8 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | foolcodemonkey/chromium | 5958fb37df91f92235fa8cf2a6e4a834c88f44aa | c155654fdaeda578cebc218d47f036debd4d634f | refs/heads/master | 2023-02-21T00:56:13.446660 | 2020-01-07T05:12:51 | 2020-01-07T05:12:51 | 232,250,603 | 1 | 0 | BSD-3-Clause | 2020-01-07T05:38:18 | 2020-01-07T05:38:18 | null | UTF-8 | Python | false | false | 5,524 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import posixpath
import web_idl
from . import name_style
from .blink_v8_bridge import blink_class_name
class PathManager(object):
"""
Provides a ... | [
"[email protected]"
] | |
aadcbf0b94233b17dbea12ad397b0590f1241baf | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/helpers/edgedetectcolorcontroller.py | 65c2877cf2f2b4814e0f3a4c532a57a905ba4be7 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 3,793 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/helpers/EdgeDetectColorController.py
import BigWorld
import Math
from PlayerEvents import g_playerEvents
from Account import PlayerAccount
from helpers import dependency
from skeletons.account_helpers.settings_core import ISettingsC... | [
"[email protected]"
] | |
f9ce519233fd2afe6e44f4421dd950aae83bb057 | 9c718b8964d476db4728fc0cf18e24292dd8cf60 | /mxshop/MxShop/apps/goods/migrations/0003_auto_20180623_1326.py | 8a898faf7e1b7893e241d7d7688d7cf50c63bdd5 | [] | no_license | 1400720231/Django-Projects | 960f9226e0f5c01628afd65b9a78e810fdeb1b83 | 72f96788163f7ffe76e7599966ddbfa1d2199926 | refs/heads/master | 2021-06-25T17:41:14.147011 | 2019-04-03T02:24:38 | 2019-04-03T02:24:38 | 114,955,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-06-23 13:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0002_goodscategorybrand_category'),
]
operations = [
migrations.AlterModelOp... | [
"[email protected]"
] | |
40903430884cb63c47a7d28f94fa27d31ac66245 | 92adce9ebf87fc374f6cc093f68d14b7dc7a697f | /read.py | 2a08a459948865f3bdc2e5d27e913a2e6bdb6128 | [
"MIT"
] | permissive | nicolay-r/RuSentRel | 1f4f5678fdcbe342bda82834d6192a70b5c8b94c | 4fc0df1580d3da21f0be1e832e403652f73caed1 | refs/heads/master | 2021-08-27T16:49:34.342494 | 2021-08-03T06:48:39 | 2021-08-03T06:48:39 | 128,990,497 | 6 | 2 | MIT | 2021-08-03T06:48:39 | 2018-04-10T20:22:16 | Python | UTF-8 | Python | false | false | 3,153 | py | #!/usr/bin/python
from reader.common.bound import Bound
from reader.common.entities.collection import EntityCollection
from reader.common.lemmatization.mystem import MystemWrapper
from reader.entities.collection import RuSentRelDocumentEntityCollection
from reader.entities.entity import RuSentRelEntity
from reader.news... | [
"[email protected]"
] | |
c7d4ab5c5775b06d53e956773414cb4210cd5023 | c4a3eeabe660e5d6b42f704d0325a755331ab3c5 | /hyperion/hyperion_sedcom.py | 93f0c5a6dcaec34cae9ebd884d6942b366f84b70 | [] | no_license | yaolun/misc | dfcfde2ac4a6429201644e1354912d3a064f9524 | 049b68ce826ddf638cec9a3b995d9ee84bf6075a | refs/heads/master | 2021-01-21T23:54:08.953071 | 2018-06-02T19:46:18 | 2018-06-02T19:46:18 | 26,666,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,970 | py | def hyperion_sedcom(modellist, outdir, plotname, obs_data=None, labellist=None, lbol=False, legend=True, mag=1.5,\
obs_preset='sh', dstar=1, aper=[3.6, 4.5, 5.8, 8.0, 10, 20, 24, 70, 160, 250, 350, 500, 850]):
"""
obs_data: dictionary which obs_data['spec'] is spectrum and obs_data['phot'] is photometry
obs... | [
"[email protected]"
] | |
6eed42b73bb347a25e6a01089fb43ea62d05b786 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/pandas/tests/scalar/timedelta/test_arithmetic.py | 9fd1780c8ab77d3e11c59fa5cff81d29267a95f1 | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fa4d666d9e29f8945376652f7fb7084c3be064a66d0592c045742bd872cd8934
size 22242
| [
"[email protected]"
] | |
5744415b18511a257ef945bcfa2df6f5ae1b04d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02954/s798759253.py | 36a83144ddfc3b7f136a3c3568e3fead3056d7a7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | S = input() + 'R'
numbers = [0] * (len(S) - 1)
offset = 0
length = 0
right = 0
left = 0
for index, (s0, s1) in enumerate(zip(S, S[1:])):
length += 1
if s0 == 'R' and s1 == 'L':
right = length - 1
left = length
elif s0 == 'L' and s1 == 'R':
if length % 2 == 0:
numbers[of... | [
"[email protected]"
] | |
c7c6601ede207fab5b186671af8d6270d38078ca | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0451_0500/LeetCode460_LFUCache.py | b209a542f7836f153654b987fa1ac33c01e19f6d | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 4,277 | py | '''
Created on Apr 23, 2017
@author: MT
'''
class Node(object):
def __init__(self, key, val):
self.val = val
self.next = None
self.prev = None
self.freq = 1
self.key = key
class LFUCache(object):
def __init__(self, capacity):
"""
:type capacity: int
... | [
"[email protected]"
] | |
8b634a88c02b8398beec70c04cb11898abd76653 | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleHub/hub_all_func/test_ID_Photo_GEN.py | f43c8cd99596b00e1f7cb91e1e66c9e5fca71e42 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 642 | py | """ID_Photo_GEN"""
import os
import cv2
import paddle
import paddlehub as hub
if paddle.is_compiled_with_cuda():
paddle.set_device("gpu")
use_gpu = True
else:
paddle.set_device("cpu")
use_gpu = False
def test_ID_Photo_GEN_predict():
"""ID_Photo_GEN"""
os.system("hub install ID_Photo_GEN")
... | [
"[email protected]"
] | |
e0993846926170ccec472592ba4c25eadd8b01b5 | 0fa98dbc4d6256121b9f478a13ff2254047fb543 | /12_01_typical_interview_tasks/K. One in a binary number.py | b5aaa9111c3f0e1f571ed9c30e528b3a2e6a41b5 | [] | no_license | vamotest/yandex_algorithms | 48d5b29cb6e2789ea8f7e8024c798851058f1d4c | a588da3d21ff95e2437818493769719600f3eaf7 | refs/heads/master | 2023-03-19T20:44:59.373046 | 2021-01-20T19:06:28 | 2021-01-20T19:06:28 | 330,421,669 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 358 | py |
def binary_convert(number):
binary_number = ''
while number > 0:
binary_number = str(number % 2) + binary_number
number = number // 2
return binary_number
def find_amount(binary_number):
return binary_number.count('1')
if __name__ == '__main__':
count = find_amount(binary_co... | [
"[email protected]"
] | |
de6b02deb9e80be2b82f5b65928b23b1d4744a49 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4029/codes/1643_1054.py | 8a3c8ff612464a89b4701c45ea86a8670cc77b5b | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | x= float(input("Coordenada x: "))
y= float(input("Coordenada y: "))
if (((2 * x) + y == 3)):
print ("ponto pertence a reta")
else:
print ("ponto nao pertence a reta")
| [
"[email protected]"
] | |
37591cad599ca130ba2cdf6a22dc5e86d13f686f | ae0f37ebb76bce44c5e366d62424b5ef411f94b3 | /3. OOP/Tutorial/Rational.py | f83ae514fef27d48b4fc04bc06c6667e5dfeaacd | [] | no_license | khangsk/PPL | a30b656a8a70b8f6dd96ce39f57d3540495a5a26 | b8e3a04210796e03ff257c05cd1e60923f016d2f | refs/heads/master | 2023-02-21T09:28:25.216162 | 2021-01-18T09:35:15 | 2021-01-18T09:35:15 | 306,542,959 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import math
class Rational:
def __init__(self, n = 0, d = 1):
assert(d != 0)
g = math.gcd(abs(n), abs(d))
self.numer = int(n / g)
self.denom = int(d / g)
def __str__(self):
return str(self.numer) + "/" + str(self.denom)
def __add__(self, another):
targetTyp... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.