blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53d3bdc39fa2dc67b61a5ac0caf041498f56ccdb | 6206620e1a20c2d8847e63be974f90408c0cfa3c | /Advanced_python/polymorphism/method_overriding.py | 1bedabce0838dc15938ad1f2989ed30fdd8f7934 | [] | no_license | vinuv296/luminar_python_programs | c1eb4f91201634c999b427dd13b79968486e9e9e | 08c078e25c63b71e97c60a6b2ddd3911e2c915d2 | refs/heads/master | 2023-04-05T05:02:47.023113 | 2021-04-19T10:18:18 | 2021-04-19T10:18:18 | 358,550,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class Parent:
def properties(self):
print("10 lakh rs,2 Car")
def mary(self):
print("with raju")
class Child(Parent):
def mary(self):
print("With Gopi")
c=Child()
c.mary() | [
"vinuv296@gmail.com"
] | vinuv296@gmail.com |
b8dbb70f4b3a26af37196a9a463f6061d6e2e864 | bfa4447ec5e92017aec95ee6d349d91b5733afca | /test/test_assign/files/otter-correct/student/tests/q1.py | bf7a73d9e1cf2f82d664f62d60f74fae56746002 | [
"BSD-3-Clause"
] | permissive | ucbds-infra/otter-grader | 4020c14614fc62a93ce564c6b8ad88269defac97 | e6ece6b53ef2291f2724ff9965f09d910ad10e7e | refs/heads/master | 2023-08-23T22:46:15.793814 | 2023-08-18T21:53:52 | 2023-08-18T21:53:52 | 208,363,438 | 112 | 62 | BSD-3-Clause | 2023-09-12T00:01:41 | 2019-09-13T23:40:57 | Python | UTF-8 | Python | false | false | 526 | py | OK_FORMAT = True
test = { 'name': 'q1',
'points': 3.75,
'suites': [ { 'cases': [ {'code': '>>> isinstance(x, int)\nTrue', 'hidden': False, 'locked': False},
{'code': '>>> None\n', 'hidden': False, 'locked': False},
{'code': '>>> 0 < ... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
c9f6ffa4ccdab55b17fe7a64c048eb56d34711d8 | 76f1b87fe2c7614fbec8a6e4f278c8412ab845a8 | /srcpy/engine/constants.py | 2411be58132682320ee88d6b427f08c6b1ead727 | [] | no_license | Biendeo/BeitaGo | 5def47bdb92dd3cbf3ecc30d0bb3802d7a68e330 | 6c8a7a666668476f337c84d600e4aa818d64231c | refs/heads/master | 2021-01-25T10:28:20.836445 | 2018-10-11T23:45:45 | 2018-10-11T23:45:45 | 123,351,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from enum import Enum
from .grid2 import Grid2
class Color(Enum):
NONE = 0
BLACK = 1
WHITE = 2
PASS = Grid2(-6723, -2356) | [
"pantherman1996@gmail.com"
] | pantherman1996@gmail.com |
f92dc3361a7a206232b23f271ac064c05a6bbc6a | 467480a772be1df895ecf5c614ee0f0698e4ebe5 | /generate.py | 8c698b1cc7aa930693dadbe14f929e25c6182730 | [
"BSD-3-Clause"
] | permissive | nyu-dl/dl4chem-mgm | d46b508102718dba6c4995dbf8fa55f47f6589d1 | b2fa82b0b8def563a83709199dabbb5be8be1ce0 | refs/heads/master | 2023-04-19T05:34:26.977332 | 2022-05-11T18:42:41 | 2022-05-11T18:42:41 | 299,354,589 | 57 | 13 | null | null | null | null | UTF-8 | Python | false | false | 7,453 | py | import os, json
import torch
from src.data.loader import load_graph_data
from src.model.gnn import MODELS_DICT
from src.model.graph_generator import GraphGenerator, MockGenerator, \
evaluate_uncond_generation
from train_script_parser import get_parser
def get_final_parser():
parser = get_parser()
parser... | [
"onm2000@columbia.edu"
] | onm2000@columbia.edu |
9bc332c547c40f5365c438bf34352a6bda00969f | 5b0517cc9658940e3fec32a027dd13c8b48ae242 | /data_preprocessing/preprocessing.py | c18a21e5450266f5b84629ce9d2c2e97bd06569e | [] | no_license | eswarpoluri/Visibility-Distance-Prediction-based-on-Climate | a0bfd85689dbcc637c8882f389c2d528025fb729 | 2cfc33f9688a13be3b51417e14fc2368c770d637 | refs/heads/main | 2023-05-05T17:10:11.538507 | 2021-05-27T10:23:40 | 2021-05-27T10:23:40 | 371,333,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,667 | py | import pandas as pd
import numpy as np
from sklearn.impute import KNNImputer
from sklearn.preprocessing import StandardScaler
class Preprocessor:
"""
This class shall be used to clean and transform the data before training.
Version: 1.0
Revisions: None
"""
def __... | [
"61459659+eswarpoluri@users.noreply.github.com"
] | 61459659+eswarpoluri@users.noreply.github.com |
b264bf6d43b22be889e4a797979cb8a12ff3f3c7 | e6c26b17626e0b5efb7743c4244a5c917e5c7719 | /projectenv/lib/python2.7/site-packages/phonenumbers/data/region_IN.py | f59693840ad4a6ec0a6363899beb1818bdc9b10e | [] | no_license | Swifttote/thefoodjoint-launch | f26a68237f21a6cd529dd8f72475919dfb68b6e6 | ea3eafc8e78a1dc370d0f1f765531a8880ae43fd | refs/heads/master | 2020-08-06T00:18:15.888603 | 2015-07-21T14:59:45 | 2015-07-21T14:59:45 | 39,451,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,770 | py | """Auto-generated file, do not edit by hand. IN metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_IN = PhoneMetadata(id='IN', country_code=91, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{7,12}|[2-9]\\d{9,10}', possible_numb... | [
"ubuntu@ip-172-31-20-63.us-west-2.compute.internal"
] | ubuntu@ip-172-31-20-63.us-west-2.compute.internal |
e6913f097053d0984b178e90f14d405e975e55d3 | 52dcb623b88504a8f6980d5f2594a6ee3066cba1 | /python/project 7/main.py | 2b029e4d38dad868ef102861d4a3aee450b9fa11 | [] | no_license | shekorla/Scripting-Random | 897f890ae929817de626cd7067c73b8b6d48ba88 | b0d370072f8ee61f7f9db970c65d421119eaaee0 | refs/heads/master | 2021-09-09T22:11:00.352744 | 2021-08-28T00:53:19 | 2021-08-28T00:53:19 | 203,869,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | import random
random.seed(20190101)
import math
#list of (x) of where they end
pa1x=[];pa10x=[];ma1x=[];ma10x=[];reg1x=[];reg10x=[]
#list of (y) of where they end
pa1y=[];pa10y=[];ma1y=[];ma10y=[];reg1y=[];reg10y=[]
#list of (x) of where they end random test
rpa1x=[];rma1x=[];rreg1x=[];
#list of (y) of whe... | [
"kassidy.mcconkie@gmail.com"
] | kassidy.mcconkie@gmail.com |
ddf41d9232cadd3250da70e0d99aa2b0729a4d6d | a5c2413a2f9c09de2263484adb1cac0e48e55723 | /app/config.py | f85c744cb3b1322cf211c86f536116fbf82dd3fb | [
"MIT"
] | permissive | samuelhwilliams/gt-powerup | 4beb0e6f54a401b8fbffbaa714ccd52451a8ec2c | c37539eafb3749b1e029bdeec997e715e9c3f3a4 | refs/heads/master | 2021-06-28T08:19:35.219651 | 2018-11-20T09:02:53 | 2018-11-20T09:02:53 | 145,103,258 | 0 | 0 | MIT | 2018-08-29T07:46:31 | 2018-08-17T09:49:18 | Python | UTF-8 | Python | false | false | 2,759 | py | from logging import WARNING as LOGLEVEL_WARNING, DEBUG as LOGLEVEL_DEBUG
import os
from datetime import timedelta
class Config:
FLASK_ENV = os.environ.get("FLASK_ENV", "production")
PORT = os.environ.get("PORT", 5000)
DEBUG = False
TESTING = False
LOG_LEVEL = os.environ.get("LOG_LEVEL", LOGLEVEL_W... | [
"samuelhwilliams@gmail.com"
] | samuelhwilliams@gmail.com |
d27b4d0261281b5ac2fe259ab81f173745d10d58 | 4d430e7af78988fcf2e60a7f36c99a32e133dfc9 | /leetcode/findLongestWord.py | b0501f393caf8ecd9b6ab8c3b6165eb6bc2fd46a | [] | no_license | SFZhang26/Algorithm | f67974ec0bca1814bf69c9dbaa1788fbe6be6853 | 94d7f5a79a4e517291f035759185fd9f1a03f797 | refs/heads/master | 2021-03-31T01:58:23.182696 | 2017-11-08T09:18:44 | 2017-11-08T09:18:44 | 83,506,627 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # 524. Longest Word in Dictionary through Deleting
class Solution(object):
def findLongestWord(self, s, d):
"""
:type s: str
:type d: List[str]
:rtype: str
"""
result=""
for cur in d:
if self.check(cur,s):
if len(cur)>len(result):
... | [
"sf_zhang26@163.com"
] | sf_zhang26@163.com |
a1bbfcac0c9f243b04f54f8c03afbd116cd2fca5 | 4662190cfc22e152d37056866e0cb04731defa50 | /src/training_managers/ann_strength_training_manager.py | 9449cd6592f5279568440091f1c01984070d4aaf | [
"MIT"
] | permissive | reiserbc/ML-StockAnalysisProject | 151f52c2714874abb9c4742b17fac47b73c60fbc | 37411c1204ecf69040ba2a1658013e4bf71eef9d | refs/heads/master | 2023-03-18T15:08:17.588244 | 2021-03-18T00:12:31 | 2021-03-18T00:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,925 | py | """Module for using standard artificial neural networks to make predictions based on data.
"""
# TODO Create ANN predictor setup to use the Trend Deterministic Block Provider to predict
# a single day in advance as a proof of concept.
from configparser import ConfigParser, SectionProxy
from os import path
... | [
"freitacr@plu.edu"
] | freitacr@plu.edu |
6c418e8c3b5cb34a1b3900112e4d273230a61e31 | 96d9d1072cdd463ee41d7848e1c7976cb43e2d2c | /multi_scripts.py | 68caf147a7c3a67db439526147dda83dfa4811e1 | [] | no_license | Auxilia606/VC_Balance_CC | 27d6a91d8f1ed1869f10e1190a97c495d675a809 | a7c0b8ef3410e47b0c6710a749fbbba6b857aeeb | refs/heads/main | 2023-05-08T14:59:38.465109 | 2021-05-29T16:06:44 | 2021-05-29T16:06:44 | 371,301,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199,482 | py | from header_common import *
from header_operations import *
from module_constants import *
from header_parties import *
from header_skills import *
from header_mission_templates import *
from header_items import *
from header_triggers import *
from header_terrain_types import *
from header_music import *
from... | [
"auxilia606@gmail.com"
] | auxilia606@gmail.com |
b4c939843534713b7d077ebc343ef7bb7adc4f1f | 33db43444fb80747f0bdb4ebfbf75bb59a548b33 | /gradecalc/gradecalc/urls.py | 9e2d1ecb50c8a12b8b7f08d26457219e1d2afff9 | [] | no_license | gremhlin/Grade-calculator | 12fbc42284e0cfd65f0742c8a704d5aeabee91be | f81375eff141f10b5baae9ea6094b4e559cc2a95 | refs/heads/master | 2020-06-13T17:39:25.690199 | 2019-07-01T20:44:03 | 2019-07-01T20:44:03 | 194,735,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """gradecalc URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-bas... | [
"bork.jorgen@gmail.com"
] | bork.jorgen@gmail.com |
6be2c5d88635754deb700d247ea7163f74ba3836 | 60e29612962eeb9d57f31c28cb52fe6f8a3011ab | /classify.py | 9b67cef84adc56b2ee13a640407d5c6ff69774a7 | [] | no_license | szwabin/ANDI-challenge | 7f5199c7a8e065a3f5ba571220b6c287af33962c | 770fd96174865d8f0d5de86262805790fac63a3c | refs/heads/main | 2023-01-05T08:50:37.428579 | 2020-11-03T14:14:30 | 2020-11-03T14:14:30 | 309,632,961 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,065 | py | #!/usr/bin/env python3
# Scoring of the classifiers on challenge data set
# Janusz Szwabiński, 28.10.2020
import numpy as np
import pandas as pd
import joblib
import glob
import csv
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import FunctionTransformer
from sklearn.tree import DecisionTreeClassi... | [
"noreply@github.com"
] | szwabin.noreply@github.com |
0f119c6ace9674e27f51e37294ec33c081032927 | 208a579e994fd30c7a222c44f2fda9e34b04ee5d | /øving 3/oving 3 2.py | bea82706f53f5968ffb4e8ef2dd9bca5fb4c4c94 | [] | no_license | BP---/ITGK | f6deefb400816080ef0bda0f565e76fa94276a5e | f8c1e4c32ecf936436a447915dfeea20d3ba0357 | refs/heads/master | 2016-09-08T02:02:32.240454 | 2013-10-11T09:39:49 | 2013-10-11T09:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | debug = False
def Adder(nr1, nr2):
global debug
if(debug == True):
print('tallene som legges sammen er', nr1, 'og', nr2)
ans = int(nr1)+int(nr2)
return ans
def main():
global debug
global cont
reqDebug = input('vil du debugge? (y/n)')
if (reqDebug == 'y'):
debug = True
... | [
"bp_114@hotmail.com"
] | bp_114@hotmail.com |
5eb8bb454365369c9fe6a69ff4a4f12721e14ab1 | 4c8734dc95116c06c7e3ab23091b058edda5d21a | /d2.py | 02324a4e51e078e7eb9a525a3bbc126637e89802 | [] | no_license | lindabelle/textforgit | 97d020876a89fa014754e337b12a11ed2edaad27 | a6e64d6579283ce07ee93d20625f83039f9a580d | refs/heads/main | 2023-06-06T04:46:27.291254 | 2021-06-25T12:51:49 | 2021-06-25T12:51:49 | 380,340,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | d={a:a**2 for a in range(7)}
print(d) | [
"alexxllxx1@gmail.com"
] | alexxllxx1@gmail.com |
bd62b7bbca8154f9b16626b56a67784d6e275ea5 | 2b0ff11afa83b3c241556f9c09e3ab641f87ed99 | /test/test_io/test_writers/test_basewriter.py | bdd2c1acf0ba66f13b10b99efb7810e2f3314e90 | [] | no_license | agapow/relais.dev | 88b3bc15c264fbcd280931c2a500e9e265292a73 | 8cf7b6d97acdaa444c48281c045d31421fa8e1ae | refs/heads/master | 2016-09-02T03:09:41.615553 | 2009-04-28T16:04:05 | 2009-04-28T16:04:05 | 157,064 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Tests for the relais.dev.io.writers.basewriter, using nose.
"""
### IMPORTS ###
from StringIO import StringIO
from relais.dev.io.writers import basewriter
### CONSTANTS & DEFINES ###
### TESTS ###
class test_basewriter_ctor (object):
def test_filepath_ctor ... | [
"github@agapow.net"
] | github@agapow.net |
6e1b092a7e6f85d6efca87805706d92718c98325 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/battle/resource_points.py | 58a0117e13ee33a8d9d218c7496c89e9e8398f20 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 10,567 | py | # 2016.02.14 12:38:44 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/resource_points.py
import weakref
import BigWorld
from CTFManager import g_ctfManager
from constants import RESOURCE_POINT_STATE
from gui.battle_control import g_sessionProvider
from gui.shared.utils.pl... | [
"info@webium.sk"
] | info@webium.sk |
b11240e505a2fe7d8273246ffb1db0828dd51be9 | 001432d490c9bf0529fc72fe2772a005d5be5ccf | /python_week/python_day01/ex02/vector.py | 791da420036f0d3c98256f27f83a7ba24aed2ba2 | [] | no_license | AlexJeannot/Python_bootcamp | 5ebd58dd67ff62c0bdd886427a5d81be6f2af36f | 314a7949c4573a4cd38e6037c3f8754d83ef4550 | refs/heads/master | 2020-12-11T13:02:48.191839 | 2020-01-20T14:57:20 | 2020-01-20T14:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py |
class Vector:
def __init__(self, initializer):
if isinstance(initializer, list):
self.values = initializer
self.size = len(initializer)
elif isinstance(initializer, tuple) and len(initializer) == 2 and initializer[0] < initializer[1]:
list_vec = []
i... | [
"ajeannot@e1r2p17.42.fr"
] | ajeannot@e1r2p17.42.fr |
4ce3a8efd95d236d73a447758148f57878a4bfdb | ebc7c4d82eed374060bf6bbc7df76930412ba26a | /plait/api.py | 98476b79c0cb686fc7f39bb0936a197961f50a2a | [
"MIT"
] | permissive | dustinlacewell/plait | 6878b2124069373fd2cafdcf5ba1ca628bda64ec | b57bc353298401af41b286fbefa6120b236be102 | refs/heads/master | 2021-01-10T12:23:34.931115 | 2015-12-04T21:55:30 | 2015-12-04T21:55:30 | 45,318,025 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import inspect
from twisted.internet import reactor
from twisted.internet.threads import blockingCallFromThread as blockingCFT
from plait.task import thread_locals
class RemoteCallError(Exception): pass
def run(cmd, fail=False):
"""
Execute a command on the remote host.
Blocks by calling into the main r... | [
"dlacewell@gmail.com"
] | dlacewell@gmail.com |
03eef06f108cb913d96c08aedd484442ba803986 | 6c67a4459747d57b6e706e68aadffffacd671408 | /polls/workon/lib/python3.6/os.py | 55458888e579afca9b16d0cd3ae52cb82a6c7ebe | [] | no_license | nejcd/playground | d535bf5d77de0e7c9cc353c9b0479c8a78a2cf35 | 760687ee67077e18e1dac9ca021cae94aebfd15e | refs/heads/master | 2020-03-22T14:09:11.953722 | 2018-07-29T09:19:24 | 2018-07-29T09:19:24 | 140,156,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /Users/nejc/anaconda3/lib/python3.6/os.py | [
"nejc.dougan@gmail.com"
] | nejc.dougan@gmail.com |
0a4029dd3c60144248127e36dd8c0bca371ab60e | f075ffc7b3d1ff7d56617877766d0490dcf062d5 | /example1/page/1.py | 4f5dfb244f3c0000b65d60891e50a6e165111dd7 | [
"MIT"
] | permissive | donutpy/example | 57e6af1da050c52f0086890cdd932ffa27762a71 | df72e57856a57bead27f95eb6cee219f01e78b40 | refs/heads/master | 2021-05-11T21:04:10.361638 | 2018-01-14T20:15:43 | 2018-01-14T20:15:43 | 117,458,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | name = GET.get("name")
data = get(name)
if data:
print("Info")
print(data["first_name"])
print(data["last_name"])
else:
print("Sorry. No user found with the name " + name)
| [
"noreply@github.com"
] | donutpy.noreply@github.com |
50f55f71e64f0b46732c00436df30537c12e570e | fc3cc028b34e855c704f6a55f1e9dee2176999e5 | /192_Wildcard_Matching.py | 084312d38a0abdb1abddc4d9936bedce81affc34 | [] | no_license | pansinyoung/python-lint | c9a676abaf3e0342680a0b6d1a1a601b51916dcd | 5be161f126cfef7be6dcf2e82088fdafffc7a69d | refs/heads/master | 2020-07-21T11:36:17.997386 | 2019-10-20T23:46:50 | 2019-10-20T23:46:50 | 206,851,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | """
192. Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).
Example
Example 1
Input:
"aa"
"a"
Output: false
Exampl... | [
"yan.pan@monsanto.com"
] | yan.pan@monsanto.com |
ab0fc3dda170978816a19f74cde6d9ce35431267 | fe9891688ec39f609c8d48c2ce8e936f178a2e6b | /register.py | 6d148a5e4982ca6ccd14c49ab0ff9a192d9f5237 | [] | no_license | M2rtenRe/Leht | 1225860e27fb696febb7b0a9ef90a3bcd5ecf11b | 8eeeff9c690c00506fd7c09266d7e9530099bf17 | refs/heads/master | 2021-04-09T11:47:44.779979 | 2018-06-03T10:47:32 | 2018-06-03T10:47:32 | 125,562,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,912 | py | #!/usr/bin/python
import hashlib,sys,getpass,base64,os,random,urllib.request,subprocess,socket,rngCam,time,cgi
print("Content-type:text/html\r\n\r\n")
print('''<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Registreerimine</title>
<meta name="viewport" content="width=device-width, initial-scale=1">... | [
"m2rtenreinaasoriginal@gmail.com"
] | m2rtenreinaasoriginal@gmail.com |
660792ebaa64e1a0f01829ac2fa6c6e902c39ba8 | 9ac7215c19f1478ecd8bc5bbd33bf02ffb14691e | /test/functional/feature_nulldummy.py | b1ebc8bffd4619228473793e59626b39d52a206f | [
"MIT"
] | permissive | criptolot/bsvcoin | b40ff8b6910e23904515b4d9187ac359ebd42f78 | 125fc951c1bb5a87b706c5a3821a1e3252f45a3d | refs/heads/master | 2023-03-30T17:52:18.592685 | 2021-04-14T21:57:15 | 2021-04-14T21:57:15 | 357,923,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,254 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test NULLDUMMY softfork.
Connect to a single node.
Generate 2 blocks (save the coinbases for later).
G... | [
"criptolot"
] | criptolot |
7390748c8c5603571054ac35bb01ce92141f5d35 | 31e82fe8108ee8bd023bfe3a7c0075c4b41ba280 | /Data Structure/datastructure_exercise.py | 56fcc33003988ee317c9e1fa4ccbab77a39ea4a3 | [] | no_license | Ichigo-lab/PythonBegins | b2564053472521e5e78ab85afdc365b31cc0f78c | 50995e0e7d4de8c77cefc163fb848e9b64fe43dd | refs/heads/master | 2022-12-02T14:39:32.241559 | 2020-08-16T11:32:02 | 2020-08-16T11:32:02 | 271,174,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from pprint import pprint
sentence = "This is an common interview question"
char_repetition = {}
for char in sentence:
if char in char_repetition:
char_repetition[char] += 1
else:
char_repetition[char] = 1
pprint(char_repetition)
char_repetition_sorted = sorted(
char_repetition.items(), ke... | [
"arifkhan89837@gmail.com"
] | arifkhan89837@gmail.com |
6f7783056afc32c59c56147ec14e1af860df6a49 | b48e2c61292ad9c6621bee95cd70265911d6d636 | /tests/test_marketstack/test_import.py | 8e369050c5f3d39e3e813414f40f454211bfeaca | [
"BSD-3-Clause"
] | permissive | kvh/snapflow-stocks | 9f544769b14887338e35df7c6592a035c7bddd6c | 2531749d86b9ca8a47b3443605d6a9f69c219a03 | refs/heads/master | 2023-06-04T15:47:59.157490 | 2021-06-18T04:15:22 | 2021-06-18T04:15:22 | 320,654,176 | 1 | 0 | BSD-3-Clause | 2020-12-15T20:08:19 | 2020-12-11T18:33:51 | Python | UTF-8 | Python | false | false | 1,807 | py | import os
from snapflow import graph, produce
def ensure_api_key() -> str:
api_key = os.environ.get("MARKETSTACK_ACCESS_KEY")
if api_key is not None:
return api_key
api_key = input("Enter Marketstack access key: ")
return api_key
def test_eod():
from snapflow_stocks import module as sto... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
767ade35eef66aad7a14b9a9d020379e637aa45e | fd379769378d129ae2f038a01f85391034491d61 | /python/inversions.py | 67c0c16bafa80a0b69c63aab4ce145dfca63c857 | [
"MIT"
] | permissive | drusk/algorithms | 824593d489904f6efa3ccf2a44fab69aafec9cd4 | c8bdc1c1aff6386e37c023bf1f4984e5addbcab5 | refs/heads/master | 2021-01-10T19:33:45.092215 | 2013-12-17T19:59:54 | 2013-12-17T19:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | """
Count inversions in a list of numbers.
"""
__author__ = "David Rusk <drusk@uvic.ca>"
def main():
input_file = ("/home/drusk/Documents/Courses/online/algorithms1/"
"assignments/a1/IntegerArray.txt")
numbers = []
with open(input_file, "rb") as filehandle:
for line in filehandl... | [
"drusk@uvic.ca"
] | drusk@uvic.ca |
b8ed560f29c16f3eb2bbbe66bd280997880c9fad | 6fa831a9ac84ab220aad1195365640cabf3eeb88 | /tools/calibrate/min_quad.py | 10eff68e71089a0ffedda59e1d153540a3f30fe1 | [] | no_license | d4niele/maia | 1e68faae43687a4d12f29fff7fe94424e9713da1 | 178087336a32856c5f46e364bf164dc1e229b59d | refs/heads/master | 2020-05-24T16:07:53.666392 | 2019-07-02T22:42:50 | 2019-07-02T22:42:50 | 187,349,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import numpy as np
from matplotlib import pyplot as plt
N = 10
xs = np.random.random(N)
ys = np.random.random(N)
trend = np.polyfit(xs,ys,1)
plt.plot(xs,ys,'o')
trendpoly = np.poly1d(trend)
plt.plot(xs,trendpoly(xs)) | [
"you@example.com"
] | you@example.com |
53669690afccd2b07da54fa5909916754fc61886 | c63d0523e61acff48651c6ad806ce12dccef84e2 | /ukbb_parser/__init__.py | 11b1bb06f02cca898af8a9cebcc4c07975f45e17 | [] | no_license | nadavbra/ukbb_parser | 7ffb37961c0d513310171d2aa857edfbacc9845e | 97b7534e22af33213c2e6f44d87dfa1d783bfc56 | refs/heads/master | 2021-06-22T17:37:53.640625 | 2021-06-08T09:02:58 | 2021-06-08T09:02:58 | 220,828,754 | 26 | 6 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from .ukbb_parser import get_chrom_raw_marker_data, get_chrom_imputation_data, create_dataset, create_ICD10_dataset, pivot_ICD10_tree_to_dataset, \
filter_ICD10_tree, construct_ICD10_tree, parse_raw_ICD10_dataset_into_tree, read_raw_dataset, parse_dataset_covariates, parse_fields, \
get_sample_genotypin... | [
"nadavb@cs.huji.ac.il"
] | nadavb@cs.huji.ac.il |
d3533596340bf539c546108539a1db0bed84152f | 8c619929999678a585a49dfda88499622445fdba | /L2C2/templates_origin/email/base.txt.py | 3fc8edf9c63536aff12797e31cab7c13a53d9793 | [] | no_license | Akawae/L2C2GIT | 3df6e948d140166fd15e8f611cd2b5486a0e04bb | da856a412e57fc237e036da1b3a319d187e0af13 | refs/heads/master | 2020-06-18T18:32:00.226312 | 2019-07-11T13:40:37 | 2019-07-11T13:40:37 | 196,401,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | BBBBB BBBBBBBBBBBB
XXXXXXX
| [
"larry.georget@gmail.com"
] | larry.georget@gmail.com |
020896c5168cdb397dd61350967710c264a45466 | ad3fd0595c60cd10130676203ca695781ba59fa5 | /RicardoFabbri18022013_2257_gml_fb/scripts/rdfFBEgoGML.py | 6c096e21a08746b169e5094ef97e3471bd11bb1c | [
"CC0-1.0"
] | permissive | labmacambira/fbEgoGML | e3d5b499df5ad48613f5071cae8965a5b22b3315 | 3b725b0a6c1998788bcb9b6ebcc966ed4cb083fd | refs/heads/master | 2021-05-30T15:07:38.155574 | 2015-12-11T10:13:15 | 2015-12-11T10:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | import social as S, percolation as P, os
import importlib
#importlib.reload(P.rdf)
importlib.reload(S)
importlib.reload(S.fb)
importlib.reload(S.fb.read)
importlib.reload(S.fb.gml2rdf)
c=P.utils.check
umbrella_dir="fbEgoGML/"
fpath="./publishing/fb4/"
dpath="../data/fb/gml/"
scriptpath=os.path.realpath(__file__)
fname... | [
"renato.fabbri@gmail.com"
] | renato.fabbri@gmail.com |
7c7d883606b85746caac3bd012b885f05e0c1f50 | cc0445c6029ef13db9a775ef027b8eaa4f7d9f9e | /pywebwatch/dependencies/bs4/tests/test_soup.py | 00dc8b3ba22baa8bff6075ac4a9a9447d8c1750f | [
"MIT"
] | permissive | kartiknagpal/pywebwatch | b2983918406b4ac4d89db14b9d6852faa58e096b | 52dda804a67ce4732fbe7b207a0b49cda7ed05e9 | refs/heads/master | 2021-01-23T13:16:58.927736 | 2013-10-16T09:41:36 | 2013-10-16T09:41:36 | 13,599,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,239 | py | # -*- coding: utf-8 -*-
"""Tests of Beautiful Soup as a whole."""
import logging
import unittest
import sys
import tempfile
from bs4 import (
BeautifulSoup,
BeautifulStoneSoup,
)
from bs4.element import (
CharsetMetaAttributeValue,
ContentMetaAttributeValue,
SoupStrainer,
NamespacedAttribute,
... | [
"radsfinest@live.in"
] | radsfinest@live.in |
936e8df4fc47cca3d81260b744c83e14b1577582 | 6b7bd01cade020464ecceb1f76c937bfa5e9d9a2 | /blog/views.py | 5c1a09b76d3c080c8cc4813f386d4da3dd3ae71f | [] | no_license | evachibber/my-first-blog1 | f9eaca095fe20f6fd528a46b6a3bc69143ae190f | 8c2232f839b366da3141fa715b17d4e3542742c4 | refs/heads/master | 2020-06-03T21:00:17.438069 | 2019-06-17T11:31:36 | 2019-06-17T11:31:36 | 191,729,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
# Create your views here.
def post_list(request):
posts=Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request,'blog/post_list.html',{'posts' : posts})
| [
"16bcs012@smvdu.ac.in"
] | 16bcs012@smvdu.ac.in |
c5e6fa6d570a4aacb0eb044489b0966c2488a40b | 874c6e8ff26d49bb584635745a503fc503a4f50c | /py/ocv_convert_color.py | e947ba0cb087d80a7a7f23c27dfe53c2be87007e | [] | no_license | nothingbutpassion/misc | a6dc95b2b80c6045dc1ef221c1eedd524a9ccf9a | 74c2febfa44b75d25661f401ac1e199e4a8f4151 | refs/heads/master | 2022-09-16T20:33:40.437748 | 2022-09-07T10:35:32 | 2022-09-07T10:35:32 | 86,404,490 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | import sys
import os
import cv2
import numpy as np
def show_nv12(img):
bgr = cv2.cvtColor(img, cv2.COLOR_YUV2BGR_NV12)
cv2.imshow("nv12", bgr)
cv2.waitKey()
def show_bgr(img):
cv2.imshow("bgr", img)
cv2.waitKey()
def i420_to_nv12(img):
h, w = img.shape[:2]
h = h//6
y = img[:4*h]
... | [
"nothingbutpassion@163.com"
] | nothingbutpassion@163.com |
86565a1002af25f863aa082497039bd21fb5cb16 | cef5eaff2177b451982ebb40372d9662c0fa200f | /world/direction.py | 4861a9b2e3f7a1d876b051040cbbe51768c40b9b | [] | no_license | Dominisg/Pylife | 38eb015fa59ceb46e6e626953d3f40c79c2d1b69 | 631adeb625593e9752ae4a77f12f86ead5a3b0d7 | refs/heads/master | 2020-03-19T05:26:44.898398 | 2018-06-11T13:39:37 | 2018-06-11T13:39:37 | 135,931,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | import random
from enum import Enum
class Direction(Enum):
RIGHT = (1, 0, 1, 0)
LEFT = (-1, 0, -1, 0)
DOWN = (1, 1, 0, 1)
UP = (0, -1, -1, -1)
HEXRIGHT = (1, -1, 0, -1)
HEXLEFT = (0, 1, -1, 1)
def __init__(self, xo, yo, xe, ye):
self.xo = xo
self.yo = yo
self.xe = ... | [
"ziomm23@gmail.com"
] | ziomm23@gmail.com |
4e96d21891089fb9cb8dfa8137e01210d37ea1ed | e10a8e3c7cf96af49d0c331d43850b1708ed7558 | /demo/settings.py | fe80246d045ad8d8f2baa6b78df48839e7827077 | [] | no_license | wandieinnocents/django-intro | c62f52a91702ff6be76483c9a2cb77c6b970538f | 9240f7d6ef5d99fe9e9a2e21402db13d873d88db | refs/heads/master | 2020-06-24T23:28:33.631444 | 2019-07-27T06:19:37 | 2019-07-27T06:19:37 | 199,124,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | """
Django settings for demo project.
Generated by 'django-admin startproject' using Django 1.11.22.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"wandieinnocent2@gmail.com"
] | wandieinnocent2@gmail.com |
852312402df7c0197eb1d671f8951a5fa06ce19e | c0d25bb803184e90f1897ae3d3ff864abc3ccc85 | /MCDelivery/asgi.py | 328aead759f82fc9ca48abd88ffec61312c89941 | [] | no_license | KaushalBinjola/mcdelivery-app-django | 0047c8dc9dfcdbd87c4ba2a7939696282e3897e4 | 8463cbef89ac386bc1e90231ee96c9173825f711 | refs/heads/main | 2023-05-07T02:35:38.016311 | 2021-06-02T13:57:44 | 2021-06-02T13:57:44 | 373,181,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
ASGI config for MCDelivery project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefau... | [
"kaushal.binjola11@gmail.com"
] | kaushal.binjola11@gmail.com |
c0f1b3cef12467094a28afd486a162a8227989b4 | 28fe6e3e4e8fb9208699fdd6e15229dc4bf100b2 | /trdbapp/models.py | b396cc9940eb1d5634fcbb0699d5ad8f427bfb20 | [] | no_license | tane0000/projectDjango-Pi | 59f4c3e3584b7b94bdc1fc6a92657c4fc8679a02 | 68fc5a9e544ca3348cd287f08db8cbc336fe29fc | refs/heads/master | 2020-08-17T21:50:33.411344 | 2019-10-17T06:09:54 | 2019-10-17T06:09:54 | 215,715,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,122 | py | from django.db import models
# Create your models here.
from django.utils import timezone
from django.core import validators
# 製品名
class Product(models.Model):
name = models.CharField(verbose_name='製品名',max_length=20)
def __str__(self):
return self.name
class Meta:
verbose_name = '製品名'
... | [
"ane@honey.ocn.ne.jp"
] | ane@honey.ocn.ne.jp |
7f490a209b4f267db96cfc49ec9ba5ba1d8c6d01 | 366a491abc9572a4dd884372242eda74bd6c2d38 | /backend/dvmodels/serializers.py | 48e77eafe3cb7290329c9c74af91dd5399c71d5b | [] | no_license | FernandoItami/isntgram | f2716961448e1620c223cb046f64c9c0d980f5a9 | c376817943f837ba3bda860a764d2164befbd05e | refs/heads/main | 2023-06-02T08:32:51.419650 | 2021-06-28T13:24:06 | 2021-06-28T13:24:06 | 378,486,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | from django.db import models
from rest_framework import serializers
from .models import Post
from django.contrib.auth.models import User
class PostSerializer(serializers.ModelSerializer):
class Meta:
model = Post
fields = '__all__'
class RegisterSerializer(serializers.ModelSerializer):
passwor... | [
"fernandoitami@gmail.com"
] | fernandoitami@gmail.com |
e14c98975d6662fa7ac252d235dbe4f474f02229 | 7c9e4ee7d7360c6125c5b0b9ef018e8190fb03ec | /aws/hands-on/app-with-sqlite.py | 4b3604f5d9164c35cb9441c82bcf3345fe231948 | [] | no_license | ayuksl/GIT_me | 46677953c9e8568c104865faf76df7efe0ee4861 | f24ff08cd31d2f0cf857f05d1a12657251598c25 | refs/heads/master | 2022-12-25T06:52:25.580398 | 2020-09-30T18:28:10 | 2020-09-30T18:28:10 | 293,347,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | # Import Flask modules
from flask import Flask, render_template, request
from flask_sqlalchemy import flask_sqlAlchemy
# Create an object named app
app = Flask(__name__)
# Configure sqlite database
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///./email.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS']= False
db... | [
"yuksel93@yahoo.com"
] | yuksel93@yahoo.com |
74860b0e7df278cdb371c113f6567b59cea6a6f8 | 005ee30cb03195a6b66cac6cad57ddb93092864b | /venv/bin/pytesseract | 2dc9bd10ce92863596c1091cfad82478d12b8d1f | [] | no_license | rucha2997/OCR_Tesseract_Text_Recignition_From_Image | e275d8bd5a6e8e6bf52d1af4d6fcf945f10539f0 | f3ccc266e8549684ed033d9b028ff0d0efb707af | refs/heads/main | 2023-03-04T16:21:35.733190 | 2021-02-13T12:44:48 | 2021-02-13T12:44:48 | 338,571,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | #!/Users/ruchagurav/Desktop/Text_recognition/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pytesseract==0.3.7','console_scripts','pytesseract'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'pytesseract==0.3.7'
try:
from importlib.metadata import distribution
except ImportErr... | [
"ruchagurav@Ruchas-MacBook-Air.local"
] | ruchagurav@Ruchas-MacBook-Air.local | |
adbd1a3a47b298715f117521277cf5eedb4e59ab | e009c9dd84e4cf5d6c3667663e30eaa146399494 | /HaonanHu_Assignment3/compareMLModelsV2.py | ebbc25d917d93de5ae06cd997891bd3cf552a59a | [] | no_license | Haonan-Hu/EECS-690 | 369a680c96532045336de0fbdabaf9cf81749b2c | ed2622e388a6b54a634f5b22fe962b6d996050d8 | refs/heads/main | 2023-04-22T13:59:40.684941 | 2021-05-01T18:07:09 | 2021-05-01T18:07:09 | 335,808,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,152 | py | # import necessary libraries
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report, confusion_matrix, accuracy_score
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
from sklearn... | [
"hjgyhhn6328@gmail.com"
] | hjgyhhn6328@gmail.com |
5fc8113536b57a1e58dbb302c7fc5e2c52dfa282 | f9c41994dde66fd5ae61f95c5cc2e6f9dd0f4385 | /web_flask/4-number_route.py | fd6231bd13a7eab3b22396a6b439a9a1067e3cec | [] | no_license | mahdizaabi/AirBnB_clone_v2 | 1f5898adabdfe7cde1c306f5e2f0ad4f9519e283 | b9a40e3252c66c98338b1b7e230a02ea44d8d2d1 | refs/heads/master | 2022-12-08T16:58:10.778094 | 2020-09-06T17:17:06 | 2020-09-06T17:17:06 | 286,563,130 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/python3
"""
starts a Flask web application
"""
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
"""return hello hbnb"""
return 'Hello HBNB!'
@app.route('/hbnb', strict_slashes=False)
def hellox():
"""return html content"""
return 'HBNB'
@app.route('/c/<te... | [
"mahdi.zaabi@gmail.com"
] | mahdi.zaabi@gmail.com |
b972ce68801631428c75a435f19a1797a6c91eb7 | ad64b1bbdbef3718185a17e089be0527ed2bb06d | /app.py | b03352b28a648f4b211ff21b5a3e301695d15830 | [] | no_license | aditya-mahendru/Evolv_Back_End | 6369165f4b87b0cf8b93bd30654c4c85dbf5279e | 906b0930d8ffe754c0a8ca87cb3426810b34fccd | refs/heads/main | 2023-05-05T20:17:34.829851 | 2021-05-21T18:30:26 | 2021-05-21T18:30:26 | 368,085,164 | 0 | 0 | null | 2021-05-21T12:11:20 | 2021-05-17T06:52:45 | Python | UTF-8 | Python | false | false | 1,403 | py | from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_serializer import SerializerMixin
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///data.db'
db = SQLAlchemy(app)
class Blog(db.Model, SerializerMixin):
id = db.Column(db.Integer, primary_key=True)
... | [
"aditya.mahendru.17@gmail.com"
] | aditya.mahendru.17@gmail.com |
5de26745bb13ad2ae79516eb18e726a7104d168a | 51d0377511a5da902033fb9d80184db0e096fe2c | /30-case-studies-in-statistical-thinking/5-earthquakes-and-oil-mining-in-oklahoma/01-eda-plotting-earthquakes-over-time.py | fd64e420d5acd064b26dfb6c353d44084515012c | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | '''
EDA: Plotting earthquakes over time
Make a plot where the y-axis is the magnitude and the x-axis is the time of all earthquakes in Oklahoma between 1980 and the first half of 2017. Each dot in the plot represents a single earthquake. The time of the earthquakes, as decimal years, is stored in the Numpy array time,... | [
"a@skrasnov.com"
] | a@skrasnov.com |
535a116d0212e296c28c00090f9b9a5cc0ff9eda | 562a11c9813039430fe313384e55b4cc6a27283a | /tests/test_drf_article.py | 1250dd1c7f51c1525fbae28799e011647ae67d80 | [] | no_license | 8area8/django-rest-framework-articles | c5e6daaf8681293d97d40490c5317a4cabcaa3a3 | 3422353d57a66d4a22d66aa6d48bc128069ce879 | refs/heads/master | 2020-06-05T19:48:10.121391 | 2019-06-18T12:44:33 | 2019-06-18T12:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from drf_article import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"mbriolet.ma@gmail.com"
] | mbriolet.ma@gmail.com |
82d425e6d07b90bdd81b430ea65e1e9c915ad4ca | 680d3da3e38bb97282a3a26822a24f336874ad69 | /stacks/parenthesisCheck.py | cdd2a7a5a0032b1aaa801893a159021d3bfa25ae | [] | no_license | sinhasaroj/Python_programs | 9384efef26ce4e1b1e04d8725e8826120b66640a | e89148acbe852776993912e8e01b2cdc5f5bcb4c | refs/heads/master | 2023-06-14T00:17:27.354045 | 2021-06-30T19:28:52 | 2021-06-30T19:28:52 | 338,111,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | class Stack:
def __init__(self) -> None:
self.stack = []
def check(self,exp):
for i in range(len(exp)) :
if exp[i] == '(' or exp[i] == '{' or exp[i] == '[':
self.stack.append(exp[i])
if len(self.stack) == 0:
return False
if e... | [
"saroj.sinha@hpe.com"
] | saroj.sinha@hpe.com |
f9edfbfab9236cb252a545c5d20ffb696c90acb1 | c18254794feda61bec013206b3d19a58b0565876 | /configs/body/2d_kpt_sview_rgb_img/associative_embedding/crowdpose/res101_crowdpose_512x512.py | 1b62b6047c4139b794754749a23fcc54b8951d7e | [
"Apache-2.0"
] | permissive | SummerVideoAnalysis/mmpose | eebfff87658128825c487f4037abd1c86635b86c | 70d60e03b7eaa0ae1ec66cc7a22c00916f00c9e1 | refs/heads/master | 2023-07-15T20:17:47.603214 | 2021-08-29T12:03:54 | 2021-08-29T12:03:54 | 378,733,264 | 0 | 0 | Apache-2.0 | 2021-06-20T20:22:14 | 2021-06-20T20:22:13 | null | UTF-8 | Python | false | false | 4,385 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=50)
evaluation = dict(interval=50, metric='mAP', key_indicator='AP')
optimizer = dict(
type='Adam',
lr=0.0015,
)
optimizer_config = dict(grad_clip=None)
# learni... | [
"noreply@github.com"
] | SummerVideoAnalysis.noreply@github.com |
853b84a3159c7b36472310c22fcb73c35222e93b | e0b143c025a630b7b56d9d86118e16e569136f4a | /archive-dhkim/leetcode/ch21_greedy_algorithm/prob79_queue-reconstruction-by-height.py | 7a26b58c4ea09877d031bfe7e30084a3a5f9429d | [] | no_license | LenKIM/implements | 8cd9ee41bf6c5a1108047402905fe7da0ebcf3fb | 1a773bb02871d418def9629f608c68c4b0e8fe4e | refs/heads/master | 2023-04-26T16:26:15.981512 | 2021-05-17T00:44:54 | 2021-05-17T00:44:54 | 310,813,562 | 3 | 0 | null | 2021-05-17T00:44:54 | 2020-11-07T09:52:51 | Python | UTF-8 | Python | false | false | 1,782 | py | from typing import List
"""
https://leetcode.com/problems/queue-reconstruction-by-height
"""
class Solution:
"""
우선 people 리스트의 원소들을 "(1) k값 기준 asc, (2) h값 기준 asc" 로 정렬한 뒤 차례대로 merge_list에 입력한다.
입력할 때의 조건은
(1) 기존 merge_list에서 입력할 값의 h 이상인 것들 중 k번째 인덱스를 파악
(2) 찾은 인덱스 뒤에 입력하는데 뒤의 원소의 k가 현재 원소의 k와 같... | [
"dhkdn9192@naver.com"
] | dhkdn9192@naver.com |
0a43b98ce7d6db87225964d9ba742eaf038b8d86 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02922/s743734416.py | 5689127034e497825c363cb031a305c095bb9ae7 | [] | 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 | 143 | py | a,b = list(map(int,input().split()))
sasikomi = 1
tap = 0
while(sasikomi < b):
tap = tap + 1
sasikomi = sasikomi + a - 1
print(tap)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
11f2ddda3071f825013f9d1b1df05d991c8905fb | 76ad79c64e3f7b0c334e39041490ae93dbc3eb26 | /tell/data/dataset_readers/goodnews_flattened_glove.py | e4416e7685dbb5dcd476b1ed6e391806b21e801e | [] | no_license | akonepoint/transform-and-tell | 21ec1978350c8ffaaff5971229091245a6e9e999 | 47f00da81d606db8df992674101842d797ab1fa1 | refs/heads/master | 2023-09-01T16:52:51.474528 | 2021-10-14T09:32:06 | 2021-10-14T09:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | import logging
import os
import random
from typing import Dict
import numpy as np
import pymongo
from allennlp.data.dataset_readers.dataset_reader import DatasetReader
from allennlp.data.fields import MetadataField, TextField
from allennlp.data.instance import Instance
from allennlp.data.token_indexers import TokenInd... | [
"alasdair.tran@gmail.com"
] | alasdair.tran@gmail.com |
9c23bea273dce666c487e912b72af93af71f3a41 | 891bbc69acad1fa017808520319c9c0a85a4bb50 | /recipe_list.py | f53f998ff7d5ef6896c0d1d8c29d4847c98360ff | [] | no_license | haohaojin/DOUGUO | 7079f0b2a468cdfdf2f9da7a173a5eb054f457d1 | 8011f8cb50831921fc9c2dc61db4192e953bfaf5 | refs/heads/master | 2021-01-10T11:38:01.083013 | 2016-03-14T08:18:40 | 2016-03-14T08:18:40 | 49,051,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,074 | py | import urllib.request
from urllib.error import HTTPError
from bs4 import BeautifulSoup
import csv
import datetime
import time
import socket
import pymysql
import re
socket.setdefaulttimeout(600)
start_time = time.time()
headers = (
'User-Agent',
'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gec... | [
"hao.jin@outlook.com"
] | hao.jin@outlook.com |
c8e80a058aacbe949bb7d6f19b919a313f2d4cd0 | 6796d94855c36de54a9c4ddc72a2abc89af9030b | /classification with Voronoi/manhattanSchools2.py | 2c8242734028091c5e8fa4eebe642545bd18b6d5 | [] | no_license | Ali-AliAli-Ali/MachineLearning_Homework | 9159042e5e421a6862115045015bb66d7ee2d3cf | 31a8c95a8be67e4c89b678c31f369386f39ed077 | refs/heads/master | 2023-02-14T03:19:18.256084 | 2020-12-29T09:27:05 | 2020-12-29T09:27:05 | 313,084,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | from scipy.spatial import Delaunay
from scipy.spatial import cKDTree
from collections import defaultdict
import itertools
import manhattanSchools1
n = int(input('Enter the size of the city: '))
kH = int(input('Enter the amount of horizontal streets: '))
kV = int(input('Enter the amount of vertical streets:... | [
"noreply@github.com"
] | Ali-AliAli-Ali.noreply@github.com |
d2419cdf3a1b330e95dde1be399c672d76c2cdbf | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/JUNIPER-CFGMGMT-MIB.py | f042878a484686062400859bc4ddd98fa349579f | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,091 | py | #
# PySNMP MIB module JUNIPER-CFGMGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-CFGMGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:58:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
33cade64ce28179008d72828added401b0e8d66f | 5bc8468029a6e1dd0cc75d480a34e646bed64ea2 | /khabarkoi/asgi.py | 55dbeb1a0b29913165098f6c260591c4e0f53001 | [] | no_license | ziaurjoy/Basic-API | c1804749593fb8b0bab3df28550280e2ffa27999 | e7a65b4a0778cd21ff08b3a0a529358c3ef288a8 | refs/heads/master | 2021-05-19T10:18:43.941612 | 2020-09-07T14:20:25 | 2020-09-07T14:20:25 | 251,534,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for khabarkoi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"ziaurjoy802@gmail.com"
] | ziaurjoy802@gmail.com |
4afa913d5489d87cf1535fa6e17f15abb21d6797 | 268763dc4ca4debed8103cfe8dd6912174043a1f | /MainPage.py | 66924c2e9566b5604015a35e564a28556650b41b | [] | no_license | naston/LBALeagueOffice | 8aa16312ba2ef8b7f836146f430904b0b425e959 | a947c598cd4e17a856c65bca828a7835764ee3b0 | refs/heads/master | 2021-07-05T16:17:29.461770 | 2020-11-02T06:15:49 | 2020-11-02T06:15:49 | 200,166,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | import tkinter as tk
class Home(tk.Frame):
def __init__(self, parent, controller):
tk.Frame.__init__(self, parent)
self.controller = controller
self.homepage=tk.Frame(self)
self.homepage.place(relx=0,rely=0,relwidth=1,relheight=1)
#home frames
self.buttonLeft=tk.Fr... | [
"nathan@planetpaull.com"
] | nathan@planetpaull.com |
a2c147f4468186f6fc2e6530df517fe80b15286b | 3e59c64c78aa3ffc4ca6ee358ee1a3ba61e2d4af | /scripts/fb15k/fb15k_v1.py | a899647b39d3c73ffe3916529dba454b4a2f075c | [
"MIT"
] | permissive | pminervini/DeepKGC | de35f75fac9c64ca6e09e4ab244552792669678d | ed55d0a28d7607324def7c48ebde98786c11d5e1 | refs/heads/master | 2016-09-06T02:36:47.748324 | 2015-07-06T12:35:07 | 2015-07-06T12:35:07 | 38,617,255 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | #!/usr/bin/python -uB
# -*- coding: utf-8 -*-
# Classes of methods
u_vers = ['Unstructured']
base_vers = ['TransE', 'ScalE']
scaltrans_vers = ['ScalTransE']
xi_vers = ['XiTransE', 'XiScalE']
semixi_vers = ['XiScalTransSE', 'XiTransScalSE']
xiscaltrans_vers = ['XiScalTransE']
simple_method_set = base_vers + xi_vers
s... | [
"p.minervini@gmail.com"
] | p.minervini@gmail.com |
c2446cf0252aad202238cf8e52cbd1e69f2ed1ad | f8dd1bb6fe4ae537559b35582ad1691ad7045356 | /Mowing_the_Lawn.py | 7da26fdbdcfc0940cbcaba12580da4fe7c817552 | [] | no_license | adurham198/PythonCodeChallenges | c3eb15361f530c5fadd4c54ba8eca3057b4d8a5c | 38681011a834b88d72e20e48738d0985ec06a701 | refs/heads/master | 2020-06-26T17:06:47.778850 | 2019-10-10T18:55:49 | 2019-10-10T18:55:49 | 199,695,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #Anton Durham
#8/10/2019
#Desc: Function to subtract from a list 4 given integers
def cutting_grass(a, b, c, d,e):
l1 = []
l2 = []
l1.append(b)
l1.append(c)
l1.append(d)
l1.append(e)
for i in range(len(a)):
print(l2)
for j in range(len(l1)):
l1.... | [
"noreply@github.com"
] | adurham198.noreply@github.com |
9d28d1998cce3924601f7034f1652c2622127b6e | e3fd9dac022cdf9117cf0c5f906fb5c5a091f3a8 | /MyFiles.py | 09ddf0fcd2642d5314fd5227fe0684061102b896 | [
"MIT"
] | permissive | rajaganeshv/PythonPractice | 7a42b61eead562054f416c8632a5506351bb771d | 3bb162f92e1b699fd47be878897203653c356b54 | refs/heads/master | 2016-09-05T20:22:51.351047 | 2015-08-16T16:10:26 | 2015-08-16T16:10:26 | 40,827,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | __author__ = 'RajaganeshVanarajan'
print("This is my first line of learning Python! Hello World!")
for i in range(1,100):
print(i)
else:
print(i)
while(i<100):
print(i)
i=i+1
| [
"rajaganesh.v@gmail.com"
] | rajaganesh.v@gmail.com |
e2ce3f7ba544f926a64a48d9843287abf4e28590 | 3f1ea1e0f59e2ddb9e872920c70215ce60f5296d | /terminal_print.py | bb91838f381a71744165b6b0f227be171d970e47 | [] | no_license | ranifarhat/dft-toy | a25a213243c96f9e9754d9f281779bb1f99a92ae | 2823094cb170b72d5faad01f96cbbd304a66b437 | refs/heads/master | 2022-03-25T08:26:40.606759 | 2019-12-09T23:20:50 | 2019-12-09T23:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # import os
from platform import system
def print_to_terminal(string, *args) -> None:
"""
"""
if system() == 'Windows':
print(100*"\n")
# os.system('CLS')
elif system() == 'Linux':
print('\033[2J')
elif system() == 'Darwin':
pass
print(string, *args)... | [
"noreply@github.com"
] | ranifarhat.noreply@github.com |
091130c0662fd0844401f41341fb6248ddc1ebe2 | 2e4f1df3835ab1a0eba70a16800a836b05b82404 | /gst/get_group_info.py | c99105cf572285605dcf161865f88b2aa923f19c | [
"MIT"
] | permissive | valohai/g-suite-tools | a90fbdaf29815ac76e2f6845c40e8fd421bca076 | cbf69606ed992646e652261187a34f983491db98 | refs/heads/master | 2022-12-10T14:14:14.391443 | 2021-02-08T20:36:36 | 2021-02-26T10:45:57 | 222,693,411 | 1 | 0 | MIT | 2022-12-08T06:54:43 | 2019-11-19T12:41:06 | Python | UTF-8 | Python | false | false | 1,411 | py | import argparse
import json
import sys
from typing import List
import tqdm
from gst.credentials import get_directory_read_client
from gst.utils import get_paginated
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--domain", required=True)
ap.add_argument("--write-json", type=argparse.FileTyp... | [
"akx@iki.fi"
] | akx@iki.fi |
8967c69b929c650e120abc2ead34d889c38de1e7 | 07df84b040d8e3f2fc618b8f2b0bc1baec43524b | /src/main/starcraft/starcraft_ui.py | 5254804d574ecb47f89766863affaf7bb7f708fc | [] | no_license | vivekraghuram/starcraft_code | a0fc10be83e4846014ec27c41c6795b533ef34ee | 51fa9391bbc9058edc66005e736a2e0b0ed471cd | refs/heads/master | 2020-05-20T18:31:10.921038 | 2016-08-04T06:49:58 | 2016-08-04T06:49:58 | 53,350,172 | 0 | 0 | null | 2016-03-07T18:52:10 | 2016-03-07T18:52:10 | null | UTF-8 | Python | false | false | 698 | py | """
Author: seantrott <seantrott@icsi.berkeley.edu>
Similar to a regular UserAgent, but it uses a StarcraftSpecializer instead.
"""
from nluas.language.user_agent import *
from starcraft.starcraft_specializer import *
import sys
import subprocess
class StarcraftUserAgent(UserAgent):
def __init__(self, args):
... | [
"VV9295@YAHOO.COM"
] | VV9295@YAHOO.COM |
40626ac8ddf209b241b58431249c280083916fb0 | 7da03b7e9d8199373495d83b1974a69fe74bcc78 | /bio 2 week 4/untitled0.py | 622bbeef397c1101341f5a23e25ae6db9e2f5a31 | [] | no_license | austonnn/ucsd_bio_2 | 5a2de1610c697cf24dbffdd7c48d35470ed94879 | 4aaf0505edf046aed26e5ae8c2544f0f4389d0f3 | refs/heads/master | 2020-03-31T19:12:18.246843 | 2018-10-10T20:52:42 | 2018-10-10T20:52:42 | 152,424,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 23 14:39:12 2018
@author: xiangyin
"""
import numpy as np
d=np.array([1, 2, 3,4,5 ])
| [
"xchen04@gmail.com"
] | xchen04@gmail.com |
a1d35077b0b4310c7b4aacbfe21721d5e0747705 | cb9f86f7b75220426326fe20aeb92b7e3180e6d6 | /Lab1/serialization_json.py | 8b1784cb35f086ec84dda384b47f615da51c9f82 | [] | no_license | bohdanpc/CompArchitecture_labs | 703190e7c67e37a55dba09641609bef4364c292e | 9b4e1841a2b2d533b1d837400b46ba881093d08f | refs/heads/master | 2021-01-18T23:21:31.399731 | 2018-01-13T20:11:41 | 2018-01-13T20:11:41 | 87,105,935 | 0 | 2 | null | 2017-12-25T22:34:28 | 2017-04-03T18:16:33 | Python | UTF-8 | Python | false | false | 333 | py | import json
class JsonSerializer:
def serialize(self, data, file):
"""
Encode obj to yaml format and write it into file.
"""
json.dump(data.__dict__, file)
def deserialize(self, file):
"""
Decode from yaml file to Python-object.
"""
return jso... | [
"Ruslan.Neshta@gmail.com"
] | Ruslan.Neshta@gmail.com |
00ae0c89ed39061c8041b47f34c4aa23bb0f9c00 | a2d8a71095220bb4cb492b10da09005226aa24db | /Grad-CAM/grad_cam.py | 2555081ea0d3592fde8ab9dc4a2aa52210bbba6d | [] | no_license | suchethas/Adversarial-Machine-Learning | b700f1fc2cd8e5908b83f68456f7390accc1963a | 5c884770ebe63dd55a540395e6d12caf38428146 | refs/heads/master | 2020-12-28T05:15:18.526475 | 2019-06-20T20:04:11 | 2019-06-20T20:04:11 | 238,192,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,614 | py | #!/usr/bin/env python
# coding: utf-8
#
# Author: Kazuto Nakashima
# URL: http://kazuto1011.github.io
# Created: 2017-05-26
from collections import OrderedDict, Sequence
import numpy as np
import torch
import torch.nn as nn
from torch.nn import functional as F
from tqdm import tqdm
import pdb
import collectio... | [
"noreply@github.com"
] | suchethas.noreply@github.com |
6a9f8fdd88d5f755ba31aad1901de75f491abbc4 | 56ffce29f0d27f83206e11870d95982c38524aae | /apweb/database_test.py | 774897fdb8bf636f8846c81eeb4ba36319442e8b | [] | no_license | adamandpaul/apweb | cce365085e2ee58cfbc31544c5a7414e67ad56b4 | b1bb81fa7d7b39f19e187462aa3447ff482b46af | refs/heads/master | 2022-10-19T02:09:52.437906 | 2021-05-21T06:10:08 | 2021-05-21T06:10:08 | 201,398,036 | 0 | 3 | null | 2022-09-21T21:39:41 | 2019-08-09T05:41:06 | Python | UTF-8 | Python | false | false | 1,631 | py | # -*- coding: utf-8 -*-
from . import database
from unittest import TestCase
from unittest.mock import MagicMock
from unittest.mock import patch
import pyramid.events
class TestDatabaseConfiguration(TestCase):
@patch("zope.sqlalchemy.register")
def test_db_session_from_request(self, zope_register):
... | [
"arterrey@gmail.com"
] | arterrey@gmail.com |
077928efbad1988ff20eee43b7d3e59261ff1750 | 455aef883d89ee2c0c503dcb6b8a4ae1d43c81ee | /write_difference.py | 2e5b3570658d3708e2391a8199882d1f4b132a1d | [] | no_license | mbomben/python_scripts | cb9a50116cfbbb96e078349cad8690bbf6c814cc | 09628421bf93ca7331b64d187136e0698c890c47 | refs/heads/master | 2023-07-07T19:34:55.189063 | 2023-07-03T14:16:44 | 2023-07-03T14:16:44 | 34,518,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import sys
def write_difference(filename1,filename2,savefile):
max_diff = 1e-6
input_file1 = open(filename1,'r')
input_file2 = open(filename2,'r')
input_lines1 = input_file1.readlines()
input_lines2 = input_file2.readlines()
if ( len(input_lines1)!=len(input_lines2) ):
print(filename1+" and " + fi... | [
"marco.bomben@gmail.com"
] | marco.bomben@gmail.com |
a7db7362a214a4b2bb6a48244fe158a6cc6c83b8 | 6d90aa11885178e064b88363c5b6a988c50fa4ad | /aquitania/indicator/workers/bollinger_bands.py | d9df5d5121e0e22415f391494711cbbf4a0cc214 | [
"MIT"
] | permissive | retorno/aquitania | 2532c2591edae4ccf2286c771fcff011b5c5eef2 | cd64cf00827b692621893c0e00c508cd5e7ef55b | refs/heads/master | 2020-03-17T08:19:27.734553 | 2018-05-11T00:25:05 | 2018-05-11T00:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | ########################################################################################################################
# |||||||||||||||||||||||||||||||||||||||||||||||||| AQUITANIA ||||||||||||||||||||||||||||||||||||||||||||||||||||||| #
# ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||... | [
"hroark.aquitania@gmail.com"
] | hroark.aquitania@gmail.com |
0709be54d34a416359984ddcb6ecacaa865c34e1 | d1a0c84a1e19ccc026544c7afd2871118fef8b14 | /IMDB_task3.py | 9ee20f623f61546df406f537b745cf9223b1fe64 | [
"MIT",
"Apache-2.0"
] | permissive | prakash-simhandri/IMDB_scraper | fec92efb3368d6d67d3dec5ff939bf120fc379fd | 43678d307e5aa8b2cda92f993bfcf95e0cae38f8 | refs/heads/master | 2020-08-07T18:17:01.534468 | 2020-03-02T17:49:21 | 2020-03-02T17:49:21 | 213,548,289 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from IMDB_task1 import movie_list
from pprint import pprint
# Task_3
def group_by_decade(movies):
movie_by_decade={}
for years in movies:
division=years['year']
decade=division // 10
divisi=decade*10
movie_by_decade[divisi]=[]
for de_year in movie_by_decade:
for movie in movies:
_division=movie['year'... | [
"noreply@github.com"
] | prakash-simhandri.noreply@github.com |
4aae7c04ed2f7d9d96f012507133797f93b1a217 | 1179e66f1790ae0fe350870ca4382a4fcee18779 | /poem/admin.py | e5bf641032564543522c860d3380579e122a84e6 | [] | no_license | shoark7/harusijak-api-server | dc47edf8de794d4c9da2750516e7183169323e64 | 73b01e9e1f6999a17893550ccaf801c3d2cccc5e | refs/heads/master | 2022-11-26T11:37:50.305787 | 2019-05-23T05:51:57 | 2019-05-23T05:51:57 | 182,030,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.contrib import admin
from .models import Poem
admin.site.register(Poem)
| [
"shoark7@gmail.com"
] | shoark7@gmail.com |
f12dde725368f102ef5b15f678c55c17078d4208 | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/codility/3_permMissingElem.py | 063ff53aa8c43c233ca38ae1c10147b9ceb9eec0 | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A):
l = len(A)
if l <= 0:
return 0
if l == 1 and A[0] != 1:
return 1
s = (l+1) * (l+1+1) // 2
return s - sum(A)
assert solution([1, 3]) == 2
assert solution([2, 3, 1, 5]) == 4
... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
ce16af10c02fdc0410c9978e3410faa8d6a10ff0 | 15163d5c4b049bdbbf67c3381b02a48cd86c230a | /MLP_scratch.py | 39b5b1bb41d4a578c4bf34bbd1338d5fa569a555 | [] | no_license | EmilianoGCH/Start_deepLearning_audio | 679cc9e95a3c77effeb3704bdb7caf7841fa4e2f | 360b7192a12fdcfbe7f1ce30f42867b3c01134f8 | refs/heads/master | 2022-11-12T17:10:55.397171 | 2020-07-07T15:49:35 | 2020-07-07T15:49:35 | 277,011,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | import numpy as np
# We start a MLP as an object
class MLP:
"""
This is our firs Multi Layer Perceptron (MLP) from scratch in Python
"""
def __init__(self, inputs=3, num_hidden=[5,3], num_outputs=2):
self.inputs = inputs
self.num_hidden = num_hidden
self.num_outputs = num_out... | [
"emiliano.galvan.qro@gmail.com"
] | emiliano.galvan.qro@gmail.com |
a68f1fa7de83ea8b13c30a2c9974a2caf9554b79 | e6785f792cdee4c49432d180b475a3918f73cc96 | /timbrados/views.py | 2da343cc1b3bf7b8281ba03520804d40ad0e6921 | [] | no_license | ecacavelos/kupii | 9092e3cfda837c554c9581e868b158bc843eb63e | 554aef405534f3516f34f90ffb3d2511b283de94 | refs/heads/master | 2021-06-20T02:32:41.492318 | 2017-08-14T21:34:51 | 2017-08-14T21:34:51 | 100,303,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # -*- encoding: utf-8 -*-
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseServerError
from django.template import RequestContext, loader
from principal.models import Propietario, Fraccion, Lote, Manzana, PagoDeCuotas, Venta, Reserva, CambioDeLotes, RecuperacionDeLotes, TransferenciaDeLotes,Fa... | [
"Andres@INF01.cbi.com.py"
] | Andres@INF01.cbi.com.py |
3a306c915216f9c79bf6b814598edfb437874634 | 459bda1e2b2d709487fa2ec10ccd346e7ada8352 | /Day 9/solution.py | 0eda2bacf1f4059c7057dab1242c29d1de2426d6 | [] | no_license | Amethyst69/Advent_of_Code_2020 | 3370016fc673b282721fe9b71c5fbbc3eaff6b57 | 74b0e363fc23ea2bc3d72258c13d3ecfa05a57ea | refs/heads/main | 2023-01-29T12:44:55.008127 | 2020-12-12T22:47:41 | 2020-12-12T22:47:41 | 317,546,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from itertools import combinations
from collections import deque
def part_one():
stack = deque(inp[:25], maxlen=25)
for num in inp[25:]:
valid = any([pair for pair in combinations(stack, 2) if sum(pair) == num])
if valid:
stack.append(num)
else:
... | [
"noreply@github.com"
] | Amethyst69.noreply@github.com |
979d3775a02a578da025a9369611d7d27b6f7387 | d99cc0bc1735d88b8ef29dc6e2f9131f72d9527a | /Data Structures and Algorithms/Algorithm/LRUCache.py | b4cb8281ffe0c7cb08908636c7c23e1d1d7559fd | [] | no_license | InnovativeCoder/Innovative-Hacktober | 5ecea51721a0934002fe0afc9cd5149bc3f40d6b | 714f251289bfd8b5fcd055bf4bd4894500e60ddb | refs/heads/master | 2022-11-10T17:01:22.194250 | 2022-10-27T19:49:02 | 2022-10-27T19:49:02 | 211,103,525 | 46 | 259 | null | 2022-10-27T19:49:03 | 2019-09-26T14:03:35 | Jupyter Notebook | UTF-8 | Python | false | false | 3,024 | py | # This is a Python implementation of one of the most popular caching algorithm,
# the Least Recently Used (LRU)
# The main concept here is if there is a new cache entry to be stored and the capacity
# is full, the cache container will evict the existing entry that hasn't been used the longest.
# By definition, LRU sta... | [
"fahmadnaufal@gmail.com"
] | fahmadnaufal@gmail.com |
7f98788411f608540065d26c2967cbaf96845d36 | f3112b665558b6095bbbbce557dc74149a20de73 | /tests/test_bucket_helper.py | 59506b848150d055c9831a74fe1fb63d28666b66 | [
"MIT"
] | permissive | thiagolcmelo/dspreview | 45a0f4d9911dcaaeb336a9dd423ac2f199b25e5a | b20e7e3788f7d7cb7c44b17fc1c8e8a87c45f41e | refs/heads/master | 2022-12-12T00:06:50.875943 | 2018-08-26T17:34:12 | 2018-08-26T17:34:12 | 145,607,870 | 0 | 0 | MIT | 2020-05-20T16:38:44 | 2018-08-21T19:06:45 | Python | UTF-8 | Python | false | false | 1,791 | py | # -*- coding: utf-8 -*-
# python standard
import os
import unittest
import unittest.mock as mock
import logging
from unittest.mock import patch, mock_open
# local imports
from utils.bucket_helper import BucketHelper
from utils.config_helper import ConfigHelper
logging.disable(logging.CRITICAL)
class TestBucketHelp... | [
"thiago.lc.melo@gmail.com"
] | thiago.lc.melo@gmail.com |
56bdb7b92bbb679b7ca6b34fb4cd14a13c593ef4 | 18810b28505bf2625b40ebd9a673548203616261 | /Job Scraper/glassdoor.py | 77e2275d7a3d286026c02ba1e9b04c94d3e2a685 | [] | no_license | hzbrz/Scrapers | b7af43172218da32f0fcf605249803f082a8ec56 | 419341badcf6b0bc1fd01c403837c65ccb0492b5 | refs/heads/master | 2021-07-13T09:26:00.313902 | 2020-06-04T06:29:20 | 2020-06-04T06:29:20 | 136,759,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,679 | py | import time
import pymongo
import uuid
from bson import ObjectId
from apply import easy_app
from selenium.common.exceptions import WebDriverException
from selenium.common.exceptions import NoSuchElementException
# init db
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["jobDB"]
job_coll = ... | [
"hasanthedev@gmail.com"
] | hasanthedev@gmail.com |
9883451ea4cab334723c16773d6be71f9b74a393 | da19d3b98d9d22c80214472106766c16f85e6253 | /days/migrations/0004_auto_20201102_2208.py | 3d16054e2e37c26c92de1df2d507730f48725576 | [] | no_license | mruga7/Abhiyaan-website | 2e95c542e38a7d2bc6e447a3a79897782a3ff338 | 2023aca625f8ee82b2a6478a089d8a4652f72ae7 | refs/heads/master | 2023-04-14T19:50:55.350484 | 2021-05-02T17:23:43 | 2021-05-02T17:23:43 | 317,322,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # Generated by Django 3.1.2 on 2020-11-02 16:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('days', '0003_auto_20201101_1212'),
]
operations = [
migrations.AlterField(
model_name='day',
name='description',
... | [
"mrugakshi9@gmail.com"
] | mrugakshi9@gmail.com |
b2a83927441c36c2e5c68801bc905a03940a2487 | 96f99c3ed2a1639d4351cb9d66df178a6f515d36 | /utils.py | 5772956d65c4b29a8ed9d9c058ad6022d2aa9446 | [] | no_license | EricPicot/pytmn_rl | c4b0170a58614c209dae3a61f216df4bf717d28b | 39eeef04a2b4986a75cf6c9597fd4bce1806b50b | refs/heads/master | 2022-04-25T16:29:03.953406 | 2020-05-01T18:09:59 | 2020-05-01T18:09:59 | 260,526,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import keyboard as kb
import cv2
import numpy as np
from PIL import ImageGrab
import tf2_processing
import tensorflow as tf
up = [1, 0, 0, 0, 0, 0, 0, 0, 0]
down = [0, 1, 0, 0, 0, 0, 0, 0, 0]
right = [0, 0, 1, 0, 0, 0, 0, 0, 0]
left = [0, 0, 0, 1, 0, 0, 0, 0, 0]
up_right = [0, 0, 0, 0, 1, 0, 0, 0, 0]
up_left = [0, 0, ... | [
"eric.picot@hotmail.fr"
] | eric.picot@hotmail.fr |
f95bb584108c6caacc35789f70cb634acd8bfcee | b4d7fbbd5ba7d73e2a0ed183e76c55a1e8f68996 | /django/db/migrations/optimizer.py | 9c9613bb370a0f1b0c58bfb3a37e6e9093de4e20 | [
"BSD-3-Clause"
] | permissive | ikebrown/django | a6ae06946c18c39800dfb20d182da2f8fad4df99 | 8be832b262432081be297d0274ef1ab964a9bcea | refs/heads/master | 2021-01-18T05:52:46.780219 | 2013-10-21T18:40:45 | 2013-10-21T18:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | from django.db import migrations
class MigrationOptimizer(object):
"""
Powers the optimization process, where you provide a list of Operations
and you are returned a list of equal or shorter length - operations
are merged into one if possible.
For example, a CreateModel and an AddField can be opti... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
b4d2be9256176d177bbb4478fab97f3438f6b797 | 094cdbec869562e4aee2d710f886bab2689ad19f | /vet/views.py | 587b1e5c1c7874721f7fe9619a9391add8eee24a | [] | no_license | CarlosDeveloperr/Django-Rest | 698c905e50381489988828310a422121e8a25b8c | 4dcac944e4dab425df2af9dcb72453ede8d088d7 | refs/heads/master | 2023-06-29T20:16:30.142102 | 2021-08-03T20:39:02 | 2021-08-03T20:39:02 | 392,448,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,322 | py |
from django.shortcuts import render
# Create your views here.
from rest_framework import status , generics
from rest_framework.views import APIView
from rest_framework.response import Response
from django.shortcuts import get_object_or_404
# Serializers
from .serializers import (
# PetOwnerSerializer,
PetOwn... | [
"carlos@GamingCarlos.localdomain"
] | carlos@GamingCarlos.localdomain |
a5ab2387d232502b5f25bf52723d0bac4f92f55a | fb37a818ea73201cafc5b2909e3868c56d67bd11 | /basic/detecting-loop-in-linked-list.py | a1cd293534b176897202162135a57234793694f9 | [] | no_license | arunprab/master-python | 0920a238138558e6843b7b413d32b8ad2a7ade14 | 1a3701adac6a3341c990def2aaa2d0bf68b9e3f7 | refs/heads/master | 2021-05-11T06:18:28.608277 | 2020-03-19T07:24:32 | 2020-03-19T07:24:32 | 117,985,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | # Python program to detect loop
# in the linked list
# Node class
class Node:
# Constructor to initialize
# the node object
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
# Function to initialize head
def __init__(self):
... | [
"noreply@github.com"
] | arunprab.noreply@github.com |
919567ff88adb1a6e3f2a56cc4b28afd54153228 | 419572051aedc42fec6d1a8ec7b90b3cd0ba6637 | /pandaharvester/harvestercredmanager/no_voms_cred_manager.py | 6af30bb92a1925dc5294970415213a96cac0d2d8 | [
"Apache-2.0"
] | permissive | wyang007/panda-harvester | e5c43688be5ebee24860b1a7c7b2c241ae2bc4ac | c24d75eabc57b14779e72b00a65162db341c99f9 | refs/heads/master | 2021-04-27T03:11:25.832083 | 2018-02-26T08:11:30 | 2018-02-26T08:11:30 | 122,710,771 | 0 | 0 | null | 2018-02-24T06:28:38 | 2018-02-24T06:28:38 | null | UTF-8 | Python | false | false | 2,244 | py | import subprocess
from pandaharvester.harvestercore.plugin_base import PluginBase
from pandaharvester.harvestercore import core_utils
# logger
_logger = core_utils.setup_logger('no_voms_cred_manager')
# credential manager with no-voms proxy
class NoVomsCredManager(PluginBase):
# constructor
def __init__(sel... | [
"tmaeno@bnl.gov"
] | tmaeno@bnl.gov |
5768b4aa944cf0a267a5d51df9863b7719905cde | c57376701537dc6969939c3afb51d542d670db61 | /String/string_4.py | e6561f80c80b07d1636fe290b6c22921b0d65b70 | [] | no_license | dangnam739/Learn_Python_Begin | d3f5f24504b3c703de4e981abb432f3734558e5d | 81764172475f26374a3e21d150395a99e8a183e6 | refs/heads/master | 2021-07-15T19:13:58.156215 | 2020-08-21T06:38:04 | 2020-08-21T06:38:04 | 200,081,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | ###Cac phuong thuc chuoi #String Method#
a = '12'
print(int(a))
print(type(a))
#capitalize: ra ve chuoi co ky tu dau duoc viet hoa, # cac chu cai con lai viet thuong
a = 'how kteam - free education'
b = a.capitalize()
print(b)
#upper : Viet hoa tat ca cac ky tu
b = a.upper()
print(b)
#lower : vie... | [
"47108512+ChrisZangNam@users.noreply.github.com"
] | 47108512+ChrisZangNam@users.noreply.github.com |
e865b9e385fbe8345be3a767e4d6b6b3ce9a1962 | 66848983e4b3f6f6beeafb26fa177c714b94dbce | /src/__init__.py | 15ed3e15fc7452113ad349607f127bdd8e58abfb | [] | no_license | sovannara-hak/RemixStation_mhd2013 | a092f8a1e2276d0c79c7e7a860d1b87ab0381f6b | 98d0cd04294ec5c4aecf925aa50e4bec4f5c3186 | refs/heads/master | 2020-04-06T03:34:30.806965 | 2013-04-21T11:16:19 | 2013-04-21T11:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from midi_read import *
from parse_music import *
| [
"hak.sovannara@gmail.com"
] | hak.sovannara@gmail.com |
715a45fa996a279e4e776dde10e667b6b8f17c42 | 63a89d1817e7e39e3d4d0ae6acb121b36f7f0240 | /pedido.py | 6d2bb6e1a8736b4e0a7ba6365ec1e7992b26e99f | [] | no_license | marceleta/nvendas | 72eca121bc68dad182100d2c48aa3ae08871c056 | 00bcc8ef354e5309248ee29bbebb77335d7ffff8 | refs/heads/master | 2021-07-12T06:00:38.120477 | 2020-09-24T11:41:34 | 2020-09-24T11:41:34 | 199,852,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,341 | py | from kivy.app import App
from kivy.uix.screenmanager import Screen
from kivy.properties import BooleanProperty, ObjectProperty, StringProperty
from kivy.uix.behaviors import FocusBehavior
from kivy.uix.recycleview.layout import LayoutSelectionBehavior
from kivy.uix.recyclegridlayout import RecycleGridLayout
from kivy.u... | [
"marcelo.rocha@nextsolucoes.net.br"
] | marcelo.rocha@nextsolucoes.net.br |
ac8b0c1856a22c93b5d665b62610ebd8af083ae9 | 4962f934b0e94505a95ae50903cab5a9327171fc | /jsonhash/__init__.py | 82a550b4de60873d457716166d251054eedbc86c | [
"Apache-2.0"
] | permissive | FlorianLudwig/jsonhash | f0d86267c94f6ee1de74b22c680baabf28c78dac | aae53363c3eba867189ea5ac774bcef251e54dc2 | refs/heads/master | 2021-01-10T17:21:32.048467 | 2016-04-07T19:25:00 | 2016-04-07T19:25:00 | 50,778,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import json
import hashlib
def hash(object, algorithm=None):
"""return hash object for object
object might be None, int, float, dict or array
"""
if algorithm is None:
algorithm = hashlib.sha256
data_string = json.dumps(object,
skipkeys=False,
... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
9bf922f86e3ee9f1fb2c44c2b7c531d75179d91a | 95f93190a7f13f1b98d14f933ce6ba9ac2407336 | /Ejercicio 12 Tarea 1.py | d0b0308cf6ac348cf7c05c47fb945997aa53ee85 | [] | no_license | DanjHerq/Tarea-1-S1 | 483f56d1ed74147697bad7ba7c0145a3742ec060 | da83bfed918979bf3ab4b75735e7c5b0a5eafe2a | refs/heads/master | 2023-05-31T11:15:47.129753 | 2021-06-28T20:38:18 | 2021-06-28T20:38:18 | 381,156,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | class Ejercicio_12:
def __init__(self):
pass
def Bucle_condicional (self):
Suma=0
Producto=1
Respuesta=input("¿Desea comenzar con el procedimiento (S/N)? ")
while Respuesta!="S" and Respuesta!="N":
num=int(input("Por favor, ingrese un número: "))
... | [
"76227435+DanjHerq@users.noreply.github.com"
] | 76227435+DanjHerq@users.noreply.github.com |
c510a7d18152ae7d067c151c030d1a80cca96576 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03778/s222149305.py | ada8009e48476f017c9593ae7a5970d246338c8b | [] | 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 | 219 | py | #!/usr/bin/env python3
w,a,b=map(int,input().split())
if b>a:
if b-w-a>0:
print(b-w-a)
else:
print(0)
if a>b:
if a-w-b>0:
print(a-w-b)
else:
print(0)
if a==b:
print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3ce5571b618328f51bd78d5786b8820045c53ba1 | 9620337c5ce9294ebc0e29aafa16aa2545fd3afa | /Square.py | 3b369a9eded8898aebc55ffcf26ea3dad96ec64c | [] | no_license | balajimanikandanm/balajib | f482840ac3491b26b9315fc9f1e16e6616317638 | d065305ca7c104f7a140b4a6f09b4f747f9ac90d | refs/heads/master | 2021-06-08T16:51:52.639877 | 2019-07-16T03:59:21 | 2019-07-16T03:59:21 | 95,753,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | n=int(input())
if(10<=n<100):
a=int(n/10)
b=int(n%10)
c=int((a*a)+(b*b))
print(c)
elif(100<=n<1000):
a=int(n%100)
b=int(a%10)
c=int(a/10)
d=int(n/100)
e=int((d*d)+(b*b)+(c*c))
print(e)
| [
"noreply@github.com"
] | balajimanikandanm.noreply@github.com |
532acef3f8ca372397c0ca7a12e9b054c82698ad | 333d5a30de4ae2295a8118ff883f83d4a55e0458 | /scripts/review_language.py | a184efc42e41df61260f99092815a1d80b90de64 | [] | no_license | hemagso/nlp_project | 2715a57b69b063295b714c4037ad2eda27aaff3c | 8ccca198d7bdf6d600b55c81d014d0d68a25cfc9 | refs/heads/master | 2022-12-15T06:26:08.425320 | 2020-04-29T14:37:13 | 2020-04-29T14:37:13 | 252,244,634 | 0 | 0 | null | 2022-11-22T05:52:48 | 2020-04-01T17:38:04 | Python | UTF-8 | Python | false | false | 564 | py | import langdetect
from langdetect.lang_detect_exception import LangDetectException
import pandas as pd
import csv
def classify_language(text):
try:
return langdetect.detect(text)
except LangDetectException as e:
return "??"
df_reviews = pd.read_csv("../data/reviews/reviews.csv", encoding="ut... | [
"hemagso@gmail.com"
] | hemagso@gmail.com |
581791e509e7baefbc1c7ea51d8c301444dfacc0 | d9fe08742be57dec4ef87bec4255231a2f852a99 | /Python/ann.py | c2e305401ef9292e86de329a61d80f12036773b6 | [
"CC0-1.0"
] | permissive | ethan786/hacktoberfest2021-1 | 69f0f15db3eb6740dc61629e13aa0feb91a6ad87 | 7525b01fa1a6466a657663c50da4c41400a4a137 | refs/heads/dev | 2023-08-22T17:57:00.953088 | 2021-10-03T19:31:05 | 2021-10-03T19:31:05 | 413,177,368 | 2 | 0 | CC0-1.0 | 2021-10-03T19:31:15 | 2021-10-03T19:31:14 | null | UTF-8 | Python | false | false | 1,576 | py | # Use scikit-learn to grid search the batch size and epochs
import numpy
from sklearn.model_selection import GridSearchCV
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
# Function to create model, required for KerasClassifier
def create_... | [
"noreply@github.com"
] | ethan786.noreply@github.com |
f46df409e2e380778f2d571091a456835f9247ef | a1209bb3e580add216bd9ee577fdb0716d244d52 | /Djum/Djum/urls.py | ae268d966c0301f670e23cf3902eff97d29c20b8 | [] | no_license | gitSergeyhab/Stepik2 | 28d43ea86bef5b66987e27e9c82bdf701cc2a0b1 | ea81f7c5fb254f11bcfb58f1df78bf44d32a5e24 | refs/heads/master | 2022-12-09T02:28:24.524525 | 2020-09-22T20:37:32 | 2020-09-22T20:37:32 | 296,370,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | """Djum URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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 vi... | [
"Redmoloch@yandex.ru"
] | Redmoloch@yandex.ru |
fb4804be74623ccb94bd30dc79181f58bf1e4e0e | c88d3f594af7d273766e2685d13ddfb72fc22ae2 | /tor_ocr/test/test_utils.py | 685c81dbff78ebf7c36a4ea0a0bd91c83e2a6802 | [
"MIT"
] | permissive | GrafeasGroup/tor_ocr | 294b9e35a55f46963491b76f214067259b44b6bf | 7892c5098c834d87f8878cc8b2e8b5375a67f2e5 | refs/heads/main | 2023-07-24T01:14:26.028830 | 2023-07-17T15:02:23 | 2023-07-17T15:02:23 | 100,879,443 | 10 | 5 | MIT | 2023-07-17T15:02:25 | 2017-08-20T18:01:08 | Python | UTF-8 | Python | false | false | 292 | py | import pytest
from tor_ocr.main import get_id_from_url
@pytest.mark.parametrize(
"url,value", [
("https://a.z/abc/123", 123),
("https://a.z/abc/1", 1)
]
)
def test_get_id_from_url(url: str, value: int) -> None:
assert get_id_from_url(url) == value
| [
"opensource@joekaufeld.com"
] | opensource@joekaufeld.com |
6fd14e8695df23aed991fe2b192e8ab3b27122e4 | 72d3a96940cf60ca1e1668b194d7890417c9ea54 | /zahlenraten.py | cebfc86a691c4c529c74b7131b452ff5ef38561d | [] | no_license | dudemccute/SPL2 | 303f702505ec16144d03b1b5ca386c72e1cda3c2 | 83564b462846b8fe7e36fcb177212491409fcecf | refs/heads/master | 2020-03-11T13:01:09.301887 | 2018-04-18T10:29:46 | 2018-04-18T10:29:46 | 130,013,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #zahlenraten
import random
zufallszahl = True
versuche = 0
zufallszahl = random.randint(1,100)
#Benutze soll Zahl von Benutzer erraten
#Ausgabe: wie viele Verusche waren notwendig
while(zufallszahl):
eingabe = input("Geben sie eine Zahl zwischen 1-100 ein: ")
if(eingabe == zufallszahl):
zufallszahl... | [
"171witb15@o365.htl-leoben.at"
] | 171witb15@o365.htl-leoben.at |
695099021b7d2e7ce3f854fac7e98fff79096295 | a8f6419644c64a90540317104a8c38830bcc0c6c | /magenta/pipelines/drum_pipelines.py | 299625510a2c592d0d5836b8d68d875919ab94b1 | [
"Apache-2.0"
] | permissive | aploessl/magenta | 4fc546fe99db4bed916124deb3e70b91182d2893 | ca41087fa3a7ba26177eec1414afc05ae0440eec | refs/heads/master | 2023-03-17T14:43:05.793524 | 2016-11-10T21:36:41 | 2016-11-10T21:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | # Copyright 2016 Google Inc. 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 ag... | [
"noreply@github.com"
] | aploessl.noreply@github.com |
475a73c637634966c6725fc9974225771dcbdc29 | 6e809100c3772cd490fe5c5d13c9ad0838b3d715 | /api/modules/city/model.py | 1ad279245d3e5e76fbe8414b28c3b0591ff9e283 | [
"MIT"
] | permissive | project-travel-mate/server | 043c04c2093e91d282159132a43ae6ef979d0a08 | bc9c3a62a1e7079b6a11082cadede5caa5dadb79 | refs/heads/master | 2023-08-11T01:51:43.814321 | 2023-05-22T21:50:36 | 2023-05-24T06:46:38 | 122,350,373 | 50 | 83 | MIT | 2023-09-12T18:54:47 | 2018-02-21T14:58:57 | Python | UTF-8 | Python | false | false | 1,280 | py | from django.conf import settings
from django.core.validators import URLValidator
from django.db import models
class City(models.Model):
city_name = models.CharField(max_length=30)
description = models.TextField(null=True, blank=True)
latitude = models.DecimalField(max_digits=9, decimal_places=6)
longi... | [
"prabhakar.gupta@nsitonline.in"
] | prabhakar.gupta@nsitonline.in |
2db84dac3c4ae6eec1cfecd6985d321586a114e7 | 823788d63861bbc0fbfdddb9e6b9a82f806af50a | /iredis/redis_grammar.py | b4b9cfc41cf666508546061969c7c5d8be8c9f66 | [
"BSD-3-Clause"
] | permissive | amzyang/iredis | 67c7dbffe2d41cbac1571e4c88158ce2a66da267 | cd9081bb8403a7191afe6d1f90e229e34f3363d1 | refs/heads/master | 2020-12-04T10:58:30.857186 | 2020-01-04T09:24:54 | 2020-01-04T09:24:54 | 231,737,979 | 0 | 0 | BSD-3-Clause | 2020-01-04T09:22:45 | 2020-01-04T09:22:44 | null | UTF-8 | Python | false | false | 21,336 | py | """
command_nodex: x means node?
"""
import logging
from .commands_csv_loader import group2command_res as t
logger = logging.getLogger(__name__)
CONST = {
"failoverchoice": "TAKEOVER FORCE",
"withscores": "WITHSCORES",
"limit": "LIMIT",
"expiration": "EX PX",
"condition": "NX XX",
"operation":... | [
"laixintao1995@163.com"
] | laixintao1995@163.com |
d43212d55bd85661e9992522b17440dfca6ced6b | e382e2a5774ff3617e1da995abb087e5b10c86fb | /complex_utils.py | 629b669f7dc37e3580501ef90108fe27e8bb9bee | [] | no_license | agnusmaximus/sparse_factorization | 70c6c572c15877cfb7264614a080406e8547c19b | 9138661b5587bbffb085d84bedc52b5e0ebeed55 | refs/heads/master | 2020-03-27T18:33:11.116401 | 2018-10-13T18:17:16 | 2018-10-13T18:17:16 | 146,929,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | ''' Utility functions for handling complex tensors: conjugate and complex_mult.
Pytorch (as of 0.4.0) does not support complex tensors, so we store them as
float tensors where the last dimension is 2 (real and imaginary parts).
'''
import numpy as np
import torch
def conjugate(X):
assert X.shape[-1] == 2, 'Last ... | [
"tridpq@gmail.com"
] | tridpq@gmail.com |
2c0f98efc225179ab7e5c9568a57a526cd467977 | f62fe42c6c90553c48fb2867d407090ac192cf09 | /python_sandbox_starter/loops.py | 317e71a46b7ee1b8390cb4f7ab66de1866cc37e6 | [] | no_license | Laetronaz/python-crash-course | ad8a9dab2b3075bfad35609294dd87d9de759c6e | 496c29e280fae959cf82016b282992844ae63806 | refs/heads/master | 2020-05-09T17:42:47.145079 | 2019-04-14T18:02:09 | 2019-04-14T18:02:09 | 181,320,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
peoples = ['John', 'Paul', 'Sarah', 'Lily']
# simple for loop
# for person in peoples:
# print(f'Current Person:{person}')
# Break
for person in peoples:
if person == 'Sarah':
break
... | [
"michel.pelland12@gmail.com"
] | michel.pelland12@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.