blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
bd3bc8836b67bd827c6e0fb3798290761a11817b
ac6eae3e29f962af60486c26c38661c4a6b9abd8
/Trial/urls.py
b819a1cc5d8ee742deaadc6bfc046a9b2c57ec34
[]
no_license
ArtemE91/Trials
462cd201f3ced77d2515a2c518d7d8e15d00c9c8
b4c7fb8a9225c0844e121131861df4121228ae1a
refs/heads/master
2023-08-15T03:33:05.165096
2020-09-21T17:20:47
2020-09-21T17:20:47
268,894,446
0
1
null
2021-09-22T19:21:33
2020-06-02T19:50:08
CSS
UTF-8
Python
false
false
1,974
py
urls.py
from django.urls import path from .views import (TrialCreate, TrialList, TrialDetail, TrialUpdate, TrialDelete, ExperimentCreate, TrialDetailTr, TrialModalDetail, ExperimentList, ExperimentDelete, ExperimentUpdate, TrialTableListView, Compa...
67f704af88b8dd5e616dc242b0d573f009bdeb75
37a5346f606634bc1b9daf3055e22d4df57b400e
/MergeMMDAWWO.py
6c5d106b65b7b7f4d0e460c90639db8a74cd1196
[]
no_license
CudoXY/THESIS_DataPreparation
89a6a5e0dde5c838486f35a8a964fd6f66ce8b9e
e695adc4eba80f563e8e0c5dec2aa8b9d7e3ea5f
refs/heads/master
2021-05-07T19:22:17.570106
2017-11-19T20:24:28
2017-11-19T20:24:28
108,865,497
0
0
null
null
null
null
UTF-8
Python
false
false
1,971
py
MergeMMDAWWO.py
from enum import Enum from DataToMerge import DataToMerge import pandas as pd import os class MergeMMDAWWO(DataToMerge): class Columns: class Traffic(Enum): DATE_TIME = 'dt' LINE_NAME = 'lineName' STATION_NAME = 'stationName' class Weather(Enum): D...
3bf78a4878eb2397994f04f478c81ab420e23af8
4970d64a3bcccc4abf6432ce736170c4fdf07cfc
/pgcontents/tests/test_pgmanager.py
95214c6f2da8c3d860abcef4b9c29c9bc93b3fc8
[ "Apache-2.0" ]
permissive
scshepard/pgcontents
a693056bbd63e7dc321bda90e2c8f5204049fefe
110be7168f6d443c3e8ae8eeeb714d4130fee0d8
refs/heads/master
2020-12-30T21:57:54.063336
2014-12-18T18:22:01
2014-12-18T18:22:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,350
py
test_pgmanager.py
# # Copyright 2014 Quantopian, 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 agreed to in writin...
7254ffcd3511ec26816a990d5768a60b39b2a214
376a7c1d8be6304f5f3ba26be58e8f41365f77b0
/pyCFL/config.py
87092b8959d953a809c0aeef08f9b51d1394cd1f
[ "MIT" ]
permissive
andrewjdyck/pyCFL
b763399fe72fb642ac1fa083c03a10e934e2ee0b
7c4f175924a7dc9205d9c1757a666d17f5cf2f4b
refs/heads/master
2022-03-17T15:13:23.371290
2017-04-19T05:54:12
2017-04-19T05:54:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
config.py
import json, os class Settings(object): def __init__(self): self.read_settings() self.set_exports() def get_settings(self): return (self._settings) def read_settings(self): try: with open('config.json', 'r') as fh: self._settings = json.loads(fh...
461b0261d6c0fd7231e94a025caf98030c5358ed
0cb97f4cc035fadbb2b91a050e31bfdb14656212
/huffmantree.py
4ad25ca27b54b20c2011e86c5495f9f070d05829
[ "BSD-3-Clause", "MIT" ]
permissive
mmosko/CCNxz
2e49b6e2da55eba28b7b55c47b5c9cfad98d7340
1bc9e7894e5285590a3d4e52052dcccd3fc02cf4
refs/heads/master
2020-04-10T20:51:28.621509
2018-03-20T17:30:36
2018-03-20T17:30:36
124,289,594
0
0
null
2018-03-07T20:18:50
2018-03-07T20:18:50
null
UTF-8
Python
false
false
4,101
py
huffmantree.py
#!/usr/bin/python # # Copyright (c) 2016-2018, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source c...
2bce5a72681101ab05ad30d3ed5aa2f90585cb38
88534fbd88094f407796dc35b0f5d1f1020119de
/new/week1/Functional/Coupon.py
a7a7cc7d8560d1bf5ccb3429c73d48a000a3b652
[]
no_license
kirankumar2/BridgeLabz
efd8b056d1d9ece8ccf6a75895a366e4c65525cf
7c9d7c78852d5f89361e41a0e55b508b56d03bbf
refs/heads/master
2020-08-03T17:16:24.821443
2019-10-07T12:38:13
2019-10-07T12:38:13
211,824,456
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
Coupon.py
import os import base64 def secure_rand(len=6): token = os.urandom(len) print(base64.b64encode(token)) secure_rand()
0b682b4f222f65f1d1a60ada8253f4974613b021
fdadfa739d2952275fdbd209ccfb34d7ce54df53
/5.py
295b673118647639e40f74dc925ea6445eac1f37
[]
no_license
tangmingyi/offer
c1faa515be4054111dace472750695c5b1ee7c23
6da3aa3d55a9d8167650d5f161cc1d354a7e348b
refs/heads/master
2020-07-02T03:56:38.056544
2019-10-06T02:09:45
2019-10-06T02:09:45
201,408,864
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
5.py
# -*- coding:utf-8 -*- class Solution: # s 源字符串 def replaceSpace(self, s:str)->str: s = [i for i in s] for index,char in enumerate(s): if(char==" "): s[index]="%20" return "".join(s) # write code here if __name__ == '__main__': sol = Solution() string ...
f41bc92491edfd52568e316fdb8e707d68c97adb
1ab09dfc2dfd0ee0dc7033b881e27d57625980ab
/home/models.py
1f6ad36b83cfdac5b6094a83904fcabfe76488cc
[]
no_license
abhinavjha98/ElasticSearchDjango
2f44e5a13fa982c53c05b64b4a948e3a8e0ccc93
3b96f1e880ab11ab3514d77d4a47216961e09ff7
refs/heads/master
2023-05-03T04:48:02.051158
2021-05-24T17:30:39
2021-05-24T17:30:39
370,404,912
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
models.py
from django.db import models # Create your models here. class ElasticDemo(models.Model): title = models.CharField(max_length=100) content = models.TextField() class Url(models.Model): url = models.CharField(max_length=100) label = models.CharField(max_length=100,default=False)
68c18ff30362ac33bfe1f8f1e1915198e4edc24b
910a96d8ea68907ac6003a80713fd1e1c4ea43cd
/search.py
796682956d9dbf7f159e9d974f14249405baa776
[]
no_license
FutaAlice/JDH
d4f2bbc1561759b0ec6f701031da1685d2442a18
287c59d4db117ccb4bf4e034f10e36cfdf0cb77a
refs/heads/master
2020-03-16T21:41:05.275391
2018-05-27T14:30:54
2018-05-27T14:30:54
133,009,937
0
0
null
null
null
null
UTF-8
Python
false
false
1,521
py
search.py
import pos import zobrist Pos = pos.Pos Color = zobrist.Color Board = zobrist.Board class DFS: def __init__(self, board, depth, func): self.__board = board self.__depth = depth self.__func = func def run(self): self.cnt = 0 self.hash = set() sel...
5b1fb23c9654c78f4e5827ba0b31893592855270
93de830111182287873f2f02e90e351763b734b4
/week_03/dict_maxlen.py
f5b781e2a0d5ce083609c19838465b2a1a5b71be
[]
no_license
ALiu-Pomme/MITx_6.00.01x
e42047e04c91542685bdcd785161f2236ecbd8bf
ee2b84d2d05095dc8ded7b1025b53fc1aa96f9ee
refs/heads/master
2020-04-13T21:43:10.072865
2018-12-29T02:06:54
2018-12-29T02:06:54
163,462,150
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
dict_maxlen.py
animals = { 'a': ['aardvark'], 'b': ['baboon'], 'c': ['coati']} animals['d'] = ['donkey'] animals['d'].append('dog') animals['d'].append('dingo') def biggest(aDict): v = list(aDict.values()) k = list(aDict.keys()) return k[v.index(max(v))] print (biggest(animals))
573ce6381f36f1a1bb73ab4e0eae162fceff8720
1661c09a9f1bcb5e4dfde6083e973faf6c0e2393
/example/Selenium/move_slider.py
8e8181f477745d2f7bb1590ee711695b5b05d6bf
[]
no_license
dudg1021/python-study
a312f83dee19f425f536eb4e18341455e6f0c47a
14397dfe4aaf6d4bbea5c0ff6a970f2a66c01368
refs/heads/master
2022-12-16T08:45:40.767191
2020-09-10T02:46:53
2020-09-10T02:46:53
292,255,667
0
0
null
null
null
null
UTF-8
Python
false
false
3,104
py
move_slider.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- ''' @author: 转载补充 @file: str-demo.py @time: 2020/8/26 17:02 @desc: selenium Actions 滑块移动 ''' from selenium.webdriver import ActionChains from selenium import webdriver import time options = webdriver.ChromeOptions() options.add_argument('--start-maximized') # 最大化运行(全屏窗口...
084a884a0cd43814558a82751a8d3b992493cb84
d97cc8320ccc936bc2b12983999f1b444ceba061
/WeatherAnalyzer.py
69b5e79a7abe1125e987234a477109a74decce42
[]
no_license
brian-ngyn/Weather-Visualizer
52dde88d6dcf5ab493be226c37cba7c96c976185
44b5e7c3ce07f5224d782f56830319b1613d1396
refs/heads/master
2023-08-25T22:27:04.102290
2021-11-08T01:55:13
2021-11-08T01:55:13
425,660,973
0
0
null
null
null
null
UTF-8
Python
false
false
3,394
py
WeatherAnalyzer.py
import numpy as np import matplotlib.pyplot as pyplot class WeatherAnalyzer: def __init__(self, temperatureData): self.temperatureData = np.array(temperatureData) def getMinTemp(self): y = [] num_rows, num_cols = self.temperatureData.shape for count in range(0,num_row...
595498cebd6bc0fd08f57dcb9542acb6aff7d5b2
b99f518e5289da9d068154cefd7b9f13c8d6564f
/VSCode_work/chapter15/chapter15_15_10_0.py
5607dca0cffaca0b7a1a85c1e642168576a9d0c8
[ "MIT" ]
permissive
yangyahu-1994/Python-Crash-Course
e6a81feba4bdbef297387577ea36b7027bf61c8f
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
refs/heads/master
2023-07-29T22:29:06.151253
2021-10-05T14:04:32
2021-10-05T14:04:32
313,314,086
18
12
null
null
null
null
UTF-8
Python
false
false
965
py
chapter15_15_10_0.py
import matplotlib.patches as mpatches # 导入matplotlib标准库中的patches模块 import matplotlib.pyplot as plt from die import Die die_1 = Die() die_2 = Die(10) results = [] for roll_num in range(50000): result = die_1.roll() + die_2.roll() results.append(result) frequencies =[] max_results = die_1.num_sides + die_2....
56edc7abd6bc5450625012995e83fc3fb7eac5e3
747bf0f5d9c19a4b9ff83a48bc9be78f716fe766
/trading.py
ca7dfeaea1240524aead078e01fd27a63eedf287
[]
no_license
z991/StockWaring
1a7a9e7e762bec4349e64f075d7d35cb7acf81c9
d92d5ef7cbf86916f870e52337c4c0cc3dc6e81e
refs/heads/master
2022-01-22T20:29:01.246130
2021-12-28T15:26:04
2021-12-28T15:26:04
186,202,669
14
7
null
2020-10-03T11:16:59
2019-05-12T02:37:06
Python
UTF-8
Python
false
false
1,026
py
trading.py
import datetime class Trading: def is_start(self, config): """ 判断是否为股票交易日(周一到周五,9:30-11:30 13:00-15:00) :return: """ now = datetime.datetime.now() hour = now.hour min = now.minute week = now.weekday() # 是否运行代码 result = 1 # 优...
5f12153fe959de48014b3d9d073f829c6b578396
c6df86bb440d5a7ab18ff08dbf922a071c61987b
/catvae/models/linear_vae.py
218e3f9f03bc8c66ab73fa10c930be63e8217669
[]
no_license
stjordanis/catvae
17f499171e559a4f41d3d1e18d07131c5169d3dd
218d678868aab02ab985c42d377c2da6f8aef2a5
refs/heads/master
2023-08-02T11:39:54.698763
2021-09-02T03:21:34
2021-09-02T03:21:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,611
py
linear_vae.py
import torch import torch.nn as nn from catvae.composition import closure from gneiss.cluster import random_linkage from gneiss.balances import sparse_balance_basis from torch.distributions import Multinomial, Normal from torch.distributions.kl import kl_divergence import numpy as np import geotorch LOG_2_PI = np.log(...
179eb6712f57cf447012371d4ed6f9749c0be7f5
7dd48f3a84e0f96a5663b7709a1f3e692b1c7001
/MotionDetection.py
fb71a40d9b414e7f4472db69a8e9c62a1f70da1a
[ "MIT" ]
permissive
pi2017/ObjectTrackingOpenCV
7dd9ed54f74da2b1f8c7e60e4e22ec9af5226d5f
4dbf4ba7bb90678b8ccb7283db3a644809df18eb
refs/heads/master
2020-05-30T07:47:01.593316
2017-11-17T00:16:41
2017-11-17T00:16:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,888
py
MotionDetection.py
import sys sys.path.insert(0, 'utils') import HumanDetection import DifferentTracking import MotionTracking import cv2 trackNum = 0 playMode = None Output_To_File = False outputName = None def printUsage(): print("Usage: python MotionDetection.py [<ARGS>...] [-m <Number of Tracker>] [-d <Number of Compare Frames>...
c8f49d942335c4d37e0439cfd664c7009d172691
e78b9a62d838f24136507732ab511c5d1f402161
/network/FeatureAgg3d.py
643f726764f3331d97ec535532a683615a9ad797
[ "MIT" ]
permissive
fathyshalaby/3DC-Seg
200474061ba2fe980c526d70555efe8b539416c3
8aa18179355bd98e5594a9c95bc82edf35b47012
refs/heads/master
2023-06-22T10:53:55.785453
2021-07-23T13:49:08
2021-07-23T13:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,508
py
FeatureAgg3d.py
import torch from torch import nn from torch.nn import functional as F from torchvision import models from network.Modules import GC, SoftmaxSimilarity from network.RGMP import Encoder, Decoder from network.models import BaseNetwork class EncoderWG(Encoder): def __init__(self, tw=5): super(EncoderWG, self).__i...
88d505806699d61c071adeb91357477e2ec54b63
a1657a0c5c8f3f8b51b98074293e2f2e9b16e6f4
/libs/pipeline_model/tensorflow/core/framework/api_def_pb2.py
bb3c72f40ea71e6eee820e6d9164811e474b30b6
[ "Apache-2.0" ]
permissive
PipelineAI/pipeline
e8067636f5844dea0653aef84bd894ca2e700fc6
0f26e3eaad727c1d10950f592fe1949ece8153aa
refs/heads/master
2023-01-07T15:27:33.741088
2022-10-25T23:01:51
2022-10-25T23:01:51
38,730,494
2,596
512
Apache-2.0
2020-01-30T23:00:08
2015-07-08T03:49:23
Jsonnet
UTF-8
Python
false
true
15,268
py
api_def_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow/core/framework/api_def.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf i...
aa90cfa76dd49de04e369bd1d1ee488f22c082cf
22e4cb92134329e043a7b56d4256eac72482b9f4
/models/torch_cnn_mnist.py
5c1361096f3f5b34475a886d7a046f8b8bd817a9
[ "MIT" ]
permissive
zenghui9977/AFL
b713797174b92f465b59a0299125bfd61ccb1eef
769d78be94ce8f80d376aceb2de9dc5a9d20a807
refs/heads/main
2023-03-10T12:31:52.539533
2021-02-22T16:21:48
2021-02-22T16:21:48
341,238,024
0
0
null
null
null
null
UTF-8
Python
false
false
6,909
py
torch_cnn_mnist.py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from util.utils import get_index_from_one_hot_label from torch.utils.data import DataLoader import abc LOSS_ACC_BATCH_SIZE = 100 # When computing loss and accuracy, use blocks of LOSS_ACC_BATCH_SIZE # pytorch实现t...
c546df93a1dcdd7c065e6e29414efa6dbadb083d
b1e01255469b4dcb9c74878ee7792fe436efa95d
/posts/urls.py
69b7b769e9f9561909ff0d578b58e690d917ed98
[ "Apache-2.0" ]
permissive
aakashthapa060/Atom-Social-Media
a38d6741cb67da3a89c0766158722e05b3c6d5e6
03c45f4fa76ecc3b1afafc68ab0db555bb883957
refs/heads/main
2023-05-28T06:18:42.354487
2021-06-14T12:27:07
2021-06-14T12:27:07
367,033,835
1
0
null
null
null
null
UTF-8
Python
false
false
135
py
urls.py
from django.urls import path from . import views app_name = "posts" urlpatterns = [ path("",views.main_view, name = "main_view") ]
47131a7ce3653ccc52ece40442606c49cbdee94c
24f0677e33a02020c8964b1085b54b3e9c4d9709
/app/conftest.py
da97a44ec07f8e71f8087739a779139f702a277b
[]
no_license
juliocmartins/python-api-test
ee0d0f0a97b3ed90b2f288dba753f4e6b6c12d4d
0dde4fcfa0e01c518375d33121f6990aa14abd23
refs/heads/master
2023-04-11T10:22:38.104453
2021-04-05T11:46:46
2021-04-05T11:46:46
352,355,000
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
conftest.py
import os, pytest from src import create_app, db from src.models import * from manage import drop_all test_app = create_app() test_app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(os.path.dirname(os.path.dirname(__file__)), 'test.db') test_app.app_context().push() from src.commands.seed import see...
68e74f269a781c2e253a1404db6719aeffc221ee
7828deb2e1c37adafaac9a527887e67e0d2f98ca
/practi/exx.py
506ac638d9b144d4c0071113a9ece27460b83cad
[]
no_license
arunindia95/automation-first
78bd565feaad77b86759afff1a12ab71f00ce5e1
9b403105ada7e62c020f6752ca619befadbdeb73
refs/heads/main
2023-03-29T11:16:27.456232
2021-03-21T10:40:21
2021-03-21T10:40:21
349,966,403
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
exx.py
import xlrd from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManager import time driver= webdriver.Chrome(ChromeDriverManager().install()) dr...
b2b1ba60ca79a47ff903e048ca8fcc1ea96f2a67
f068f3e1b9b77b8e0723fc7dc98334b5fcb05780
/src/apps/producers/views.py
02acdae74fdc7caaba430c1294557d9cdae0d909
[]
no_license
codalab/chahub
bc18d729a672761cf11e0f23164b2cd797dd5016
9b10f8f1ae6f63d493dab2b90820e2b2be180bb9
refs/heads/develop
2022-11-29T08:16:27.868234
2020-11-27T23:36:23
2020-11-27T23:36:23
105,188,247
2
5
null
2022-11-22T05:46:32
2017-09-28T19:01:51
Python
UTF-8
Python
false
false
194
py
views.py
from django.views.generic import TemplateView from utils.views import AdminRequired class ProducerManagementView(AdminRequired, TemplateView): template_name = 'producers/management.html'
ea185a1974f2aaf18161bdc5425b08f31972573a
a36d6327bfcbda4720f61a5e58226dfd59052038
/Easy/c167 Read More.py
d864baba34a937dc4eb2fe4ce9e9613f0a126f31
[]
no_license
mgorgei/codeeval
65dd8489eeb5915d0df79526d5f0f5c9c221803f
ec3a9afab657861d471550ca8fcb4b2a269cf46b
refs/heads/master
2020-05-19T03:37:09.407653
2015-04-23T22:11:46
2015-04-23T22:11:46
24,719,014
1
0
null
null
null
null
UTF-8
Python
false
false
2,333
py
c167 Read More.py
'''READ MORE You are given a text. Write a program which outputs its lines according to the following rules: If line length is ≤ 55 characters, print it without any changes. If the line length is > 55 characters, change it as follows: Trim the line to 40 characters. If there are spaces ‘ ’ in the resulting string, tr...
51d39b69787529a9c862a1f27f831a723c37cf78
e22d4b37236a0327f26159856c7d151826bdd49d
/leonardo/module/devel/models.py
851346e74df588fbe7bc6965bcafde1604447cdb
[ "BSD-2-Clause" ]
permissive
django-leonardo/django-leonardo
8fe1fc6299c5e3d3c0bff96cb7e80d48f7b7e1de
7d3f116830075f05a8c9a105ae6f7f80f7a6444c
refs/heads/master
2022-09-29T02:23:14.426984
2020-09-08T13:58:46
2020-09-08T13:58:46
33,533,052
108
64
BSD-3-Clause
2022-09-16T19:34:25
2015-04-07T09:05:44
Python
UTF-8
Python
false
false
111
py
models.py
from .widget.visualtest.models import VisualTestWidget from .widget.clientinfo.models import ClientInfoWidget
15dc0243ea783bc55a22bd208169194a080f4267
e6ba5798d0edbc32be21bfc2b9e8133ba13ed77c
/foreverdrive/modes/scrolling.py
145ac6613b982232481b26d632d6257a59293cc2
[]
no_license
ironfroggy/Forever
d924a0d460ed9194f814bd400a06daf0a7a97542
f257fd0aa613e2876ffcc56bea8990005bc0e4dd
refs/heads/master
2021-03-27T09:55:06.307415
2010-03-19T02:19:08
2010-03-19T02:19:08
266,795
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
scrolling.py
from foreverdrive.modes import Mode from foreverdrive.events import Movement, Scroll from foreverdrive.base import Window class ScrollingMode(Mode): def __init__(self, *args, **kwargs): super(ScrollingMode, self).__init__(*args, **kwargs) self.areas = [] def first_entering(self): supe...
22d78cab9ae7274793f12ddbf5f6f3a901b7642d
98e6af812f68d41ce55feb5e30ed20aae9f9802f
/migrations/versions/6552c9abedf2_.py
c5a27f617feeb86050758720c2428223608286a6
[ "MIT" ]
permissive
uetchy/moa
edfb5e29a9649e662859ead5978243ec7c7d5e41
28a0977c7d6f404292b873815fe50a8865557c6b
refs/heads/master
2020-04-25T03:00:05.060890
2019-06-11T16:57:53
2019-06-11T16:57:53
172,461,241
0
0
MIT
2019-06-16T07:23:22
2019-02-25T08:03:45
Python
UTF-8
Python
false
false
688
py
6552c9abedf2_.py
"""empty message Revision ID: 6552c9abedf2 Revises: ed752bbbc436 Create Date: 2018-09-30 15:11:25.273469 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6552c9abedf2' down_revision = 'ed752bbbc436' branch_labels = None depends_on = None def upgrade(): # ...
02c4dab2f87ccaf5ead3759284929a66870e89d0
f5918707a51b5ab957742da0527a8b2858b7f0ed
/django_pathconverters/enroll/urls.py
8ec6c80d2325998d453171815bd522a075ae241c
[]
no_license
ravisingh-19/django_demo_project
a64dcef6e90abefc71851e5097bed8abd3c84aff
01c63340caae60524b3efe38eeeb8075d3dcfe96
refs/heads/master
2023-01-08T08:56:55.934175
2020-11-04T12:57:16
2020-11-04T12:57:16
309,889,620
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
urls.py
from django.urls import path, register_converter from . import views, converters register_converter(converters.FourDigitYearConverter, 'yyyy') urlpatterns = [ path('', views.home, name="home"), path('session/<yyyy:year>/', views.show_details, name="detail"), ]
1b31569e51d772ccb97e587af68c9da84e79cc6a
d2bb77074f7ee6bc429799bc56c452d0c5e7ab25
/pipe.py
2e2d1b53fe0e705480df6393d6e6ea638d0da624
[]
no_license
zarifikram/Flappy-Bird-automation-using-NEAT-PYTHON
fbb2fdf975a98081bee2e2d5767a647ef6c10c08
597bdc485cc0993b3e5ed89e6b778ce473b0e999
refs/heads/main
2023-04-19T01:59:04.866496
2021-05-06T05:14:32
2021-05-06T05:14:32
364,532,599
1
0
null
null
null
null
UTF-8
Python
false
false
1,658
py
pipe.py
import pygame import random class Pipe(): GAP = 200 VX = 5 def __init__(self, IMG, x): self.x = x self.height = 0 self.top = 0 self.bottom = 0 self.img = IMG self.PIPE_TOP = pygame.transform.flip(self.img, False, True) self.PIPE_BOTTOM = IMG ...
9f4375260e60510c5afc4d5296c6f31cbeedec0d
55c376b8d20f381ee8982557356cb00b77d5232b
/app.py
87c0f5f39a7ebbeb756ec9220b83c6e2bb35306b
[]
no_license
apollowebdesigns/pitree
a62a488b2ff84060e166871b3c1e94104ee46cf3
a6b63a6968b8668191ec32b1396ec71639d7f1e0
refs/heads/master
2020-03-28T19:38:08.410950
2018-09-21T18:29:09
2018-09-21T18:29:09
148,994,649
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
app.py
from flask import Flask, render_template, jsonify from serialtest import SerialClass app = Flask(__name__) from tree import light_tree, dim_tree from multiprocessing import Process serials = SerialClass() @app.route('/start') def start(): light_tree() return 'Hello World' @app.route('/stop') def stop(): ...
1efa082824ba95a4435971baeec8ced6206d2c2f
21b05cd5dd05b1068ed382675459db23e66c8af1
/Mvideo.py
e3b7cb66a62f01d43d04d32cc826a54bee0d0e9c
[]
no_license
AlenaLopatina/parsing
bdf60e6f82667d50229251d684cab11327edeff1
0b5bf082dc87a46c99abb6d7255294f2a122cac3
refs/heads/main
2023-07-25T01:02:27.853630
2021-08-29T21:13:03
2021-08-29T21:13:03
393,009,331
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
Mvideo.py
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from seleni...
5af7ed7183398b613713cf9d3ac1f2b910707fbc
e192171e5c090408feb287f10a9dedf066c2173f
/src/simulator/test_simulator.py
e278ee96b1f14bfdae24eea0dc0b8d99c6095479
[]
no_license
DatLQ95/tue_drl_vnf
5483fb167a4dd59fdb460eee62e4febc43dddfd8
634e5df9757fbf89bd82886bcc3ed822d16131dd
refs/heads/master
2023-07-17T15:56:40.181728
2021-09-04T14:03:49
2021-09-04T14:03:49
352,937,271
1
1
null
null
null
null
UTF-8
Python
false
false
76
py
test_simulator.py
from spinterface import SimulatorAction, SimulatorInterface, SimulatorState
3b84475e8733ff6c45e8949c03081c59dc09e7ec
ebaf381e0a569f72dde10aa277b2b438a1105883
/src/backEnd/chat/urls.py
6e2e9a069970dee19407434cc1c5af34907c26a2
[]
no_license
KirstenD/ConnectWithFriends
5a85f0239588ce25154f89c7d60ce3f109a5c146
c4c5d9583ebb48c653df6456a94909d092451792
refs/heads/master
2021-01-10T19:48:41.267644
2015-03-13T17:50:58
2015-03-13T17:50:58
30,897,008
0
1
null
null
null
null
UTF-8
Python
false
false
357
py
urls.py
from django.conf.urls import patterns, url from chat import views urlpatterns = patterns('', url(r'^index$', views.global_message_list, name='index'), url(r'^send$', views.send_global_message, name='send'), url(r'^game/index$', views.game_message_list, name='game_index'), url(r'^game/send$', views.sen...
21df507fdf670ac99c89c8c7f257a6f8e88250cd
f98a4ab17c1adcd7e222e7dec6daa6d21463d6fa
/part1_1.py
b15fca8b216bd6bf9fab51b03b501f556cf16a43
[]
no_license
tishafeed/oop-lab2
3fffad0aefa697f526d568ff3a16aa4fd68346a2
1e8a6ce7bd28a23ed36429464106bce0e969f3d4
refs/heads/main
2023-08-14T05:54:52.701527
2021-09-30T10:31:34
2021-09-30T10:31:34
412,019,778
0
2
null
null
null
null
UTF-8
Python
false
false
1,337
py
part1_1.py
class Rectangle: def __init__(self, length=1, width=1): # 1 is the default for any unset field if 0 < length < 20: self.__length = length else: self.__length = 1 if 0 < width < 20: self.__width = width else: self.__width = 1 ...
3187bccbd65b855e9b31fa440418406c592a8926
4578b30c433510cf370d51475ec11cac9c3de1cb
/serpent/visual_debugger/visual_debugger_app.py
395eab4282928477466f1cf2e3a6b68864c0ce80
[ "MIT" ]
permissive
SerpentAI/SerpentAI
0a5b2d567b50388722c3a3c5152555ce94256c49
00a487dd088c6ca2528d025f3273c0a796efe210
refs/heads/dev
2023-03-08T14:14:07.171435
2020-05-22T22:34:09
2020-05-22T22:34:09
88,444,621
7,216
950
MIT
2020-07-15T00:41:35
2017-04-16T21:48:39
Python
UTF-8
Python
false
false
3,124
py
visual_debugger_app.py
from serpent.visual_debugger.visual_debugger import VisualDebugger from serpent.utilities import SerpentError from serpent.config import config try: from kivy.config import Config Config.set("graphics", "width", 800) Config.set("graphics", "height", 600) from kivy.app import App from kivy.core...
d4d05f2b3f443f46da02900bb962602dbe941c6a
e288180c977c8fccf31c00bb74b7e8f56ee69303
/vkrb/expert/serializers.py
284354a595f94b54a4273e20f988a2e3c5dc6841
[]
no_license
kaluginadaria/vkrb-back
32e0c9aef7a647ea2a2e399c8d999622e993a433
d037baaa9f17cb038d41dda5dfbf1dbb56acdf90
refs/heads/master
2022-12-07T23:36:32.902662
2019-05-22T15:06:31
2019-05-22T15:06:31
179,382,015
0
0
null
2022-11-22T02:38:25
2019-04-03T22:52:30
Python
UTF-8
Python
false
false
1,577
py
serializers.py
from django.contrib.contenttypes.models import ContentType from django_serializer.serializer.base import ModelSerializer from django_serializer.serializer.fields import SerializerField from vkrb.activity.models import SiItem from vkrb.activity.serializers import ActivitySiItemSerializer from vkrb.attachment.serializer...
bcc7bef6f20ceb6529ca76efae8ff662cedecfaa
e7ea1efdc88c0974716b00da7143ea0f03f02229
/stacking.py
202d8318cd27a874129efa2cd86cef9149488bf1
[]
no_license
SeverusZhu/2018-
8f253cb1a4fcd8c3d3b4766f94b09ac15391ea20
5e1ec75c2ed8c0c5a1aff7c861f8f28cb52a9dd8
refs/heads/master
2020-03-21T02:12:42.783476
2018-06-20T06:19:53
2018-06-20T06:19:53
137,987,329
0
0
null
null
null
null
UTF-8
Python
false
false
7,633
py
stacking.py
from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_squared_error from sklearn.ensemble import ExtraTreesClassifier from sklearn.ensemble import RandomForestClassifier from xgboost import XGBClassi...
2c8d8518166f99ac75189cb024bedc06e2dc8c17
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp60_1500.py
bf962df3dbd3e7630a09ba67964ae10e8d573af7
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,896
py
temp60_1500.py
ITEM: TIMESTEP 1500 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp 6.0305808168589436e-01 4.6596941918307692e+01 6.0305808168589436e-01 4.6596941918307692e+01 6.0305808168589436e-01 4.6596941918307692e+01 ITEM: ATOMS id type xs ys zs 8 1 0.124973 0.0589488 0.06143 35 1 0.0578991 0.129384 0.0669872 130 1 0.0641294...
2bd19cb9e361df259ef0628e1a5e5f8df70369f7
9cbfb26490bc744ef739a39a8c162628a1623fa4
/pertemuan 7/DemoQdesigner.py
73129527ece9eeee2bcaa7785ce979b5bff6fa34
[]
no_license
Jancukers99/Gui-17104034
51574b696029133f7f00994742d218289a36cbe6
a2ed60af8e53724fd5d02f82bb64f2c18e16e214
refs/heads/master
2020-06-04T03:25:23.874251
2019-07-15T07:17:13
2019-07-15T07:17:13
191,854,786
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
DemoQdesigner.py
import sys from gta2 import * from PyQt5.QtCore import * from PyQt5.QtGui import* from PyQt5.QtWidgets import * class MainForm(QDialog): def __init__(self, parent = None): QDialog.__init__(self, parent) self.ui = Ui_Form() self.ui.setupUi(self) self.ui.hallo.clicked.connect...
ee05404bdda2cf5f993214d0e2d8c00c72407195
ecf13c218e6447a3df91fa8950d5205057af594b
/Day20-21 Inheritance List slicing - Snake Game/Day20_21_scoreboard.py
d5730e07e1caf306457b1fcaa7f8adf0a51e25a9
[]
no_license
liwei-yeo/100days
754b9b0ca7c8126e88fcc17f45c7e3e425d4f431
58a1c55848bf8dec77c4dd0b71e7ec7ede09d520
refs/heads/master
2023-05-28T03:07:31.636658
2021-06-16T03:29:29
2021-06-16T03:29:29
366,664,100
0
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
Day20_21_scoreboard.py
from turtle import Turtle ALIGNMENT = "center" FONT = ("Arial", 12, "normal") with open("Day20_21_highscore.txt") as scorefile: highscore = scorefile.read() class Scoreboard(Turtle): def __init__(self): super().__init__() self.high_score = int(highscore) self.color("yellow3") ...
42e34d7729634c3ad784662080b75ef0d559227b
f4641e843ef7dbdd1ed0d83d9d9d119814dbe21d
/core/migrations/0002_auto_20150419_2004.py
8a6c6c742c1d8c5899aac30a181edf7f0541c5a4
[ "MIT" ]
permissive
springload/madewithwagtail
c2469b50145724dadfd92d911de2b7215c4f3eed
0c6fcac977540ec1a2de3161e1b0a55cb06145c1
refs/heads/main
2022-11-12T15:30:42.431120
2022-10-24T22:43:07
2022-10-24T22:43:07
34,143,563
72
22
MIT
2023-09-04T23:58:54
2015-04-17T22:47:59
Python
UTF-8
Python
false
false
1,644
py
0002_auto_20150419_2004.py
# -*- coding: utf-8 -*- from django.db import migrations, models import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ("core", "0001_initial"), ] operations = [ migrations.AddField( model_name="submitformpage", name="body", ...
0fc531c0aa1637b1cefe49815f38c66c83051cb4
2eff081602fb30e68bbcaa435057e4f00a4620e1
/hathor/profiler/resources/profiler.py
738d96d34067e9c7875c1f1e84d7aed9fad4515c
[ "Apache-2.0" ]
permissive
HathorNetwork/hathor-core
a6d1a4d020c7014666d2d1a85f15832e110b2cfe
78229b7c99365229a7a806a4660d17234c0b2a9a
refs/heads/master
2023-08-31T18:13:27.092785
2023-07-11T18:38:21
2023-08-29T20:09:23
204,029,551
75
24
Apache-2.0
2023-09-13T22:07:01
2019-08-23T15:56:40
Python
UTF-8
Python
false
false
5,622
py
profiler.py
# Copyright 2021 Hathor Labs # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
60500d2a038b7a6fbfd48eee6a01e886258da68c
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4013/codes/1798_2566.py
31bf07cb38211df0253202e83b94b02580049791
[]
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
607
py
1798_2566.py
from numpy import* vet = array(eval(input("vetor de faltas a cada dia:"))) v = zeros(6 , dtype=float) seg = 0 ter = 0 qua = 0 qui = 0 sex = 0 sab = 0 for i in vet: if(i == 2): seg = seg + 1 elif(i == 3): ter = ter + 1 elif(i == 4): qua = qua + 1 elif(i == 5): qui = qui + 1 elif(i == 6): sex = sex + 1 ...
56ba8d2714e53817fb32aacc2543d2ddeb1f46ca
3676e42bad4108dcb6671603ebf66f39598245b5
/tests/modeling_albert_test.py
905da1e53b7c0d1faa9b16ec3bdaaaaedbef2c9c
[ "Apache-2.0" ]
permissive
ManojKesani/transformers-keras
0b410b4b7bc3c65e07c38d3ae752de3e77cdf213
f8bdcb54bba0d04c44a2363c7f9192c5dfc166ee
refs/heads/master
2023-02-06T11:07:49.162197
2020-12-25T02:41:33
2020-12-25T02:41:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,523
py
modeling_albert_test.py
import numpy as np import tensorflow as tf from transformers_keras.modeling_albert import (Albert, AlbertEmbedding, AlbertEncoder, AlbertEncoderGroup, AlbertEncoderLayer, ...
22f97d33096d5b3cb383e15e4ba12e946f849d6a
e6ba27a48c3640bcc11a32168794ab54afb6b45e
/exercises/5.4/src/detect_pump/nodes/image_pub.py
62a6086c1cfa62897f0afb523ec923f85423b46f
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
ros-industrial/industrial_training
db1dce413bf25ea7224ff14bb14dab9bcc4aefb7
5d0d1fd37e6496c5b5ac1ce4e72ea0e5f602c8a3
refs/heads/humble
2023-08-05T18:30:00.678163
2023-08-03T16:30:29
2023-08-03T16:30:29
14,630,836
400
253
Apache-2.0
2023-09-06T18:28:48
2013-11-22T22:16:18
C++
UTF-8
Python
false
false
992
py
image_pub.py
#!/usr/bin/env python import rospy import sys import cv2 from cv_bridge import CvBridge from sensor_msgs.msg import Image def rotateImg(img, angle): rows,cols,ch = img.shape M = cv2.getRotationMatrix2D((cols/2,rows/2),angle,1) return cv2.warpAffine(img,M,(cols,rows)) def start_node(filename): rospy.in...
afe7c7a9902094af08606cf70e1a96bda787e099
ab9232740352a6bbd0952417d2a685a1fc2e2342
/C4/Theory_Examples/Simple_Recursion.py
341a232d73b2f98a919ad0a8aa96c869ff9b9369
[]
no_license
dooleys23/Data_Structures_and_Algorithms_in_Python_Goodrich
930f01f7b95ba6a40c4eb00384f5a3fb7f0c3854
5a86f997cd30046b961c855d9de58483cb38bf77
refs/heads/master
2020-03-28T20:16:38.471519
2018-09-23T04:20:57
2018-09-23T04:20:57
149,055,317
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
Simple_Recursion.py
# Example found in https://www.youtube.com/watch?v=eqQQoIAT9So def countdown(number): if set[number] == 0: print ('Completed') else: print number countdown(number-1) set = {2,3,4,5,6,7} countdown(len(set))
25f562cc30a6ebcb9a25059365333eb370171e56
333afedd79b8dcff836d0d39fd2be7c2e6b69867
/test/test_del_contact.py
3a046e964bdf01820d577f1f5479c04076739ce8
[ "Apache-2.0" ]
permissive
BarablinVS/python_training
b100f4142cc25f0bc9ecfb3fd51c7566843add4a
56f1f390323fea6e0d5c1982fd6a021dc11cc652
refs/heads/master
2021-05-08T21:23:36.315719
2018-04-03T10:07:05
2018-04-03T10:07:05
119,337,848
0
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
test_del_contact.py
from model.contact import Contact import random import time import pytest __author__ = 'viktor' def test_delete_contact(app, db, check_ui): if len(db.get_contact_list()) == 0: with pytest.allure.step("When I add a contact to the list"): app.contact.create(Contact(firstname="test_cont...
d2fb76abc2ca9dafc46dd0a0a1fd6fc50230f6a5
9e99a30da0342d6c455630569ac677bc55309bf2
/announcement/admin.py
a5a1d60acfd73c9bd7acdbe89c20b2b239bcd2f0
[ "Apache-2.0" ]
permissive
Kazu-hx/Q-A-online
9cb67930a57563308924241d29d631116ba7c90f
833688d556ecc70570a9b464160271ace07380d9
refs/heads/master
2020-04-10T18:25:51.635956
2018-12-10T15:39:34
2018-12-10T15:39:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
admin.py
from django.contrib import admin from announcement.models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('content',) list_filter = ('author', 'create_time') list_display = ('author', 'create_time', 'content') admin.site.register(Announcement, AnnouncementAdmin)
c7b3130d3265113c4cf125d423e087bde69d0a67
de6cce9811442f14303b926131cb8ab7feadf85c
/data-pesos/reverseALL.py
d0d37ee35dcc533601752170f7677aca3b77707d
[ "BSD-2-Clause" ]
permissive
AugustoQueiroz/pedalavel-backend
c083b88102229927c4396f792e882d1fa6b4a21e
c7fa405ff6f6823bdc9d4bb857eddc7197be1f4f
refs/heads/master
2021-04-09T15:12:10.903357
2018-03-18T19:55:03
2018-03-18T19:55:03
125,663,626
0
0
null
null
null
null
UTF-8
Python
false
false
2,048
py
reverseALL.py
import csv import unicodedata import googlemaps from datetime import datetime gmaps = googlemaps.Client(key='AIzaSyAv6cAFu6Z19mnwdF2_PUFkpOJWmQwA7Xs ') latUndLong = [] with open('acidentes-2016.csv', 'rb') as csvfile: reader = csv.reader(csvfile, delimiter=';', quotechar='|') for row in reader: la...
22d0f6f60681610c60f6cc467b11a3051a7004d7
9825db945e7bfe68319b086e9fb7091a63645d5c
/ratings/forms.py
65c5545832405037aa2a429a5d247fbeaebc2c7e
[]
no_license
lupyanlab/telephone
e1ee095d5698dc228deec5ba5878a46b76d43f2d
136f27fb2b41263f53fba6bd44711cf57598a1a4
refs/heads/master
2020-04-12T07:33:05.849287
2017-04-04T01:16:14
2017-04-04T01:16:14
41,316,823
1
1
null
2015-11-17T04:44:40
2015-08-24T17:20:23
Python
UTF-8
Python
false
false
4,191
py
forms.py
import string from django import forms from django.core.exceptions import ValidationError from crispy_forms.bootstrap import InlineRadios from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Field, Submit from grunt.models import Message from ratings.models import Survey, Question, Resp...
b0f3af59fbd3dd695e6f8aad46c61d4220d93f56
31febb23474936ae4313a2b2da16b43facec989d
/operators/conditional/Nested_IF.py
5167f73c8138ffd8e7720381e5271b4a079db834
[]
no_license
ashwingarad/Core-Python
41bed313a80162c5456ddf716cc2d746529c83e8
291861869bbfcd1d0defca528a73e103d85c6d4a
refs/heads/master
2020-03-25T17:06:35.630666
2018-08-08T07:33:16
2018-08-08T07:33:16
143,963,630
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
Nested_IF.py
''' Created on 27-Apr-2018 @author: Ashwin ''' num = int(input("Enter number : ")) if num % 2 == 0: if num % 3 == 0: print ("Divisible by 3 and 2") else: print ("divisible by 2 not divisible by 3") else: if num % 3 == 0: print ("divisible by 3 not divisible by 2") ...
46e5a1c03f86e8360bb617cb013b66dc2ae9a7d9
64d320725557db4ddf2e0774497611a72f19756c
/organizations/migrations/0001_initial.py
3868035b01b10421353f1bae32b4a2f83201d769
[]
no_license
OmarNour/AccountingProject
dd73444562693c95f8084ad1fa07ac591f41661e
20098658f60546a6bedf327773a982a52c8c185a
refs/heads/master
2021-09-26T08:59:55.599642
2019-12-31T09:53:43
2019-12-31T09:53:43
98,938,664
1
0
null
2021-09-22T17:40:17
2017-07-31T23:30:58
Python
UTF-8
Python
false
false
6,911
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-30 23:25 from __future__ import unicode_literals from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migrati...
5a96f14dfbf8cac21f421756e4564081e870596c
4f83b431ffbac97e41d7e7feaa808db4e9cc5010
/lre/text/index.py
dbcf9130d3ca5309dd0453379192f42cd36e69b5
[ "Apache-2.0" ]
permissive
ovixiao/lre
5dc31fea67d13955a17dcb373ba713093dd11b24
e60de7b4457efd5a85165e89a4477c14f52c471b
refs/heads/master
2022-12-11T23:08:20.625355
2019-11-19T15:51:28
2019-11-19T15:51:28
221,510,540
0
0
null
null
null
null
UTF-8
Python
false
false
1,584
py
index.py
# -*- coding: utf-8 -*- """ 索引对象, 方便进行索引的追踪 """ from __future__ import unicode_literals import six @six.python_2_unicode_compatible class Index(object): """ 存储索引的对象, 同时包含部分简便操作, 所有的指标都不会被标点影响 """ def __init__(self, i_para, i_sent, i_word, offset): """ :param i_para: Term 所在段落的 index ...
1a9386b235530c0b980a81a75f26244a017d3615
f611ff6f967cab6ff750a874d47caea0a59a11d2
/events/management/commands/add_tku_topics_by_content.py
f463f10614f9cc195a580cb9c4915eefee33afd7
[ "MIT" ]
permissive
City-of-Turku/linkedevents
c279a95604b37b2dbcb3c42521ff953377948ea9
0bd632badaa5a96c3a83927ccf1d828f09b92e73
refs/heads/development
2023-03-16T05:05:10.280369
2023-03-07T11:21:53
2023-03-07T11:21:53
238,394,242
4
6
MIT
2023-03-07T11:21:55
2020-02-05T07:39:49
Python
UTF-8
Python
false
false
2,862
py
add_tku_topics_by_content.py
from functools import lru_cache from django.core.management.base import BaseCommand, CommandError from django.db import transaction from events.models import Keyword, KeywordSet, DataSource TURKU_KEYWORD_SET_DATA = { 'id': 'turku:topic_content', 'name_en': 'Content based Turku topics', 'name_fi': 'Turku-...
c25356a0a3bf8ca8e5f09ba6b6bb57c60a3577d7
e5063997b547745b000dec9b386d471cd2862696
/apps/editors/views.py
618119f7879b05c5efab96985a142ea7d4f125b1
[]
no_license
LittleForker/zamboni
509d3d5e12c5a31295f2e7645aaac4abca321a5c
2591a2d13896d3da6b15e9e090434e7c2da61d32
refs/heads/master
2020-05-26T00:40:04.824062
2011-04-06T22:10:05
2011-04-06T22:10:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,831
py
views.py
from datetime import date import functools from django import http from django.conf import settings from django.shortcuts import redirect, get_object_or_404 import jingo from tower import ugettext as _ import amo from access import acl from amo.decorators import login_required, json_view, post_required from addons.m...
88de87f87a0d23cc7f2ce9339ec45380961d14c0
94fa64874bdcf8725a593ef168c4baacfe6ee58f
/лаб 7/Matrix.py
e42be68f8412c6226c87b1367eaf7aef5e00c520
[]
no_license
StruiAntonBy/Graph-theory
9af1d99cdab63692d79bfc9239c5d9d1c0ccc966
5b72ed92f1de34188c6838db34fc675d0418bd4f
refs/heads/master
2023-04-04T23:03:18.425346
2021-04-20T22:21:34
2021-04-20T22:21:34
359,964,172
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
Matrix.py
class Matrix: def __init__(self, FileName): file = open(FileName, 'r') self.Array = [] for string in file: string = [x for x in string] buffer = '' line = [] for element in string: if element == ' ' or element == '\n': ...
82d4f123012eccfccdbd917326c1c7f1f5503e76
834efaf7a7f11b9457b74972ee4246e0c2443416
/linkedlist/singly/linkedlist.py
57c7ecab45b3a46773bb939b4ff7e82b0efa0548
[ "Apache-2.0" ]
permissive
chinchponkli/pyalgorithms
d96e3a43147e8283649b7a099bd25b760e16a75c
a6049bef779550c4814769fe58eeaa54f56cd4ca
refs/heads/master
2020-09-18T17:11:03.191491
2020-02-13T10:09:20
2020-02-13T10:09:20
224,158,611
0
0
Apache-2.0
2019-12-24T04:34:38
2019-11-26T09:58:54
null
UTF-8
Python
false
false
3,851
py
linkedlist.py
''' Like arrays, Linked List is a linear data structure. Unlike arrays, linked list elements are not stored at contiguous location; the elements are linked using pointers. ''' ''' The first node of the linked list is called Head. Each node has some data and points to next node. The last node points to null. For exampl...
a7b7218beb938ba0e17785d78409b2b963c43e41
5db72a1149ecab895a206b64294aaccdf031008f
/testmodrec.py
71d2ff176497944278bb2c2528f2940967648581
[]
no_license
tinvo015/ModulationRec
f4cd30dd4cddf05c9d000790f9be510c4f62c26f
64c826855c1e4ca599676b13a894f7f3b9412437
refs/heads/master
2020-03-27T14:51:36.868076
2018-08-30T02:13:26
2018-08-30T02:13:26
146,682,997
0
0
null
null
null
null
UTF-8
Python
false
false
1,647
py
testmodrec.py
#!/usr/bin/env python # This program uses KNN to determine the type of signal that is being inputted based # on the signal's bandwidth and shape from sklearn.neighbors import KNeighborsClassifier import pandas as pd import numpy as np #n value #n = 3 iterations = 100 #loads data from .csv into a datafile and shuffle...
989c803686941f3c3503294a9a10831e2578a070
e7ce273f404f82fd8672c97e50b386509c8f9870
/Web/Web_basics/Projects/Petstagram/common/models.py
c36025f51759a7f815ccdc141b39278f88140d9d
[]
no_license
rzlatkov/Softuni
3edca300f8ecdcfd86e332557712e17552bc91c3
a494e35bff965b2b9dccc90e1381d5a1a23737a1
refs/heads/main
2023-07-02T12:49:59.737043
2021-08-13T20:47:07
2021-08-13T20:47:07
319,088,872
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
models.py
from django.db import models from pets.models import Pet # Create your models here. class Comment(models.Model): pet = models.ForeignKey(Pet, on_delete=models.CASCADE) comment = models.TextField(null=True,blank=True) def __str__(self): return self.pet.name
a9e2d6305a44c81194f0b5386ff7ff65dde69457
5fca854781b64b7154db207deee3e01e91127818
/Bean/295_find-median-from-data-stream_H/solution.py
d5f76a8d2acb0b551a25a6a384daeb73067ea2fa
[]
no_license
TangBean/XiShuaShua_together
24b9cb22aef34c5a00b825bbe1ac436f67f54b69
60597defd0e172cb8313fef29eb87146d2e6b488
refs/heads/master
2020-07-06T08:01:09.907029
2019-08-20T06:53:03
2019-08-20T06:53:03
202,948,220
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
solution.py
import heapq class MedianFinder(object): """ Runtime: 260 ms, faster than 71.44% of Python online submissions for Find Median from Data Stream. """ def __init__(self): self.left = [] self.right = [] self.size = 0 def addNum(self, num): if self.size & 1: ...
4f14a228a4152f93bcb145aca8ce1d9c3af5edd7
cf4411c92bde6a9dbd973713a2f1ef29015cf4a2
/restapi/rcmrestapicall.py
9803dde8b76d884ecfe15c84db9f619944bb7799
[]
no_license
srikloud/PyProjects
5bce22912274c505faaead68ade86123c3cff0c6
bd286c679a5111c2af5b9d7ed762ef001a9ac11a
refs/heads/master
2021-10-21T04:29:05.477013
2019-03-02T20:10:47
2019-03-02T20:10:47
115,449,644
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
rcmrestapicall.py
import json import requests import urllib.request url = "https://rcm-api.admin.mp.mo.sap.corp/job/?limit=20" request = urllib.request.Request(url, headers={'Authorization': 'Token 8SmPx5419BQ0qYMFy4N6Y4tFVaAq7DbK'}) response = urllib.request.urlopen(request) print (response.read().decode('utf-8'))
a92c12341b4459657f77e7f07795e25675cadfc5
faa8019fbe471f2aebb45a7e8f49f513f4eb7be1
/tests/correct3/compare.py
42b8852ebf34ea8d1fe9de7efabd632964ccd4df
[]
no_license
bryanlov/python_compiler
66a9ced35317f71659b68f4d495216aea75051fb
03c8636f8461b5b29b484240f36f9ae71d0a7b9d
refs/heads/master
2020-04-01T22:16:10.522381
2018-10-18T23:19:42
2018-10-18T23:19:42
153,699,130
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
compare.py
x = 10 if x > 5: print x if x < 5: print "kai" else: print "zhao" if x >= 10: print "ge" if x <= 10: print "le"
29df3d14bd293d6380998cbe57bb0bf1c47592ff
b1510b69356f55c31b07c870fdbe90ecab920c72
/useragent/firefoxua.py
d6709f7ebc0b57edb53cd7bcd7e82096bc0ba431
[]
no_license
ihandmine/msqcrawler
755138b5050ac87c7367089cab2fc2547a05db46
30465a3592f98f931ca95f1581fb947c819d73a0
refs/heads/master
2023-01-22T10:03:40.724211
2020-12-10T03:23:09
2020-12-10T03:23:09
266,977,240
1
0
null
null
null
null
UTF-8
Python
false
false
2,494
py
firefoxua.py
from random import randint, choice as r_choice from useragent.useragent import UserAgent class FirefoxUA(UserAgent): """ Mozilla/5.0 是一个通用标记符号,用来表示与 Mozilla 兼容,这几乎是现代浏览器的标配。 platform 用来说明浏览器所运行的原生系统平台(例如 Windows、Mac、Linux 或 Android),以及是否运行在手机上。搭载 Firefox OS 的手机仅简单地使用了 "Mobile" 这个字符串;因为 web 本身就是平台。注意 platf...
6c4984025938a34035c355efb16e2f9bc32dd1c0
5de42fcfb7f087a46d3bcb998447204a954c3e57
/scripts/cor_of_predicted_env.py
da0fa53da7467f49bbd17bcc0f0d210f0280ee7d
[]
no_license
danielriosgarza/reaction_set_evolution
52c0ed1a81e54a0f12725146f57995c91c8701b9
33cf1b8237e1460fb470ba6b15436a69fd4fbf65
refs/heads/master
2020-09-15T01:52:58.569730
2020-02-03T10:42:12
2020-02-03T10:42:12
223,319,901
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
cor_of_predicted_env.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 13 15:58:16 2020 @author: daniel """ quantile_freq=.95 quantile_met=.95 quantile_ass=.99 quantile_mod=.95 family = 'Acetobacteraceae' test_frq = store['full_freq_m'].copy() test_env = store['used_env'].copy() av_test_env = np.nanmean(used_enviro...
091b36ae72e3c2b801b0f77d0fa66c9ec7bdfde5
a24c9a4fe4c912200e694e46992789c7e2f82dd1
/tools/qubot/qword_tools.py
867f70735e899ced16761f1b5badaaab8ee352a7
[ "BSD-2-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
cksystemsteaching/selfie
0e94758b0bfb69baa630dc4f073bed5dfc5027bb
cdd7c68e1fcaf3608527a4a85a50f57627afe9d6
refs/heads/main
2023-09-02T17:31:39.471055
2023-08-29T16:31:48
2023-08-29T16:31:48
41,832,998
2,406
485
BSD-2-Clause
2023-08-10T17:18:35
2015-09-02T23:40:53
Jupyter Notebook
UTF-8
Python
false
false
39,221
py
qword_tools.py
from typing import Dict import dwavebinarycsp from dwavebinarycsp.factories import multiplication_circuit from bit_transformation.configurations import Config from bit_transformation.bit_penalty_models import get_model from tools import * from qword import QWord import dimod from bit_transformation.more_gates.xnor im...
05bf2f7c4c147fa62195ea6d3de5deab69bb724b
b440967316e2cc67de01f13e29f8070d1220c376
/regex18.py
427caad415cb436d3e32e8563ed54ecb2732b916
[]
no_license
kishorc1999/Kishor-Chintanpalli
ab55f9aacfc51ea340fc63f94fefcd946d1a3c43
eaabde2e659ade33ba74e23e58c0a7e48aca9f03
refs/heads/master
2020-12-09T18:12:45.289778
2020-01-15T10:15:29
2020-01-15T10:15:29
233,380,763
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
regex18.py
import re a=raw_input("Enter a String:-") if (re.search('is [a-g][o-r]od',a)): print 'found' else: print 'not found'import re
d77ea1cff8568f6beda1a56425b7a22c8728df54
4d42350529ba1a83e151f1edd1b8d3fb76f6d528
/xmppface/cmds.py
2a54b939aa3ff4af48592c85657a33d8e1d0d949
[]
no_license
HoverHell/xmppforum
b0089e4415d6785a4b708cf44afa8e6725f4950c
d54c3dd1bc2daf4f023977b63567b80b0d2c9459
refs/heads/master
2016-09-05T11:10:28.439944
2012-04-16T03:26:11
2012-04-16T03:26:11
4,482,099
2
0
null
null
null
null
UTF-8
Python
false
false
620
py
cmds.py
""" A sample / utility command patterns that can be plugged in if needed. """ from django.conf.urls.defaults import patterns from .views import (xmpp_register_cmd, xmpp_unregister_cmd, xmpp_web_login_cmd, xmpp_web_changepw) cmdpatterns = patterns('', (r'^(?i)reg(?:ister)?( +(?P<nickname>.+?)( +-p (?P<password>...
2affa0ba096acb0034196003f0af4055d90dabf2
88a40203ebdbf2810a21688fb84a3f56d2ebb1b3
/python/feature_learning/compare.py
d14044933314d446edaf362aabda72a091efd550
[]
no_license
aushani/flsf
2ae356338f08f2ba48a499fadb3eb91d6c01f66f
a1782b3accffa4ebb5f231e76a6e1d958d16b714
refs/heads/master
2020-03-28T13:08:19.554199
2018-08-23T21:47:15
2018-08-23T21:47:15
148,369,543
4
1
null
null
null
null
UTF-8
Python
false
false
1,022
py
compare.py
import sklearn.metrics import numpy as np import matplotlib.pyplot as plt def make_pr_curve(true_label, pred_label, label, color=None): precision, recall, thresholds = sklearn.metrics.precision_recall_curve(true_label, pred_label) plt.plot(recall, precision, color, label=label, linewidth=4) plt.legend(lo...
b0edcf27c9210d312e8806389d67e48676a9e05e
d720581830cdd9010fe42c604b94f31ae81641a8
/main.py
c63f46ed8cf0b03ef3e2cb0453b1b168149c5f28
[ "MIT" ]
permissive
h1g0/copy_otp
9cf7823ac1e142ddf3b75aef1f029e8247022d61
43d912cb9b27abd55012a5fc5217126aa350ca54
refs/heads/main
2023-06-08T15:42:44.187268
2021-06-25T17:42:44
2021-06-25T17:42:44
379,326,296
0
0
null
null
null
null
UTF-8
Python
false
false
2,348
py
main.py
import pyotp import keyring from pyzbar.pyzbar import decode from PIL import Image import pyperclip import re import os SERVICE_ID = 'COPY_OTP' def get_totp(secret: str) -> str: totp = pyotp.TOTP(secret) result = totp.now() return result def get_skey() -> str: return keyring.get_password(SERVICE_ID...
c1771dc15dfac85944efb127a04fc38c97d3de8f
0a8fc699c3a700510e153cdca3af8f01226de923
/data/mail.py
f2c6b1cb589c2e26e67d7edc79456d9a826626de
[]
no_license
M4SK-GM/-Butcher-Shop-Big-Dave
7a27b6a7f987e8bd6d069bfa73ea39a79682d1f7
6b2d1afe281d2e7241e97b259c7aa25be1cf697a
refs/heads/master
2021-05-27T04:26:11.280509
2020-04-23T13:28:35
2020-04-23T13:28:35
254,217,248
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
mail.py
# !/usr/bin/env python3 # -*- coding: utf-8 -*- import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from platform import python_version def send_mail(toaddr, code): server = 'smtp.mail.ru' user = 'butchershopbigdave@mail.ru' password = 'RgeAyRI11ri_' re...
4900d894e8705a1f56fb6235628795ff494dfbe6
659fe2c27aee4cb338d7d955a15d0267cc7442b3
/code/models/HANkeras.py
af7322d891c08e69d4512dd2eec772351096f778
[]
no_license
gazlaws-dev/SongEraClassifier
049c8ca78f3254367203f7847030444c745f7058
0529068596310c30d2f26c087d6823c9562b5707
refs/heads/master
2020-03-08T00:54:46.488774
2019-03-03T06:28:46
2019-03-03T06:28:46
127,816,689
1
1
null
null
null
null
UTF-8
Python
false
false
8,400
py
HANkeras.py
import numpy as np import pandas as pd import cPickle from collections import defaultdict import re from bs4 import BeautifulSoup import sys import os os.environ['KERAS_BACKEND']='theano' from keras.preprocessing.text import Tokenizer, text_to_word_sequence from keras.preprocessing.sequence import pad_sequences fro...
ace1abea353d56477fd2caf31c01c816896e5adf
ecb15d15ca051a0873e456b45e8a9c0ea63a8a82
/tests/gamification/test_task_types.py
1eb9a8a67f4c3251d3279a243a0d8b369fd8cb56
[ "LicenseRef-scancode-proprietary-license", "BSD-3-Clause" ]
permissive
mrgambal/vulyk
345a2577ede7eab4ce53343a11eb67ed266511de
dd89a1fdacc322a43090169aae9e36f03f1b55c2
refs/heads/master
2023-07-09T07:14:27.083024
2023-06-08T20:31:20
2023-06-08T20:31:20
26,280,439
34
9
BSD-3-Clause
2023-06-08T20:31:21
2014-11-06T17:05:50
Python
UTF-8
Python
false
false
4,742
py
test_task_types.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_task_types """ import unittest from unittest.mock import patch from vulyk.blueprints.gamification.models.task_types import ( COINS_PER_TASK_KEY, IMPORTANT_KEY, POINTS_PER_TASK_KEY) from vulyk.models.stats import WorkSession from vulyk.models.tasks import Abs...
51ca8be365fb787f4fe68c79b6d1dfb8ed53d3c7
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/100_Python_Exercises_Evaluate_and_Improve_Your_Skills/Exercise 44 - Letters Three by Three.py
b353671b6f308d697a9f178834abe6d0792fa553
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
351
py
Exercise 44 - Letters Three by Three.py
# #FromScratch - Create a script that generates a file where all letters of English alphabet are listed three in each line # # ______ st.. # # letters _ st__.a_l_ + " " # # slice1 _ ? 0||3 # slice2 _ ? 1||3 # slice3 _ ? 2||3 # # w__ o.. "letters.txt" _ __ file # ___ s1, s2, s3 __ z.. ? ? ? # print ? ? ? # ...
99e2e7c642efc6a0c45dc700bebafe9965536871
2bc521400d409e98f534369ab683e483b0337ae5
/csaw/crypto/solve_feal.py
87f8994645f72a2499b19171100546c17b012eee
[]
no_license
unjambonakap/ctf
cd71c8e774dab7dcdffbc6f87a1961adc43921bb
c5cacf7bcfe451ba019eb73eb36faadff512186a
refs/heads/master
2021-06-30T18:06:23.058257
2019-06-05T20:03:57
2019-06-05T20:03:57
145,031,631
1
0
null
null
null
null
UTF-8
Python
false
false
4,612
py
solve_feal.py
#!/usr/bin/python import hashlib import socket import re import sys import base64 import itertools import binascii import array import os import time import subprocess as sp DEBUG=True def rot3(x): return ((x<<3)|(x>>5))&0xff def gBox(a,b,mode): return rot3((a+b+mode)%256) def fBox(plain): t0 = (plain...
424a73a8baa5dbdfd519540ec69baa15c338bd09
58779d3c1843f39abac97d4124c3ee05fa3ab9d7
/Suchary/logging/filters.py
4e53ea2a61dab100971414170995ddfdb3ac68cc
[ "MIT" ]
permissive
jchmura/suchary-django
cd4fc7647cfdd3328629d2a592bfd828907a3b65
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
refs/heads/master
2021-07-03T15:20:41.581768
2020-10-09T19:57:13
2020-10-09T19:57:13
19,475,734
0
0
MIT
2021-06-10T19:20:13
2014-05-06T00:29:15
Python
UTF-8
Python
false
false
274
py
filters.py
import logging class RangeFilter(logging.Filter): def __init__(self, min=logging.DEBUG, max=logging.CRITICAL): super().__init__() self.min = min self.max = max def filter(self, record): return self.min <= record.levelno <= self.max
2710d5859a7adf5303c6563b10371b75a24151b4
5f4d91e1781306a9440f60bfef0c10ececf6a74c
/test/cache_test.py
b6a39a4dd9fffc1085b00c336e9f61973cd0fc64
[]
no_license
dcvan24/cachalot
cd5639507ec1693f5afda1fb150b937b3ec2b4e0
d8ae9417a64e14f344f91e5e182079745d67c005
refs/heads/master
2020-05-25T07:48:17.569611
2019-05-20T18:34:00
2019-05-20T18:34:00
187,693,980
0
0
null
null
null
null
UTF-8
Python
false
false
6,081
py
cache_test.py
import random import unittest import simpy from unittest import TestCase from core import Loggable from cache.lru import * class LRUQueueTest(TestCase, Loggable): def setUp(self): self._num_nodes = 5 self._num_iters = 5 self._q, self._nodes = self._prepare() def test_enqueue(self): ...
2a20e4c891ab904887c444c9416aab646a6e8039
5d0b2392a7f170df36f09c5c346cf171fddbfae4
/setup.py
63d3f871d5d90b2133fe28ff9ed16d4974224be6
[]
no_license
kwilcox/pyworms
ed99e1d76bc61ef9b0e816e4cbdb5fc850643d12
33515ec51f7ab115a8b5becd250a535370374814
refs/heads/master
2020-03-27T16:36:48.595890
2018-08-30T19:10:23
2018-08-30T19:10:23
146,794,849
0
0
null
2018-08-30T19:09:53
2018-08-30T19:09:53
null
UTF-8
Python
false
false
295
py
setup.py
from setuptools import setup setup( name="pyworms", description="Python client for the WoRMS REST service", author="Pieter Provoost", author_email="pieterprovoost@gmail.com", version="0.1.7", packages=["pyworms"], install_requires=["backports.functools_lru_cache"] )
0e257ec07fcb3314b58d8d4408a0ae123b159ef8
6863f93e04bebecf0f1bf0131ffac80ec0d26030
/plugins/file.py
880790a90370c470661ea563ea630e9396385def
[]
no_license
harindu95/launcher
8fcd5648e351814daa7eddc17ffd9d2aa793d738
980df398c108b8e0731c653a51c74f2a17cd8ee8
refs/heads/master
2021-01-20T13:23:12.266033
2017-05-14T17:44:09
2017-05-14T17:44:09
90,484,937
0
0
null
null
null
null
UTF-8
Python
false
false
2,597
py
file.py
from PyQt4.QtGui import * from PyQt4.QtCore import * import subprocess,os,mimetypes class GenericWorker(QObject): start = pyqtSignal(str) def __init__(self, function, *args, **kwargs): super(GenericWorker, self).__init__() self.function = function self.args = args self.kwargs...
a89ba78894b55ede4f3e759d299d7c69fd45ca47
68b9b4031ce3bb47b38e6cfd219720d51e42f862
/model/graph.py
9e6ae17f85e3036578b369b2e6fd09fd90f2aa0c
[]
no_license
afcarl/keyphrase_generation
bdc45e38fbcac76eaee3e9ad6d9e94ad736ed187
c93d33fdaa624f2f241360bdb3b8df1e79e451c9
refs/heads/master
2020-03-22T09:58:57.036637
2018-03-26T08:36:27
2018-03-26T08:36:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,690
py
graph.py
import tensorflow as tf from tensor2tensor.layers import common_attention, common_layers from tensor2tensor.models import transformer from tensor2tensor.utils import beam_search from tensor2tensor.utils import beam_search_t2t from util import constant from model.loss import sequence_loss from data_generator.vocab impo...
4cdc8f386bd38249248fc25df10502fe09c79acb
808d7b25aff6ed75ebffbd02ad5ccf5a81e10d36
/views/Index.py
c914412f45f964cd1c2163e6939b383deb7fd8d1
[]
no_license
Renderhaf/Smaartrader
27e74c254981887519bb63e7cba5a148da4de964
6a49bcf23cbb9dbb99afed4ebc2a935dc9e4ab31
refs/heads/master
2022-09-21T18:34:47.535005
2020-05-31T21:58:37
2020-05-31T21:58:37
247,342,119
0
0
null
null
null
null
UTF-8
Python
false
false
2,096
py
Index.py
from server import app from flask import request, render_template, redirect, make_response import time import sys import json import WebSecurity WebSecurity.resetStorage() sys.path.insert(1, './StockInfoPackage/') import StockInfoPackage.InfoManager as IM with open("settings.json", "r") as file: data = json.loa...
3e9546295861196199fc51e6d02daff7d0e606ce
076c3b955dee5a2c4832f49e9c17290be82f8358
/System Security/labs/Lab 4/vernamBinary.py
f8d84258680ee4eda2419e70fdae372b1606a379
[]
no_license
nitrogen404/Semester-5
c6207820272e4b29af4e3d5eafbd0e9a339a428c
99e3a4a5ed38062301caebbcf81efeed351a8ebf
refs/heads/master
2023-08-22T16:34:37.139328
2021-10-10T16:11:50
2021-10-10T16:11:50
398,974,683
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
vernamBinary.py
binmessage = input("Enter the message: ") binmessage = binmessage.replace(" ", "") binkey = input("Enter the key: ") binkey = binkey.replace(" ", "") def encrypt(message, key): if len(key) < len(message): for i in range(len(message) - len(key)): key += key[i] encryptedTxt = "" for binary in range(len(message...
85ac010235ef030cadd45c290989bdaafa23bdac
18b7cd0e06c6872087b0557d5dd2c2fedccca0b1
/client/client.py
d61b27683999c3caeec3111022acddc5b5397382
[]
no_license
jakubzeman-acc/oauth2
cb3e7879edf7186a880a59ef765938a08227eb61
409f0a6d91e36547e95e9a21e91d90c111f9f1a0
refs/heads/master
2021-08-31T06:33:20.835672
2017-12-20T15:14:00
2017-12-20T15:14:00
114,619,514
0
0
null
2017-12-18T09:09:27
2017-12-18T09:09:27
null
UTF-8
Python
false
false
8,703
py
client.py
import json from time import time from ssl import SSLContext from urllib.parse import urlencode from urllib.request import Request, urlopen from urllib.error import URLError from client.config import Config from typing import Union from client.db_interface import OAuth2Db from client.utils import get_ssl_context, gener...
b931c46a7e816b8e42fc49ef770a2546a42b5afe
98be52ad7f86e8eb108ee1e6ce842afe77ce20e2
/week 9/film_project/film_proj/film_app/models.py
8ad82d0fd5eb59e7cda1bccfb05d709b61c057a5
[]
no_license
Goldiep1998/developers.institute
2f041d4c541e6997d1cdd06fe22f4cc107ac5c7f
dbd24d2d3bb9173e7865e763c7cb850aa010cf12
refs/heads/master
2023-01-07T04:33:43.151202
2020-10-29T19:54:57
2020-10-29T19:54:57
292,069,358
0
1
null
null
null
null
UTF-8
Python
false
false
1,101
py
models.py
from django.db import models # Create your models here. class Country(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Category(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Director(...
a77900e097a03933b7d8b39a6bd5ad7a834c65c6
733496067584ee32eccc333056c82d60f673f211
/idfy_rest_client/models/certificate_type.py
5a653e4b131dda2711508cc692e72ba6a5550df7
[ "MIT" ]
permissive
dealflowteam/Idfy
90ee5fefaa5283ce7dd3bcee72ace4615ffd15d2
fa3918a6c54ea0eedb9146578645b7eb1755b642
refs/heads/master
2020-03-07T09:11:15.410502
2018-03-30T08:12:40
2018-03-30T08:12:40
127,400,869
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
certificate_type.py
# -*- coding: utf-8 -*- """ idfy_rest_client.models.certificate_type This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ class CertificateType(object): """Implementation of the 'CertificateType' enum. TODO: type enum description here. Attri...
209095dac183b352538dcd96cdefcb1e03048473
478566861c44b3f02a053dd47e953e27c468cb94
/python/simple_pb2_grpc.py
e213f2b43a760a91afabdff5896fe3536dda8849
[]
no_license
rafabortman/ep-sd-grpc
020cb065e858d050dcb9fb4d9e45d64c962753ae
bb7d50d8c3f9dc93b3b4a2d3358a5dba7fd5b135
refs/heads/master
2020-03-22T01:03:49.045999
2018-06-30T21:15:09
2018-06-30T21:15:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,372
py
simple_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import simple_pb2 as simple__pb2 class DelivererStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ ...
276828bfe85b22bdfd55f169ec40b085ccb464a4
8bcf7c1ed213d5a296d592a420b3d678f01ff716
/basic_dynamic_programming/SAMER08D.py
3c06c41c552ff1b287c4b42dd3332c2e05ba50e4
[]
no_license
cskanani/codechef_prepare
237b65455c2294c4a96d72cfa4cdecb8734b48ee
36075328b0f52dc6237a96a4094358128327dc0b
refs/heads/master
2020-12-03T14:11:04.963970
2020-03-05T17:29:23
2020-03-05T17:29:23
231,349,403
2
0
null
null
null
null
UTF-8
Python
false
false
773
py
SAMER08D.py
min_sub_seq_len = int(input()) while min_sub_seq_len != 0: string1 = ' '+input() string2 = ' '+input() len_string1 = len(string1) len_string2 = len(string2) mem = [[0]*len_string1 for i in range(len_string2)] for i in range(min_sub_seq_len, len_string2): for j in range(min_sub_seq_len, l...
7e6569ef40ae5663c344eddd558d35c48aa26e56
d853f1525fdf6253f1c1f7cda8bc4a625b9e92a3
/hexrd/ui/xray_energy_selection_dialog.py
c51616e65fc78a81f1ca2e349092906d73b28887
[ "BSD-3-Clause" ]
permissive
HEXRD/hexrdgui
5347dc76242a789be838053cc30d5aa61bffd67e
de9de98baa2168aaf34e6507b70061500606ed7d
refs/heads/master
2023-08-31T16:03:12.794443
2023-08-24T21:19:25
2023-08-24T21:19:25
191,851,475
22
10
BSD-3-Clause
2023-09-14T19:08:15
2019-06-14T00:39:17
Python
UTF-8
Python
false
false
3,963
py
xray_energy_selection_dialog.py
#!/usr/bin/env python import io import h5py import numpy as np from PySide2.QtWidgets import QDialogButtonBox, QMessageBox from hexrd.instrument import unwrap_h5_to_dict import hexrd.resources from hexrd.utils.decorators import memoize from hexrd.ui.resource_loader import load_resource from hexrd.ui.tree_views.dic...
73a6e2e5a5050683aacd75baebc59fe00e1acf86
a2b92e8b46bee3201d438ba36dd2b36a191b34ca
/number_tusk.py
939a8bd58b26270dda114d069494201429cc9fad
[]
no_license
nordokam/some_test
c5781deb2e31886766fd6ee67c50569044cf4e88
5373d731d4d9a60e310f38ad940595918bf21975
refs/heads/master
2020-03-06T22:45:09.207677
2018-03-29T00:24:35
2018-03-29T00:24:35
127,112,084
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
number_tusk.py
import sys if len(sys.argv) > 1: n = int(sys.argv[1]) print('{}{}' . format((n // 60) % 24, n % 60)) else: print(sys.argv)
c68acdab12ab0c210b090a615173c649ef617448
3d67311a98d40da60281a548fb69ffc9d16d111c
/as9/ans/p5.py
ee1042802dbd590a5892a3a0e076fb9225f2412f
[]
no_license
Inaguma1110/ProgTech2018
a7f8d2fe340c1f492f61a3cab654ea0e8d3072ab
2bad0d5adbf3dc828eec5efa688636e4bc597b7b
refs/heads/master
2020-05-20T10:52:36.185828
2019-05-08T08:35:42
2019-05-08T08:35:42
185,533,419
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
p5.py
a = input() d = int(input()) def to_list(a): b = a.split() for i in range(len(b)): b[i] = int(b[i]) return b def get_max(b): c = sorted(b) return c[-1] def power(c, d): e = [] for i in range(d + 1): f = c**i e.append(f) return (e) b = to_list(a) c = get_max(b)...
24886b942033b6e1b9c7cde15fd54e5c7b61a7f0
214feb5e677ea76cb695703852fb8fa670aeaaf1
/checklist.py
f9e0aa6ff2806ca22c7bb886d13b86f9bc1f302e
[]
no_license
reikamoon/Captain-Rainbow
1c982332fb374ec5c5f064b53d9e2206b2688072
aac218474846cc3db45c26577d82f6bbd22dce8e
refs/heads/master
2020-07-26T15:05:42.923136
2020-06-05T07:35:53
2020-06-05T07:35:53
208,685,806
0
0
null
null
null
null
UTF-8
Python
false
false
1,883
py
checklist.py
#Captain Rainbow Checklist Redo checklist = list() #CRUD (Create, Read, Update, Destroy) #Create def create(item): checklist.append(item) #Read def read(index): return checklist[index] #Update def update(index, item): checklist[index] = item #Destroy def destroy(index): checklist.pop(index) #List all I...
8cc135aaffcb0bb9d0000d795d0b18751e5a0a4e
9ba39d312e671bcb4c3f527cca947c48039062eb
/sobooks_handle.py
62ac9f8e17511911535f7788df9c357a22d94b6f
[]
no_license
Liuxingwei/python-spider
2722454103a6b8f1b1d6ce80c8b925f4ec50683e
07bf588e92293146a2319b91168f0df0b83a4d22
refs/heads/master
2020-03-29T19:11:34.516605
2019-05-05T12:04:54
2019-05-05T12:04:54
150,252,168
0
0
null
null
null
null
UTF-8
Python
false
false
1,967
py
sobooks_handle.py
#!/usr/bin/env python from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys from threading import Thread import re # 创建chrome参数对象 opt = webdriver.ChromeOptions() prefs = {"profile.managed_default_content_settings": {"images":2}} opt.add_experimental_...
cc2ee3206f7750bf4023a490e24c8abcc3227524
e6f62e277c63ad417664c292989ac7b18b5d3027
/sanguo/cron/union_auto_transfer_owner.py
6243cc9e75707f6da75ca275759e908e63ab3138
[]
no_license
yueyoum/sanguo-server
1fe8df69ca923e0166fd6f75e11d08a2b4bbde37
08df991a3bffea4b4f56f20ffea23bc373465332
refs/heads/master
2021-01-15T15:33:00.427811
2016-06-21T09:28:03
2016-06-21T09:28:03
13,704,516
1
3
null
2014-10-22T07:45:31
2013-10-19T16:38:19
Python
UTF-8
Python
false
false
669
py
union_auto_transfer_owner.py
# -*- coding: utf-8 -*- """ Author: Wang Chao <yueyoum@gmail.com> Filename: union_auto_transfer_owner Date Created: 2016-01-27 11-22 Description: """ import json import traceback import uwsgidecorators from cron.log import Logger from core.union.union import Union @uwsgidecorators.cron(1, 0, -1, -...
e5e17d57d9c36fed6c813a38bbb95a321005592a
a93674ee942792ace96d57ae7f594a97967c286f
/IDananlysis.py
c8f3b9793f5ccda63d27ebe62956b3183631cec1
[]
no_license
tylerdurden2010/SearchChinese
21b8c069269fed1b45af9430c1876464df170fff
ad8157d4ee740e7c1c4e05e888d9297165b0d3c4
refs/heads/master
2021-01-10T22:10:00.954719
2013-04-26T06:31:35
2013-04-26T06:31:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
IDananlysis.py
#coding=utf-8 import os import sys import re def JudgeBlank(test): i = 0 for index in range(len(test)): if( ' ' in test[index] or '\t' in test[index] ): i = i +1 if (i == len(test) - 1): test = ['\n'] return test else: return test fw = open("c:\data2.txt","ab") pchinese=re.compile('([^a-zA-Z\\\/`!@#...
905061e8182ffb81bf27bfc8a4739af9c277ee17
10ca532599d96032aba24cfb2cf542407b0d2389
/pylearn2/models/dbm/sampling_procedure.py
1b1b1d1d31806c73096a69b9fa8222defd9de6fb
[ "BSD-3-Clause" ]
permissive
Coderx7/pylearn2
a748a522e115c86611ab8a476075f4a9c47c5fac
96edb376ced1b828962c749240059903686da549
refs/heads/master
2020-05-29T11:37:45.469205
2017-02-14T19:22:22
2017-02-14T19:22:22
66,489,783
1
0
BSD-3-Clause
2020-02-03T05:18:32
2016-08-24T18:34:44
Python
UTF-8
Python
false
false
8,508
py
sampling_procedure.py
""" Classes that implement different sampling algorithms for DBMs. """ __authors__ = ["Ian Goodfellow", "Vincent Dumoulin"] __copyright__ = "Copyright 2012-2013, Universite de Montreal" __credits__ = ["Ian Goodfellow"] __license__ = "3-clause BSD" __maintainer__ = "LISA Lab" from theano.compat.six.moves import xrange ...
e785ce00bbbe363d7369e51099ea7db6070892de
80259c489259d02f6a7c29c4312ca108a6773bb7
/Lesson_03/3.2.py
3dd1b2ddcb033a460161797f049ec53f5a1e6ea1
[]
no_license
uheif/GeekBrains-Python_base
6bc6a2523936c37849adaaa1a4d5b3cd02b0ee55
20968c2dfe635d5251e79aa23570869d8cdd647d
refs/heads/master
2021-01-14T05:42:48.742025
2020-04-11T14:47:23
2020-04-11T14:47:23
242,616,145
0
0
null
2020-04-11T14:26:50
2020-02-24T00:44:28
Python
UTF-8
Python
false
false
555
py
3.2.py
def user(**kwargs): user_data = kwargs for i in user_data: print(f"{i}: {user_data[i]}", end=' ') user(name=input("Имя: ").capitalize(), surname=input("Фамилия: ").capitalize(), birth=input("Дата рождения: "), city=input("Город: ").capitalize(), email=input("Email: "), tel=input("Телефон: ")) # ...
2b313cd459f183663f00917dc995608d10add3cd
77bfaffcd14b94d9e86aac1dca39ae748f5f2b1e
/client/Command.py
3abd20149ab7939925a183173a69a408f0b681f8
[]
no_license
wk2557/FileDirectoryTransfer
2158dcd46f853fd4d9c8db2ebe6e9a1bf93f0510
01047d91ee94847f86b20135fd77d0f47ebb6b9f
refs/heads/master
2021-01-23T22:43:31.349057
2014-09-03T09:23:13
2014-09-03T09:23:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
Command.py
import os,sys,argparse,threading from ClientSendTask import * from ClientReceiveTask import * class Command: def __init__(self, param): pass def action(self): pass class DefaultCommand(Command): def __init__(self, param): self.param = param def action(self): print ("Not recoginized command") return...
5681660b1b699df7a29546c3beddd8a06e218b99
11221877478f59dfa5207e551e003793207b2d06
/gui.py
b3d50293ed224e3036b0e98642d647d2d3f61a07
[ "MIT" ]
permissive
tobyshooters/style_gui
c51f619b6e917e79471856302e69489404aaffb4
1212474ece7f42103e8f3137034d8fad51e8667f
refs/heads/master
2020-07-06T07:34:24.073640
2019-08-19T04:33:59
2019-08-19T04:33:59
202,941,108
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
gui.py
from IPython.display import display from PIL import Image def get_file(path): return path.split("/")[-1].split(".")[0] def get_result_path(content_path, style_path): return "./output/" + get_file(content_path) + "_stylized_" + get_file(style_path) + ".jpg" def display_image(path): display(Image.open(path...
e658e6b3becd3ed87485886f546d30c10e5201e4
da0d4cc59888e1c606dacc3da3cc420546c110a3
/Minmax on Nine-Men's-Morris/ninemen.py
246a63241fb51b5566cd662c6f780d3b36680cdd
[]
no_license
ritikasarkar18/Foundations-of-AI
92c5d5040d1d98ac3b1d1ccd89fa5344569792e4
beed8da366c4d5e0fbe687e768bed0f6e99446da
refs/heads/main
2023-05-27T17:43:14.686807
2021-06-15T16:09:21
2021-06-15T16:09:21
340,151,364
2
0
null
null
null
null
UTF-8
Python
false
false
7,182
py
ninemen.py
from minmax import * # from alphabeta import * from heuristics import * max = float('-inf') min = float('inf') d = 3 #depth class Board: def __init__(self,b=[],p=0): self.board = b self.pos = p # board initialisation if (not self.board): for i in range(24): ...
459ee8268cb28847913e952629e50571c776cb1e
bff706dc4ce7552200e1d515afa9f0c461eb18a5
/WHI_long_term_v2_FTonly_GEOSChem_v10_and_meas_timeseries-db_version-3row.py
cfe1b273063dccded1bcd2149fb56f931a928d1a
[ "MIT" ]
permissive
annahs/atmos_research
1fffc24d43ddacf460a6d16f0b5264e6692023c5
b5853c9b12e327492f8f8ba5069bca3fd2e981c8
refs/heads/master
2020-12-25T16:59:30.261245
2016-08-10T20:47:59
2016-08-10T20:47:59
32,475,832
2
0
null
null
null
null
UTF-8
Python
false
false
16,607
py
WHI_long_term_v2_FTonly_GEOSChem_v10_and_meas_timeseries-db_version-3row.py
import matplotlib.pyplot as plt from matplotlib import dates import numpy as np import os import sys from pprint import pprint from datetime import datetime from datetime import timedelta import copy import calendar import mysql.connector timezone = -8 #database connection cnx = mysql.connector.connect(user='root', p...
50f73c18455fe3ee4260788c5a86de831b682353
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/Deal Capture Examples/FPythonCode/LeveragedETFInsDef.py
e1024636212acf666bce344573369e6a0963c1b8
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,596
py
LeveragedETFInsDef.py
from __future__ import print_function import acm def SetUpLeveragedETF(definitionSetUp): from DealCaptureSetup import AddInfoSetUp, CustomMethodSetUp definitionSetUp.AddSetupItems( AddInfoSetUp( recordType='Instrument', fieldName='LeveragedETF...