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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
441621bfb233fecc2a9edaefe943e7ff39ecabd8 | 6ff58789c5ee87a4df2601f02e17df2c2cd4c1fb | /sudoku/sudoku.py | 9bb2c42c516457a729a257c1d9b859c2b33a8fda | [] | no_license | Checkmate50/6110-Assignments | 798d811d11bf7992e0c69ccdbcbe4fcb4c267163 | 7535cda5593a0fad861459af398b802d50df6d20 | refs/heads/master | 2021-01-16T19:32:33.434332 | 2015-05-05T11:07:08 | 2015-05-05T11:07:08 | 30,889,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | """
Sudoku Problem Solver
Created by Dietrich Geisler
Python version 2.7
3/4/2015
"""
from z3 import *
import sys
import string
import math
def fileParser(fileName):
"""
Takes a fileName which links to a text file containing sudoku data
Note that there are no restrictions on file extension
Returns a 2-dimensional... | [
"dgeisler50@gmail.com"
] | dgeisler50@gmail.com |
8afa0cd7031f562df73ad11688bdbae10d0f9bd4 | ad1233abfed0374329410eac8509631eed63dec6 | /PythagoreanTriangle.py | 9b53af267d36443e9546a1848a89a56f36ade45a | [] | no_license | yaayitsamber/Udacity-Python-Projects | 2d87b43d3843cdf02d4247cc25ba8f5908190a6a | eb6fc738c74b5b024b38c02374071fca87b49e73 | refs/heads/master | 2021-01-10T01:11:41.495792 | 2016-02-18T20:30:01 | 2016-02-18T20:30:01 | 50,958,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | side_1 = raw_input("Enter triangle side 1")
side_2 = raw_input("Enter triangle side 2")
side_3 = raw_input("Enter triangle side 3")
hypotenuse = max(side_1,side_2,side_3)
a = min(side_1, side_2, side_3)
b = (int(hypotenuse) - int(a))
print int(hypotenuse)**2
print int(a)**2
print int(b)**2
if int(hypotenuse)/2 == 0 :
... | [
"amberhilton06@gmail.com"
] | amberhilton06@gmail.com |
1f548af771d66714e4a97bb5c2e7fad0b12b860a | 69af3274563b3c488fec84903dd37bfb6546aefa | /AmbidexBot/Status.py | 1daade4977dd5a63348a805e9aa45b464b5d431e | [] | no_license | joaomlsantos/AmbidexBot | 5bd23a95be21bac41fc4c53a79240ce70515812a | 1f428e39b9ede17d01b1ff6d4585575b716b64ad | refs/heads/master | 2022-05-01T18:25:46.436282 | 2018-10-08T16:34:46 | 2018-10-08T16:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from enum import Enum
class Status(Enum):
DEAD = 0
ALIVE = 1
| [
"joao.l.santos@tecnico.ulisboa.pt"
] | joao.l.santos@tecnico.ulisboa.pt |
fe8974fa7e751cfea487290d10694d7ad661d211 | 491f29501fa7d484a5860f64aef3fa89fb18ca3d | /examples/mechanics/GeometricPrimitives/disk_on_box.py | 275e8e9cb3d623f8b232906ba95792f7316f040e | [
"Apache-2.0"
] | permissive | siconos/siconos-tutorials | e7e6ffbaaea49add49eddd317c46760393e3ef9a | 0472c74e27090c76361d0b59283625ea88f80f4b | refs/heads/master | 2023-06-10T16:43:13.060120 | 2023-06-01T07:21:25 | 2023-06-01T07:21:25 | 152,255,663 | 7 | 2 | Apache-2.0 | 2021-04-08T12:00:39 | 2018-10-09T13:26:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,596 | py | #!/usr/bin/env python
#
# Example of one object under gravity with one contactor and a ground
# using the Siconos proposed mechanics API
#
from siconos.mechanics.collision.tools import Contactor
from siconos.io.mechanics_run import MechanicsHdf5Runner, MechanicsHdf5Runner_run_options
from siconos.mechanics.collision.... | [
"vincent.acary@inria.fr"
] | vincent.acary@inria.fr |
128763e94d58774059e8218f401b3f0fd84cad73 | bc9ebb347af6804c1bce6e960148ece1fbb34a47 | /1_python/bronze/10870.py | d22572f825e791fd8b0ffbb53df9d5bdaad4045a | [] | no_license | mooncs/BOJ | 48416fec1a059197a72de61c8d6e72f7fc8b542b | 45d2d5a8a6bf0f10d026f3846b70009914aa90d3 | refs/heads/main | 2023-08-13T15:30:47.395359 | 2021-10-11T13:37:04 | 2021-10-11T13:37:04 | 392,885,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # 피보나치 수 5
def fibo(x):
if x <= 1:
return x
return fibo(x-2) + fibo(x-1)
n = int(input())
print(fibo(n))
# # for문
# def fibo(x):
# a, b = 0, 1
# for _ in range(x):
# a, b = b, a+b
# return(a)
# n = int(input())
# print(fibo(n))
| [
"mooncs528@gmail.com"
] | mooncs528@gmail.com |
40aa8ad79278c7537cdc7550405b8ad12b72d6e7 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4081/codes/1643_1055.py | 5bb3ece083af6c50c3772003c55246d4aea20a12 | [] | 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 | 384 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
from math import*
v=float(input("velocidade inicial:"))
a=radians(float(input("angulos de tiro:")))
d=float(input("valor da distancia: "))
r=((v**2)*sin(2*a))/9.8
p... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a2f97a1b75ca67fd8ec9d7911b476c4bba4758f8 | c9829d3a9b787107a30ff43f929c48ccfeb38e5d | /P13_ContentAggregator/P13_Sumit/ScapeWeb/college.py | da28b98abb831150c8da0182681b10235716fa1e | [] | no_license | githarshp/GDTC_Hack-In | 3fc954943780ce9ccf926d6e5f10c89743b8cc00 | 1682b718f841371a3254d24151fbe7f014251478 | refs/heads/master | 2020-06-16T15:02:48.501256 | 2019-07-07T06:47:54 | 2019-07-07T06:47:54 | 195,095,352 | 1 | 0 | null | 2019-07-03T16:59:19 | 2019-07-03T16:59:18 | null | UTF-8 | Python | false | false | 838 | py | import requests
from bs4 import BeautifulSoup as bs
import sqlite3 as sq
def scapecollege(db):
url = "https://engineering.careers360.com/colleges/ranking"
r = requests.get(url).content
content = bs(r, "html.parser")
con = db.connectcollege()
if con is not None:
for i in reve... | [
"noreply@github.com"
] | githarshp.noreply@github.com |
fdaf1fd7ce7eed92c8c1be4aced7eb9dd72466c1 | 0fb521f16a5933b07d4cd559d694607e4949b5c0 | /articles_app/migrations/0019_auto_20201105_0051.py | 4b5eda3643d0d53c239418cac4effc6a2b001d11 | [] | no_license | StanMey/Robotreporter | 9566c4391d503c88d673fad76243229451757184 | 5e62f96e541118ae924303b730f18d248022cac0 | refs/heads/main | 2023-03-01T10:59:00.972938 | 2021-01-22T15:50:04 | 2021-01-22T15:50:04 | 301,501,404 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 3.0.3 on 2020-11-05 00:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles_app', '0018_articles_image_file'),
]
operations = [
migrations.AlterField(
model_name='articles',
name='ima... | [
"stan_1998@hotmail.com"
] | stan_1998@hotmail.com |
9562b7a6fd47559620ca4485e797a0115bcde11b | dbf11c1e3ee08b38d7406a3e353421bb1e969786 | /oppari_1.5/indicators.py | 3ecef8bd96b9f73885b7b7263867abb93cc70d80 | [] | no_license | Jounikononen/Projektit | 364771ca08fe5b6c4d4aa6dd7bbc0f18a74a6a67 | b4210162ff2f49368c100ad9abc14592fe0b123c | refs/heads/master | 2021-11-07T01:02:09.384089 | 2021-11-06T08:16:03 | 2021-11-06T08:16:03 | 181,548,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | #Indikaattorit (SMA)
#SMA50 ja SMA200 (Simple moving average)
def sma(lista):
#SMA200 kaava
sma200 = round(sum(lista) / len(lista),6)
#Listan 50 tuoreinta arvoa (SMA50 varten))
uusiLista = lista[0:-150]
#SMA50 kaava
sma50 = round(sum(uusiLista) / len(uusiLista),6)
#Palaute... | [
"noreply@github.com"
] | Jounikononen.noreply@github.com |
17d64d2adefc2f0e0933db8af78479fafc29000f | 9a30042300a9f027bdf87ae56af2b0bd36bd3243 | /articles/migrations/0003_article_author.py | bb072056a86f0cff6a5e50c9f5318c5e3b6a8608 | [] | no_license | tanvidhope/Blog | b64470137d07d885555144daa3db5a5045d704c4 | 675168552055836ac62fe544c6e58997c6327d0b | refs/heads/master | 2023-01-20T01:58:13.366400 | 2020-12-03T08:38:48 | 2020-12-03T08:38:48 | 318,098,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Generated by Django 2.2.1 on 2019-05-26 03:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('articles', '0002_article... | [
"tanvidhope@gmail.com"
] | tanvidhope@gmail.com |
fdb67800b59f72f0719f84fc5f29ecac8b6c4259 | bab5956b12f0a2836c81d01bb946d8a72f6d0e66 | /swea/d_3/0304_4751.py | 18375436c0d96a7f8eb5b494881530461066e971 | [] | no_license | haesungbang/Algorithm | 09513fbb483793a07cfe4db5b279685ce14b324b | b72d56abd7c61634f7905c81e115c35fc75c3604 | refs/heads/master | 2023-06-24T16:12:20.789595 | 2021-07-11T11:26:28 | 2021-07-11T11:26:28 | 330,677,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # 4751. 다솔이의 다이아몬드 장식
T = int(input())
for t in range(1, T+1):
deco = input()
arr =['','','','','']
i = 0
for j in range(0, 4 * len(deco), 4):
arr[0] += '..#.'
arr[1] += '.#.#'
arr[2] += '#.%s.'%deco[i]
i += 1
arr[3] += '.#.#'
arr[4] += '..#.'
arr[0]... | [
"haesunbang94@gmail.com"
] | haesunbang94@gmail.com |
c3376b68351381708517c87a7837279eff42a4b7 | 39338e8f068d15504a289609610c61ea60d2d2d5 | /vietnamese/local/get_dataset_info.py | f00dd881b595da5c8ac55612d7ccede0961bdc5c | [] | no_license | minhduc0711/kaldi-exps | a9fdbebf8ad3b6b793407556233123bbb20e591f | 7510591a4866fd1f796e0f79516a6fcb17d504bc | refs/heads/master | 2022-11-12T14:03:52.474011 | 2020-07-13T02:41:51 | 2020-07-13T02:41:51 | 268,758,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import argparse as ap
import wave
import contextlib
from pathlib import Path
def get_duration(fname):
with contextlib.closing(wave.open(fname, 'r')) as f:
frames = f.getnframes()
rate = f.getframerate()
duration = frames / float(rate)
return duration
parser = ap.ArgumentParser()
pars... | [
"phamminhduc0711@gmail.com"
] | phamminhduc0711@gmail.com |
6c2b98a894099f068a128d68de56fc0ff0dcdde7 | 2b11e7aa28b84af2e2a7fd8719af89f5fffd8a5b | /tests/test_models/test_user.py | 4b734786dc7c17a6ae7e51cd396963dfe334a4dd | [] | no_license | nikolasribeiro/AirBnB_clone | 6a3e3d65314a0131252461757943468628394ced | 4529c56a706f0d956a238522d912cf6260f2fa28 | refs/heads/main | 2023-03-10T22:10:10.665939 | 2021-02-27T19:33:11 | 2021-02-27T19:33:11 | 338,063,410 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | #!/usr/bin/python3
""" Module tests/test_models/test_user"""
import models
from models.base_model import BaseModel
import os
import unittest
class TestBase_Model(unittest.TestCase):
""" class TestBase_Model """
def test_docstring(self):
""" function test_docstring """
msj = "Módulo does not... | [
"nikolasribeiro2@outlook.com"
] | nikolasribeiro2@outlook.com |
44a4ae446de801e016da6b7bceabff7792398c22 | 136f086eef766450ccc0168bc3dd51cefeea6efc | /ansible/stats.py | 95fc78022ebeb1247147e0b3c5ca72460cc02fb5 | [] | no_license | status-im/infra-utils | da613493be8d314f129740105c4f546dbfc4dd5c | dc620816c11f7d12fa7c988915820bf346fa76ca | refs/heads/master | 2023-07-08T13:38:54.971966 | 2023-06-26T19:51:04 | 2023-06-26T19:51:04 | 141,190,565 | 7 | 7 | null | 2023-08-23T13:42:36 | 2018-07-16T20:25:04 | Python | UTF-8 | Python | false | false | 2,192 | py | #!/usr/bin/env python
import sys
import json
from requests import get
from optparse import OptionParser
HELP_DESCRIPTION = '''
Simple script to output counts of hosts in all fleets and all DCs.
'''.strip()
HELP_EXAMPLE = '''
Example: ./stats.py -u http://consul.example.org:8400
'''
def parse_opts():
parser = Opt... | [
"jakub@status.im"
] | jakub@status.im |
6b6b8cd7afdddc7025642855760432169b644d42 | d969dd50a978a303e3b0db5343295c855ec3928f | /models.py | 6cd236ebe56d2a360e9d7268da5e1e1c169c535e | [] | no_license | dennypradipta/travelbasic | 65d199858e6faa76395c4c914b7701b208db1536 | 3ff87e805508c35e665b7216ce561c3f601fb9e7 | refs/heads/master | 2020-03-30T09:48:06.525738 | 2018-10-01T13:27:03 | 2018-10-01T13:27:03 | 151,093,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import datetime
from mongoengine import *
connect('travelbasic')
class Passports(Document):
passport_num = StringField(required=True)
name = StringField(required=True)
issue = StringField(required=True)
issue_n = StringField(required=True)
nation = StringField(required=True)
nation_n = StringField(required=Tru... | [
"denny.aditya.p@gmail.com"
] | denny.aditya.p@gmail.com |
0019911ca697decb0b65cbb82321771d64b09e04 | ef824a1954a8fd316f29dbb112f550936dc38b5f | /tools/remove_separators.py | e5c3fc869c7eaa7770a6a80c007eaeedfcc4126f | [] | no_license | sullerandras/terraria-hd-textures | de12d7ae206f1b3fbe0883d400866440507f9081 | 7c1c7fdcd444903ece2f91025ff2bcfdd04ffd09 | refs/heads/master | 2023-02-04T16:20:57.833496 | 2023-01-29T09:02:55 | 2023-01-29T09:02:55 | 59,391,213 | 46 | 13 | null | 2022-11-18T05:44:45 | 2016-05-22T02:31:42 | Python | UTF-8 | Python | false | false | 25,523 | py | from __future__ import print_function
import array
import glob
import ntpath
import pickle
import png
import re
import sys
import traceback
from Array3D import Array3D
TRANSPARENT = (0, 0, 0, 0)
def error(*objs):
print("ERROR: ", *objs, file=sys.stderr)
SEPARATORS = [
array.array('B', [0x60, 0x33, 0x57... | [
"suller.andras@gmail.com"
] | suller.andras@gmail.com |
7e64b95c3324accc910bd4ea98b00ab062f400d5 | 9886c4b77da76b6c60ac77fee46fa664891f60a0 | /lib/utils.py | 2794d1c4e187d27e5845e0bdfe18ae48711297cb | [
"MIT"
] | permissive | elias-gerbeth/wp-json-scraper | d2a650d3c6f1bb35700e1359ad029583c6ed9407 | 70995cd804625d44dbec7936ee41d14dff04cad1 | refs/heads/master | 2023-05-10T17:20:56.855080 | 2020-06-01T10:37:46 | 2020-06-01T10:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | """
Copyright (c) 2018-2020 Mickaël "Kilawyn" Walter
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 rights
to use, copy, modify, merge, publi... | [
"8983311+MickaelWalter@users.noreply.github.com"
] | 8983311+MickaelWalter@users.noreply.github.com |
592c37e7ec027c486244474774f990071fd77a65 | f77a1f9d4a860dfd5154666dc4117e24627d835d | /gecko_sdk_suite/v2.4/platform/hwconf_data/efr32mg14p/EFR32MG14P.py | d6004d9c602d13c483d843309e846f0748c16f48 | [] | no_license | eosnewyork/gecko_sdk_suite | 9e93da499173edede02c3a986bfb233cf7b528e2 | 9678065284fc0faa89fe8206d51dcde5dcf632c1 | refs/heads/master | 2020-05-18T02:36:02.504381 | 2019-04-29T15:56:40 | 2019-04-29T15:56:40 | 184,101,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,164 | py | import os
import glob
import time
import Studio.halConfig as hal
import efr32mg14p.PythonSnippet.RuntimeModel as RuntimeModel
import efr32mg14p.PythonSnippet.ExporterModel as ExporterModel
import efr32mg14p.PythonSnippet.Metadata as Metadata
import efr32mg14p.modules.PIN.PIN_Snippets as PIN_Snippets
import efr32mg14p.m... | [
"warrick@eosnewyork.io"
] | warrick@eosnewyork.io |
62484937f9bd92b8484eeacd00073556db5a90ab | 43de85543159d7c1a24d03a6fefa5f8a83947ad1 | /mod_scrap.py | 1f8d8ffd5514711f9cc3398ef0f524c72ed76fa6 | [] | no_license | ys-vitela/PIA_PC | 21bb1a123ede3adf717dafd16c70f8cada9efaeb | ff0250786122b39bf76f965f52d449ae815b9dd3 | refs/heads/main | 2023-02-01T03:49:49.351961 | 2020-12-09T01:33:59 | 2020-12-09T01:33:59 | 319,798,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | #CODIGO PARA DESCARGAAR IMAGENES DE PAGINA WEB Y EL WHOIS
def mod_scrap():
import requests
from bs4 import BeautifulSoup as bs
import os
import re
import whois
from main import dom
#crea la directorio "images" donde se guardarán los archivos descargados de la página web
try:
os.system("mkdir image... | [
"noreply@github.com"
] | ys-vitela.noreply@github.com |
9315cc8bf5f6132cf366ce7e7d880acd7293cd3f | 88eeba6df8382687f36a4765bb298f76465c8e81 | /general/chainerrl/chainerrl/tests/links_tests/test_noisy_linear.py | 49b094838cec68f4f40aa91df7f9371a2755ba50 | [
"MIT"
] | permissive | daniellawson9999/quick_start | db0b6e382efd640754ca1e7800753c94e668423a | 947d61f118433dcd4cb845f27649ebfbc8062ecc | refs/heads/master | 2022-02-23T21:54:16.273530 | 2019-09-27T01:46:41 | 2019-09-27T01:46:41 | 197,873,032 | 0 | 0 | null | 2019-07-20T03:12:34 | 2019-07-20T03:12:31 | null | UTF-8 | Python | false | false | 2,798 | py | import unittest
import chainer
from chainer import cuda
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
import numpy
from chainerrl.links import noisy_linear
@testing.parameterize(*testing.product({
'size_args': [
(5,), # uninitialized fr... | [
"daniellawson9999@gmail.com"
] | daniellawson9999@gmail.com |
e68cd4e6bd9c58300783c58ef5af7d4a342b9a02 | a5fe2130ea434f958f6151cd4d8c92d43f1c1ca1 | /src/tests/test_foo.py | 58530c34370ed3e758e56350196a2c76cf087398 | [] | no_license | DavidArmendariz/django-movies-app | 44da33cc200773ef473ea21f67a1dfff57ea0e96 | b77f1f538bae4a906d0b00597fef8fef97ea409b | refs/heads/master | 2023-03-11T16:43:02.956765 | 2021-02-23T04:28:17 | 2021-02-23T04:28:17 | 338,206,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | def test_hello_world():
assert "hello_world" == "hello_world"
assert "foo" != "bar" | [
"darmendariz1998@outlook.com"
] | darmendariz1998@outlook.com |
a7d4d5bf7c36dad18109efd3495f3312e958580c | 931515a9fdd4404cb548fb6b80c91590f5d5e3c9 | /presalytics/client/presalytics_ooxml_automation/models/chart_column_collections.py | 91c556a70437a9633b3b183127aef59d065963d3 | [
"MIT"
] | permissive | presalytics/python-client | 2e2fbd617b493ed8be90b844e23b736f294065e3 | 5d80b78562126feeeb49af4738e2c1aed12dce3a | refs/heads/master | 2021-08-18T02:41:06.938468 | 2020-12-07T15:04:18 | 2020-12-07T15:04:18 | 203,414,411 | 4 | 1 | MIT | 2020-03-31T19:27:47 | 2019-08-20T16:31:57 | Python | UTF-8 | Python | false | false | 3,705 | py | # coding: utf-8
"""
OOXML Automation
This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501
The version of the OpenAPI document: 0.1.0-no-tags
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | [
"kevin@chart-a-lot.com"
] | kevin@chart-a-lot.com |
d2d50824723ac39e9f04079ab73ae5f3692d8239 | 42585e86010cf427ee92c98e88397e5b6a76eb5a | /wordpress_cd/main.py | 7a92cfc77aeb596b72b7f1ca1787473265d1cb32 | [] | no_license | rossigee/wordpress-cd | 3b04e57b4d897df62111bf86c24af0d0ac65e6e1 | ecc87770bfb17723b7383f2366756ff4e2aa95b9 | refs/heads/master | 2022-11-29T14:48:56.437324 | 2022-11-05T12:51:00 | 2022-11-05T12:51:00 | 126,587,798 | 3 | 2 | null | 2020-02-18T10:53:42 | 2018-03-24T10:14:46 | Python | UTF-8 | Python | false | false | 3,303 | py | #!/usr/bin/env python
import os
import os.path
import sys
import time
import argparse
import logging
_logger = logging.getLogger(__name__)
def usage():
print("Usage:")
print(" build-wp-site [-v] [-d] Build site artifacts using 'config.xml' in current directory.")
print(" build-wp-plugin [-v] [-d] Bui... | [
"ross@golder.org"
] | ross@golder.org |
1b0be4c7acdd39ae84b0a1c0fee0c2879a09e030 | a5845ef5aef8b65ede4bae5ce0f24f18c51619e0 | /marisatrie/__init__.py | 57fe875a20b1fc577f59e1587196862df36e1cd8 | [] | no_license | pombredanne/tries | b2b0f20782c50632053d215d58cbc0bbc2f58c5c | 0741f3d31ca19413bd2087312cc9a6cf9c42cc75 | refs/heads/master | 2021-01-22T07:23:30.742948 | 2013-06-27T08:21:20 | 2013-06-27T08:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py |
from .marisa_trie import *
| [
"pengkui.luo@gmail.com"
] | pengkui.luo@gmail.com |
7b91366dca5c3259a0892e8a148ebcc43cf4bc44 | 585f3c30f96ee172a35d3edf480a83a7d1316183 | /int2.py | d27b43fcbe148ef4dcaa39c4a72c8946a4a00b8a | [] | no_license | ochestra365/Rasberry_python | 14a0256f3b5242c99e6266a78671c47758d42162 | aea01b97b2b12033d30155d230efb494cfc9ebd4 | refs/heads/main | 2023-06-06T09:54:17.310625 | 2021-06-23T04:55:57 | 2021-06-23T04:55:57 | 371,236,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #-*-coding: utf-8-*-
import RPi.GPIO as GPIO
import time
switch = 6
flag = False
GPIO.setmode(GPIO.BCM)
GPIO.setup(switch, GPIO.IN, pull_up_down = GPIO.PUD_DOWN)
GPIO.setup(switch, GPIO.OUT, pull_up_down=GPIO.PUD_DOWN)
signal=True
def swBlink(channel):
try:
while True:
global flag
if GPIO.input(switch)==True:
... | [
"ochestra365@naver.com"
] | ochestra365@naver.com |
5a0826ad9f7cbc75cb16320948b0a920328fccb2 | a0d6cbae196c24254fb6f1411d756da0029e092a | /trunk/src/appserver/apps/user_srv_d/main.py | e626d55800d34accfb379fe41899e7ed973f72ca | [] | no_license | newguangzhou/haha-cluster | 8101ee1cb5b5ddbf916268029a33336c6fa0b06d | 4cee4172f3bd7939e0369d46603a62087e206277 | refs/heads/master | 2021-05-16T10:21:38.245881 | 2017-09-25T03:36:07 | 2017-09-25T03:36:07 | 104,700,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,348 | py | # -*- coding: utf-8 -*-
import sys
sys.path.append("../../")
sys.path.append("../terminal_srv_d/")
reload(sys)
sys.setdefaultencoding('utf-8')
#import setproctitle
from tornado import ioloop, gen
from tornado.web import Application, url
import tornado.options
from tornado.options import define, options
from lib.con... | [
"bingodongtian@gmail.com"
] | bingodongtian@gmail.com |
9add2000816be03aa99b735ef6573cea1ec11c2f | d08ce5c9b1fdd200b1d4de757d9d44f9acc0a54b | /Message/Message/urls.py | 2955a86e25323baefa074cb02bca6099cfa6b638 | [] | no_license | smartwange/pygame | 82ae829f1448b877473428aa3b857d55af96588c | 75caf2cd360d4badfe57a6e4ff2a00c06f10d1f3 | refs/heads/master | 2022-05-24T14:13:37.825044 | 2020-05-11T03:48:11 | 2020-05-11T03:48:11 | 197,743,887 | 0 | 0 | null | 2022-04-22T23:18:02 | 2019-07-19T09:24:58 | Python | UTF-8 | Python | false | false | 841 | py | """Message 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-based... | [
"smartwange@gmail.com"
] | smartwange@gmail.com |
be1abbc44622481b2fe3545cb7f02b36454ae323 | 49aed975589e6cbb5d7ba9f2cc3379f05cd0dc90 | /inception/train.py | 2b47719d68e45695783a6bec57481295de581cc3 | [] | no_license | gyuanfan/Tensorflow-Starter | e9ef53f7bece391f824b50fa27522fc56c09a7f1 | f2afe6309e5fce4e66db46f51181760e93b2c361 | refs/heads/master | 2021-09-01T07:00:21.861536 | 2017-12-25T15:35:43 | 2017-12-25T15:35:43 | 114,824,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,322 | py | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import pkgutil
import numpy as np
import os
import datetime
import cv2
#import picpac
import tensorflow as tf
import tensorflow.contrib.slim as slim
import GS_split_299_resize
import sys
im... | [
"yuanfang.guan@gmail.com"
] | yuanfang.guan@gmail.com |
828855bc5a1f6617ef25c47b606649d873810864 | 1d49dcfe7a725ed9c21d5e614b7e61c81aae1c88 | /modules/critics/CentralV.py | 62f3043f15838fbfacbcde6b6d31b5066599a20e | [
"Apache-2.0"
] | permissive | xiaojize/SMAC-1 | c405aa22d30a7f176b4b2a29669ae82ea7f0b3c7 | 7aaf4673b0eecafc4ab25f381eea20fc762af56a | refs/heads/master | 2023-06-30T14:37:44.870652 | 2021-07-23T15:15:49 | 2021-07-23T15:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | import torch.nn as nn
import torch.nn.functional as F
class CentralV_Critic(nn.Module):
def __init__(self, input_shape, args):
super(CentralV_Critic, self).__init__()
self.args = args
self.fc1 = nn.Linear(input_shape, 128)
self.fc2 = nn.Linear(128, 128)
self.fc3 = n... | [
"jk96491@naver.com"
] | jk96491@naver.com |
e4fad6f8b529d255a2b5cc6fdd7905813c09dbcb | c1ae731c7132089d09404292b43c8b7789753d3d | /agent/agent/lib/agent_thread/startstop_service.py | 27e8003346904ad64d2081aacca7ce8ed8e2ab16 | [
"Apache-2.0"
] | permissive | isabella232/cronus-agent | 489c1326cb85f6d2a2163c5807b9a54a1e87c644 | f973ef9fd49d0d454a2b4d5e9f17d88943fda8fc | refs/heads/master | 2023-03-12T11:46:33.659523 | 2015-04-17T22:05:55 | 2015-04-17T22:05:55 | 329,880,667 | 0 | 0 | Apache-2.0 | 2021-02-24T03:56:47 | 2021-01-15T10:30:23 | null | UTF-8 | Python | false | false | 6,001 | py | #pylint: disable=W0703,R0912,R0915,R0904,W0105
'''
Copyright 2014 eBay Software Foundation
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
... | [
"ypei@ebay.com"
] | ypei@ebay.com |
0762f01953113d7ff375bd9c7855d4a6bdac7408 | cbb40a3e417a22819e647b1fc0b418d2e5fec493 | /__about__.py | 64563cb77aa3e870546cb80a7038486620d64d65 | [
"MIT"
] | permissive | LowellObservatory/pwrusb | 40d8d0e688dc034c8a4e2bbf54bd30c16734c866 | fba72da5807a5a7f50a46a71628f5a54fe787582 | refs/heads/master | 2020-03-27T04:07:31.456442 | 2016-04-11T19:20:01 | 2016-04-11T19:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py |
__all__ = [
"__title__", "__summary__", "__uri__", "__version__", "__author__",
"__email__", "__license__", "__copyright__",
]
__title__ = "pwrusb"
__summary__ = "A python wrapper for controlling pwrusb.com power strip outlets."
__uri__ = "https://github.com/henryroe/pwrusb"
# VERSION should be PEP386 co... | [
"hroe@hroe.me"
] | hroe@hroe.me |
41d503f2fd5dfb36331bba7d119e640f0115f4a9 | e0e86206df49708df564c44cd2e05a97fddea865 | /weather.py | 170749be0b480c3caa660ead7471328f906e64b3 | [] | no_license | Emory-ADS-Group/weather-api | 3bc67d5bde7216f7f6ddf820196cc132768fdf90 | 91abe4efa7edd814c829b41eb4e7a79c7199505d | refs/heads/master | 2021-01-10T17:16:10.056280 | 2016-02-21T20:27:45 | 2016-02-21T20:27:45 | 52,226,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 13 19:17:52 2016
@author: Mandar
"""
from urllib.request import urlopen
import json
import csv
Pincode = ['30322','30329','92799']
print(Pincode[0])
URL_Pre = 'https://api.weathersource.com/v1/75fdebce9e0417074545/''history_by_postal_code.json?period=day&post... | [
"mandarpra@gmail.com"
] | mandarpra@gmail.com |
6cc03fb54250c0b2f6556012d2bf83b75474b3f2 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/cart/migrations/0006_merge_20190326_1307.py | 67a383ce2f25bfc403a88150e01f3f911f341528 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Generated by Django 2.0.5 on 2019-03-26 07:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cart', '0005_auto_20190315_1612'),
('cart', '0004_auto_20190318_1424'),
]
operations = [
]
| [
"sonamsinha@policybazaar.com"
] | sonamsinha@policybazaar.com |
aad4ce1ab32ecf2b0ac846d47ffe05836b87eeeb | 8c9d54d05a4c6211b784185db75f1ec600cca2ce | /decode_json.py | ee12dcf9774c5bc467a027cc8cb165f2e03d3771 | [] | no_license | cardi/retrofuture-client-tools | 1011bea4eaf3062cab157df6f6274fb89d2cafbf | c1acf651322d496c8e87e03062b51c8c570de29b | refs/heads/master | 2021-01-25T07:54:26.807994 | 2017-06-28T01:21:47 | 2017-06-28T01:21:47 | 93,679,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!/usr/bin/env python
# decode_json.py: reads data from stdin, outputs "results" to stdout decoded payload
import json
import sys
import base64
from pprint import pprint
jdata = sys.stdin.read()
# sometimes we have http headers before json
jdata = jdata[ jdata.index('{') : ]
# kind of annoying if we didn't format j... | [
"calvin@isi.edu"
] | calvin@isi.edu |
bbc9346e361617f40137e996c9caee2f66e94355 | 032a0c939d96d0e5307dbce86e11faf7060f4ed9 | /lte/gateway/python/magma/pipelined/tests/test_ipv6_prefix_mapper.py | d33410b7b423133760753874c76ffd7d50ae75a6 | [
"BSD-3-Clause"
] | permissive | radha0018/magma | cac9ff3491dd2661e5dc0aa1f9a304a5428e2d2a | 8436966a4bb3cf7fdc3f567704062b6f9568db25 | refs/heads/master | 2023-05-05T08:26:07.132969 | 2021-05-27T18:44:44 | 2021-05-27T18:44:44 | 371,097,174 | 0 | 2 | NOASSERTION | 2021-05-26T16:26:21 | 2021-05-26T16:15:53 | Go | UTF-8 | Python | false | false | 2,280 | py | """
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"noreply@github.com"
] | radha0018.noreply@github.com |
4ee6a8bdca790223ff50fd6e205515c6e1e5c9bf | 3265c15c9dfb588f204414db5336cc75819c9ae9 | /Code PIE/calculetrajevitementtronquee.py | a35ce851f6d64b0847155fd694d2786dde5fc877 | [] | no_license | QuentinTeix/PIE-Voiture-Autonome | e424f5d675a490ca690164a6e7c1a234dbe9047a | 17fd5542513c3f17adc33ce8fa59a59bff128e5d | refs/heads/main | 2023-08-13T08:44:21.791551 | 2021-10-08T09:21:34 | 2021-10-08T09:21:34 | 316,242,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,876 | py | from paramètres import *
from intersectionarc import *
from calculrayoncourbure import *
from intersection import *
from math import *
def calculetrajevitementtronquee(v,p,sgyp):
#calcule la trajectoire approchée par ligne brisée de la voiture
#revoie 0 si cette traj ne coupe pas la droite OP et... | [
"noreply@github.com"
] | QuentinTeix.noreply@github.com |
b283a0051efe62913bc5c309405a700df0dd9373 | 578b9ff976429bf97bc944e457465f5e98f7973a | /ChuVietTay.py | 0bebe74bfaa9132a3e09b25c64b44d7526cd4013 | [] | no_license | hoangliem98/ChuVietTay | e224b2bdf74eac91d4cf4996c470142e8a4ff3f4 | 36a1864569f49d99d78e32818161e66f617d5872 | refs/heads/master | 2023-01-30T14:30:56.793735 | 2020-12-17T08:36:36 | 2020-12-17T08:36:36 | 322,231,398 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
img = cv.imread('D:\LN\Python\Projects\digits.png', 0);
#lấy chữ bằng cách cắt từ ảnh dùng để nhận diện, có thể thêm 1 ảnh chứa só khác để nhận diện
chuviet = [np.hsplit(row, 100) for row in np.vsplit(img, 50)]
x = np.array(chuviet)
trainData... | [
"1651012093liem@ou.edu.vn"
] | 1651012093liem@ou.edu.vn |
17261e523784bf2f34722edf40c070552af6fe36 | 3e77a86429ba0f6968f709e77e204cdfe920a041 | /python/python/src/python_problems/webAutomationTestScripts/testSuites/glbRestTests/getMasterBillingAccount.py | 5169d96ece8bece21ea979551aafa018b45765e0 | [] | no_license | ramyamango123/test | a2d9bb6cafe8d7406b76eba526ddded2acf2a3b2 | 85420c9406109a72e1b1d455ea29a5cae9def5a3 | refs/heads/master | 2020-06-07T23:34:08.344051 | 2014-03-12T05:19:05 | 2014-03-12T05:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,701 | py | #Get Master Plan Billing Account
#Includes both positive and negative test cases.
#Created by Tarja Rechsteiner on 12.01.09.
import sys
from testSuiteBase import TestSuiteBase
from selenium import selenium
import time
CLIENTIPADDRESS = '127.0.0.1'
FIRSTNAME = 'Tester'
LASTNAME = 'Dummy'
ADDRESS1 = '123 ... | [
"ramya@Ramyas-MacBook-Air.local"
] | ramya@Ramyas-MacBook-Air.local |
5d7db1fb83ce424b4d6fd59de99f2307f69a15fb | a4843f673692e4c703d09b4a625ecf14d0c238ec | /bin/attic/mpest_consensus_tree.py | 7d5a2ef17dd937a7396cd8a6b38dda6498a8a8a5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | carloliveros/phyluce | db0fd5f04b6eb1f362ce7a95ca9dde5514301ff8 | 1b227a51b655820154ecca4e9e52ac7722d7a71e | refs/heads/master | 2020-04-25T13:02:32.637099 | 2019-05-10T18:34:24 | 2019-05-10T18:34:24 | 136,492,179 | 0 | 0 | NOASSERTION | 2019-02-26T21:03:20 | 2018-06-07T14:52:12 | Python | UTF-8 | Python | false | false | 3,920 | py | #!/usr/bin/env python
# encoding: utf-8
"""
consensus_tree.py
Created by Nick Crawford on 2010-05-19.
Copyright (c) 2010
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licen... | [
"brant.faircloth@gmail.com"
] | brant.faircloth@gmail.com |
d1d6cce15c3f159ecea43f243c0fd9bec07ca85b | 7974fcc4dfe34f96ceace6f1f8288a21446c5268 | /pycamhd/native/__init__.py | b35f2864d013d4e6cf35eeb60bcb95f0db1200b2 | [
"MIT"
] | permissive | amarburg/pycamhd | 4240aba5c1924b3ec87f3517374da8322ac9ed3c | d7ba6f55ab7215a6095a5734eddf3d7864c4d925 | refs/heads/master | 2021-07-08T04:07:21.538237 | 2017-10-05T20:33:07 | 2017-10-05T20:33:07 | 105,929,491 | 0 | 0 | null | 2017-10-05T19:07:58 | 2017-10-05T19:07:58 | null | UTF-8 | Python | false | false | 102 | py | #!/usr/bin/env python
from .pycamhd import *
__version__ = '0.7.0dev-native'
VERSION = __version__
| [
"amarburg@apl.washington.edu"
] | amarburg@apl.washington.edu |
15ef76fd1b0480e1a00ff6a183f756261b21306d | 6899f55b07bd6d49da2d331dfce217f92673ed34 | /Accounts/migrations/0021_auto_20201218_2042.py | 724846eecd1e6aa2cacb1d6ff9a966c2dc5e54cf | [
"MIT"
] | permissive | Khushiraikar1/sudhaksha_maxo | e72945f2d2e6ec985b27a67f2db4465cf3a72ce2 | ccaba5426b8fcac0d6772bdb78916cb0cd0c09e7 | refs/heads/main | 2023-02-11T12:09:35.046523 | 2021-01-15T16:37:55 | 2021-01-15T16:37:55 | 317,636,328 | 2 | 6 | MIT | 2021-01-15T15:40:49 | 2020-12-01T18:46:39 | HTML | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.1.3 on 2020-12-18 20:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Accounts', '0020_auto_20201218_1916'),
]
operations = [
migrations.RenameField(
model_name='timetable',
old_name='lass_obj',... | [
"anandajith911@gmail.com"
] | anandajith911@gmail.com |
fcaecbff0852a2ba436801351884668e1010e044 | d2d6886bde409f7631fc7acd2d72acd046355a0d | /alyBlog/utils/captcha/captcha.py | 63d8026a3f5bf9a9aed22a03af731bc9b4808c4e | [
"WTFPL"
] | permissive | Hx-someone/aly-blog | 611202828e4984050f6cf982114df4641524cd68 | e0205777d2ff1642fde5741a5b5c1b06ad675001 | refs/heads/master | 2021-04-16T08:24:13.695843 | 2020-04-05T06:39:02 | 2020-04-05T06:39:02 | 249,340,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,755 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# refer to `https://bitbucket.org/akorn/wheezy.captcha`
import random
import string
import os.path
from io import BytesIO
from PIL import Image
from PIL import ImageFilter
from PIL.ImageDraw import Draw
from PIL.ImageFont import truetype
class Bezier:
def __init__(... | [
"âhx120841@163.com"
] | âhx120841@163.com |
05d3a4af0a6b318c8e5709e5275ec443b604d5b8 | 6437af616b0752b24e1b62bc98d302b2e04a7c85 | /pagnition/getUrlMainPage.py | 02acf2acba9ee6934e0f89b3c250939f51aa5607 | [] | no_license | kangqiwang/imageWebCrawler | 4c7ebc0c93fd52b27f08a0f79302885d95f53a6e | 76fe21802a5a03638e324e6d18fe5698a69aba70 | refs/heads/master | 2022-05-31T00:51:39.649907 | 2019-08-28T15:06:37 | 2019-08-28T15:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | import requests
from requests_html import HTMLSession
import sys
from urllib.parse import urlparse
import pandas as pd
from elasticsearch import Elasticsearch
import re
def getUrl():
url = 'https://'+sys.argv[1]
session = HTMLSession()
response=session.get(url)
urltem=[]
for i in response.html.abs... | [
"kang@sourcemogul.com"
] | kang@sourcemogul.com |
0a96b9e23f3959b90612fa56da5231472a211679 | fe2f683069e70cab827f86ddb6c880dce18e4249 | /chap04/polygon.py | b11ac6cf785097b6c6976527c25a8433983306f0 | [] | no_license | tchoetso/SoftwareDesign | 8f3b77944b47928807a233ce7ec9e7bcfaee719f | 4f8ba7f7950a68f0ba400b632ef23a55ba7af7ab | refs/heads/master | 2021-01-17T21:52:36.643619 | 2013-12-15T05:56:22 | 2013-12-15T05:56:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | #Author: Tenzin Choetso
# Chapter 4
from swampy.TurtleWorld import *
import math
world = TurtleWorld()
bob = Turtle() #bob needs to defined outside
bob.delay = 0.5
def square(t,length):
print t
for i in range(4):
fd (t,length)
lt(t)
def polygon(t,length,n):
print t
for i in range(n... | [
"tchoetso920@gmail.com"
] | tchoetso920@gmail.com |
285c58cff6bab461a2a96c005792abe48c41134e | a713542969e64a251266e215f55ef7f753d83874 | /src/base/nets/vgg.py | 90c96d662c8a34a3a982255da29f7d2a93f35b27 | [] | no_license | czczup/MusesStyle | 874aeae17d1eb017c6f7de012839867371d0e0a6 | 0f6f767c5e58e16101fa63e4b524da6dffd2381c | refs/heads/master | 2022-04-16T12:29:28.051394 | 2020-04-08T13:45:42 | 2020-04-08T13:45:42 | 166,505,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,258 | py | # Copyright 2016 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 applicable ... | [
"wztxy89@163.com"
] | wztxy89@163.com |
4e641a5c9104fc7eb202447df307f6e6b74bd146 | a441fda200674f0f98c6f1c27126a8f4ab8d0871 | /Algorithmic Toolbox/1.1 sum of digits.py | eacc6312815f77bc8be2e9e26c97dfdb79cacbf7 | [] | no_license | June24-Wu/Coursera-Bilibili_Course_Source_Code | 222d6d852ffe80df0b23bcb6ffd94d37c5864523 | 3ef9860daf508d96b4e7be4bc37b26c325f4c1b4 | refs/heads/master | 2023-04-23T17:12:29.885591 | 2021-05-06T03:36:00 | 2021-05-06T03:36:00 | 356,558,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | #Python 3
a,b = input().split()
print(int(a)+int(b)) | [
"932187556@qq.com"
] | 932187556@qq.com |
d581e305ac079f2af1725f50e4bd33b9987b30cf | 79b1d3d8ffbda5297fff6fefe2528e303bf2110a | /RSGGenFragment/RSToQQ/RSGravitonToQuarkQuark_W-0p1_M_3250_TuneCUETP8M1_13TeV_pythia8_cfi.py | 4743fb46d70ff29d63a01653fe65bceda8571ccf | [] | no_license | yguler/MCFragments-1 | 25745a043653d02be3a4c242c1a85af221fc34b3 | 7c4d10ee59e00f997221109bf006819fd645b92f | refs/heads/master | 2021-01-13T14:09:12.811554 | 2016-12-11T15:57:37 | 2016-12-11T15:57:37 | 76,184,433 | 0 | 0 | null | 2016-12-11T15:59:22 | 2016-12-11T15:59:22 | null | UTF-8 | Python | false | false | 1,323 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(0.00000782),... | [
"emine.gurpinar@cern.ch"
] | emine.gurpinar@cern.ch |
326f4d0adf929a5b6d06809845942caa89522e42 | 9cc882126c7cc511d758d567d5801bd3351a9769 | /notes/migrations/0002_auto_20180828_0947.py | d7d4c136ea9cf8db5fd7495970b5a3405c279871 | [] | no_license | bradencodes/Intro-Django | 5357cb3fcbc10c021c9314ef35620976cde3c277 | e31ad2d67b89db30c55c2ee7b99167816866c005 | refs/heads/master | 2020-03-27T09:16:46.035726 | 2018-09-06T20:18:13 | 2018-09-06T20:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # Generated by Django 2.1 on 2018-08-28 16:47
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('notes', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='note',
... | [
"divebombwalker@gmail.com"
] | divebombwalker@gmail.com |
59c831653985037d0c1a7ab69a9c140208d718d9 | 12fc465e9530efd7dd7fd3e0396371df21d43938 | /mailer/mail/migrations/0001_initial.py | 5c343e7fb02409473adc14d1caea43aaef501cd1 | [] | no_license | SMEETT/Mail-CS50Web | 5731953efd676ca01acac196e2e42989f06179f7 | b19d828ee7f48323f3a6ac533f0a2a9ad3b0734e | refs/heads/master | 2023-01-16T04:04:34.110179 | 2020-11-23T11:59:39 | 2020-11-23T11:59:39 | 284,594,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | # Generated by Django 3.0.8 on 2020-08-03 15:48
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"tbr@tutamail.com"
] | tbr@tutamail.com |
651829bd3adb0e1664849bd3a398cbaf87f47495 | 81f7d86117e5701673f2c302544c4081bcd66067 | /pytorch_forecasting/utils.py | 92c1bbbf8ede65c4045eb66799d10202a39f32cd | [
"MIT"
] | permissive | kashif/pytorch-forecasting | 3bc46cf4bdf7248201d35a17483927188cbce122 | a60367a5014c972cd648f901b7d1a7caa95e8cd1 | refs/heads/master | 2023-06-05T07:27:26.390368 | 2021-06-16T06:50:41 | 2021-06-16T07:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,877 | py | """
Helper functions for PyTorch forecasting
"""
from contextlib import redirect_stdout
import os
from typing import Any, Callable, Dict, List, Tuple, Union
import torch
from torch.fft import irfft, rfft
import torch.nn.functional as F
from torch.nn.utils import rnn
def integer_histogram(
data: torch.LongTensor,... | [
"beitner.jan@bcg.com"
] | beitner.jan@bcg.com |
fce04a514fffe8a02d5e89c07e2b5d7a96db6d0e | 2cdd241dbc7a1d6efa278e670ebeae149ea1ec05 | /node_modules/uws/build/config.gypi | ad839c7980968e6d3dbe9867ee5bc8b3b620c19b | [
"Zlib"
] | permissive | mngyuan/rollbot | 72b0f64c036216b5abc432720f70e87afe6c024c | 2c462de1ea7bbe41948b26b2bb4b46587dc382d9 | refs/heads/master | 2021-06-17T02:44:00.400543 | 2017-06-02T08:09:33 | 2017-06-02T08:09:33 | 93,142,976 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"kevinmlee.x@gmail.com"
] | kevinmlee.x@gmail.com |
846e4b78d7c886c44c4e431ff2909e85839f2292 | 3d1604af821eb83d907c7bd7b201d81b949d5875 | /src/iCalendarMIP.py | 87e93e21f846508b59db602ca6bb2e0a6bb19e1c | [] | no_license | alswl/ical-calculator | 1d00ca7ffc67a107a4f015e083a64bf5eb203b78 | cd1001e5f5274144a8b7279556d5e5f3174eddcf | refs/heads/master | 2021-01-20T10:38:46.906720 | 2014-01-21T14:04:24 | 2014-01-21T14:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | # -*- coding:utf-8 -*-
"""iCalendar Message-Based Interoperability Protocol (iMIP) (RFC6048, RFC2447) library
Sends valid email invitations and receives them via SMTP / PoP account
Created on Feb 11, 2013
@author: Oberron
"""
import sys
sys.path.append("../../src/") #to overide previous installs
import ... | [
"one.annum@gmail.com@e1cb2c10-74b4-a52f-94e4-9c71d713a321"
] | one.annum@gmail.com@e1cb2c10-74b4-a52f-94e4-9c71d713a321 |
fb5968a2eab69f9449d33ac5db3bf1925503160f | f26d7ecbe11ea33b0806944a5335209c2293a0c4 | /c1app/admin.py | 7e35286f495c52808ae1de924b34734c77a2d00c | [] | no_license | kwanHI/LFdjango10 | 64b177230d432d40b9b4ad4e901632b9e39cad5b | 6ec139677b86d82847ee88ba258f910aa4edb255 | refs/heads/master | 2021-05-13T13:01:41.257054 | 2018-01-08T15:39:38 | 2018-01-08T15:39:38 | 116,695,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.contrib import admin
from .models import UserProfile, Client10
# Register your models here.
admin.site.register(UserProfile)
admin.site.register(Client10)
| [
"limpsangsriKwan@gmail.com"
] | limpsangsriKwan@gmail.com |
245891ab60390c902727c53b79d0e0632a0a26d4 | daef437c4cd7ed6ca4be3989f6c7b990ee1efcc7 | /blog/migrations/0002_comment.py | e925e461c50d8aa9a0b4c6fa60b7e99800b4ab0c | [] | no_license | YY-U/Myblog-web-app | b157624f5cd56b3b0b56d30f40fe5ae62973c78f | fd90497dc0aa7e6b3efb6e6d5a24c165fde6de33 | refs/heads/main | 2023-08-28T05:13:40.068384 | 2021-09-23T14:33:34 | 2021-09-23T14:33:34 | 401,692,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # Generated by Django 3.2.3 on 2021-08-14 10:10
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.CreateModel(... | [
"chxgw030@yahoo.co.jp"
] | chxgw030@yahoo.co.jp |
0997db820df5512beb330aedeb592bcd7ec5f840 | cb7c3673ad937c282a39be74d0aee8628e75928d | /tests/test_utils/output/uriandcurie.py | 2c0bb6edc92ee3846661835fdd4a574c30b2da97 | [
"CC0-1.0"
] | permissive | bpow/linkml | 649d6d48f39a8c51efa92fba7eb25c1d8854b472 | ab83c0caee9c02457ea5a748e284dee6b547fcd6 | refs/heads/main | 2023-05-05T18:46:04.501897 | 2021-05-13T21:17:03 | 2021-05-13T21:17:03 | 371,163,928 | 0 | 0 | CC0-1.0 | 2021-05-26T20:42:13 | 2021-05-26T20:42:12 | null | UTF-8 | Python | false | false | 4,918 | py | # Auto generated from uriandcurie.yaml by pythongen.py version: 0.9.0
# Generation date: 2021-03-26 14:22
# Schema: uriandcurie
#
# id: http://example.org/test/uriandcurie
# description:
# license:
import dataclasses
import sys
import re
from typing import Optional, List, Union, Dict, ClassVar, Any
from dataclasses im... | [
"action@github.com"
] | action@github.com |
7193bb2db7bcd806f09266312489de1e2d192446 | 30de2a2be2909f0aee882790af244432b8b071c9 | /sentiment classifier/splitSentiment.py | 73590477b724114208617a6856ccad16ead7a53c | [] | no_license | ctlu22/neuroticism | 126b5b360f8cf1564170bcfc4e87a4db5c7e72a2 | 530acc87638f5538be984ab60ffd5f44acf95bf5 | refs/heads/master | 2021-04-30T09:57:13.695690 | 2018-02-14T04:38:08 | 2018-02-14T04:38:08 | 111,462,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import sys
import re
import csv
if len(sys.argv) < 2:
print """USAGE: python splitSentiment.py [input_file]"""
sys.exit()
pos_file = open("positive.csv", 'w')
neg_file = open("negative.csv", 'w')
test_file = open("testset.csv", 'w')
emo_count_file = open("emojiCount.csv", 'w')
pos_out = csv.writer(pos_file, delimi... | [
"lu.chunting2009@gmail.com"
] | lu.chunting2009@gmail.com |
94f4de8865ab5f6cc1d9d0e010fd2820a5ad9427 | 1e2a18bcbbaf95cc78f54a9486959dbb563a8bc7 | /payments/gateways/__init__.py | 23b95e7e45069031586b4dadb1f7a7f1a18ff8f1 | [] | no_license | arashsa07/bazinama_events | 326433db2e94edf091f7cfb41d08523abf7d72a7 | 7d25add58f50aa15aef61f780e32e4e7a2eff94e | refs/heads/master | 2020-06-19T18:22:55.508140 | 2019-07-14T10:40:06 | 2019-07-14T10:40:06 | 196,820,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from .shahparak import verify_shaparak
from .saman import verify_saman
from .raad import verify_raad
from .bazaar import verify_bazaar | [
"arash.sa07@gmail.com"
] | arash.sa07@gmail.com |
f892964a9f41c2a1957bb3b6940a35faf1590b5a | 27a4619766e85a7297fc0e16c246866e5b0c14d3 | /tests/agents/test_energy_storage.py | a5c7a1705eedac39126189109872767c4c621a83 | [
"BSD-3-Clause"
] | permissive | sugar-215/PowerGridworld | 53b2cadfabd81a337a6159ed4424445741d712b3 | 9ed5ce3a0219e7730f102d2d3c8c40b07da1f084 | refs/heads/main | 2023-09-04T19:34:41.960545 | 2021-11-17T16:45:27 | 2021-11-17T16:45:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from tests.conftest import single_agent_episode_runner
from tests.agents.conftest import energy_storage_config
from gridworld.agents.energy_storage import EnergyStorageEnv
def test_default_env(energy_storage_config):
"""Creates an env instance and runs it (sanity check)."""
env = EnergyStorageEnv(**energy_st... | [
"dbiagon@nrel.gov"
] | dbiagon@nrel.gov |
b6e2ce22fb67076c267ba2e1fd71f0b24c1d2878 | 20dba145fd988d5901cfd335efe238c0dce8ac5b | /analytics/decorators/cache_dec.py | df12f6fbc3b61d39bd1710094aebd7c6bc2533c3 | [
"BSD-3-Clause"
] | permissive | ModelDBRepository/228604 | 10be01bf0eeea3ea07ef4c38ebb3b4c771000923 | 8f641f73bcac2700b476663fe656fcad7d63470d | refs/heads/master | 2020-05-29T18:25:57.095212 | 2019-05-31T03:47:54 | 2019-05-31T03:47:54 | 189,299,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | """ a simple caching of function return values
using the decorator "cached", e.g.
@cached
def foo(a, b, c):
return a*b-c
will cache the result of the calculation foo does, which of course better not be this trivial.
works also for numpy arrays in the parameters.
should of course only be used on functi... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
097fb5d2aa77f9818e892b587791125d742bad04 | 18ba764b234cd3a4f2eebc3d7bb80219aa8854b6 | /rgkit/bots/team10.py | 9bc00557423b7dd8e45a19056a6567805a2ac4b0 | [
"Unlicense"
] | permissive | tomviner/rgkit | 74008bdda044b165a54570cf0d6c0b0714a3be80 | acd4517ca5213c712af0fa29ff16d4ff32e9f443 | refs/heads/master | 2021-05-16T01:35:30.031418 | 2017-10-26T19:46:53 | 2017-10-26T19:46:53 | 106,317,820 | 0 | 0 | null | 2017-10-09T18:04:54 | 2017-10-09T18:04:54 | null | UTF-8 | Python | false | false | 599 | py | import random
import rg
centre = 9, 9
class Robot:
def act(self, game):
loc = self.location
right = (loc[0] + 1, loc[1])
left = (loc[0] - 1, loc[1])
up = (loc[0], loc[1] + 1)
down = (loc[0], loc[1] -1)
directions = [left, right, up, down]
ok_directions = lis... | [
"sim.david@gmail.com"
] | sim.david@gmail.com |
f888d9b6ea8e0fb8f1ad03e16e336665189babce | 6c5a32e7b393803c0bada26fa8a705bfc88d9f0c | /vdditer.py | 6832571cc5bcf3dab99f51cb54391e3efab0f793 | [] | no_license | idesignitX/vddfit | 6ad32f42c84714e8302f582c5ba8437b4d1ef1f4 | 74e2a2da93cd958bbbabfffb7541b4f7d2738c9e | refs/heads/master | 2023-07-07T14:40:30.014088 | 2021-08-06T14:14:18 | 2021-08-06T14:14:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,516 | py | from numba import njit
import numpy as np
import matplotlib.pyplot as plt
@njit
def simulate_activation(tau, noise, std, smoothing, scale, tau_threshold, *args):
act = 0.0
for i in range(len(tau)):
act = act*smoothing + np.arctan((tau[i] - tau_threshold)*scale) + noise[i]*std
yield act
@njit
d... | [
"jami.pekkanen@helsinki.fi"
] | jami.pekkanen@helsinki.fi |
cde37335c8fd46c394bd630f2b414f47ebcc8761 | e44b48cae7ac78938a05a69e5e5acd8836530ea0 | /App.py | 8d78c2021e89c3a059aadd04d9bc018dd09335fc | [] | no_license | vishwjeet3939/Ola_Prediction | 7522a234e3079608f26bdbe97b9f8eca28d3f355 | 0a822e7d65fc4eea7f77000b0e7de7ab6cc861d2 | refs/heads/master | 2022-11-23T16:49:51.081218 | 2020-07-30T11:11:14 | 2020-07-30T11:11:14 | 283,749,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import numpy as np
from flask import Flask,request,jsonify,render_template
import pickle
import math
app = Flask(__name__)
model = pickle.load(open("uber.pkl","rb"))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict', methods=['POST'])
def predict():
int_fea... | [
"noreply@github.com"
] | vishwjeet3939.noreply@github.com |
466d567c62831fb4ecedbcb1bfdcdc30fbba798a | 11fbcc55eecead7bb10c2e645925f912f6ee32c2 | /setup.py | a8cdd9c9fe270299ca02dfb6aa43d02399919cf9 | [
"BSD-3-Clause"
] | permissive | anandubey/randomstringtoken | b519af91c8a1604d68e83c76597fbc4a6c4c3dcc | b4bbc29fe7402252db3f20c9f8d5226baa0509c7 | refs/heads/main | 2023-05-04T14:28:22.403052 | 2021-05-27T16:26:07 | 2021-05-27T16:26:07 | 369,114,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import pathlib
from setuptools import setup
# The directory containing this file
CURR_DIR = pathlib.Path(__file__).parent
# The text of the README file
README = (CURR_DIR / "README.md").read_text()
# This call to setup() does all the work
setup(
name="randomstringtoken",
version="0.2",
description="Gener... | [
"dubey.anandkr@gmail.com"
] | dubey.anandkr@gmail.com |
baf032ea3d1791773949ff5bf09255d17efe7531 | 5b794066e7a4c9093cee207fcd5e4802e5a9b86f | /durin/admin.py | fa0e9b2cc111512a06f4a77fafa6f1287ef2a4df | [
"MIT"
] | permissive | iCodeIN/django-rest-durin | 286860d8dedbb49bc28293209949f493319aa49b | 260a7a6d992179dc91a4c389002880a270d97eab | refs/heads/main | 2023-03-01T14:16:28.077338 | 2021-02-09T21:24:54 | 2021-02-09T21:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | from django.contrib import admin
from durin import models
@admin.register(models.AuthToken)
class AuthTokenAdmin(admin.ModelAdmin):
"""Django's ModelAdmin for AuthToken.\n
In most cases, you would want to override this to make
``AuthTokenAdmin.raw_id_fields = ("user",)``
"""
exclude = ("token", ... | [
"eshaan7bansal@gmail.com"
] | eshaan7bansal@gmail.com |
b608dd3e6c69f6ddd5710aa9ce505003bc56588a | c7c188dbd5cd67db196d5f5910806a78d3e8c62e | /ants.py | dd429eae431cea4e23191f97bf38da6e6a80e115 | [] | no_license | EricBWang/ants | 1f502ffebbb3183b4529aac832e9599e8352c2f3 | c18c7c6a10de0711365052204929149f6221316e | refs/heads/main | 2023-08-29T10:53:57.987523 | 2021-11-09T23:41:55 | 2021-11-09T23:41:55 | 426,417,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,890 | py | """CS 61A presents Ants Vs. SomeBees."""
import random
from ucb import main, interact, trace
from collections import OrderedDict
################
# Core Classes #
################
class Place(object):
"""A Place holds insects and has an exit to another Place."""
def __init__(self, name, exit=None):
... | [
"noreply@github.com"
] | EricBWang.noreply@github.com |
f21994842ce2f26db2b2a11ae1b482049221632b | e5fc020acb66afa4ab1f3aae088e1d85633c058a | /config.py | ef05c76c0bf2847ebb59c335137a9a0925deb016 | [
"MIT"
] | permissive | TipsyApple/odd_GAN | 614aec5195f97d2801ed119767a5c6f71824e439 | ab80311b7c9b8555f36048720e8bed85d8c76ab5 | refs/heads/master | 2020-03-17T22:03:53.566148 | 2018-05-18T17:57:41 | 2018-05-18T17:57:41 | 133,986,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import os
import numpy as np
# `pip install easydict` if you don't have it
from easydict import EasyDict as edict
__C = edict()
# Consumers can get config by:
# from fast_rcnn_config import cfg
cfg = __C
#
# Training options
#
__C.TRAIN = edict()
# Minibatch size
__C.TRAIN.BATCH_SIZE = 4
# Pixel mean values (BGR ... | [
"TipsyApple@users.noreply.github.com"
] | TipsyApple@users.noreply.github.com |
b556458049379afa354aa2a80ad214a3013613bc | 5c472a661ef18a4fef46eb8ce589305c30d91b50 | /TALN/check_lyrics.py | cfe9acd6bdc8c15570a3bd968163737c51826721 | [] | no_license | caroubier/ESGI-5a-TALN | d19d8967c19609ba57ed03fdad5c717be78f4861 | 0748c438901456bb2ab3c3ec6d7467f0653393ea | refs/heads/master | 2020-12-14T16:11:38.407174 | 2020-01-23T16:38:21 | 2020-01-23T16:38:21 | 234,802,693 | 1 | 0 | null | 2020-09-02T21:06:25 | 2020-01-18T21:51:35 | Jupyter Notebook | UTF-8 | Python | false | false | 1,021 | py | import spacy
from spacy_langdetect import LanguageDetector
PATH="dataset/"
FILE="sample_lyrics.csv"
PATHFILE=PATH+FILE
def load_nlp_model():
"""
on charge le modèle qu'on utilisera pour déterminer le langage de la chaine
:return: renvoie le modèle spacy
"""
print("loading en_core_web_md")
nlp ... | [
"noreply@github.com"
] | caroubier.noreply@github.com |
2654b97aa05a1e2827ee87d67123214fc44fead8 | a1f5016e58e3a1781a204728c86a6586ccf6a6ca | /yield_data/migrations/0001_initial.py | cc727e04dc4db4883ff43a257794c6887cdb40ec | [] | no_license | UpstatePedro/datavis_proj | 0e5d3038cf1bb6e3c1ac9f4236112604630a1d5e | cd447ee269955eaee2a5692d670a4a8e87801aca | refs/heads/master | 2021-05-04T10:26:53.824673 | 2018-07-08T20:06:12 | 2018-07-08T20:06:12 | 52,166,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-23 08:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('geo_borders', '0002_usstateborder'),
]... | [
"piers.m.holden@gmail.com"
] | piers.m.holden@gmail.com |
6d7e6826915f4d4b7165da380fb427715c956736 | 64b92c3da1a58c723b8e98b7de66d0491066fe43 | /validation/validate_hanoi.py | ed17a392cc7935efac9d04813ba1d0e9415b211d | [
"MIT"
] | permissive | geektoni/AlphaNPI2 | c63c9d104fd106477b9196a9e85658b4437ccc8f | 044163cab76950af6cbcc3b9c714c3637c4ab814 | refs/heads/master | 2023-08-04T09:08:38.489587 | 2020-05-13T17:52:06 | 2020-05-13T17:52:06 | 228,867,563 | 3 | 1 | MIT | 2023-07-23T00:44:06 | 2019-12-18T15:21:33 | Python | UTF-8 | Python | false | false | 5,167 | py | from environments.hanoi_env import HanoiEnv, HanoiEnvEncoder
from core.policy import Policy
from core.network_only import NetworkOnly
import core.config as conf
import torch
import argparse
from core.mcts import MCTS
import numpy as np
import time
if __name__ == "__main__":
# Path to load policy
#default_load... | [
"g.ligner@instadeep.com"
] | g.ligner@instadeep.com |
62d00cfb7dc7b0d89bbbda7fea717146394c477a | 14cf672eb0fb9a4a675beee6d6cdef66ded107b6 | /manage.py | d4168d23cfac0e83f254ebab45e23aed630161e1 | [] | no_license | mateuszkowalke/muzyka_niezalezna | e8abdc57974c45f813e6bc54b7bb02671b918729 | 7d9244d7e0e7e03ad26affae30750f3ae124a7cb | refs/heads/master | 2022-12-19T02:14:11.051839 | 2020-09-09T06:51:50 | 2020-09-09T06:51:50 | 286,457,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'muzyka_niezalezna.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"mateusz.kowalke@gmail.com"
] | mateusz.kowalke@gmail.com |
4bc7058242c4bde692b83e1127a6d785f6ac088d | 3252907f13eb34741fb51b7288abf43bebecc312 | /getAlignmentRegions.py | 5ebeb002adeb6e622e0bed6b1000ab561b0ce8f0 | [] | no_license | NarlikarLab/exoDIVERSITY | 5ef3d8570ac22629009fcec25021351b60137155 | d646fc655d0cf686a11ce29de4731f32fb7a4f6d | refs/heads/master | 2023-08-14T01:34:11.678808 | 2021-10-05T10:35:49 | 2021-10-05T10:35:49 | 310,792,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,321 | py | import numpy as np
import re
import commands
import os
def revcomp(seq):
comp = {'A':'T','a':'t','C':'G','c':'g','G':'C','g':'c','T':'A','t':'a','N':'N'}
rcseq = [comp[x] for x in reversed(seq)]
rcseq =''.join(rcseq)
return rcseq
def getSeq(chrom,regionStart,regionEnd,twobitfile,stpref,reportedSt,seql... | [
"anushua.biswas@gmail.com"
] | anushua.biswas@gmail.com |
52a9cfb92f3c0dad0659e22d6a6cb0ad3a802dd1 | e37a8fbfad0172f5e952219d77f9cac4525ded5f | /doctr/__init__.py | 20b78857e757acf3aefefd7d7fa5d8ff77f9275e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kapitsa2811/doctr | 4c4cce4b6c5852d2fe811e8b8484ecf99d36d9d2 | 63b1ceec7a1532c9218351234c23eda6f210d5fb | refs/heads/main | 2023-04-22T14:55:56.568309 | 2021-04-28T16:51:40 | 2021-04-28T16:51:40 | 362,700,910 | 1 | 0 | Apache-2.0 | 2021-04-29T05:31:07 | 2021-04-29T05:31:06 | null | UTF-8 | Python | false | false | 98 | py | from .version import __version__ # noqa: F401
from . import documents, models, transforms, utils
| [
"noreply@github.com"
] | kapitsa2811.noreply@github.com |
cc5fe338f1609b34d3796858f25ec9987dcc2422 | 29e878f459426d89f22891685fe7d2fed82d4b32 | /net_base.py | 04411f7e2780795622885de8e109ed5a9efd7c37 | [] | no_license | gjtjx/tf-deeplab-v3 | 8400f174f2198f1e18c7aaf29c188776c6608702 | aa7029d378fd62adb38c138eba0bc2821b1c9f9f | refs/heads/master | 2021-08-18T21:20:42.434082 | 2017-11-23T22:15:30 | 2017-11-23T22:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | import tensorflow as tf
from tensorflow.contrib import layers
from tensorflow.contrib.learn import ModeKeys
class BaseModel(object):
def __init__(self, mode):
self.training = ModeKeys.TRAIN == mode
self.weights = []
self.biases = []
def _create_weight(self, name, shape):
init ... | [
"tuckerdarby@gmail.com"
] | tuckerdarby@gmail.com |
119a8220aff09fff6e4a24259634f20681f8b04d | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /output/python37/Lib/test/test_smtplib.py | 06168e1cb07685c76cf317c32142c808ca20aef4 | [
"BSD-3-Clause",
"bzip2-1.0.6",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 52,178 | py | import asyncore
import base64
import email.mime.text
from email.message import EmailMessage
from email.base64mime import body_encode as encode_base64
import email.utils
import hmac
import socket
import smtpd
import smtplib
import io
import re
import sys
import time
import select
import errno
import text... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
f297086489c311f8cd1c11d0a836bbc0882f82df | f3a3d3c684f215cb8943cf873f9f71cc2f18e820 | /Python_Ders5.py | 5f7e997b20f4f03a8cf08f7d61d74de9925d93a8 | [] | no_license | yunuseminyazici/python_exercise | 665a8c35dcb24c2662f725f6ab7ce80072f9827e | d48cde05952299f2fac0fc6fae9b82fef69d0f1e | refs/heads/main | 2023-04-15T12:01:40.798386 | 2021-05-06T16:54:07 | 2021-05-06T16:54:07 | 364,978,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | """
#For kullanımı
liste=["Elma","Armut","Kiraz"]
for i in liste:
print(i)
"""
# print(*range(10)) #0-9 yazdırma
# print(*range(2,10,2)) #2den başlayarak iki atlayarak yazdırma
for i in range(10):
print(i*"*")
| [
"noreply@github.com"
] | yunuseminyazici.noreply@github.com |
58af6debfeba26a436bd2c0dc77060d5fa098f93 | d686c57e7dd391b22f68ad6302b8f32c37ef3843 | /discord_bind/__init__.py | 0734afceacdf9b801860b7199bb3b4625e99cf49 | [
"MIT"
] | permissive | AndyTempel/django-discord-bind | 6d91c4a6509d71529100930624c50ee8a3bd0763 | 11b305de0762a691776a967b46a1b02f9a63a925 | refs/heads/master | 2021-05-05T17:07:25.918551 | 2020-04-07T16:55:24 | 2020-04-07T16:55:24 | 117,344,262 | 1 | 0 | MIT | 2018-06-23T09:57:40 | 2018-01-13T13:07:32 | Python | UTF-8 | Python | false | false | 1,192 | py | """
The MIT License (MIT)
Copyright (c) 2016, Mark Rogaski
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 rights
to use, copy, modify, merg... | [
"mrogaski@pobox.com"
] | mrogaski@pobox.com |
6666d2af38738b566c7be68cf876e62332b2f5df | 6c4285fd1780a21b66c79975168ba26e496c8c41 | /homeassistant/components/control4/light.py | e9226cc3716b2056fde62a2d7b3fd3096a7b0b7f | [
"Apache-2.0"
] | permissive | asbach/home-assistant | 802268867df70cb2f0dd242daa1066be06d3a2f7 | 04fc3a1f25e387103ee8a6e86f6dc3b037787428 | refs/heads/dev | 2023-08-25T19:00:15.045852 | 2022-04-05T12:00:45 | 2022-04-05T12:00:45 | 79,063,913 | 0 | 0 | Apache-2.0 | 2023-09-13T06:04:21 | 2017-01-15T22:30:37 | Python | UTF-8 | Python | false | false | 8,186 | py | """Platform for Control4 Lights."""
from __future__ import annotations
import asyncio
from datetime import timedelta
import logging
from pyControl4.error_handling import C4Exception
from pyControl4.light import C4Light
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_TRANSITION,
COLOR_M... | [
"noreply@github.com"
] | asbach.noreply@github.com |
07a1175b2a7015339344497fa2f6692e5aec6bd5 | 866631deca871e7bc0e0fc59cbddc6c4082c9759 | /Code/Extras/New_SO_Full/Decision_Tree_Load.py | 6fae3454a840e72d634ef4c7852aee68711709a6 | [] | no_license | LCS2-IIITD/DiffQue-TIST | e6630641cb58ef13e9788d31d1e9737aada46009 | 90e0e83f6d1c3c1710c74aa38ea04825f1c67e98 | refs/heads/master | 2020-05-27T13:35:03.488111 | 2020-01-22T18:09:52 | 2020-01-22T18:09:52 | 188,641,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | import networkx as nx
import pickle
from sklearn.svm import LinearSVR
from sklearn.neural_network import MLPClassifier
import numpy as np
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import f1_score
from sklearn import svm
from sklearn.naive_bayes import GaussianNB
from sklearn.neighbors import ... | [
"deepakthukral0004@gmail.com"
] | deepakthukral0004@gmail.com |
a108d8f0631873f4b65550ed4b7d482f12e3e8a6 | 02422812b5e93225f6c842ec57aae601cb939a8d | /tests/client/internal_messaging/test_producer.py | fc80a258c21a90b32dbe40386e709df21e14b6aa | [
"Apache-2.0"
] | permissive | gcollard/lightbus | 1af20564bb05df76ed7302f6eb93487c5b17592d | d04deeda8ccef5a582b79255725ca2025a085c02 | refs/heads/master | 2022-12-27T01:02:45.505846 | 2020-10-02T02:18:05 | 2020-10-02T02:18:05 | 300,042,306 | 0 | 0 | Apache-2.0 | 2020-10-02T02:18:06 | 2020-09-30T19:44:52 | Python | UTF-8 | Python | false | false | 2,372 | py | import asyncio
import logging
import pytest
from _pytest.logging import LogCaptureFixture
from lightbus.client.internal_messaging.producer import InternalProducer
pytestmark = pytest.mark.unit
@pytest.mark.asyncio
async def test_queue_monitor(producer: InternalProducer, caplog: LogCaptureFixture, fake_coroutine):
... | [
"adam@adamcharnock.com"
] | adam@adamcharnock.com |
3b5adac9dca8f817319ada3b9e7cefa9ca0912f5 | 8f9ea3f14bdf2187de759939b2bbc87fe68ccfc0 | /tensorflow/python/training/optimizer.py | a9287a0f0d0391cc6e0b297cce18eebaf9f64291 | [
"Apache-2.0"
] | permissive | davidstanke/bazel-mvn-demo | 4ea43f0ba293a28b916a27eab5f0812e9b753c2c | cff14dddce15ea7152988da576673bd15bab6c6e | refs/heads/master | 2022-10-20T07:52:29.651851 | 2018-11-22T13:17:51 | 2018-11-22T13:17:51 | 157,782,756 | 2 | 0 | Apache-2.0 | 2022-10-04T23:47:05 | 2018-11-15T22:54:09 | C++ | UTF-8 | Python | false | false | 48,470 | 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 applica... | [
"davidstanke@gmail.com"
] | davidstanke@gmail.com |
cb2c66246218d18c73711d4760222ad0c1230cb8 | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /chokudai_S001/h/main.py | dee5983b58febe63c07ef1f8bf5b7db686e13a53 | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left
from itertools import accumulate
sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7
def main():
N = int(input())
a = list(map(int, input().split()))
dp = [INF] ... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
eac93448f682961cac9392c005e6e93abf7cac29 | e5664b40c9d0a828c009b30ed8fe62666d04bf62 | /falcon_marshmallow/_version.py | ceaa700e54e94982b6e19e2fb7dede45e5f07725 | [
"MIT"
] | permissive | evilr00t/falcon-marshmallow | 9eb348fd68e1b0c85927e77f62bc02fc093ad28e | 97f169c78f11a638b1f21b3a977bb5df8d071be5 | refs/heads/master | 2022-02-23T05:04:37.315682 | 2019-10-12T19:37:11 | 2019-10-12T19:37:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
"""
version.py module
The version set here will be automatically incorporated into setup.py
and also set as the __version__ attribute for the package.
"dev", "rc", and other verison tags should be added using the
``setup.py egg_info`` command when creating distributions.
"""
from __future__ im... | [
"msplanchard@gmail.com"
] | msplanchard@gmail.com |
13b853a6cd8d40e6ac83da2a30b3fc8150df4029 | 2f39059afaa7208ac922cdd0527ccd502af8f2c2 | /Python_serwer_rpc/rpc_serwer.py | 11626407f0c97bf59fc92a49b5f88f6461f6cfbd | [] | no_license | endablju/TAS_Ksiegarnia | 3ff736819916a51194af025f92bc9921d98b605f | 6490a24dabf44921a72007bef3fd67c7312aa346 | refs/heads/master | 2020-05-18T00:30:40.228021 | 2015-01-27T13:34:21 | 2015-01-27T13:34:21 | 25,406,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,910 | py | # -*- coding: utf-8 -*-
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler
import MySQLdb
class RequestHandler(SimpleXMLRPCRequestHandler):
rpc_paths = ('/RPC2',)
server = SimpleXMLRPCServer(("localhost", 8001),
requestHandler=R... | [
"simaosrz@gmail.com"
] | simaosrz@gmail.com |
c73e8d7f7187a80ad2438cd73fc2b30a9529daaf | 9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1 | /examples/agf2/04-restart.py | 9bc238f22c51f8a26903e67bf64ba74da0fb1b8c | [
"Apache-2.0"
] | permissive | sunqm/pyscf | 566bc2447d8072cff442d143891c12e6414de01c | dd179a802f0a35e72d8522503172f16977c8d974 | refs/heads/master | 2023-08-15T18:09:58.195953 | 2023-03-27T21:02:03 | 2023-03-27T21:02:03 | 159,149,096 | 80 | 26 | Apache-2.0 | 2022-02-05T00:19:24 | 2018-11-26T10:10:23 | Python | UTF-8 | Python | false | false | 1,027 | py | #!/usr/bin/env python
#
# Author: Oliver J. Backhouse <olbackhouse@gmail.com>
# George H. Booth <george.booth@kcl.ac.uk>
#
'''
An example of restarting an AGF2 calculation.
The agf2.chkfile module provides similar functionality to the existing
chkfile utilities in pyscf, but prevents failure during MPI runs.
... | [
"olbackhouse@gmail.com"
] | olbackhouse@gmail.com |
f542f6bc362ff402f8d81483959310e99e676cfc | f3d41b3053a4a1976ce3c9d675b5d552a96fcabc | /pytactoe.py | 025c69903a894ddf94738f56fc3dffb713a1c4fc | [] | no_license | fortjosef/pytactoe | ad68d5eb99576b3c28ab82f76d06baff79926dd9 | 892f9a195ea58f365500e44327f0b4aa25cb50de | refs/heads/master | 2020-12-23T17:06:52.690881 | 2020-03-05T14:38:17 | 2020-03-05T14:38:17 | 237,212,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,726 | py | import curses
import sys
import math
from curses import wrapper
def translatePlayer(playerAsInt):
if playerAsInt == -1:
return "X"
elif playerAsInt == 1:
return "Y"
return ""
def checkForWin(playField):
#amount of possible solutions amtRows + amountCols + 2
rowTotals = [0 for x in... | [
"dethboy@macintosh.home"
] | dethboy@macintosh.home |
93c094ec3ff67c2547a4273d6b6d7dd5b2d36e17 | 528c811306faa4a34bf51fca7955b7a24ac2e30c | /Python/Number of Islands II.py | ea9b85418e2cf1f4baca66002f08cbad1d4cd15e | [] | no_license | ganjingcatherine/LeetCode-1 | 1addbd7e4d9254a146601f9d5e28b8becb8235a6 | 488782d3f1e759da2d32b4e82dbf55b96c431244 | refs/heads/master | 2021-05-11T03:15:16.810035 | 2016-02-06T06:19:18 | 2016-02-06T06:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | """
A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col) into a land. Given a list of positions to operate, count the number of islands after each addLand operation. An island is surrounded by water and is formed by connec... | [
"anthonyjin0619@gmail.com"
] | anthonyjin0619@gmail.com |
4c3197760ec47ac171e62a4268e307b1c0550183 | 9979f353c690df9c0858530d244bf8b63725100f | /SlowProtScanning.py | 6658c8e52bf229c96772e670cc1213e4362f1891 | [] | no_license | samshimoni/Port-scanning-password-gusting- | 6a08fabf6080be87ffb4a24529935ae3dcdb5b5b | bb187129050616aa98646c09dd29f84f8a7b2189 | refs/heads/master | 2020-03-17T21:09:09.830856 | 2018-05-18T11:31:43 | 2018-05-18T11:31:43 | 133,945,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | #!/usr/bin/env python
import socket
import subprocess
import sys
import time
import random
from datetime import datetime
class SlowScan(object):
@classmethod
def slowScanning(self,ip):
secondForWait = input("Enter a number of seconds are waiting between each group of porters: ")
... | [
"noreply@github.com"
] | samshimoni.noreply@github.com |
19dfeb0326b1f4add9e56705427a624d3a376b3f | 284386a55a5620fbb77e15f4a065284cb93cf867 | /env_deep_learning/bin/tensorboard | 3668e3b6f6c5d455bc3ccd50a757fe9edf9de013 | [] | no_license | doctown/ICME_DL_workshop | 4dd7a9a0991a43a1328eac716ba2451389fd9ce7 | 2200bf7ef0eaa21c7185e62947e177aeab18c94c | refs/heads/master | 2021-01-22T18:08:27.942177 | 2018-07-13T21:48:47 | 2018-07-13T21:48:47 | 100,748,225 | 0 | 0 | null | 2017-08-18T20:34:06 | 2017-08-18T20:34:06 | null | UTF-8 | Python | false | false | 309 | #!/Users/davido/Documents/personal/code/deep-learning-workshop/ICME_DL_workshop/env_deep_learning/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tensorboard.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"david.ogor@brightbytes.net"
] | david.ogor@brightbytes.net | |
5291920b22a0288cb3146261c5e2febf47a16f15 | 77902311f65e02fbcd3830aa57cd997383349af3 | /digital_calculation.py | 8a6010a86bf4b61ffd5dfd1786593da1bd21eda3 | [] | no_license | LeFuGang/ml | 3caeb458b57e10928462469762e25df820de706e | 748293b4eb5d6a72f794909167b3e4a20fa683d5 | refs/heads/master | 2020-03-17T00:41:22.165295 | 2019-04-10T09:04:47 | 2019-04-10T09:04:47 | 133,126,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | import re
def jia(*args):
'''
加法解析
:param args:
:return:
'''
res = 0
for i in args:
#解决*-和/-的情况
#i = i.replace('*-','#').replace('/-','@')
jian_list = i.split('-')
# 减号的拆分要解决负号的情况:把负号拆分后列表中所有为空字符串的元素替换成'0'
# 还要把*-和/-替换回来
for id,j in enumerat... | [
"noreply@github.com"
] | LeFuGang.noreply@github.com |
6f25be5166faf3e615f05f7d0bdfac883634ea64 | 9f7e04a479cc3f1ec20784b07f61bfcab71abbb2 | /main.py | 17643ef9320c91159c364c6c3f001f12b4c10bf9 | [] | no_license | tiriplicamihai/tagging | 2859ca576f83039f0f937fc307d42a467f1fb451 | 35563e7ccd9496136afe6fdb0f22165a8c30162a | refs/heads/master | 2020-12-02T10:02:54.676822 | 2017-08-04T09:36:40 | 2017-08-04T09:36:40 | 96,682,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | from collections import defaultdict
from copy import deepcopy
import json
import re
from bs4 import BeautifulSoup
import requests
from sklearn.externals import joblib
def main():
text_clf = joblib.load('clf.pkl')
with open('categories_mapping.json', 'r') as f:
categories_mapping = json.load(f)
w... | [
"tiriplica.mihai@gmail.com"
] | tiriplica.mihai@gmail.com |
207eed8b7b95177d0fb13820653cdb7e3542dac8 | 4a4916bc4d3d02a5382972212671251dcb8e104b | /PAC/main.py | 74b5c57a1bb2dc40999919972a46e0e9a092c7d3 | [] | no_license | SaintDevilS/LearningModels | 2181620236be823ef8e7268b28f8ad4ada097ed1 | e4af052fc0f6d8dee1f60ae8037d9cddb0bd5baf | refs/heads/master | 2021-01-18T02:53:33.817158 | 2015-10-26T22:19:12 | 2015-10-26T22:19:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from LearningModels.PAC.PAC_Algorithm import PAC_Algorithm
from LearningModels.PAC.PAC_oracle import PAC_Oracle
from LearningModels.conjunction import Conjunction
from LearningModels.uniform_distribution import UniformDistribution
__author__ = 'yben_000'
def main():
length = 10
concept = Conjunction(length)
... | [
"mooncake91@gmail.com"
] | mooncake91@gmail.com |
4d7511f0ec644a213d561887e362f39a9060e767 | 68180bf037f4b60b5cdc577ec758c5c970a75f41 | /practice.py | b1986c6ccbf890e8cedb862a0b83e24faf6aea25 | [] | no_license | nanaka-777/practice | 23e8c19a8ca82d9fb80efa3572a2f598eed2c8de | 69a9ad9626b26003b879ca4cd795100557ee1512 | refs/heads/master | 2020-11-27T08:27:00.717516 | 2019-12-21T03:31:28 | 2019-12-21T03:31:28 | 229,370,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | print(hello)
| [
"nanaka.sato.777@gmail.com"
] | nanaka.sato.777@gmail.com |
87faac5d8aa072a875a49cfb322ef246d6cd4fa9 | d96a3f09cf2c229047d27768b4f92a236ebea86b | /main_code/preprocessing.py | 90762dc1463a083f0774e6ba6fd182976fef7ea8 | [] | no_license | sbakas/PStrip | 436c0ddc50587edd655f2c160ea14f442b73cac0 | e608925e29267508a8af03eb2315c3efa1a309da | refs/heads/master | 2020-03-15T17:28:24.005663 | 2019-01-02T04:52:01 | 2019-01-02T04:52:01 | 132,261,763 | 1 | 1 | null | 2018-05-05T15:43:01 | 2018-05-05T15:43:00 | null | UTF-8 | Python | false | false | 6,775 | py | import sys
import subprocess
import os
import SimpleITK as sitk
import numpy as np
import warnings
sys.path.append(os.path.join(sys.path[0], '..', 'func_code'))
from niftyreg import *
from operations import *
from argparse import Namespace
def create_temp_image(image_path, temp_folder):
print 'creating temp imag... | [
"xhs400@cs.unc.edu"
] | xhs400@cs.unc.edu |
7fd2976a96b7c65afda200b53acff70df4e20a74 | fc3f6ef338c7969e4519b7b95eddd792b874c209 | /Flask/venv/bin/mako-render | c8e19cbbd73e3429d69acc3be40d9798d2a52d30 | [] | no_license | xjvelazquez/Where2Next | f5a965545dcdddd9b0f604a2fdfca04e6ae44132 | bdb85f646aa7e4627fd97eb71f86bdb76c15d849 | refs/heads/master | 2023-03-26T01:43:54.026689 | 2021-03-27T02:11:33 | 2021-03-27T02:11:33 | 283,160,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | #!/mnt/c/Users/Jaime/Desktop/Where2Next/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'Mako==1.1.4','console_scripts','mako-render'
__requires__ = 'Mako==1.1.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"jaimevelazquez22@yahoo.com"
] | jaimevelazquez22@yahoo.com | |
7827f38f5e2c123e14f1dadd1cc05a72aad97a39 | 5d9653ca3d77a1e79f73ece726ee70e4fa8761f5 | /venv/Scripts/project0/Part4.py | ad8de811ba7a9f56aaf4c55fa4fb500dc929f3c9 | [] | no_license | LordNecromancer/data_structures_and_algorithem_course_projects | 3665567075f19ab71fb1bbd6f8192aed4a67cc96 | 36ec0289306327b2ddab96beee20ba6f91391e62 | refs/heads/master | 2023-03-02T01:19:44.770512 | 2021-02-12T22:10:40 | 2021-02-12T22:10:40 | 325,384,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import math
import time
import matplotlib.pyplot as plt
# n=int(input())
# nums=input('').split(' ')
value=[]
elementNum=[]
for l in range(1,21):
#start = time.clock() *1000
p=[]
str="C:/Users/lordNecromancer/PycharmProjects/ds_project1/in/input{}.txt"
str=str.format(l)
file=open(str,'rt')
nums=[int(r) for r in ... | [
"mmdp313@gmail.com"
] | mmdp313@gmail.com |
0df67edff7e3522c8bcefb1bdbb749ecf4b7f58d | 15cf010f36acda5074fb3700c43005ceea507bc5 | /calculate_trigger_efficiencies.py | ee5380e7f720d7e56e7c4704bf34a1a448b7dd5b | [] | no_license | mburkart/TriggerStudies | 0e87146b5ffcc9930b9bdda095c2d562074495d4 | ecd9c24c206031fe7235cca4e90b3c74d33c2378 | refs/heads/master | 2020-05-13T23:56:22.266153 | 2019-04-16T12:24:50 | 2019-04-16T12:24:50 | 181,676,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py |
import logging
import argparse
from TauTriggerEfficiency import TauLegEfficiencies
def parse_args():
parser = argparse.ArgumentParser(description="To be filled.")
parser.add_argument("-w", "--working-points", type=str,
nargs="+", default=["all"],
choices=["all... | [
"maxiburkart@gmail.com"
] | maxiburkart@gmail.com |
8018544975d51c6528a74b50ee6788ef7b69c41f | 7441bc8c4779e85e7f1221ee239f51341ebcdd28 | /elijah_ros_dev/catkin_ws/build/kp07_v11_manipulation/catkin_generated/pkg.develspace.context.pc.py | 0b12a1b9544e691a288f8b95c8b9dc72c41885f2 | [] | no_license | riverray121/Kinoped-Command-and-Control | eb4e2b9cbfa5314009a8ab6e0a802856aab85d79 | 7944c2dd1e9bfce5582de6f9f707991d27b01b45 | refs/heads/main | 2023-04-28T11:21:07.386126 | 2021-05-17T21:41:08 | 2021-05-17T21:41:08 | 368,317,745 | 0 | 0 | null | 2021-05-17T21:41:09 | 2021-05-17T20:45:55 | null | UTF-8 | Python | false | false | 751 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/elijah/catkin_ws/src/kp07_v11_manipulation/include/kp07_v11_manipulation".split(';') if "/home/elijah/catkin_ws/src/kp07_v11_manipulation/include/kp07_v11_manipulation" != "" else []
PROJECT_CATK... | [
"eliriver@gmail.com"
] | eliriver@gmail.com |
70b79c8ebe347e46b42b18e851e6c9a24feec667 | 154eb136cd287303cda71b326b8d7542539f2b2f | /mysite/polls/migrations/0016_auto_20181210_1544.py | 320857450d333f7c789d844224e23fe408343899 | [] | no_license | mjohns12/CMSC447Group6BE | 913f146a625643d0ad219c7462f5d65f57d2b7b4 | 4133c4e26f9eb0db9d918ed667d31dc6f8f4c8f9 | refs/heads/master | 2020-04-09T20:39:52.505792 | 2018-12-19T03:37:59 | 2018-12-19T03:37:59 | 160,580,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # Generated by Django 2.1.3 on 2018-12-10 20:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('polls', '0015_auto_20181210_1502'),
]
operations = [
migrations.CreateModel(
name='RequiredEqui... | [
"noreply@github.com"
] | mjohns12.noreply@github.com |
77de718380e45fd22369ee5d50e95868582d615b | f321337033e25e85ba35fa0526d4c898592fc790 | /blog/migrations/0002_auto_20200718_1528.py | 7b2b5348450d4f77f78de4ff1cd3f5f4dadd1e11 | [] | no_license | kuss123/django-assignment-1 | 02da1876b8a08830dce4eee0db8480b83537a907 | ec46e6620616815152b2abd72edadd07757f0647 | refs/heads/master | 2022-11-16T13:31:49.530341 | 2020-07-19T15:25:18 | 2020-07-19T15:25:18 | 280,893,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.0.6 on 2020-07-18 09:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='blogtable',
name='updated_at',
... | [
"halkstar12@gmail.com"
] | halkstar12@gmail.com |
9ce650e54cafe85121117010d69ef0d196a2a17a | 3eb1143458ea1abe618267b3254abdd3c23b1fc3 | /secchallenge/crypto/prerecorded/solution/util.py | a9e867898e4bc959c1445cd14fb6f7d46f46b5b2 | [] | no_license | encse/secchallenge2021 | cfb9e3d6883200871c9e23d21b3eb3ac8eeb8c5b | d88fbdbd4bd726de95b00bd6bcb4b1bb3a5a80e7 | refs/heads/master | 2023-04-14T19:57:06.612546 | 2021-05-02T19:31:06 | 2021-05-02T19:31:06 | 345,049,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,874 | py | # https://www.josephsurin.me/posts/2020-11-30-hitcon-ctf-2020-100-pins-writeup
import struct
from decimal import *
import os
from z3 import *
MAX_UNUSED_THREADS = 2
# Calculates xs128p (XorShift128Plus)
def xs128p(state0, state1):
s1 = state0 & 0xFFFFFFFFFFFFFFFF
s0 = state1 & 0xFFFFFFFFFFFFFFFF
s1 ^= (s... | [
"encse@csokavar.hu"
] | encse@csokavar.hu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.