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
abacc0bf4cee74f8e78ac4df2df3838d91209a33
44afb399a813cde601a4eafb484e15afdafc1069
/image-noise.py
aa557f7703d8f433215e7a7cb429ab27c3a1cbac
[]
no_license
paalbra/image-noise
2b4f80fb84a10fe87c20e533e8400de3364ac0e9
203f2fd8e5b2e1ff97b57a7690e6218581c2f8df
refs/heads/master
2022-05-28T19:58:47.589662
2020-04-27T14:58:04
2020-04-27T14:58:04
259,361,856
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
import argparse from PIL import Image import numpy if __name__ == "__main__": parser = argparse.ArgumentParser(description="Produce a noisy image.") parser.add_argument("output", help="Path to output image") parser.add_argument("--width", type=int, default=1080, help="Image width in pixels") parser.ad...
[ "paalbra@gmail.com" ]
paalbra@gmail.com
4c927ef002365aaa8bb8be42c42b73ecaf047dfd
99e514cc667236d970e970629b014325b571cfd2
/evaluation.py
ca9932249f027036c84ac343c9af59c5124d17a5
[]
no_license
rmitbggroup/Liangjun-dasfaa-2017
69a3ae6dbe706a3e657db442b718798060d56959
19cf0d95a7b1a0a5232880715867c3af0b68288a
refs/heads/master
2020-03-29T08:04:09.255372
2018-09-21T01:51:50
2018-09-21T01:51:50
149,692,742
0
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
def readsummary(file,my=False): summary = [[0]] summary.remove([0]) f = open(file,"rb"); lines = f.readlines() ct=0 summary.append([]) indexappend=1 if my: indexappend=0 for l in lines: numbers = l.split() if l.split(',')[0].isdigit(): summary.app...
[ "lycanlancelot@gmail.com" ]
lycanlancelot@gmail.com
8b671cd00b665f2dc6ee967e7674832f91d0834c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/1486.py
398ac7880e41de436f54e88085b54b6d17c4cf50
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,613
py
import collections import sys import os sys.setrecursionlimit(500000) class ReadWrite: def __init__(self, file_name=None, verbose=True): self.verbose = verbose if file_name is None: self.in_file = sys.stdin self.out_file = sys.stdout else: self.in_file...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a44d0519368984e18f08b83959161a479da50928
b1e6af8dffc4e88eb75a8061fd6dd903dc7ab262
/pokedex.py
d0d58b02819767636f755d8630e40cf2eb82dd21
[ "EFL-2.0" ]
permissive
meew0/inumuta-modules
6c02afdf9c9c8870d9564f0cbff0e262ecea0193
0d0c7ee76ebb43503aa121c249c05007d5265a38
refs/heads/master
2023-08-22T02:50:42.213551
2014-11-09T20:35:12
2014-11-09T20:35:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,444
py
#coding:utf8 """ pokedex.py - Get your Pokemon fix! Copyright 2014 Max Gurela Licensed under the Eiffel Forum License 2. """ from willie import web from willie.module import commands, rule, thread, example from util import timing from bs4 import BeautifulSoup import re import urllib2 user_agent = 'Mozilla/5.0 (Windo...
[ "maxpowa1@gmail.com" ]
maxpowa1@gmail.com
43bebf0e9cd615a907f2a5930fc5f162e543af5f
504d181ad8c77fb2338c55773bf70dfcc28620ae
/lesson_1/B/solution_b.py
6ff8e9efbb0b533a261f900a867e22a686f17495
[]
no_license
RomanMatiiv/training_algorithms
f419ecea34cf66f66321898180d5fdf59b333d36
9827911e02d937f2949cf15cf13172f2e3720c27
refs/heads/main
2023-06-12T06:57:50.536198
2021-06-25T04:58:27
2021-06-25T04:58:27
373,376,943
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
""" https://contest.yandex.ru/contest/27393/problems/B/ """ def triangle_exist(a: int, b: int, c: int) -> bool: if (a + b) <= c: return False if (a + c) <= b: return False if (b + c) <= a: return False else: return True if __name__ == "__main__": a = int(input()) ...
[ "matiiv.r.a@gmail.com" ]
matiiv.r.a@gmail.com
42cae87b3c1b229ac8ce61c70b75cbcec5ac9622
ad6ba311b47de42115ec23e839e77adf005c5456
/Python_Solutions/1176. Diet Plan Performance.py
ab1853ab581f1cce3519317b93ca89ce331ef458
[]
no_license
ajinkyad13/LeetCode_For_Interviews
07fbcfe25cbcac76406afc927f0ee2bf03fde16e
d250697262386ea59301a41b8abe689b95303502
refs/heads/master
2023-06-18T20:44:55.359673
2021-07-09T04:19:07
2021-07-09T04:19:07
384,317,286
0
0
null
2021-07-09T04:06:52
2021-07-09T04:06:51
null
UTF-8
Python
false
false
552
py
class Solution: def dietPlanPerformance(calories, k, lower, upper): countUp = 0 countLow = 0 for i in range(len(calories)): if i<k: temp = (calories[:i]) else: temp = (calories[i-k:i]) if sum(temp) > upper: c...
[ "ajinkyad13@gmail.com" ]
ajinkyad13@gmail.com
cb1ecbcd603ed49c58fa65634f71bfc6f4943ea5
b7893e31c29e37619b2217633739cc20e3f3ff11
/src/compositekey/db/models/signals.py
ca014e6f6e241766ca72132825fd534c09f0b844
[]
no_license
KACAH/django-compositekey
9818ce6dfee3dd319675b6ec82144d4dd75b0c44
ea1a29a50401a2d0f93d056fd5565ff66f7b7975
refs/heads/master
2021-01-16T19:34:52.578849
2012-03-06T13:56:42
2012-03-06T13:56:42
3,638,280
0
0
null
null
null
null
UTF-8
Python
false
false
2,157
py
from compositekey.utils import disassemble_pk __author__ = 'aldaran' from django.dispatch.dispatcher import receiver from django.db.models.signals import class_prepared import operator @receiver(class_prepared) def prepare_model_and_meta(sender, **kwargs): opts = sender._meta unique_together = [] for fie...
[ "s.federici@gmail.com" ]
s.federici@gmail.com
98e50f6c665078875c857f905133443663eb1620
d476f2a1ec5dcc292ee2bf7207634ad9fae14091
/routes.py
01338fbd40906c6af7cf4537af61ba004cfbc53c
[ "MIT" ]
permissive
gustavohvs-dev/Simple-FlaskPython
16155756c2ac96029083de592768166f1972cc6e
845528a3d3df21b6c8a46fc46840bb19aa5b8446
refs/heads/main
2023-06-19T01:55:59.989164
2021-07-18T18:00:37
2021-07-18T18:00:37
387,238,210
1
0
null
null
null
null
UTF-8
Python
false
false
495
py
from flask import Flask, request from cadastraUsuario import insertUsuario app = Flask("Server") @app.route("/hello", methods=["GET"]) def hello(): return {"app": "Hello World"} @app.route("/cadastra/usuario", methods=["POST"]) def cadastra(): body = request.get_json() if("nome" not in body): re...
[ "gustavohvs.dev@gmail.com" ]
gustavohvs.dev@gmail.com
326b7893a94f523502df4f6c1da9e60607d7e4d1
94cc0a21642f2938b9e818354ec7748454ab4b28
/serverApp/src/database/tables/servicesTable/servicesTable.py
ee1454f172e448c72d3f3968645e89edd220c3e5
[]
no_license
Mishal-Alajmi/ChocoAnon
5dbdfbcfe45b5920c980d667ae29a91e514a2be9
ab8b4ad96a4274f7fd1bfccbeefbf4566c2a0ea2
refs/heads/master
2020-06-07T10:09:22.110149
2019-06-24T03:13:13
2019-06-24T03:13:13
192,995,203
0
0
null
null
null
null
UTF-8
Python
false
false
1,749
py
import constants.consts as consts from database.tables.table.table import Table import datetime class ServicesTable(Table): def __init__(self, connection, cursor, lock): super().__init__(connection, cursor, lock, consts.SERVICES_TABLE) self.create() """ Contains all of the services that h...
[ "mishal.ajm@gmail.com" ]
mishal.ajm@gmail.com
3d499f76f455c25cf01c210a73ac6ee7cc2f8518
61319c600e18acbb0ca9c2f722cf6d180b19bade
/Curso_Em_Video_Python/ex046.py
736e1a144e960fd89ddecc2cb25c4c20cd1908a3
[ "MIT" ]
permissive
ThallesTorres/Curso_Em_Video_Python
a5e93bd33387684830ed081dd127754d1223f90b
95ffbff5a03f11fee41df746604dfe435f385a3b
refs/heads/master
2020-09-29T06:59:33.226325
2020-04-19T21:17:22
2020-04-19T21:17:22
226,981,932
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
# Ex: 046 - Faça um programa que mostre na tela uma contagem regressiva para o # estouro de fogos de artificio, indo de 10 até 0, com uma pausa de 1segundo # entre eles. from time import sleep import emoji print(''' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --Seja bem-vindo! --Exercício 046 -=-=-=-=-=-=-=-=-=-=...
[ "thalles.torres@pm.me" ]
thalles.torres@pm.me
4fe0c671a71ebf8b6d077cbf8113dd9dbf259363
5edf69877e49b5fae3b888ebe6e42aa857b3f261
/sql/plugins/schemasync.py
c4dbf50a55dd3c4f1a0130f55bdd250053a9f1a3
[ "Apache-2.0" ]
permissive
yzypals/Archery
86843bb94748a0ef4f9f966b40f5cd8bc9b0f947
b5d90dfb91526a92f22d5c2d5959cd747c2ea4bd
refs/heads/master
2021-11-23T07:48:01.412314
2021-11-10T01:03:58
2021-11-10T01:03:58
183,379,295
1
0
Apache-2.0
2019-05-06T14:31:52
2019-04-25T07:22:18
Python
UTF-8
Python
false
false
1,561
py
# -*- coding: UTF-8 -*- """ @author: hhyo @license: Apache Licence @file: schemasync.py @time: 2019/03/05 """ __author__ = 'hhyo' import shlex from sql.plugins.plugin import Plugin class SchemaSync(Plugin): def __init__(self): self.path = 'schemasync' self.required_args = [] self.disabl...
[ "rtttte@qq.com" ]
rtttte@qq.com
b0dad0912a44c1ff07ae343164c94deb41b18acf
bbf025a5f8596e5513bd723dc78aa36c46e2c51b
/array + Design/41 FindMissingPos.py
2aa6c7b477ac6fc50a9f28c39f663bba77b8d545
[]
no_license
AlanFermat/leetcode
6209bb5cf2d1b19e3fe7b619e1230f75bb0152ab
cacba4abaca9c4bad8e8d12526336115067dc6a0
refs/heads/master
2021-07-11T04:00:00.594820
2020-06-22T21:31:02
2020-06-22T21:31:02
142,341,558
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
class Solution(object): def firstMissingPositive(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 1 m = min(nums) M = max(nums) if M < 1 or m > 1: return 1 temp = list(range(1,M+1)) for ...
[ "zy19@rice.edu" ]
zy19@rice.edu
f145b2808be87627c1b6ab9f58a04dfa5a31d524
4a3e87c736b60b9e209095677a67aa96235331e0
/utilities/util.py
1a3d50af9bd5902ccf543c6f2e9664bdbb88ffad
[]
no_license
joselitan/ViasatWebPOM
6078389255abd2547d1e9dd7757ae3a8a31c7aae
2ffb669f48471a1b3821ae470075e180981bf662
refs/heads/master
2020-05-22T18:33:19.996159
2019-05-30T09:10:27
2019-05-30T09:27:11
186,474,325
0
0
null
null
null
null
UTF-8
Python
false
false
4,335
py
""" @package utilities Util class implementation All most commonly used utilities should be implemented in this class Example: name = self.util.getUniqueName() """ import time import traceback import random, string import utilities.custom_logger as cl import logging class Util(object): log = cl.customLogger...
[ "joselitan@gmail.com" ]
joselitan@gmail.com
1fed8ac776f807d122b9792c35a09d219c922bbe
d867242f0676ec23a85c52320fad586b9d7af9d5
/mysite/application/migrations/0035_auto_20190206_1556.py
87bafb2c09ac6561da0a1d7b76171bb18bb43be6
[]
no_license
RUI123/SR-Novel-Website
eedab866a871453e5b8039c7771196c3726f67ee
3f6204c5c7dd454bf7fb8e6944c008f2842ed0b0
refs/heads/master
2020-04-22T07:40:20.725636
2019-02-08T23:36:35
2019-02-08T23:36:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
# Generated by Django 2.1.5 on 2019-02-06 20:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('application', '0034_auto_20190206_1513'), ] operations = [ migrations.AlterField( model_name='book', name='bookImage...
[ "ruifeng.zhang1993@gmail.com" ]
ruifeng.zhang1993@gmail.com
cb2263c8fe218f6f5f158ea1d9013992b03d3e76
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/right_case.py
5e6a73c6b6a8142e8333f357b70921eab9ceefe4
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
#! /usr/bin/env python def person(str_arg): place(str_arg) print('good_company_or_thing') def place(str_arg): print(str_arg) if __name__ == '__main__': person('give_man_beneath_eye')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
4a3ccf037f048fbbeaf6108b50afcae33968e981
1a08284924a1eeacca6509eae29002c3e949e585
/script/huntapi/targets/getspawns.py
9f8298719527b1f6f1ebbbc23bb8a6e90d202db7
[]
no_license
Bemoliph/FFXIV-Hunts
e287f99c069bc441ba23c727501556fd3675ed34
204b8235f918be4bf307d7257798666244ae41ef
refs/heads/master
2021-05-02T13:06:57.696926
2015-09-24T18:40:04
2017-03-01T07:52:56
43,085,527
1
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
import cherrypy import time import huntdb import huntdocs import huntutils def getInputs(params): inputData = {} if "targetIDs" not in params or not params["targetIDs"]: raise ValueError("Missing mandatory input 'targetIDs'.") inputData["targetIDs"] = huntutils.parseCSV(int, "targetIDs", params.get("targetID...
[ "bemoliph@gmail.com" ]
bemoliph@gmail.com
662603bdfdfc3a1706b2e401d17b085001b55f4e
6ba9e90cfd2a3d03806f730fbbca574c2f8de9f8
/extensions/.stubs/clrclasses/__clrclasses__/System/Linq/__init__.py
46bee5eb923ad78e189b7f427e931782e762a617
[]
no_license
anshe80/Pycad
696932a2e1eb720fec83790966b64cc4ff821426
8c238b23269fe70279a88626e9776a9b1ae9b9a2
refs/heads/master
2023-01-29T11:17:33.286871
2020-12-12T05:33:34
2020-12-12T05:33:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
77,692
py
import __clrclasses__.System.Linq.Expressions as Expressions from __clrclasses__.System import Func as _n_0_t_0 from __clrclasses__.System import Array as _n_0_t_1 from __clrclasses__.System import Action as _n_0_t_2 from __clrclasses__.System import Enum as _n_0_t_3 from __clrclasses__.System import IComparable as _n_...
[ "34087817+xsfhlzh@users.noreply.github.com" ]
34087817+xsfhlzh@users.noreply.github.com
e6aaa9cba2548a1a3b04c60ff3a0b58587969d90
7b1e8e56b7ffca5601604fcec9d4e1cf6bf77631
/343.py
1abd97706899bfddd0c0dfaf69bdd5a476bb2d11
[]
no_license
sunyi1001/leetcode
fd834b60d4656534560bb4465bbe277c7d2819ac
426ce158c1fdc30147313200baee0493f41c8c96
refs/heads/master
2020-11-29T21:59:46.873438
2019-01-26T06:07:11
2019-01-26T06:07:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
class Solution: def integerBreak(self, n): """ :type n: int :rtype: int """ memo = [-1 for _ in range(n+1)] memo[1] = 1 for i in range(1, n+1): for j in range(1, i): #拆分成j i-j memo[i] = max(j*memo[i-j], j*(i-j), memo...
[ "wenjunlin@100tal.com" ]
wenjunlin@100tal.com
8c5fd690930389c4b4571406cc576e79ecebcd82
0440327cf15b19ec1ee0d70a030aac94e3aa4064
/PandaModel.py
c99723826e885ec00eb753a89c374f3bac3eab9f
[]
no_license
jaylion321/UITest
6cf7ec7d3e8b0a2bad1238277a982bb41cb9f300
b330ecec5544da802d78643f864e53c5b63d7218
refs/heads/master
2023-06-07T00:47:02.270795
2021-06-27T03:39:47
2021-06-27T03:39:47
289,720,076
0
0
null
null
null
null
UTF-8
Python
false
false
7,228
py
import os import pyqtgraph as pg import pandas as pd from pyqtgraph.Qt import QtGui, QtCore, QtWidgets from functools import partial class DataFrameModel(QtCore.QAbstractTableModel): DtypeRole = QtCore.Qt.UserRole + 1000 ValueRole = QtCore.Qt.UserRole + 1001 def __init__(self, df=pd.DataFrame(), parent...
[ "jaykeelung@gmail.com" ]
jaykeelung@gmail.com
43465af14d1a4c65e8c2260bcbed63781848f850
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2410/58575/300641.py
d1db791c85930be8170843531285fd8900b6b8d1
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
336
py
nums=list(map(int,input().split(","))) diff=int(input()) res={} for i in nums: if i not in res: res[i]="" if i-diff in res: res[i-diff]=i maxLength=1 for i in res: length=1 next=res[i] while next!="": next=res[next] length=length+1 maxLength=max(maxLength,length) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
5643a9ebd599e7db19f2826393c2a5714feed09b
d17fabdb0045a81234ebd23e802a9368ec150638
/bank_details/models.py
006e4becc4558b310be97d5c8f1c46b2af964c8c
[]
no_license
asperaa/bank-app-jwt
8d0d94903e153259779ce732d5a532e50cbb23cd
cd2b6597aba4d21f37dddd04f33f6e7377d3b2a1
refs/heads/master
2022-05-26T14:34:44.500669
2019-07-13T17:24:59
2019-07-13T17:24:59
195,416,035
0
0
null
2022-05-25T03:44:58
2019-07-05T13:42:19
TSQL
UTF-8
Python
false
false
824
py
from django.db import models class Banks(models.Model): name = models.CharField(max_length=49, blank=True, null=True) id = models.BigIntegerField(primary_key=True) class Meta: managed = False db_table = 'banks' class Branches(models.Model): ifsc = models.CharField(primary_key=True, ...
[ "adityaankur44@gmail.com" ]
adityaankur44@gmail.com
43eb6f73990c2320a544c9f99a6c739bad1e0a14
0cb3253af733efabd7e5d1b0214f34d4aa8052d5
/h_only_snli_kaushik.py
78fa9c19b5067802558e2ddea0382224f405808e
[]
no_license
anony-hons/nli-measure-artifact
ea26cd3bf6bd3e54fb6245f875dbaa740929f364
82ea0aed9f2b05c5bc306a1b2df3eb5a1448b2eb
refs/heads/master
2023-01-31T22:47:37.197655
2020-12-14T15:10:50
2020-12-14T15:10:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,106
py
from transformers import AlbertTokenizer, AlbertForSequenceClassification, AdamW, get_linear_schedule_with_warmup # from transformers import BertTokenizer, BertForSequenceClassification, AdamW, get_linear_schedule_with_warmup from torch.utils.data import TensorDataset, random_split from torch.utils.data import DataLoa...
[ "hoonhan.d@gmail.com" ]
hoonhan.d@gmail.com
9f595d6dec06c5be029b8edb0074663b91c4ce88
7f781c4739d75c302b8635ff953dff923b774dd1
/npcr_ScanNet.py
4475ebf96906536bc00b4a86ad29afbbb10c38b4
[ "MIT" ]
permissive
daipengwa/Neural-Point-Cloud-Rendering-via-Multi-Plane-Projection
68cdc53651236532851310ad755f945867a1a371
62c7930de0131842bb2e948f3d1fb1ce242a9f5a
refs/heads/master
2023-08-30T11:45:37.147671
2023-08-22T13:11:04
2023-08-22T13:11:04
253,273,490
50
8
null
null
null
null
UTF-8
Python
false
false
16,130
py
from network import * import cv2, os, time, math import glob import scipy.io as io from loss import * from utils import * is_training = False # if test, set this 'False' use_viewdirection = True # use view direction renew_input = True # optimize input point features. constant_initial = True # use constant value f...
[ "noreply@github.com" ]
daipengwa.noreply@github.com
6e2e04254d994780052dbc45ed6cd356c70d8c58
837ee4c2f5ee891ef00d74113ceffad4da3abe42
/mapapp/migrations/0004_remove_uploadfile_title.py
1f305e5a4de281862ce0bf597611532b2216b839
[]
no_license
Jayleh/map-lookup
21b3df6591af22824d21faff7f4b5d40c347b8c8
44d45a2c5c903478d3f50123642e5ba7f5629969
refs/heads/master
2022-12-11T01:32:56.705726
2018-11-08T00:55:46
2018-11-08T00:55:46
151,786,651
0
0
null
2022-12-08T01:15:06
2018-10-05T23:02:48
Python
UTF-8
Python
false
false
328
py
# Generated by Django 2.1.2 on 2018-10-29 21:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mapapp', '0003_uploadfile_title'), ] operations = [ migrations.RemoveField( model_name='uploadfile', name='title', )...
[ "jaylehyun@gmail.com" ]
jaylehyun@gmail.com
fcc52b34f0fbd988cb5dde877eff1c8999dac5ee
fc2d86ecfef05273b6195d8c4958dfda92c3f01c
/performance_engine/apis_performance/portfolio_performance_api.py
d84446794f218e2abbfaed4c53c3768e2310990c
[]
no_license
finbourne/performance-engine-poc
fd9356667143569474838fb3cfab96d4e5643600
b15d2ba0b604ddb94848d5c0353129c2b7229f1e
refs/heads/master
2023-05-27T11:24:26.780388
2021-01-11T09:54:03
2021-01-11T09:54:03
282,113,867
0
1
null
2023-05-23T00:12:18
2020-07-24T03:31:40
Python
UTF-8
Python
false
false
4,795
py
from typing import List import pandas as pd from pandas import Timestamp from config.config import global_config from ext_fields import get_ext_fields from fields import * from interfaces import IPerformanceSource, IBlockStore from lusid.utilities.api_client_factory import ApiClientFactory from misc import as_dates, ...
[ "mike.mcgarry@finbourne.com" ]
mike.mcgarry@finbourne.com
4580eb918c041d6559a72bd6cb82f8e259f870ab
b8f741bff5db708a57ffbf965ddff4c092a4e361
/Naive/naivebayes_implementation.py
52d88e008a3fbb3d04a7ed5cd980f31c33793045
[]
no_license
F2Binary/Py2Cube
23cdd32007110cfa047d39460bbca9d25b093153
1749a79656eacb863054a67dec8e35e0fca83ada
refs/heads/main
2023-01-20T12:25:01.029228
2020-11-22T03:04:44
2020-11-22T03:04:44
303,846,727
0
1
null
2020-11-08T21:46:42
2020-10-13T22:52:02
Python
UTF-8
Python
false
false
3,002
py
# Example of Naive Bayes implemented from Scratch in Python import csv import random import math def loadCsv(filename): lines = csv.reader(open(filename, "r")) dataset = list(lines) for i in range(len(dataset)): dataset[i] = [float(x) for x in dataset[i]] return dataset def splitDataset(dataset, splitRatio): t...
[ "pulok.rahman.630@my.csun.edu" ]
pulok.rahman.630@my.csun.edu
15480fc9e47afb8ebcb1c30d2da528ef59ae7608
c1abd1446948bef87d84711cf08b2188e63f492e
/week02/httpbin/httpbin/middlewares.py
114120fc0592104e3d319440891d38f62059d081
[]
no_license
zgzguangguang/Python001-class01
b969769c59ff98f18a96c31d72f1b08e70e564e0
9be1558b7fce17550975714c5457c3c20331bef0
refs/heads/master
2022-12-06T13:00:25.443049
2020-08-20T17:29:44
2020-08-20T17:29:44
273,928,284
0
0
null
2020-06-21T15:10:07
2020-06-21T15:10:07
null
UTF-8
Python
false
false
3,646
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class HttpbinSpiderMiddleware: # Not all methods need to be defined. If a method is not defined, # scrapy acts as...
[ "917044026@qq.com" ]
917044026@qq.com
c0eb0d6128c571616ee8a48c75b8f2e2d267fd5d
b2d2527a244111745f67a86942c5392bb58bbfbc
/3_Group_14_Assignment3/train_data/ngram.py
6464cad00705c7f20f0e712b1aec8ebd7abdb9a6
[]
no_license
puevigreven/AI-Assignments
804aaefe6817c0c6edc5a0da6bf5e5d153e847d0
efbc66071d9dbfde2243ae563bedc9e5b6896c3b
refs/heads/master
2021-07-19T15:40:01.894839
2017-10-26T20:16:14
2017-10-26T20:16:14
106,114,965
0
0
null
null
null
null
UTF-8
Python
false
false
3,684
py
import nltk from nltk import bigrams from nltk import trigrams def find_n_grams(source, des) : """ Change in .write function while dealing with Train data. """ with open(source, 'r') as myfile: text=myfile.read() # type(data) stopwords = ['all', 'just', 'being', 'over', 'through', 'your...
[ "pralay22@gmail.com" ]
pralay22@gmail.com
9a54788b5caeb44648f0e8a6f8fb8abe20320e0b
5cb920055a4ef6175690d991dc30ef6686366089
/price_web/venv/lib/python2.7/site-packages/twisted/internet/test/_posixifaces.py
21bcf310f0a21d49b43c87e3e33ec01a94088dc3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kewei/priceReminder
a3749a4a9d920fa4f0530d3d702b706be813f5a7
60c92bb0342d1342eec246c5a9783586a1a310ff
refs/heads/master
2023-06-22T04:02:01.084906
2023-06-18T21:15:13
2023-06-18T21:15:13
273,979,265
0
0
null
null
null
null
IBM852
Python
false
false
4,694
py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ POSIX implementation of local network interface enumeration. """ from __future__ import division, absolute_import import sys, socket from socket import AF_INET, AF_INET6, inet_ntop from ctypes import ( CDLL, POINTER, Structure, c_char_p...
[ "keweizhang@Keweis-MacBook-Pro.local" ]
keweizhang@Keweis-MacBook-Pro.local
2d6d525941776079e81b192d90d31b19bbcf6e04
ba0e07b34def26c37ee22b9dac1714867f001fa5
/azure-mgmt-compute/azure/mgmt/compute/models/diagnostics_profile.py
f205742d3fa9977c57f4c9f91a3e571a709552a7
[ "MIT" ]
permissive
CharaD7/azure-sdk-for-python
b11a08ac7d24a22a808a18203072b4c7bd264dfa
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
refs/heads/master
2023-05-12T12:34:26.172873
2016-10-26T21:35:20
2016-10-26T21:35:20
72,448,760
1
0
MIT
2023-05-04T17:15:01
2016-10-31T15:14:09
Python
UTF-8
Python
false
false
961
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
cd3c4cd0b6b89e0d6393d87753c76e9ef8b14bdb
7d14da6757137aec09801784ee197d677adcafbf
/tools/extract_messages.py
24d7d674ae49468c9cd170b5d6ac56e410095f34
[ "Apache-2.0" ]
permissive
Princessgladys/googleresourcefinder
6be3e0e341e3e9207fe0d5cb5b269739566c57f1
7715276b3c588f7c457de04944559052c8170f7e
refs/heads/master
2021-01-01T16:50:51.245416
2011-01-15T01:35:09
2011-01-15T01:35:09
32,346,537
0
0
null
null
null
null
UTF-8
Python
false
false
15,049
py
#!/usr/bin/python2.5 # Copyright 2010 Google Inc. # # 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 a...
[ "shakusa at google.com@localhost" ]
shakusa at google.com@localhost
eafd96dc5738d36286b9767c9ef1559f2c8d8d46
b1222a858bac5a667afb4f6c1ba48731b0210a0d
/bin/program.py
faf72c499980998f22e69039bc054cb0baa5551f
[]
no_license
xhsky/autodep
5ffbe490d8021bef4b7c79fbddc74910a307f18b
5bccd8ddef5ea3b970e8c5125de4789b8c8aaddf
refs/heads/master
2023-03-17T07:54:22.531503
2023-01-06T07:00:39
2023-01-06T07:00:39
233,543,213
0
1
null
null
null
null
UTF-8
Python
false
false
21,308
py
#!/opt/python3/bin/python3 # *-* coding:utf8 *-* # sky import sys, json, os, requests, yaml, tarfile, shutil from libs import common from libs.env import log_remote_level, program_sh_name, backup_dir, program_license_file, node_license_path, \ normal_code, error_code, activated_code, stopped_code, abnormal_cod...
[ "x_hsky@163.com" ]
x_hsky@163.com
9ea7ea63ba0540a2f1d76094330d865d36204722
8a102033a266d39128e4b64aa0780cf67055e196
/13909.py
4dc6a2bf1bca9a9ec819ec4c1e59c07ced214d34
[]
no_license
yuseungwoo/baekjoon
4dec0798b8689b9378121b9d178713c9cf14a53f
099031e2c4401e27edcdc05bd6c9e6a558b09bb9
refs/heads/master
2020-09-03T15:25:40.764723
2018-10-08T02:35:27
2018-10-08T02:35:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
# coding: utf-8 from math import ceil, sqrt n = int(input()) for i in range(ceil(sqrt(n))+1): if n < i **2: print(i-1) break elif n == i**2: print(i) break
[ "blacksangi14@naver.com" ]
blacksangi14@naver.com
2e2d116fe63a89f4b24ca97503f14dd0e02c6e65
3fc00c49c6b5a5d3edb4f5a97a86ecc8f59a3035
/projects2/test/test_reports.py
ef6eb55dc18e371258b1d8efe835a55c3ab3ed55
[]
no_license
yc-hu/dm_apps
9e640ef08da8ecefcd7008ee2d4f8f268ec9062e
483f855b19876fd60c0017a270df74e076aa0d8b
refs/heads/master
2023-04-07T13:13:55.999058
2021-04-12T10:19:21
2021-04-12T10:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
import os from django.test import TestCase, tag from django.conf import settings from .. import reports from ..test import FactoryFloor as FactoryFloor from ..test.common_tests import CommonProjectTest from shared_models import models as shared_models from shared_models.test.SharedModelsFactoryFloor import RegionFac...
[ "davjfish@gmail.com" ]
davjfish@gmail.com
67f203e8645cb88f51770274680e3692ac87e49a
80ade32ea5d0b50a8685b032dce7bb6e1c431283
/tests/components/onewire/const.py
777cb1f3d2531cb7c43fc2f50f1f3c76434f8d5a
[ "Apache-2.0" ]
permissive
mtandersson/home-assistant
c47df9021058db4c75e7689ac8687dc5eee87b39
3693b9bd040c98ea3476c1042cca8c653183c1f5
refs/heads/dev
2023-03-08T14:11:42.781466
2021-11-06T01:54:51
2021-11-06T01:54:51
160,022,263
0
0
Apache-2.0
2023-02-22T06:18:29
2018-12-02T07:02:41
Python
UTF-8
Python
false
false
40,114
py
"""Constants for 1-Wire integration.""" from pi1wire import InvalidCRCException, UnsupportResponseException from pyownet.protocol import Error as ProtocolError from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.components.onewire.const import ( DOMAIN, MANUFACT...
[ "noreply@github.com" ]
mtandersson.noreply@github.com
0ba8009534b8eefae9322169ff3b650414e29b1f
2652310cd1b78c3216eae399d1633e86e0c0a2e3
/nca_dj/wsgi.py
eb8cb6d8ba58b6b9c606b6864972c65291609a32
[]
no_license
synestematic/nca_kpi
5cd27351a7c7aea0177229928203b02ef5b309c1
a01058b8d148f99c0ecc6e53e967509eae390049
refs/heads/master
2021-01-01T04:41:16.193823
2017-07-21T08:49:05
2017-07-21T08:49:05
97,222,742
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
""" WSGI config for nca_dj project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
[ "federico.rizzo@auto1.com" ]
federico.rizzo@auto1.com
83994c38f9144ce347181331f846f2ff90ca9862
26b03e26df3189a1ab1fb56f75247446ee5959eb
/src/models/base_model.py
c6694860200255a1e4b827fb92e8b8f631e5c9e1
[ "MIT" ]
permissive
Delismachado/probable-journey
968598080e69f022b6badcaea479152f6063c27e
e9af22fe989795de3d277f5d9bcc90bc57cc0bf3
refs/heads/main
2023-03-15T23:38:16.388602
2021-03-02T12:43:20
2021-03-02T12:43:20
333,796,521
0
0
MIT
2021-03-02T12:43:21
2021-01-28T15:14:53
null
UTF-8
Python
false
false
220
py
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer Base = declarative_base() class BaseModel(Base): __abstract__ = True id = Column('id', Integer, primary_key=True)
[ "dam.machado1@gmail.com" ]
dam.machado1@gmail.com
0d95d67ad12cf5375764d59f2944b84232e97e92
d9a6267c609cefa1f44cc2c5c1d993a50ec313f5
/app.py
a082c924dfda5a8c6fbb833fe98a04aa917d5bc8
[]
no_license
AdityaRajPurohit/Co2-Emission-Model-tek-System-Hackathon
086947a08ec609d4d1b5cc1e4667ec2b3c607790
c820ff46c270712db99ebb7ac8b319826d107be8
refs/heads/master
2020-07-06T10:42:17.890653
2019-08-18T21:03:48
2019-08-18T21:03:48
202,990,431
1
0
null
2019-08-18T16:00:22
2019-08-18T10:42:35
Python
UTF-8
Python
false
false
1,711
py
import flask import pickle import pandas as pd # Use pickle to load in the pre-trained model with open(f'model/Co2_emission.pkl', 'rb') as f: model = pickle.load(f) # Initialise the Flask app app = flask.Flask(__name__, template_folder='templates') # Set up the main route @app.route('/', methods=['GET', 'POST'])...
[ "taxena111@gmail.com" ]
taxena111@gmail.com
8a30effc252cb2fa7110200228e5bb569ad7a0ed
77df4b9ad320d544c0e48e2176bcce302343f70d
/label_source_affection.py
35b17bd1c214e5de255f7e8f4b3515e60d8ac7af
[]
no_license
wangmk126978/e-bike-evaluator-2.0
ec805cb74849ddd0c0f9e251cddae367a87725db
a27f0708dcc2fbace253d3f60548919b915310a8
refs/heads/master
2020-08-07T21:32:35.574728
2019-10-08T11:29:20
2019-10-08T11:29:20
213,592,205
0
0
null
null
null
null
UTF-8
Python
false
false
10,848
py
import datetime import time import re import kangkang_tools_box as kk import bike_evaluator as be from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import mean_squared_error from sklearn.externals import joblib import matplotlib.pyplot as plt import numpy as np import random def dat...
[ "noreply@github.com" ]
wangmk126978.noreply@github.com
392bcb43413b4178823c67da1782ad5ac834ab96
5c9ec84d07158b2a4f3d9b35ca2989c1ab7812d7
/Natural Language Processing/Sentiment Scoring.py
ad9d3a0dfa852ab9c458bf741b9ff9e2d27ebef3
[]
no_license
ianmilanian/code-reference
4951924dea07151a5a25519df956110da6324da3
bb362cdb3d5538ca9308b117721f0778496f7c8c
refs/heads/master
2021-06-06T05:48:24.006163
2020-05-08T23:57:36
2020-05-08T23:57:36
136,516,518
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
import nltk import numpy as np from matplotlib import cm from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer %matplotlib inline # Simple Sentiment Scoring (English) neg_words = set(open("../data/negative.txt").read().split()) pos_words = set(open("../data/positive.txt").read().split()) tk_tweets = nl...
[ "noreply@github.com" ]
ianmilanian.noreply@github.com
0bcaa123e1cde841df3bc5bc99ca80ecd9c05025
cb476c5fdf7e7da1abb4229635a79ea88f465399
/cookieOper/cookieLogin.py
ee24c3ae2a9b7da7402120ccceb5c1dda28c1144
[]
no_license
ZHAISHENKING/spiderapp
cb66f68f3ec40f027d8cdbdd1ec357f25c668cda
51b09dd98e64e6d0612a313ff6c90f6fbd0f63dc
refs/heads/master
2022-12-15T00:30:44.168143
2018-07-17T13:42:57
2018-07-17T13:42:57
136,556,921
0
0
null
2022-07-06T19:49:39
2018-06-08T02:42:16
Python
UTF-8
Python
false
false
653
py
from http import cookiejar import requests from urllib import request url = 'http://zskin.xin/admin/' headers = { 'user-agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36', } def save_cookie(): cookie = cookiejar.MozillaCookieJar...
[ "18700790825@163.com" ]
18700790825@163.com
8c6ca185f0f3ad11b5cca0a9957aed3a5b5a0c8f
e708f81011d4a09a8ad1ee85f0c1872e1634f35c
/Testing/Python/EventCollectionTest.py
a03a6dcb3a2fd28e6f27fe2b2d67a8782b7f9d1e
[ "BSD-3-Clause" ]
permissive
allardhoeve/BTKCore
ef26f818acf06780c3e57147097f65f2d72c1c27
f6805699fe37f64ac6434a92736c6b59f0ea148d
refs/heads/master
2020-04-27T07:58:51.948297
2019-03-28T11:03:41
2019-03-28T11:03:41
174,155,043
0
1
NOASSERTION
2019-03-06T14:27:02
2019-03-06T13:55:59
C++
UTF-8
Python
false
false
20,173
py
import btk import unittest class EventCollectionTest(unittest.TestCase): def test_default_ctor(self): ec = btk.btkEventCollection() self.assertEqual(ec.GetItemNumber(), 0) def test_item_number(self): ec = btk.btkEventCollection() ec.SetItemNumber(5) self.assertE...
[ "arnaud.barre@93be6e1e-6fcc-11de-baec-69240fdc299a" ]
arnaud.barre@93be6e1e-6fcc-11de-baec-69240fdc299a
3baf54842e0c5280872ddaec253b4c17be062884
8e08f73e10cf82a127c2dfe119fc74fd5a339d08
/presentation/images/src/results.py
442fa00470985faca5bf3ea0d93c7ea83b2c243b
[]
no_license
ghaith-khlifi/master-thesis
39215489797a270edde348563856a06fee66626b
d4af74584afdf4de1f03a1b36bc9ae697ffc8380
refs/heads/master
2021-07-08T06:19:20.354057
2017-10-04T14:21:53
2017-10-04T14:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,948
py
algs = ('Random', 'Ours', 'DQN') y_pos = np.arange(len(algs)) colors = ['#1f77b4', '#203651', '#65829b'] # Max score score = [1, 17, 319] plt.subplot(2, 3, 1) plt.bar(y_pos, score, align='center', color=colors) plt.xticks(y_pos, algs) plt.title('Max score (Breakout)') plt.ylabel('Score') score = np.array([-20, -9, 19...
[ "daniele.grattarola@gmail.com" ]
daniele.grattarola@gmail.com
bdf69feb2d88899d24b253a4cf5590cdf2087959
cf430de98028e8dccd65f7e8f4b538e4cf1b253f
/textdisplay.py
50cade259b09216f8286204ccfd2dea305fc7e58
[]
no_license
malaika-chandler/triple-triad-python
1f45f9c144c5a1b2bc6eabce85515eaa278168c7
1576a8eb1de3174dfff73dba954bf9f498775661
refs/heads/master
2022-11-20T00:49:02.981046
2020-07-20T20:35:36
2020-07-20T20:35:36
263,379,952
0
0
null
null
null
null
UTF-8
Python
false
false
5,992
py
import colorama # Fore, Back, Style from components import Direction, Element class TripleTriadColors: COLOR_RESET = colorama.Style.RESET_ALL AGENT_COLORS = [ colorama.Fore.LIGHTBLUE_EX, colorama.Fore.LIGHTMAGENTA_EX ] COLOR_NEGATIVE = colorama.Fore.RED COLOR_POSITIVE = colorama.F...
[ "malaika.r.chandler@gmail.com" ]
malaika.r.chandler@gmail.com
e3849b5f37505cdd670245897a12b763f7587eba
b40d1a26ea04a19ec0da7bf55db84b7ee36cc898
/leetcode.com/python/209_Minimum_Size_Subarray_Sum.py
3a443b920ac3185bc68b968f19be59136835ae78
[ "MIT" ]
permissive
partho-maple/coding-interview-gym
5e8af7d404c28d4b9b52e5cffc540fd51d8025cf
20ae1a048eddbc9a32c819cf61258e2b57572f05
refs/heads/master
2022-09-11T16:36:01.702626
2022-03-14T08:39:47
2022-03-14T08:39:47
69,802,909
862
438
MIT
2022-08-18T06:42:46
2016-10-02T14:51:31
Python
UTF-8
Python
false
false
588
py
# Approach 1: Sliding window. O(n) class Solution(object): def minSubArrayLen(self, s, nums): """ :type s: int :type nums: List[int] :rtype: int """ left, right, length = 0, 0, float("inf") sLen = len(nums) currentSum = 0 while right < sLen: ...
[ "partho.biswas@aurea.com" ]
partho.biswas@aurea.com
098f70f31be722225d1a55db0edff291c05de633
8e7a2b9efbc0d25111f01f4cddb781961032685a
/python-1025/web/4_django/django_notes/p3/scripts/pushnotes
dcc2151431530fe49851c9e770836170c3858852
[]
no_license
Dituohgasirre/python
e044aa2e1fb2233b6ccd59701b834ab01e4e24c2
05f036d2723f75cd89e4412aaed7ee0ba5d3a502
refs/heads/master
2023-06-03T13:50:18.641433
2021-06-17T10:23:40
2021-06-17T10:23:40
366,942,423
0
0
null
null
null
null
UTF-8
Python
false
false
888
#!/home/joshua/.pyenv/versions/miniconda3/bin/python3 import pexpect import os import sys # dir是git仓库的本地目录的路径 dir = "/home/joshua/git-works/zelin-python-20171025" # 在这里写上登录git服务器的用户名和密码 user = "username" passwd = "password" os.chdir(dir) # 这里写入需要执行的git操作 git_cmd = ['push', 'origin', 'master'] # 这是git命令的路径 git_exe...
[ "linfeiji4729289@126.com" ]
linfeiji4729289@126.com
cddfea3f4b5aed63838d631daa59b82101a06236
752ebc9cd5cf80e1036e4e619a637c9639b0d9b5
/src_code/partial_infection.py
f96420f975cfc63fe92e46ced6c2dea14010f957
[]
no_license
nrkfeller/user_infection
41faa60882a7c7f26651e1f86d4478a266d4c525
f0ec156863585bbc47d2625d71b6612f4938b887
refs/heads/master
2020-12-27T02:00:36.128457
2015-11-10T20:20:31
2015-11-10T20:20:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,917
py
from userclass import User from py2neo import Node, Relationship, Path, Rev from py2neo import authenticate, Graph from itertools import * import requests import numpy as np import unicodedata import numpy as np import time import datetime import random import names import matplotlib.pyplot as plt import networkx as nx...
[ "nrkfeller@gmail.com" ]
nrkfeller@gmail.com
64455813715717669daa0ecadd9ed8c20051e493
f0b33d42741f3c470cc7f616c70a4b10a73fc012
/exps/resnet_steering_single_channel.py
ebca5efe05cb1a1c646e4a257e3a323c0fc671fa
[ "MIT" ]
permissive
duguyue100/ddd20-itsc20
1e51a7a76fe1f2759746814ae58f4e1e21c0c4e6
667bb5e702a06cfff30b20de669697f3271baf04
refs/heads/master
2021-09-17T06:34:17.545026
2018-06-28T16:35:39
2018-06-28T16:35:39
114,002,116
0
0
null
null
null
null
UTF-8
Python
false
false
4,634
py
"""ResNets for Steering Prediction. Author: Yuhuang Hu Email : duguyue100@gmail.com """ from __future__ import print_function import os from sacred import Experiment import numpy as np from keras.utils.vis_utils import plot_model from keras import optimizers from keras.callbacks import ModelCheckpoint from keras.cal...
[ "duguyue100@gmail.com" ]
duguyue100@gmail.com
4e5d0707e8f7fb6e64cd93da40d40126021d948b
2281d52ccd9a7cb8217653ac3461a80eccdcbe9f
/Course_1_Algorithms/Week4_Divide&Conquer/6_closest_points/closest.py
41733589c0639db1dee296387c76ee6f59fb5aa2
[]
no_license
MadLily/Data-Structures-and-Algorithms
fc58242a7337969540df8dedd3d1624027aa8147
fd3fb42cd9aa118c2cca291b177ccbd933fd352a
refs/heads/master
2020-03-24T22:25:28.580023
2019-03-23T20:55:53
2019-03-23T20:55:53
143,084,756
0
0
null
null
null
null
UTF-8
Python
false
false
1,547
py
#Uses python3 import sys import math def minimum_distance(x, y): #write your code here if len(x) <=1: return 10 ** 18 elif len(x) ==2: return math.hypot(x[0]-x[1],y[0]-y[1]) x_index = sorted(range(len(x)), key=lambda k: x[k]) left_x = [x[i] for i in x_index[:len(x_index)//2]] ...
[ "jz2673@columbia.edu" ]
jz2673@columbia.edu
e43acbf5310c6df4b2af938645f83609cc1ff220
c0232a6c46fcca05a2e4048ec2128dd960077c75
/weather_data_importer.py
1ca9ed82c50bbf507f5bed9364e39446f8ef6644
[]
no_license
srdicmonika/moni-example-projects
7eaa0a9d7cbb72390b8f5f4ec5693c1e0bef85a1
9a17ba0d051efb3563b854c47b6875500605d583
refs/heads/main
2023-07-02T08:51:31.621431
2021-07-22T16:34:56
2021-07-22T16:34:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,835
py
import re import time import datetime import math import sys import csv import itertools # Stations File Column Indexes STATION_ID = 0 COUNTRY = 8 # Data File Column Indexes STATION_ID = 0 DATE = 2 TEMPERATURE = 3 # Natural Distaster Data Column Indexes ND_COUNTRY = 0 ND_START_DATE = 1 ND_END_DAT...
[ "noreply@github.com" ]
srdicmonika.noreply@github.com
adef156d59f43b57aaf80be71ca72c2847f7c39e
e0452a5aacba0b5d2a840dbd4fcd080d076c24b1
/postprocessor/zigzag.py
252f41becad0c1cfa6dc3ac34c614420227b1f92
[ "BSD-3-Clause" ]
permissive
tapeguy/heekscnc
12d5d614c7866980204decea5e258369b2346c6a
bb245e8c451ff1c92df932b722b88e98976a6b67
refs/heads/master
2021-01-22T17:04:03.489080
2016-05-16T18:03:08
2016-05-16T18:03:08
14,959,023
0
0
null
null
null
null
UTF-8
Python
false
false
6,589
py
import area import math curve_list_for_zigs = [] rightward_for_zigs = True sin_angle_for_zigs = 0.0 cos_angle_for_zigs = 1.0 sin_minus_angle_for_zigs = 0.0 cos_minus_angle_for_zigs = 1.0 one_over_units = 1.0 def zigzag(a, stepover, zig_unidirectional, zig_angle): if a.num_curves() == 0: return globa...
[ "benjamin.shern@gmail.com" ]
benjamin.shern@gmail.com
29417592e974bfeb3e7b88da3f6fcdc3e7ad00ab
9af65e8d462e9aa564d3a7770d5b45903dc90ff5
/2019/python/test_day4.py
2f12f83bf2830b3b7d6ffa575b542b3b4b4ea560
[]
no_license
kohrongying/aoc
ae3e6a67e4a72573231355fcb3d058b175fc53df
3d47ab85402ac14e337d304cff909139967cb2c3
refs/heads/master
2020-09-24T04:01:28.938880
2019-12-17T06:40:39
2019-12-17T06:40:39
225,657,321
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
from unittest import TestCase, main from day4 import is_increasing, has_adjacent, custom_rle class TestJoke(TestCase): def test_increasing(self): self.assertEqual(is_increasing(123), True) self.assertEqual(is_increasing(1223), True) self.assertEqual(is_increasing(123123), False) def test_adjacent(self...
[ "kohrongying@gmail.com" ]
kohrongying@gmail.com
3ba3fc6b740595d6a0d0994b97374f1c09c62461
191c6ae5b450bf2e3f9d45fb79dc1b053f05d14f
/courses/migrations/0004_answer.py
03ab52fcc960a4f6ee3bbf5b64c1931eba5a057d
[]
no_license
Kennedy-Njeri/Django-Quiz
ef45fc259c5b9591ec366d02268c49ec46e9608c
581e92381cb857f4768e03c0409c3fa7b3dbce9a
refs/heads/master
2020-07-15T09:21:01.386763
2019-09-04T14:39:50
2019-09-04T14:39:50
205,529,827
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
# Generated by Django 2.2.4 on 2019-08-31 18:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('courses', '0003_auto_20190831_1811'), ] operations = [ migrations.CreateModel( name='Answer', ...
[ "mistakenz123@gmail.com" ]
mistakenz123@gmail.com
49637073daf4756247f9b050cd704c69053e1881
649db74450df0cd59a862aae7041a5907d7df7cf
/Python/snake.py
f2ce6ee8410f07bfa07a07e794220c8f86cf9772
[]
no_license
antoniochandra/26415171
53d65572a402890f44c0f090fba0e77c3c35e633
39e08a9b177c2e06533e2910629ae95361579b25
refs/heads/master
2020-07-13T12:52:02.529978
2016-12-04T12:58:40
2016-12-04T12:58:40
67,911,500
0
0
null
null
null
null
UTF-8
Python
false
false
3,803
py
# SNAKES GAME # Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting import curses import os from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN from random import randint curses.initscr() win = curses.newwin(20, 60, 0, 0) win.keypad(1) curses.noecho() curses.curs_set(0) win.border(0) ...
[ "m26415171@john.petra.ac.id" ]
m26415171@john.petra.ac.id
f4686b30cfc930e86244665f24493a57d6e99eaf
ea447427e8d43f58b69fc74b315935ddfb0e8cda
/OpenMarketScrapper/venv/Scripts/tkconch-script.py
b6f32eaad71e31b04aac853f06709fed90d7d8dd
[]
no_license
nearly-0/OpenMarketScrapper
072e7a6a35904dd0d3b0dafc41ca753c55c4a839
6cf58fe14c6ebfd2258befb84e734238b0e23fa7
refs/heads/master
2021-10-10T18:18:32.921888
2019-01-15T05:47:25
2019-01-15T05:47:25
null
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
463
py
#!C:\Users\±èÁØ¿µ\Documents\GitHub\ProductScrapper\ProductScrapper\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==18.9.0','console_scripts','tkconch' __requires__ = 'Twisted==18.9.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-...
[ "skywhale616@gmail.com" ]
skywhale616@gmail.com
a9bd31ce5254b977d52de49fc6a136c352b86f5e
afbe0e30e3572257c05b31f5c9b7fea747789e60
/src/com/jalasoft/ShoppingCart/controller/controller.py
a2e47964af3dc7c7ae55abf7d888c5fb5ceb33a9
[]
no_license
magnethus/Test-AL
f9d6864595114124406e11fe94af0d176a822f88
3189a27f1eac6a44890e975a1f5c7073d87456ee
refs/heads/master
2020-04-25T16:42:31.670774
2019-04-09T14:42:12
2019-04-09T14:42:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,509
py
from PyQt5.QtCore import QRegExp from PyQt5.QtGui import QRegExpValidator from PyQt5.QtWidgets import QTableWidgetItem, QLineEdit from src.com.jalasoft.ShoppingCart.model.product import Product from src.com.jalasoft.ShoppingCart.view.product_insert_view import ProductInsertView from src.com.jalasoft.ShoppingCart.view....
[ "Alex.Alcala@jalasoft.com" ]
Alex.Alcala@jalasoft.com
18b5385a281a808905e089fee99a4dcfcb07f437
8b2d385535eeb29d14d2f9a8ba643b576b59713d
/objects/Car.py
da2ce19a0f019af640ea728293eb10adf329dd6b
[]
no_license
asdail/course
39571a928f1c6efa3ed17207d41c12baa16a376f
9786f4818cadb5a6fa85384221b9819de75d5146
refs/heads/master
2023-01-14T12:08:28.166959
2020-11-24T13:26:06
2020-11-24T13:26:06
314,238,658
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
class Car: def beep(self): print("I am a new car!", self.id, self.type, self.color, self.km, self.feul, self.tank) def add_feul(self,feul): self.feul+=feul if self.feul>self.tank: self.feul=self.tank def need_feul(self): if self.feul<5: return True
[ "amitjonas1@gmail.com" ]
amitjonas1@gmail.com
1d54b8861d49fbfe8a7fa56f56c7a3cae0178bec
3183f9826316dcafaaa202ba6af1927d0cd6b7b0
/advent-of-code-2020/12/main.py
48a8f0ceb4f22851170b8499ffef956f8bd24cbe
[]
no_license
jensecj/code-challenges
26a877376c6ff76f710af4dbb33a37b3f908fa84
d5b577d246b660a8cdbca6be877b11438f0d890b
refs/heads/master
2022-12-11T08:11:34.468236
2022-12-07T20:27:59
2022-12-07T20:27:59
120,000,735
0
0
null
null
null
null
UTF-8
Python
false
false
5,145
py
# tags: simulation, complex numbers from typing import List, Tuple from compytetive.algorithms import manhatten_dist from compytetive.util import benchmark Point = Tuple[int, int] Command = Tuple[str, int] Program = List[Command] Direction = str DIRECTIONS = ["N", "E", "S", "W"] def read_input(filename): wit...
[ "jens@subst.net" ]
jens@subst.net
b00e38ba0f949506a9f7dbd0726fd6f32fd254d8
9229cdfbca4c4d56da94c6a8e0848185f9eb36bc
/client.py
c520126fe5d568fc24ce936d64aa48651d5f729e
[]
no_license
huuhoa020899/NeuralNetwork
3028eb0b47d5212044b2d54c51907d976c6621b1
3ad14e4b67ea9b81d383adfb817b25c9625b2889
refs/heads/master
2022-07-31T20:51:37.497795
2020-05-26T13:03:16
2020-05-26T13:03:16
264,621,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
import time, socket, sys print('Client Server...') time.sleep(1) #Get the hostname, IP Address from socket and set Port soc = socket.socket() shost = socket.gethostname() ip = socket.gethostbyname(shost) #get information to connect with the server print(shost, '({})'.format(ip)) server_host = input('Enter server\'s IP ...
[ "=phamhuuhoa020899@gmail.com" ]
=phamhuuhoa020899@gmail.com
2ecfed614c5914948dd73bcc3a7796c56670047a
a309c3b042c4234410c2784996e6d7766c7d7c2e
/backend/rxrelease/rxbackend/rxdod/urls.py
75dbe7d1d3853419c4bd19cf2803ac684e7bddce
[]
no_license
PatrickEkkel/RxRelease
aaa9915813541ecf0284dacee797e7f5a6a52bdd
7936fe00dace56a962cfc4f14a254e5f40c00325
refs/heads/develop
2021-07-15T05:26:20.225891
2021-06-21T22:49:27
2021-06-21T22:49:27
88,879,337
1
0
null
2020-08-31T22:59:18
2017-04-20T15:08:27
Python
UTF-8
Python
false
false
801
py
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from .views import demonondemanduserviews urlpatterns = [ url(r'^users/$', demonondemanduserviews.CreateView.as_view(), name="create"), url(r'^users/(?P<pk>[0-9]+)/$', demonondemanduserviews.DetailsView.as_view(), n...
[ "patrick.ekkel@topicus.nl" ]
patrick.ekkel@topicus.nl
deaaa90cbb8570dcb3502fc256181ae4b0976e2d
5a2b87bdd44c0aef387fb3b6ec8ad17f018db13a
/accounts/views.py
e34ffbb84f74e8d2e18ae9465d4d5ac81402ac71
[]
no_license
yasser-aboelgheit/Notification_system
f2da5e49b4c95f56aed6c334a38a14b6ad91dccf
3547ce47711b4e9463477b5c41b9ea7c8b7fae82
refs/heads/main
2023-03-03T02:36:23.180744
2021-02-07T13:42:14
2021-02-07T13:42:14
334,776,752
0
0
null
null
null
null
UTF-8
Python
false
false
2,295
py
from rest_framework import generics from .models import Passenger from .serializers import PassengerSerializer, PassengerRegisterSerializer from rest_framework.response import Response from django.contrib.auth.models import User from rest_framework.permissions import IsAuthenticated from .celery_tasks import send_sms_o...
[ "yasseraboelgheit@weaccept.co" ]
yasseraboelgheit@weaccept.co
ebcb7b289614406cdaaf86fa2544d9d183c092e8
55a09afeb6335997f6c7daefb5007b3277a07384
/pyhanko/pdf_utils/font.py
9a55953c591dab7c8daf963ceb4bbbd53e74ad36
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
ooguz/pyHanko
c3d9acdc3b81eaea64c9cc57b954989c440efc57
f1490d9ecaa74ce600e464a27807290d486acc6f
refs/heads/master
2023-03-05T07:57:14.894643
2021-02-14T11:01:16
2021-02-14T11:01:16
320,052,372
0
0
MIT
2021-02-15T17:07:17
2020-12-09T19:01:08
null
UTF-8
Python
false
false
15,930
py
"""Basic support for font handling & subsetting. This module relies on `fontTools <https://pypi.org/project/fonttools/>`_ for OTF parsing and subsetting. .. warning :: If/when support is added for more advanced typographical features, the general :class:`FontEngine` interface might change. """ import loggin...
[ "matthias@mvalvekens.be" ]
matthias@mvalvekens.be
390402dcfce1cffb758905473cc6efe159b95d2e
13f5984be7be77852e4de29ab98d5494a7fc6767
/剑指Offer/41_和为s的两个数字.py
838c15c3b4f0ac68070ec900dc0466481ba70b9b
[]
no_license
YuanXianguo/Python-Interview-Master
4252514763fc3f563d9b94e751aa873de1719f91
2f73786e8c51dbd248341559de171e18f67f9bf2
refs/heads/master
2020-11-26T18:14:50.190812
2019-12-20T02:18:03
2019-12-20T02:18:03
229,169,825
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
""" 题目:输入一个递增排序的数组和一个数字S,在数组中查找两个数,使得他们的和正好是S, 如果有多对数字的和等于S,输出两个数的乘积最小的。 """ def find_s(array, s): if not array or not len(array) or array[-1] + array[-2] < s: return [] left = 0 right = len(array) - 1 while left <= right: if array[left] + array[right] < s: left += 1 ...
[ "736913978@qq.com" ]
736913978@qq.com
10b2c1cb78ae1a926458812fc5718cf5094dd82a
7c74e5c0d6ceb2f1acbfbaa3ecab8bcd1a690d64
/erpnext/patches/index_patch.py
3ef8ec367aebdf4febf24285bb0692599e4fec9d
[]
no_license
Vichagserp/cimworks
2b7ce96fa3218a472c77bc8fdd1af2954e0e8b0e
f09d5e51aad870f2f0aeee2a0a02bc12ce435ded
refs/heads/master
2021-01-15T11:08:45.080328
2012-10-29T15:02:23
2012-10-29T15:02:23
49,730,358
0
0
null
2016-01-15T16:20:37
2016-01-15T16:20:37
null
UTF-8
Python
false
false
12,749
py
""" This patch removes wrong indexs and add proper indexes in tables """ import webnotes sql = webnotes.conn.sql from webnotes.utils import cint, cstr def create_proper_index(): from webnotes.modules.export_module import export_to_files dt_index_fields={ 'Purchase Receipt Detail': ['prevdoc_docname', 'item_...
[ "dalal.saumil@gmail.com" ]
dalal.saumil@gmail.com
01e9f2deb1a6b8af8b0a1fd9d82d124d85aac811
fbc390bb6e0a6bfd93b7013218ced5593e370b7b
/stfu-and-eat-env/bin/easy_install-3.8
0a534e1c637b143a08719f6727000ed7c8555cf0
[]
no_license
MariahLightfoot/stfu-and-eat
00017e22c520baf34af2f754ac51b3dad0b5b868
979db15b45ae2bc8d89a48cb5ce6240e669772b0
refs/heads/master
2022-07-10T05:39:44.687958
2020-05-19T22:34:35
2020-05-19T22:34:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
281
8
#!/Users/mariahlightfoot/stfu-and-eat/stfu-and-eat-env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mariahlightfoot@Mariahs-MacBook-Pro.local" ]
mariahlightfoot@Mariahs-MacBook-Pro.local
e042052d13443c18324deaccfa46e2cedbc3d873
3c01bd8ea1ac70b363c80eb78477f38961950278
/2016/10.11 - ProTalk - Pradeep Gowda/example.py
cf6ba1db95df0a753651affeeaa823516db9770c
[]
no_license
indypy/IndyPy-Presentations
6f3ec40fc39f0f34b576abd302751c8839bb2e55
f444396fc5920d59dc0bfe27e2f122dbb4ef4f1b
refs/heads/master
2021-06-07T08:56:46.673577
2020-06-29T15:06:47
2020-06-29T15:06:47
1,842,363
13
4
null
null
null
null
UTF-8
Python
false
false
1,040
py
#!/usr/bin/env python import threading import logging import time from kafka import KafkaConsumer, KafkaProducer class Producer(threading.Thread): daemon = True def run(self): producer = KafkaProducer(bootstrap_servers='localhost:9092') while True: producer.send('my-topic', b"te...
[ "pradeep@btbytes.com" ]
pradeep@btbytes.com
211a514ae0cd16142c13273742be423c3623e820
dccf277c0168092a1c0786d75c3ae52f4aafd4e9
/Report/Final Project Report/Data/Plot/Eg/tips.py
7c8ea4c14ad3deeefd998c6937f94cf27c6afa84
[]
no_license
qifan-sailboat/SI140_Final_Project
afa21e673a76b5d9d67fe1261f129f73a7b53718
a45b2925247facd768e69b97bb4b0249646bea82
refs/heads/master
2022-08-22T23:29:37.580371
2018-01-19T08:36:15
2018-01-19T08:36:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
# encoding:utf-8 import seaborn as sns import pandas as pd tips = pd.read_csv("tips.csv") print(tips) sns.jointplot("total_bill", "tip", tips, kind='reg') sns.plt.show() sns.plt.close() # 用于清空之前的图表。若不清空,那么下一个图表会残留上一个图表的点 sns.lmplot("total_bill", "tip", tips, col="smoker") sns.plt.show()
[ "zhangqf@shanghaitech.edu.cn" ]
zhangqf@shanghaitech.edu.cn
3c748798e87f381daf193b7b8b054c1a27964a88
f6593c43817dab2031bafa6cfbfce77406efc042
/openshift/pman-swift-publisher/put_data.py
f3c2a2e7b08b4a408f2e770fc467010155039489
[ "MIT" ]
permissive
awalkaradi95/pman
b3a83c9e8b925695b74615047710442e6cf359f1
e30c76116214dec11b413c5ee5a0b428f52577dd
refs/heads/master
2021-08-24T04:50:53.789022
2017-12-08T03:35:15
2017-12-08T03:35:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,667
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Takes the output data in the share directory and pushes it into Swift SWIFT_KEY enviornment variable to be passed by the template """ import os import zipfile import configparser from keystoneauth1.identity import v3 from keystoneauth1 import session from swiftclient ...
[ "awalkaradi95@ccs.neu.edu" ]
awalkaradi95@ccs.neu.edu
6a6428d77fcc374be4f72b9709f9312b9604fcfc
8e0c861a33e8dd50bbbec5ceef116659aebe7def
/main.py
07e3e896401c317495a0a9c6e6105240a81bddda
[]
no_license
karthikm-0/Pong
46938bb5e87a304d4342b0ec80f883cf5f366a16
a155578a181d3843fd876e352bb21e7691f8f618
refs/heads/master
2022-12-03T04:47:19.123780
2020-08-22T06:45:50
2020-08-22T06:45:50
289,165,183
0
0
null
null
null
null
UTF-8
Python
false
false
4,115
py
from turtle import * from random import randint, choice # Create a player with their paddle and listen for inputs class Player: # How much to move the paddle when user presses the corresponding key move_offset = 15 def __init__(self, speed, shape, color, initial_pos_x, initial_pos_y, up_key, down_key): # C...
[ "karthik.mahadevan@ucalgary.ca" ]
karthik.mahadevan@ucalgary.ca
2ab1fbd83a55536dacf6ea2fa4eca99c270881fa
1d27decdb5207616837f03a36741947a46e8852d
/py/hscCoadd/batchSky.py
6b763392494d0af9d680a7c2a596d2b4578c694b
[]
no_license
dr-guangtou/hs_hsc
12d7a83ee9898f6d9fb5cf5dc85fa682d50578e8
865abc0ba5337d3a085efa99b87ebfcfdd9710af
refs/heads/master
2021-01-17T03:20:03.900050
2019-06-19T05:26:34
2019-06-19T05:26:34
23,053,990
0
2
null
2015-12-02T15:52:47
2014-08-18T00:47:48
Python
UTF-8
Python
false
false
9,345
py
#!/usr/bin/env python # encoding: utf-8 """Estimate background for HSC cutouts.""" from __future__ import (division, print_function) import os import glob import fcntl import logging import argparse import warnings import numpy as np from astropy.io import fits import coaddCutoutSky as ccs COM = '#' * 100 SEP = '...
[ "dr.guangtou@gmail.com" ]
dr.guangtou@gmail.com
0717fda518f3d4d781e8f3d72de4c8c29f9b556a
3e4bd306ae5b9d7251010c1269c291ae131f109d
/mail.py
aa23bf2094c889658a1b3ef940334bc34125d072
[]
no_license
szatkus/yask
425352fc67af8104f2292f3312d1f02fde753cdf
64d6429f6f430666ddcc0e1593bb27ceff53e7ca
refs/heads/master
2021-01-21T13:11:48.654401
2016-04-22T21:54:50
2016-04-22T21:54:50
55,621,552
1
2
null
2016-04-17T22:38:36
2016-04-06T16:18:05
CSS
UTF-8
Python
false
false
539
py
from email.mime.text import MIMEText from flask import render_template from smtplib import SMTP import config def send_mail(template_name, subject, recipent, **context): body = render_template(template_name, **context) message = MIMEText(body, 'html') message['Subject'] = subject message['To'] = recip...
[ "szatkus@gmail.com" ]
szatkus@gmail.com
352c0988abe8b7b6d3715ce5259f4901c44b007a
1b5ca01937b839301651cb3b4f7a8a46548f20d2
/Django Template/Template/Template/wsgi.py
b1f3eaef44379173f394c7c5a8286c83ce5db44b
[]
no_license
kevalvc/Django-Tutorial
c0be4dc52f0f060fdc82c8ad50146b70f983699f
3881887d2a54108a77ecd192f00acedf8beb3681
refs/heads/master
2020-04-18T22:34:48.514536
2019-04-21T15:26:42
2019-04-21T15:26:42
167,797,833
1
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for Template project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "chavda.keval97@gmail.com" ]
chavda.keval97@gmail.com
77c3594b66167d077b8340e5b8996120dbbc0751
6a4b20e303aa97c0ad1834e189d63c66e67f7c64
/action-alsa-volume.py
8c93c044e16a2119351f8c5769c00d383c17f997
[ "MIT" ]
permissive
gidocarper/snips-volume-1
641544d9490292fc9f7c20532aabf219c526c49e
f71ba430463d591969eeb7ee8e4bd950579bcb4a
refs/heads/master
2020-08-22T09:00:56.908359
2019-10-05T11:24:21
2019-10-05T11:24:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,046
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from snipsTools import SnipsConfigParser from hermes_python.hermes import Hermes from hermes_python.ontology import * import io import socket import random from subprocess import call CONFIG_INI = "config.ini" # If this skill is supposed to run on the satellite, # pleas...
[ "jonathandavies97@gmail.com" ]
jonathandavies97@gmail.com
c5d07fd2aa4808c4d1c07db78de1188eb130b079
093f0e76fbec79741b21c4ae6a2c426c8d1be5c5
/2_ sheet.py
5ee4db11dbf5833b2ff8912a414d44fec2b59865
[]
no_license
sc2bat/rpa-excel
e3192a888afc3728a0127c3f87f014b3167aa84d
ef5d8c1c93dcf8d806b45e9b1f4a474bd1d392e0
refs/heads/main
2023-07-03T10:20:43.885572
2021-08-15T11:42:37
2021-08-15T11:42:37
394,073,311
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
# 시트별로 관리하는 경우 from openpyxl import Workbook wb = Workbook() # wb.active ws = wb.create_sheet() # 새로운 sheet 기본 이름으로 생성 ws.title = "MySheet" # sheet 이름 변경 ws.sheet_properties.tabColor = "0000cc" # RGB 형태로 값을 넣어주면 # Google search 'RGB' # https://www.w3schools.com/colors/colors_rgb.asp ws1 = wb.create_sheet(...
[ "noreply@github.com" ]
sc2bat.noreply@github.com
86a469d1d858774538e63e7f77ac05194420fe71
ea8df164fbd945a8ff7d545f51a54d7102bf2afc
/app/auth/forms.py
543fbeae3591e7b48fc5f99c6d3367b87a5ffd43
[]
no_license
Grievi/upgraded-train
310a9153debeff8fe49ed0c6d3de0f73e37eaeb8
b6c22ee57c000daf616bafc523f7d4e97b60fd99
refs/heads/master
2023-08-11T05:18:15.791221
2021-09-22T10:52:18
2021-09-22T10:52:18
407,543,699
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
from flask_wtf import FlaskForm from wtforms import StringField,PasswordField,SubmitField from wtforms.validators import Required,Email,EqualTo from ..models import User from wtforms import ValidationError from wtforms import StringField,PasswordField,BooleanField,SubmitField class RegistrationForm(FlaskForm): ema...
[ "grievin.okumu@student.moringaschool.com" ]
grievin.okumu@student.moringaschool.com
a88606b2fb5d2e237d8dbca360bcdf1e252ee533
82bc8f17bf77ff80d50b8018f75f9bb5baf4319a
/Kyphosis Dataset/kyphosis.py
76c7e7443fc9cbc1e7aa8ef677f0a84c002920f1
[]
no_license
kartikJ-9/Kaggle-Submissions
8669207ba630ab981822b79317c2a31034efb0f7
6bc87453dddb4dd0c53e80926d1f7af3b21c2ed0
refs/heads/master
2020-06-06T10:55:01.079516
2019-06-19T12:54:17
2019-06-19T12:54:17
192,721,119
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns df = pd.read_csv("../input/kyphosis.csv") df.head() df.info() sns.pairplot(df,hue = 'Kyphosis') from sklearn.model_selection import train_test_split X = df.drop('Kyphosis',axis = 1) y = df['Kyphosis'] X_train,...
[ "noreply@github.com" ]
kartikJ-9.noreply@github.com
0dc1b58633995ce70c987ad0742efd277a281104
bee303a11857c62be71d2ced72e2622e3af6f5b4
/practice/kansu1.py
5cf2297e6604e395ae3df54da18796247a149ada
[]
no_license
MinenoLab/ai-iotSeminar3
c5e455f200866b8aef6a957c87e9ff82019acff9
485331cd41a50bed5a1e2a191d5d03f99925fc44
refs/heads/master
2020-04-22T00:33:46.032527
2019-03-01T10:40:48
2019-03-01T10:40:48
169,984,344
0
0
null
2019-02-22T08:28:05
2019-02-10T14:03:07
Python
UTF-8
Python
false
false
74
py
def sample(a,b): c = a + b return c d = sample(1,2) print(d)
[ "supo.nyiyan437@gmail.com" ]
supo.nyiyan437@gmail.com
40c17a94c04fa69086b016caaa0cf22d7d962c0f
a94f779b762463d80a775db7efc08b47ff60aac1
/days/5/testing/test2.py
bb4afc3bfcfd1149cf04aaea37a6f59ac04b17c5
[]
no_license
sivajipr/python-course
602a99d941dc6df1dabb17dfc284dcffd140e003
176c04426f0cbef1c4beb888300dd911eb708b97
refs/heads/master
2016-09-05T09:29:30.649858
2014-09-19T08:18:36
2014-09-19T08:18:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from nose.tools import * def fact(n): if (n == 0): return 1 else: return n * fact(n - 1) def test_fact(): assert_equal(fact(0), 1) assert_equal(fact(1), 1) assert_equal(fact(2), 2) assert_equal(fact(5), 120) def fun(): assert True
[ "sivajipoonithara@gmail.com" ]
sivajipoonithara@gmail.com
69168380efb9d8171f25fff746ebc97b45061216
d8466eb8b2c214e887f306fc9744d87cad4f98d9
/functional_tests/base.py
a70d9e0c4ad9322ab8475d4248e3bdec4e22e45a
[]
no_license
evgnysmirnov/TDDPython
fabbb4fcc272cef5c055ad91612cd4682e7dcd0c
5afdb5d2635c7610b1dd52126d7800d1aae31d46
refs/heads/master
2020-08-31T15:51:48.558097
2019-10-04T10:25:56
2019-10-04T10:25:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
import os from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium import webdriver from selenium.common.exceptions import WebDriverException import time MAX_WAIT = 10 class FunctionalTest(StaticLiveServerTestCase): def setUp(self): self.browser = webdriver.Chrome() ...
[ "objectisliper@gmail.com" ]
objectisliper@gmail.com
e62c2b7a3fa4fa4ac700ab6e41ae2805309a90d3
6e49e2237979ba8b38f8384501878cd8488e6601
/celery/tests/test_datastructures.py
9aefc3be376ee63b982ce084fb26dbd873f369b8
[ "BSD-3-Clause" ]
permissive
fberger/celery
a39ba061781c9861a89fa2d669e001e478e5e226
6715848bfd470ded836c2b54b5c135b2b14c05c5
refs/heads/master
2021-01-17T23:28:28.007753
2010-03-07T00:09:46
2010-03-07T00:09:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,758
py
import sys import unittest from Queue import Queue from celery.datastructures import PositionQueue, ExceptionInfo, LocalCache from celery.datastructures import LimitedSet, SharedCounter, consume_queue class TestPositionQueue(unittest.TestCase): def test_position_queue_unfilled(self): q = PositionQueue(l...
[ "askh@opera.com" ]
askh@opera.com
11778df6a7b9803d75dcda64e640e9ecd565a1d9
763baffec3ffda51a92a93704ff8e7485be1e576
/trainers/bayes_uts_classification_trainer_2.py
41ea8fd2b189dfec42482efb5ace6f40fe3eceb3
[ "ICU", "Apache-2.0" ]
permissive
Neronjust2017/DL-TSC
300d30f58858313749d49575b74d3a139abbe5e0
919e67e10b0bf518eb9cc63df68c79fe2bb71b36
refs/heads/master
2023-02-02T14:23:17.862623
2020-12-15T08:29:00
2020-12-15T08:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,029
py
from base.base_trainer import BaseTrain import os import time # import keras_contrib import numpy as np from utils.uts_classification.utils import save_training_logs from utils.uts_classification.metric import precision, recall, f1 from comet_ml import Optimizer class UtsClassificationTrainer(BaseTrain): def __ini...
[ "1036758468@qq.com" ]
1036758468@qq.com
a9c097455eea55b0000645d76b287ac5dd604c19
765b558714acf20438ff717e57beadd9890fe1be
/galcon/groups/migrations/0002_add_superadmins.py
9a38e2054a96f7a31b96f2bc6bb1820a9f01808c
[]
no_license
marky1991/galcon_clone
279cf4ec6adb266f5afabc0a0a61435a52a60119
12923b001d593c75934e99ed201627d8767462c2
refs/heads/master
2020-06-06T20:24:03.684856
2013-09-06T15:52:45
2013-09-06T15:52:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,824
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding M2M table for field superadmins on 'Group' m2m_table_name = db.shorten_name('groups_group_superadmi...
[ "marky1991@gmail.com" ]
marky1991@gmail.com
b54174c4926024c13e88b2eee8c899feaf71d99a
cec670ddc7119595183d6c42cecd6bc8e67c7a8c
/edumanage/migrations/0002_chg_field_instserver_instid.py
0b453925e4067e81d379a34b54b8186c6f2fef57
[ "LicenseRef-scancode-mit-taylor-variant", "ISC" ]
permissive
itminedu/djnro
7dd5c5e1c20d613d4d7ba84f33c0f40e7317f3d8
06e5ceb38a2d81750e2bbcc1240217befa74abdd
refs/heads/master
2023-05-28T10:18:45.149917
2022-10-10T11:36:35
2022-10-10T11:36:35
63,783,642
0
0
NOASSERTION
2023-05-22T21:34:50
2016-07-20T13:27:22
Python
UTF-8
Python
false
false
452
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('edumanage', '0001_initial'), ] operations = [ migrations.AlterField( model_name='instserver', name='...
[ "zmousm@noc.grnet.gr" ]
zmousm@noc.grnet.gr
bc333a1b121f009462583b86bf3a3a8f5f195612
484c38ba0fe2f77bbb5b7d97f44b370bda3fd950
/keras/model_test.py
fb77b79960824a62c5748b82d799cf2d079883b1
[]
no_license
AirFishWang/DeepLearning
0bb0467e0246438300d38ed20bd15e592ccc0b9f
b5a8964c2c0a04046e358237e25cc0f06700db3a
refs/heads/master
2021-06-17T01:20:54.895160
2021-01-21T08:18:18
2021-01-21T08:18:18
144,096,334
2
1
null
null
null
null
UTF-8
Python
false
false
4,067
py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: model_test Description : Author : wangchun date: 19-3-2 ------------------------------------------------- Change Activity: 19-3-2: ----------------------------------------------...
[ "1013812915@qq.com" ]
1013812915@qq.com
9f9a6bd87a6ee3346f60a3f4b5ef8a1bb49673d5
d88acb7dc568463f39bbc1a633fdc5ec84d33bda
/Others/HK/photos.py
550450167f3de92b07835844fec3a64726a5501f
[]
no_license
sarathm09/Hobby_Projects
aff0207b382db236725dc6fa8d48907d458774d5
375c6a95abf9a4b4b663f7d4d20ec5404237bf11
refs/heads/master
2020-04-22T03:19:37.445820
2015-03-09T17:46:37
2015-03-09T17:46:37
26,056,072
2
0
null
null
null
null
UTF-8
Python
false
false
417
py
__author__ = 'T90' __version__ = '1.0.0' from operator import methodcaller import urllib def download(): f = open('fin.csv', 'r').read().split("\n") ids = map(methodcaller('split',', '), f) url = "http://www.rajagiritech.ac.in/stud/Photo/" for i in ids: urllib.urlretrieve(url + i[0] + ".jpg", "files/" + i[0] + ...
[ "sarathm09@gmail.com" ]
sarathm09@gmail.com
4efb213edffd3e7e2785c1cea7974573fdece200
cc6e54bf04f664a579ae3a1db0753e3041ba842c
/main.py
891402d52c00183d207334cd473b0680062e13d1
[]
no_license
sabbirDIU-222/python-OOP
18e33734bdcdbe0df923251c96bcb65a2dda1549
398449c7088e889f3d86eeac7ae2bf4a505e5833
refs/heads/main
2023-01-06T02:33:16.121261
2020-10-26T15:05:53
2020-10-26T15:05:53
304,537,063
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
# so in this program i do a things that can download image from internet import random import urllib.request # now we make a function that can take the image url and can download def download_from_web(url): name = random.randrange(1,1000) full_name = str(name)+".jpg" urllib.request.urlretrieve(ur...
[ "noreply@github.com" ]
sabbirDIU-222.noreply@github.com
0a2d80bbd9d259005f0beeb8fb68f618e87486c3
c66e2b22b4ed179b53012b2847ca9f7bfe5fada4
/ComicGetter/pipelines.py
6ecc3192ae566bbb4977427e90dfd87a6f5c7638
[]
no_license
zaneisdyy/Comic
6587b50013dd768a56913f0dd5f72be281112c5e
ca6b240c1ef5cba42c652ac9588f0b8fb71452c3
refs/heads/master
2021-01-23T02:00:17.609308
2017-05-31T13:15:53
2017-05-31T13:15:53
92,903,572
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class ComicgetterPipeline(object): def process_item(self, item, spider): return item
[ "zaneisdyy@qq.com" ]
zaneisdyy@qq.com
9ab7444ce0ac325bec9b3674b19595013263df40
fb04bf32412d470fd642b164086607daa929462c
/synthetic/visualization.py
f0a9f5ec2f53c482f6fb174ce7358a45d15b3a0c
[ "MIT" ]
permissive
irfan-gh/MO-PaDGAN-Optimization
348d52e4260a721e699c0829b2f02abc6934d618
101d389049e16574dac0b3dbae3a2578d600560c
refs/heads/master
2023-08-10T06:42:31.372810
2021-05-18T04:52:08
2021-05-18T04:52:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,276
py
import numpy as np from scipy.stats import kde import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt plt.rcParams.update({'font.size': 18}) def plot_data(ax, data=None, gen_data=None, axis_off=True, xlim=None, ylim=None): if data is not None: if xlim is None: xlim =...
[ "wchen459@gmail.com" ]
wchen459@gmail.com
92401b9446b5c618b34eb47f9bb3233834103b16
b144c5142226de4e6254e0044a1ca0fcd4c8bbc6
/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/l1config/ethernet/txlane/txlane.py
0f268662a24c9427a25b1a41aba34180128d4784
[ "MIT" ]
permissive
iwanb/ixnetwork_restpy
fa8b885ea7a4179048ef2636c37ef7d3f6692e31
c2cb68fee9f2cc2f86660760e9e07bd06c0013c2
refs/heads/master
2021-01-02T17:27:37.096268
2020-02-11T09:28:15
2020-02-11T09:28:15
239,721,780
0
0
NOASSERTION
2020-02-11T09:20:22
2020-02-11T09:20:21
null
UTF-8
Python
false
false
4,268
py
# MIT LICENSE # # Copyright 1997 - 2019 by IXIA Keysight # # 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,...
[ "srvc_cm_packages@keysight.com" ]
srvc_cm_packages@keysight.com
d2635763148ba5c437dbcc1d1a648147347ebd43
4e12169939cef99076d8088ddb6f53066291aaaa
/Haldane_model/squarelattice/nn/Edge_nn.py
4467b7a1940ced38b23cf0b9e9e87af23cb602ee
[]
no_license
saunter999/Simplemodel
0c01a088965098bed5d1c9f1d1f7f9b08596b684
a8bceee8432d09011effd1d6b85395a70633ac98
refs/heads/master
2020-04-05T04:33:11.834433
2018-11-07T14:07:32
2018-11-07T14:07:32
156,555,851
0
0
null
null
null
null
UTF-8
Python
false
false
1,676
py
#!/usr/bin/env python from scipy import * from pylab import * from numpy import linalg as LA def Hinc_matrix(k): Hinc[0,0]=0.0 Hinc[1,1]=0.0 Hinc[0,1]=-2.0*t*cos(k)*exp(-1j*phi) Hinc[1,0]=conjugate(Hinc[0,1]) def Hacc_matrix(k): Hacc[0,0]=0.0 Hacc[1,1]=0.0 Hacc[0,1]=-2.0*t*exp(1j*phi)/2.0 Hacc[1,0]=conjugate...
[ "qhan555@163.com" ]
qhan555@163.com
7b0665c9b189e1806ae352de291937e6dc6eb4d1
23270cfeaa5b4bc794594721e1b6ffe4e2507a0e
/thread/07threading.py
1c6df0b0156be48b13f620cc88b817300f04fe1e
[]
no_license
kun0769/studypy
d69bd1688378784b22885a9eb8f950f47fd94b65
290fc768d6040ccfad5e92e5f7b4d0ced3d54e7c
refs/heads/master
2021-08-07T20:21:00.975960
2020-04-19T14:51:45
2020-04-19T14:51:45
157,394,658
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
#!/usr/bin/env python #coding:utf8 # #program: # 使用多个线程处理同一个变量,使其值+1 # #histoty: #2019/12/02 kun V1.0 import threading import time count=0 class MyThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) def run(self): global count time.sleep(0.5) ...
[ "591619648@qq.com" ]
591619648@qq.com
2fbbff568376cb9da76e1a1ff78a5662c22c7c28
2378ee16470fa91fe23fc3b6f6040d7e54735e94
/script.py
219014760cf4252af387dab62b43e629a64eb4e4
[]
no_license
mousaayoubi/gradebook
d735115fd89f6fd7d651c9dbca3b67c2be56fe84
b6648f81d8256f285ac64b7e65ad6d292ffe5ab9
refs/heads/master
2020-06-14T02:43:10.646669
2019-07-02T13:54:57
2019-07-02T13:54:57
194,871,919
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
last_semester_gradebook = [("politics", 80), ("latin", 96), ("dance", 97), ("architecture", 65)] print(last_semester_gradebook) #Create a subjects list subjects = ["physics", "calculus", "poetry", "history"] subjects.append("computer science") print(subjects) #Create a grades list grades = [98, 97, 85, 88] grades.app...
[ "mousaayoubi@gmail.com" ]
mousaayoubi@gmail.com
6ee08ae35fc342bfd50bcac10dc9f98a817a191d
6f98ca1f44fb7ed02b31d80e1a2e3913291bbe3a
/Study/com/codemao/study/state 1/day11 文件和异常/day11.6.py
595e0a05b60bca47c366965246f84f2c129b7a95
[]
no_license
yyq2012/yushihu
982ef7fd1c455213b13b3082d33b23c91ac01f30
9e8c85220b6176dc05c595e96e197ab5cefe6b20
refs/heads/master
2020-05-31T14:24:59.040191
2019-06-05T10:39:05
2019-06-05T10:39:05
190,326,935
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# 读写二进制文件 # 知道了如何读写文本文件要读写二进制文件也就很简单了, # 下面的代码实现了复制图片文件的功能。 def main(): try: with open('image/1.jpg', 'rb') as fs1: data = fs1.read() print(type(data)) # <class 'bytes'> with open('image/1复制来的.jpg', 'wb') as fs2: fs2.write(data) except FileNotFo...
[ "noreply@github.com" ]
yyq2012.noreply@github.com
8f4cfa7569f2a68bdaa03df4ee02267642253997
e872b85b3e0897cf1f3f2c5a27d545569f25b8a2
/esphome/components/tuya/__init__.py
541f10f862d27c230eba7daa0d0f9759ea9a818c
[ "GPL-1.0-or-later", "MIT", "GPL-3.0-only" ]
permissive
s00500/esphome
3b8bab3506c51c5b6b6a6c69f17d29d04877644f
51ab0f0b78762a804a567cfb54bdefa15d2ef29d
refs/heads/master
2021-07-12T05:02:42.732274
2020-06-24T01:39:24
2020-06-24T01:39:24
172,741,405
0
0
MIT
2019-02-26T15:47:51
2019-02-26T15:47:51
null
UTF-8
Python
false
false
587
py
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import uart from esphome.const import CONF_ID DEPENDENCIES = ['uart'] tuya_ns = cg.esphome_ns.namespace('tuya') Tuya = tuya_ns.class_('Tuya', cg.Component, uart.UARTDevice) CONF_TUYA_ID = 'tuya_id' CONFIG_SCHEMA = cv.Schema({...
[ "otto@otto-winter.com" ]
otto@otto-winter.com
9d7e54738f49cfe013cf1eaeabc8dde21e3d27c1
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_3/tshkgo003/question4.py
fa5415ba70ba561ca688fdcd9b4a1abbd9a12026
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
N=eval(input('Enter the starting point N:\n')) M=eval(input('Enter the ending point M:\n')) i=N+1 print("The palindromic primes are:") while i<M: j=str(i) jreverse = j[::-1] i=i+1 if j == jreverse: f=eval(j) if f > 1: for k in range(2,f): if (f...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
75fa5d6024a5577bb3a53206ef19ef912b1575cb
6fa0d5d3b61fbce01fad5a7dd50258c09298ee00
/Python/FLASK_EX/4th_CHATBOT/set_webhook.py
d7a824491adf17f4320106274b83906bc9459375
[]
no_license
athletejuan/TIL
c8e6bd9f7e2c6f999dbac759adcdb6b2959de384
16b854928af2f27d91ba140ebc1aec0007e5eb04
refs/heads/master
2023-02-19T13:59:06.495110
2022-03-23T15:08:04
2022-03-23T15:08:04
188,750,527
1
0
null
2023-02-15T22:54:50
2019-05-27T01:27:09
Python
UTF-8
Python
false
false
392
py
import requests from decouple import config token = config('TOKEN') app_url = f'https://api.telegram.org/bot{token}' ngrok_url = '###' python_anywhere_url = 'https://juan.pythonanywhere.com/' ngrok_setting = f'{app_url}/setWebhook?url={ngrok_url}/telegram' anywhere_setting = f'{app_url}/setWebhook?url={python_anywher...
[ "vanillasky84.0627@gmail.com" ]
vanillasky84.0627@gmail.com
101287850920a2d6fd015698c178a5b7808a398f
c928aad72f4a9334ed141843ba6918d1ab0435e5
/jenkins_event.py
5bbb331a0550efddad9a47fcc3517cb169a34d65
[]
no_license
jordant/jenkins-nagios-event-handler
3cccf6031987a0b45c4d65ab338d9173f92451c1
98a6577fedc6ab04e5cf53fe6a80e1c7feaf6896
refs/heads/master
2020-12-24T17:54:59.429706
2015-05-11T22:05:16
2015-05-11T22:05:16
35,451,828
1
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
import json import optparse import sys from jenkinsapi.jenkins import Jenkins def parse_options(): parser = optparse.OptionParser() parser.add_option( "-j", "--job_name", metavar="jobname", action="store", type="string", dest="job_name", default=False, help="name of jenkins job" )...
[ "jordan@dreamhost.com" ]
jordan@dreamhost.com
c91e350fa02a1173d2effbf6fd7881fbba5ee7ba
904c691e8b973ae9b88974c132125852b82a24b7
/aminoacid.py
7499fa54f083689aeb5cdf2706eea67ca14d3156
[]
no_license
jorisdhondt/GliadinScattering
cf3c239662f22a6a9cbaff8415c580e937b34625
d9ceb58b6e2077e83a34b734352f6dca05179d35
refs/heads/master
2020-04-21T23:21:00.245077
2019-11-13T06:02:07
2019-11-13T06:02:07
169,944,330
0
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
import math import random import math # Define an aminoacid class class Aminoacid: def __init__(self, label, abbrevation,coor, radius): self.label = label self.abbreviation = abbrevation self.coor = coor self.radius = radius #3 different sizes self.bridgedAcides = None ...
[ "joris.dhondt@gmail.com" ]
joris.dhondt@gmail.com
ac316ea28bb65fe24b53d37558562520af9a4b68
06a8947680a4d61e82ef36d2141ab9519ab8c7df
/framework/report/header.py
3737630f9a563abb23f7ecd584e24256dda413e1
[]
no_license
koto/owtf
fac846db6508407826027a29f5f98475153f3671
53111f07150ee52bab09f4513413cb1131d85820
refs/heads/master
2021-01-18T06:45:34.753800
2012-01-19T06:37:29
2012-01-19T06:37:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,905
py
#!/usr/bin/env python ''' owtf is an OWASP+PTES-focused try to unite great tools and facilitate pen testing Copyright (c) 2011, Abraham Aranguren <name.surname@gmail.com> Twitter: @7a_ http://7-a.org All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
[ "abraham.aranguren@gmail.com" ]
abraham.aranguren@gmail.com
11b329a87220afc8ca33490ff4030ba5f721225c
6a924239453663349e32c52632e780cc4bd4b7ba
/project_1/homework_1_1.py
9c157fd57f98642ce8b8dd5fc62280f9231e57f9
[]
no_license
Czzzzzzzz/ML_Projects
18ba0d57c651d0ff2d60aa054312cea2e33c7d83
bfe79a9af1e8f15143ace094f3ccbb0530c5b8e6
refs/heads/master
2021-10-23T21:22:51.338483
2019-03-20T06:21:59
2019-03-20T06:21:59
176,668,081
0
0
null
null
null
null
UTF-8
Python
false
false
9,418
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun May 27 21:30:24 2018 @author: zhengcao """ import random import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.neighbors import KNeighborsClassifier from sklearn.metrics import accuracy_sco...
[ "czfightinglucky@gmail.com" ]
czfightinglucky@gmail.com