repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
hchaudhari73/flask
8,280,696,982,963
a8a03dc607f1e93a89780c431fee178182f79563
5f1c5fb8f729eed74270ec9b2595f9368cd1188b
/loan_prediction/app.py
719419fd7bb19e1d591cd9bd195744da47f06a22
[]
no_license
https://github.com/hchaudhari73/flask
c2e39f42e27a2f5febfd8600a26bc3ef013a840b
b23f2f860bcd65d49e609340f4160f9d78a18d30
refs/heads/master
2022-12-16T14:09:44.736877
2020-09-10T15:58:32
2020-09-10T15:58:32
258,689,505
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np from flask import Flask, request, render_template app = Flask(__name__) import pickle pickle_in = open("model.pkl","rb") classifier = pickle.load(pickle_in) pickle_in.close() @app.route("/") def welcome(): return render_template("home.html") @app.route("/predict") def...
UTF-8
Python
false
false
810
py
9
app.py
4
0.645679
0.630864
0
33
23.484848
77
MU-Software/foxsnow
14,869,176,792,689
689f601655d342a7191b716988f11d498682705e
5330eb06a9daee7c2ff9845a8f92ffc88a14cac1
/foxsnow_python_compatibler.py
5fcb71fade95764d7f0d2f99129885f6afc77ff5
[]
no_license
https://github.com/MU-Software/foxsnow
29120e57f4dd380641d7ffc7516efbeefcedc0fc
c22d8faaebebd070d05f233bfb6a4a9f5de0d7e6
refs/heads/master
2023-02-21T22:27:56.098765
2021-01-28T10:28:48
2021-01-28T10:28:48
237,782,690
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import errno import json import os import pathlib as pt import pprint import subprocess as sp import sys def parse_c_header(source, defines={}, recursive=True): c_std_lib = [ 'assert.h', 'complex.h', 'ctype.h', 'errno.h', 'fenv.h', 'float.h', 'inttypes.h', 'iso646.h', ...
UTF-8
Python
false
false
8,782
py
35
foxsnow_python_compatibler.py
1
0.571965
0.567297
0
239
35.748954
170
liqile1/pytorch-deeplab-xception
14,181,982,033,538
a3b2d0a95a3d4ac53e04e1fb23c1602b86f61ea9
e4e382e06e10509bf161736061b9df3cb2161b87
/eval_leadbang.py
c50eb32521508029ca35a27c974f43de2d37a465
[ "MIT" ]
permissive
https://github.com/liqile1/pytorch-deeplab-xception
464e08d818307c5bcaa4cf25485ffa1392b10dcf
6186b4a586507340b95f224b8dae4950cdee137f
refs/heads/master
2020-09-21T02:20:49.994967
2019-12-01T06:52:20
2019-12-01T06:52:20
224,653,147
0
0
MIT
true
2019-11-28T12:53:09
2019-11-28T12:53:08
2019-11-28T11:06:50
2019-06-24T01:03:43
948
0
0
0
null
false
false
import argparse import os import os.path as osp import numpy as np #from tqdm import tqdm import torch from mypath import Path #from dataloaders import make_data_loader from dataloaders.datasets import leadbang from modeling.sync_batchnorm.replicate import patch_replication_callback from modeling.deeplab import * fro...
UTF-8
Python
false
false
8,514
py
3
eval_leadbang.py
3
0.573996
0.565422
0
200
41.57
110
sorooshsorkhani/RankLib-Gini
6,846,177,881,737
ef011d6df84625a375231007f0c1e8860f411bb2
d91ecf5922fa61a9216b0556d13abfe788516328
/Gini.py
9a2093868115cf95e0196eb8d66c734d90aa09d4
[]
no_license
https://github.com/sorooshsorkhani/RankLib-Gini
eef63d96ad0ec92b01404b85cf0274b805fefbcd
4097fbf9e2f16c41bb521161f8a7bea5ecf6603c
refs/heads/main
2023-05-03T03:51:14.612806
2021-05-19T02:32:26
2021-05-19T02:32:26
320,728,132
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Creator: Soroosh Sorkhani Email: soroosh.sorkhani@gmail.com or soroosh.sorkhani@ryerson.ca """ import sys from os import path import re import math import xml.etree.ElementTree as ET # First, check if the inputs are correct try: num_features = int(sys.argv[1]) # number of features you have in your data exce...
UTF-8
Python
false
false
8,571
py
5
Gini.py
1
0.603547
0.594796
0
243
34.271605
159
IntelAI/nauta
12,395,275,623,015
07a04ad4639217c62103e1cfd016aa1465f475da
677a07ab78896fa78d9d8fb75006d7d0e7d53b73
/applications/activity-proxy/app/tests/test_database.py
fa544c528cda60eabcf6d5b44d9831102fe67c0a
[ "CC-BY-ND-4.0", "Apache-2.0", "CC-BY-4.0" ]
permissive
https://github.com/IntelAI/nauta
0d2debae66f0bad241d6aba4414f851035b70f91
bbedb114a755cf1f43b834a58fc15fb6e3a4b291
refs/heads/develop
2022-12-10T11:10:18.878605
2020-03-18T07:38:38
2020-03-18T07:38:38
164,936,937
392
67
Apache-2.0
false
2022-11-21T21:58:46
2019-01-09T20:58:33
2022-05-24T21:10:37
2022-11-21T21:58:43
48,595
394
66
26
Python
false
false
# # Copyright (c) 2019 Intel Corporation # # 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...
UTF-8
Python
false
false
2,735
py
840
test_database.py
269
0.732724
0.712249
0
79
33.620253
108
SeeWhatSticks/task-mistress-rewrite
19,061,064,903,206
0684d4c613467c6286e2296e057103fa7ee5c19f
dc7d0dc41c0914de0e657f8d6e4ea38593d36bae
/main.py
b65809d5c9a7a3e1a7be5a246ae33c7aca9ca5a9
[ "MIT" ]
permissive
https://github.com/SeeWhatSticks/task-mistress-rewrite
b5664b1566b4cd6131f9ca5346405f92f18baceb
78dc7f7aac2b9655b1810ce144beb49bd2f95474
refs/heads/master
2021-05-24T13:41:46.668851
2020-04-14T08:48:04
2020-04-14T08:48:04
253,587,854
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime import json from types import MethodType from discord import Embed from discord.ext import commands bot = commands.Bot(command_prefix='$') bot.load_extension('play') bot.load_extension('verify') bot.load_extension('create') bot.load_extension('set') bot.CHECK_MARK_BUTTONS = "✅" bot.NUMBE...
UTF-8
Python
false
false
6,831
py
9
main.py
5
0.618291
0.610793
0
193
34.238342
99
RedaRamadan/PythonSamples
395,137,029,701
a6d1d4985eee15ac1aab977ea9e576b33f28762d
98d43ced928ac8ede62387f7f2210ae4b9489926
/03. Access Web Data/04_NetworksAndSockets.py
a57610479f81fa7116b25c98a93961988e7d0534
[]
no_license
https://github.com/RedaRamadan/PythonSamples
ee5de834c30d68deb36df6b609121e65ab1ade29
58ffb038844163a465c946b213f8773ab4e3996e
refs/heads/master
2019-03-14T06:33:26.595365
2017-09-17T15:25:47
2017-09-17T15:25:47
102,898,258
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Transport Control Protocol (TCP) # ================================= # Built on top of IP (Internet Protocol). # Assumes IP might lose some data - stores and retransmits data if it seems to be lost. # Handles "flow control" using a transmit window. # Provides a nice reliable pipe. # TCP Connections / Sockets # ====...
UTF-8
Python
false
false
2,152
py
54
04_NetworksAndSockets.py
52
0.663569
0.658457
0
64
32.640625
110
IcaroTARique/APA_1
13,056,700,610,428
2d130c9d112ae83011701dddb4ee0d927c479c57
677c7e48864e2cd6aef3f0fbdbb131d218e41415
/insertionSort.py
8be0f5d604ecbf379e0cee45e72d9773ab5ff0e0
[]
no_license
https://github.com/IcaroTARique/APA_1
4d5b2be6793bdc6297f5952cbcff5f4189611c61
dd44e7481bfe3ecb9f2f9dedb2816ed8012cbf75
refs/heads/master
2021-04-06T00:49:49.491488
2018-07-25T23:07:42
2018-07-25T23:07:42
124,418,316
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3.5 #PARA RODAR O PROGRAMA ./insertionSort.py import sys #coding=UTF-8 def insertionSort(lista, tamanho): for i in range (1,len(lista),1): menor = i #for j in range(0, i, -1): <== (FOR DANDO ERRO DESCONHECIDO) j = i - 1 while j >= 0: if lista[menor] <l...
UTF-8
Python
false
false
1,005
py
4
insertionSort.py
4
0.503483
0.460697
0
44
21.863636
68
Deyspring/Hydra_transcripts
16,217,796,551,765
ad0fa4a04ce5f4d7790f24a0a1d44d62d9724b35
84694ba6c19b4471c86ab39b8c8141ab3d318f34
/hyvenv/bin/conda
1ecb8b5cbb1c6e097e0405c4d9891e2a442aafd1
[]
no_license
https://github.com/Deyspring/Hydra_transcripts
03cd337a2a29c314e03bc188b9ca45b5378674bd
6fca0f194d0b53c7ba079a5cb81bc3daf8a6efc0
refs/heads/master
2022-10-14T09:45:10.450675
2020-08-06T23:23:31
2020-08-06T23:23:31
229,341,949
0
0
null
false
2022-10-01T15:33:45
2019-12-20T21:55:44
2020-08-06T23:23:49
2020-08-06T23:23:47
23,098
0
1
1
Python
false
false
#!/Users/katherinedey/Pictures/Code/GitHub/Hydra_transcripts/hyvenv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'conda==4.3.13','console_scripts','conda' __requires__ = 'conda==4.3.13' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe...
UTF-8
Python
false
false
435
12
conda
9
0.641379
0.609195
0
12
35.25
78
khoa-beep/Pythonbasic
6,871,947,678,788
0305dfd74e566fc7a365c43847242dcf56ccd78a
4501bde9ebb928d90a46025b70ede849b7ffa533
/Data_Struct/basic_stack.py
76a5af3bb359c00f9b7dd4dd8b60639b62407e4e
[]
no_license
https://github.com/khoa-beep/Pythonbasic
8f6a91a98c9528059e8ef4241fc2eef7148080a3
8f7960e00512d46fe06689e3c35e1e6e46282b82
refs/heads/master
2023-04-13T17:57:41.330191
2021-04-25T15:20:45
2021-04-25T15:20:45
361,463,816
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Stack: def __init__(self): self._data = [] def push(self, e): self._data.append(e) def pop(self): return self._data.pop() def len(self): return len(self._data) def is_empty(self): return not self._data def top(self): if self.is_empty(): ...
UTF-8
Python
false
false
640
py
5
basic_stack.py
4
0.428125
0.415625
0
36
16.75
31
KHdvip/Python3
7,584,912,292,319
0935ffd8bc9a782ddceb2ced4582c6cd84810a57
53e3df620f8e6e2f7bf260f25ae2df63aa75b2de
/Module/code/section_24/test_arrow.py
e0265ec158b3fa73fb051ff0935ca20eaca2deb3
[]
no_license
https://github.com/KHdvip/Python3
8b5a07ace860721fdc87c3b065bf5d5a20052ce5
3a7184d27af706f21d35bb73fda270f89954360c
refs/heads/master
2020-07-01T14:35:22.021696
2020-06-11T02:58:07
2020-06-11T02:58:07
201,196,801
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import arrow # 以当前时间获取 arrow 对象 # 获取系统时区的当前时间 now_time = arrow.now() print(now_time) # 2019-09-18T17:22:07.964295+08:00 # 获取时间标准时间 now_time = arrow.utcnow() print(now_time) # 2019-09-18T09:22:07.964374+00:00 # 获取美国时间 now_time = arrow.now('US/Pacific') print(now_time) # 2019-09-18T02:22:07.967367-07:...
UTF-8
Python
false
false
1,323
py
500
test_arrow.py
277
0.649867
0.521662
0
80
13.125
59
mcscope/music_generation
13,993,003,471,321
b49d00073d1abff695cdd3bedd62e9d9e7b1c1a8
2e21402c2ffb4928564600bdf7a789eb7a6fea45
/pyo_demo5.py
f37deb9e216812c18a3bcf5bda66f6d403deb18e
[]
no_license
https://github.com/mcscope/music_generation
01c1e2918ffae0fe0e75e342a5735fdb18d97eac
36e008c17e71734216fd2e9025b2a32c592f19f0
refs/heads/master
2021-01-25T09:00:58.158172
2017-06-08T16:54:26
2017-06-08T16:54:26
93,771,283
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from pyo import * s = Server().boot() s.start() sixteenth_met = Metro(time=1.0/16, poly=1).play() notes = range(300,500, 50) # notes = [500,800] def instrument(notes, amp=1.0): t = CosTable([(0,0), (50,1), (250,.3), (8191,0)]) note_len = TrigRand(sixteenth_met, min=1.0/8, max=2.0) note_freq ...
UTF-8
Python
false
false
896
py
10
pyo_demo5.py
9
0.651786
0.551339
0
37
23.216216
62
jhuapl-boss/boss-tools
14,431,090,117,608
870ba0cf825692976444deffb7c5ca34831245a4
4bd6460f4bd8281e2fb88c9efd5effd4da7108e7
/lmbdtest/test_downsample_volume_lambda.py
e0f59d3164bdb9d68f898aa1083db72f992b4f88
[ "Apache-2.0" ]
permissive
https://github.com/jhuapl-boss/boss-tools
dfa97fc72aeee290eb933e5641cabcce0a82561f
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
refs/heads/master
2023-02-17T23:19:34.305298
2021-07-12T15:27:13
2021-07-12T15:27:13
56,524,104
1
3
Apache-2.0
false
2023-02-16T19:49:04
2016-04-18T16:31:12
2021-09-23T19:23:16
2023-02-16T19:49:03
744
1
4
1
Python
false
false
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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...
UTF-8
Python
false
false
6,229
py
115
test_downsample_volume_lambda.py
107
0.545352
0.520308
0
174
34.798851
86
MarcoFurrer/cs-tribunal
8,976,481,684,335
462668984fd9ccc9e04ff2734258f9ae8aaa57e4
5f1bdff59c499a8967fd99ef520e28d034aefe8d
/oauth2discord/discordlogin/views.py
046558efea307fd75f50d67278a84d29fa148bba
[]
no_license
https://github.com/MarcoFurrer/cs-tribunal
bcd5413fc6946528e649b5f9f2c80556a09f7236
ce61e8185ed98c30ca0ba1332046e9987b4c4f7c
refs/heads/master
2023-03-22T18:59:40.914545
2021-03-14T15:18:54
2021-03-14T15:18:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpRequest, HttpResponse, JsonResponse from django.shortcuts import redirect from django.contrib.auth import authenticate, login from .decorators import unauthenticated_user import requests # Create your views here. #@unauthenticated_user def welcome(request...
UTF-8
Python
false
false
2,048
py
14
views.py
6
0.718475
0.685728
0
52
38.346154
195
stnguyenn/learnpy
14,302,241,144,246
caf246cb0002f0f2e13d6dc61cbc673db90380c0
92157160381a47bea221f58e550f7b325fc3273e
/3_3_list.py
a07a18f33530e5c54c77fdbe0f3d9a4a65ce82f1
[ "MIT" ]
permissive
https://github.com/stnguyenn/learnpy
96658789c0a816f9643ce2800f7038332d2a0795
4fc201bf461b0f7aa1a111a6a31b27dd492ad969
refs/heads/master
2020-04-30T13:24:49.327702
2019-03-25T00:57:33
2019-03-25T00:57:33
176,857,093
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
squares = [1, 4, 9, 16, 25] squares [1, 4, 9, 16, 25] squares[0] # indexing returns the item 1 squares[-1] 25 squares[-3:] # slicing returns a new list [9, 16, 25] squares[:] [1, 4, 9, 16, 25] squares + [36, 49, 64, 81, 100] [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] cubes = [1, 8, 27, 65, 125] # something's wrong...
UTF-8
Python
false
false
1,384
py
18
3_3_list.py
18
0.524566
0.389451
0
85
15.235294
65
WodlBodl/visionAssistant
18,743,237,287,123
dcf68a8c9d7d567790a1b39ec25f1f3ae05a471e
8f55c617b24de30965c03453cce8a7ba78e8243c
/backend/tagging.py
4f5579aec0052f90801ac4ad66900c6f468316d3
[ "MIT" ]
permissive
https://github.com/WodlBodl/visionAssistant
ac99accc37f7747f58bb8a9a567346aeeacd6741
94bdb5ac1d4a0be0be23355df27f9c298784041e
refs/heads/master
2020-04-30T14:07:54.305117
2015-09-20T11:43:19
2015-09-20T11:43:19
42,779,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests # Required headers for requests to Imagga API headers = { 'accept': 'application/json', 'authorization': 'Basic YWNjXzRiNjIzMWMxYzdkZmZlYzoxYzlkNjYzZTUzODQwMzY3MmJiZWFkMTRmYjA1ZGRkZQ==' } # Imagga API url imaggaUrl = 'http://api.imagga.com/v1/' ''' This function posts an image to Imagga's ...
UTF-8
Python
false
false
1,621
py
13
tagging.py
7
0.694016
0.687847
0
61
25.57377
101
ywang6/ML
11,218,454,607,284
ae30d45871a284e15978f911a31334ad8934fbbc
36942fd7ded3fa59e5f7dcdf81d42526d19e067e
/HW1/Assignment1Code/Q5Part3_5YelpLasso.py
0862a51ccde6b0eacab0a6efbcee2853d59578bd
[]
no_license
https://github.com/ywang6/ML
13a1d629adbebb3c470c80391d1cfe2ae8849710
d5a5b164ead5e2f35fad6bb11a325f59fea28543
refs/heads/master
2021-01-18T02:18:37.516407
2014-01-18T01:42:06
2014-01-18T01:42:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 14 02:12:18 2013 @author: shrainik This solution uses sparse matrices """ import numpy as np import matplotlib.pyplot as plt import scipy.sparse as sparse import scipy.io as io import time as time from operator import itemgetter def lasso_solver(X,wi,w0i,y,lmbd): con...
UTF-8
Python
false
false
4,787
py
33
Q5Part3_5YelpLasso.py
11
0.578651
0.543973
0
136
34.205882
108
Anzinius/Networking_Repository
11,785,390,302,526
bf70f3742a3f37826061f1fab3ecfed00dfd8f78
2c0c26cb5f5122f93347c415ff56f6a948b69aa6
/4.Firewall_Batch_file/mf2_firewall.py
3a7866b30307340e1eec504068b112d4ffca81a8
[]
no_license
https://github.com/Anzinius/Networking_Repository
bb5f63a651a71a8e3f6bce9840d3a832ce313a00
dc2ea6975e82a320a0b79b936cc8b481d16f3f5a
refs/heads/main
2023-03-16T15:31:19.755383
2023-03-03T02:18:35
2023-03-03T02:18:35
316,579,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import os.path from openpyxl import Workbook import sys from PyQt5 import QtCore, QtGui, QtWidgets, uic Ui_Form = uic.loadUiType("mf2_win.ui")[0] class MyWindow(QtWidgets.QMainWindow, Ui_Form): def __init__(self): super().__init__() self.setupUi(self) self.initUi() d...
UTF-8
Python
false
false
1,473
py
13
mf2_firewall.py
9
0.536433
0.529493
0
52
26.711538
110
jakelourie1502/Giphy_Classification
7,249,904,823,752
b0207a055d2cd913c519df4a32bd1312cb99e5ba
274de76745a8f1913749bf1011001704f2956285
/slowfast_model.py
33c0fb90b9f8de6854a39fd0dc7bcc26bfa9c4d7
[]
no_license
https://github.com/jakelourie1502/Giphy_Classification
0cee4e8631f00f62c9eacaea866d08a853a902dd
3958b29c87b8e657e1f6ffc09e10a8e2c36c5702
refs/heads/main
2023-07-07T01:20:09.140412
2021-08-09T10:36:39
2021-08-09T10:36:39
385,563,711
0
0
null
false
2021-08-07T20:53:34
2021-07-13T10:24:49
2021-08-07T11:45:58
2021-08-07T20:53:33
1,596
0
0
1
Jupyter Notebook
false
false
import torch class ResidualBlock(torch.nn.Module): ''' Base class for residual blocks, used in _make_layer function to create residual layers for the Slow model [only] There are 2 block versions: - block_ver=1 -> SlowPath res2 and res3 in slow - block_ver=2 -> rest of the SlowPath and wh...
UTF-8
Python
false
false
6,631
py
7
slowfast_model.py
6
0.535817
0.50475
0
192
33.541667
147
jsourati/nn-active-learning
9,380,208,598,310
d92dcd5f195594b2f7d7f3c5b68cafc746036f7d
0d6257f698819912a0d5eee3b829e8df457c585a
/NNAL.py
9b845dc4b1730bcd1dc14562df015d7590366a7e
[]
no_license
https://github.com/jsourati/nn-active-learning
4de2076fd93a1411b65a391197f5911568036b33
6eb4a7f1b67d732a8d7b25991ce5145e7e6da0c6
refs/heads/master
2022-01-21T14:03:26.615295
2019-07-24T13:34:47
2019-07-24T13:34:47
100,506,905
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import tensorflow as tf import pdb import sys import pickle import warnings import time import os import NN import NNAL_tools from cvxopt import matrix, solvers read_file_path = "/home/ch194765/repos/atlas-active-learning/AlexNet/" sys.path.insert(0, read_file_path) from alexnet import AlexNet def...
UTF-8
Python
false
false
28,830
py
24
NNAL.py
24
0.487444
0.480472
0
762
36.834646
88
lazycat2/leetcode
309,237,650,435
f530f0aa2e580f37e4af8f336a197cbc00cf79cd
797e0c32a28e461e76bb5e44ff40888fae9e13e6
/dogge/Binary Tree Card/Construct Binary Tree from Preorder and Inorder Traversal.py
e9563ac6ec779b36ee672998d756ceab7395cace
[ "ICU" ]
permissive
https://github.com/lazycat2/leetcode
4dd58bed530dea72b7585756abed45514088dae5
0d81e8b48d7e1e3c52ec7f08b7c907cab40cc616
refs/heads/master
2020-03-27T20:38:30.378984
2019-07-11T02:37:50
2019-07-11T02:37:50
147,082,746
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: """ 3 / \ 9 20 / \ 15 7 preorder = [3,9,20,15,7] inorder = [9,3,15,20,7] """ def buildTre...
UTF-8
Python
false
false
907
py
183
Construct Binary Tree from Preorder and Inorder Traversal.py
178
0.432194
0.402426
0
35
24.914286
81
cheriezhang/LCode
9,208,409,900,509
b9d2e0583a47a8796aecf3290341dbe883317d96
5b4be91f2d5b2259e87189008c47b5a394a5d46d
/TowardOffer/17-mirror.py
e81bda09381c0d53fc1235fc7b44dc63b05776c7
[]
no_license
https://github.com/cheriezhang/LCode
3c48d2e3fae2f43980b8ec739bdaf53d5b9780ac
6bb9af53cc036c441fab9690791fd9c8a83922b8
refs/heads/master
2021-05-15T12:22:41.970018
2017-12-04T06:19:14
2017-12-04T06:19:14
108,349,573
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- # 题目描述: # 操作给定的二叉树,将其变换为源二叉树的镜像。 # 输入描述: # 二叉树的镜像定义:源二叉树 # 8 # / \ # 6 10 # / \ / \ # 5 7 9 11 # 镜像二叉树 # 8 # / \ # 10 6 # / \ / \ # 11 9 7 5 # class TreeNode: # def __init__(self, x): # self.val ...
UTF-8
Python
false
false
900
py
28
17-mirror.py
28
0.438482
0.405759
0
40
18.125
35
dimven/SpringNodes
2,413,771,670,476
809af923c1409fb0bf8b4de28fdd0814109eecb3
94813f80b7a931f04f5536e8d0039fa4eee119c9
/py/Document.DeleteElements.py
94a845784ed5c34ad7d82181d6efb36f9e16a92a
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
https://github.com/dimven/SpringNodes
649b66f6ee39ffda8913a91f1f5f7765288a6856
b9e19e4e3a8c3ce268e6c1ec7c821a84f85873bb
refs/heads/master
2023-08-30T21:53:37.961719
2022-02-24T16:52:02
2022-02-24T16:52:02
43,051,678
64
52
MIT
false
2023-08-30T13:02:51
2015-09-24T07:28:19
2023-07-29T09:17:54
2023-08-30T13:02:51
15,139
64
45
10
Python
false
false
#Copyright(c) 2016, Dimitar Venkov # @5devene, dimitar.ven@gmail.com import clr clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager doc = DocumentManager.Instance.CurrentDBDocument def tolist(obj1): if...
UTF-8
Python
false
false
916
py
103
Document.DeleteElements.py
99
0.718341
0.704148
0
35
25.2
57
Ruchira2k/NAS-DIP-pytorch
6,227,702,616,340
b2e9bf97aca43eeaf16dc8564e71981d5a70bb42
bb4a2dd06a7f821b34e0d862103d420d15a37180
/DIP/utils/load_image.py
7110f12f2dcd476ee73c4b1e31fdc857118c4bdb
[]
no_license
https://github.com/Ruchira2k/NAS-DIP-pytorch
4600dfc01475f2b73b101bf2d3f241b4ca50bb32
3dfb4cf6312599097a5a193d22fd8591467e1a6f
refs/heads/master
2023-03-17T00:59:14.192699
2020-08-23T20:06:30
2020-08-23T20:06:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import matplotlib.pyplot as plt from skimage import io import numpy as np import pickle import json import glob import torch from torch.utils.data import Dataset, DataLoader def load_image_coco(num_image=64, crop_size=256): images = np.empty((0, crop_size, crop_size, 3), dtype=np.float32) coco_anno...
UTF-8
Python
false
false
3,356
py
17
load_image.py
16
0.519666
0.486293
0
113
28.707965
133
LambdaRan/leetcode
8,924,942,065,550
5e52a99fab326635843526d00a1e42ca255014c3
f5ddfc2080749bd3916b139654a701bfd6a46361
/leetCode_Python/prob492.py
845a89946156bfe7210f8e7459928cbdce4ccfc4
[]
no_license
https://github.com/LambdaRan/leetcode
a933c914a1774c9d9423ba895c570ff293881a5f
62151aec659e3244fdc5ec48e851610743ac4105
refs/heads/master
2021-05-11T06:20:58.547672
2021-03-13T09:58:38
2021-03-13T09:58:38
117,985,216
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 #-*- coding:utf-8 -*- # author : lambda RDG # Date&Time : 2019/03/31 20:33:08 "模块的文档注释" # Name: 492. Construct the Rectangle # Website: https://leetcode.com/problems/construct-the-rectangle/ # Description: import sys class Solution: def constructRectangle(self, area: int) -...
UTF-8
Python
false
false
515
py
360
prob492.py
356
0.570858
0.530938
0
22
20.863636
65
sunatthegilddotcom/Advanced-Solar-Cell-Research
3,204,045,611,507
2423a72fe2e9efc6e2d36062f2233c4debdda9d2
62758b997dac8bd24f4ad45722879a91ef2b5895
/sq.py
668d0855df768225daa949e8a72ee09d592fb999
[]
no_license
https://github.com/sunatthegilddotcom/Advanced-Solar-Cell-Research
4d8df7e51c109d3e20d80732c9b75dee9d1d37ca
90efac38b4adb5d0ebd35956240e438b44028bf0
refs/heads/master
2022-12-03T01:42:37.913000
2020-08-13T19:33:46
2020-08-13T19:33:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import scipy.integrate as integrate import matplotlib.pyplot as plt import pandas as pd plt.rcParams.update({'font.size': 18}) ########## Set sq to 1 to calculate standard Shockley-Queisser limit ########## Set multijunction to 1 to calculate efficiency for two-layer tandem with Si base ##########...
UTF-8
Python
false
false
62,121
py
4
sq.py
3
0.530078
0.480514
0
1,356
44.811947
301
gisat/puma
17,712,445,139,599
cea4e22957a4af97f5f39ec42e2683458fa05e98
611652db543d7a2fe7403a10bf214022d67c88d6
/scripts/mtile.py
95ad93391f00bc1fc65bf6bb667f7d4810e054a0
[]
no_license
https://github.com/gisat/puma
33345275b0cd6b2d311bdc640aafd2a0dfdb011b
319b1183eae47f34fdd98f7f7225f6209ae7ddbb
refs/heads/dev
2022-06-21T11:06:53.891984
2019-03-15T13:40:26
2019-03-15T13:40:26
11,924,172
2
1
null
false
2022-05-20T20:51:38
2013-08-06T13:04:13
2020-03-30T04:22:17
2022-05-20T20:51:38
138,510
4
0
32
JavaScript
false
false
#!/usr/bin/env python # ------------------------- # vytvori z rastru dlazdoce # o velikosti ts_x a ts_y # # 2010-08-03 Vaclav Vobora, G2EUR # ------------------------- import os import re import sys try: from osgeo.gdalconst import * from osgeo import gdal from osgeo import ogr from osgeo import osr...
UTF-8
Python
false
false
3,738
py
498
mtile.py
430
0.521937
0.510166
0
159
22.509434
178
qiushye/traffic-data-process
163,208,762,573
1939e565477cbc858ed259e4060321e4689062a6
86387b266cc19f8c9e367fde1d370271e75e18fc
/data_padding.py
ad4edbeefb31bafdd383cbfce66a3c30074d03e2
[]
no_license
https://github.com/qiushye/traffic-data-process
6a1b012e233b9773846a9f6bb66c4aa8d1d28e5c
f30e161845e716a148f31a215451e63f5e27d190
refs/heads/master
2020-02-29T13:54:26.867142
2017-07-16T08:14:55
2017-07-16T08:14:55
89,364,865
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sat Jun 17 08:48:41 2017 @author: qiushye """ '''--这里采用的是一天48个时段--''' import math import pylab as pl import copy import csv def init_day_data(period_num): #day_data:date,day_velocity,weekday,period_usable day_data = [] date = '' day_velocit...
UTF-8
Python
false
false
6,493
py
18
data_padding.py
17
0.518364
0.483651
0
194
32.268041
93
k0staa/JupyterNotebookForStock-RNN
13,975,823,613,638
90f9ac98ceca66d2ac1208b5e959947e2376a8ad
62ef57ebd90cab900e5d99364f8076c67eee8186
/notebooks/stock_rnn/scripts/train_model.py
9c0587c766b1e61d16f5e29fc3f383b7e4a2ee45
[]
no_license
https://github.com/k0staa/JupyterNotebookForStock-RNN
3db5920b4e3f56cb4989f3e27fd7297db8504c6c
599802259066aa4c8f71ec498f599e5964c75331
refs/heads/master
2020-03-10T23:05:15.029169
2018-04-15T17:18:26
2018-04-15T17:18:26
129,633,358
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Run the following command to check Tensorboard: $ tensorboard --logdir ./_logs """ import json import os import sys; sys.path.append("..") import tensorflow as tf from .build_graph import build_lstm_graph_with_config from .config import DEFAULT_CONFIG, MODEL_DIR from ..data_model import StockDataSet def load_dat...
UTF-8
Python
false
false
4,475
py
7
train_model.py
1
0.596201
0.590168
0
121
35.983471
105
kedder/kdrvario
2,851,858,322,691
59c6e4a592d25529f983487a41b2e46fd1f95f2c
fee42e456fa7e181f095bc4d63b085b67e1a1e22
/monitor/stats.py
b21fb3f5c382521af371c35480726524a3201bf0
[]
no_license
https://github.com/kedder/kdrvario
531e2ea23e60dccfc55fe01d547fd26fa719cefd
30fd7ddc8f4f268f825a24ab70f7316c5be61750
refs/heads/master
2020-03-30T03:31:06.174722
2012-10-09T18:59:16
2012-10-09T18:59:16
2,585,948
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import math from kdrvmon.hardware import Hardware, SerialDataFeed, FileDataFeed from kdrvmon.vario import Vario def avg(data): return sum(data) / len(data) def rms(data, value): return math.sqrt(avg([(x - value)**2 for x in data])) def main(): log = sys.argv[1] print "Analizing", log ...
UTF-8
Python
false
false
952
py
29
stats.py
23
0.57563
0.573529
0
47
19.255319
67
SrujanAakurathi/30-Days-of-Code-Hackerrank
15,702,400,458,425
043d41ed76829c08bd7184ba1c2e951c9257734f
e02d3747bb60734d70fc56273627d357566d4fec
/Recursion.py
12385343a13cb2929c8465503ac2809bcd9f8d9d
[]
no_license
https://github.com/SrujanAakurathi/30-Days-of-Code-Hackerrank
acc17ffaa4d4e7e5e8408be713943889521e459f
93beeed186b48d36f37899e8b25ec3f4d721342a
refs/heads/master
2021-01-22T18:32:54.818953
2017-03-15T15:58:59
2017-03-15T15:58:59
85,088,954
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def memoize(f): c = {} def fact(*args): if args in c: return c[args] else: c[args] = f(*args) return c[args] return fact def factorial(n): if ((n == 0) or (n == 1)): return 1 else: return n * factorial(n - 1) print(factorial(i...
UTF-8
Python
false
false
333
py
11
Recursion.py
11
0.45045
0.438438
0
21
14.904762
35
zeidspex/f2019-dm
13,572,096,681,237
95911dc72b25befdd6727b7c6e2f1dea2d8c13bc
ab300f7f3c330e7c3301afdd0955a3d0f87c2613
/classification.py
d535667fdf9f992dcb5ea23ad0afcab09faa338e
[]
no_license
https://github.com/zeidspex/f2019-dm
7ebcb11e7cf46976ff0eca7825ce83fc025113fa
14f98b5c1f97e43a239293d1200d205e05c2cb6e
refs/heads/master
2020-09-02T17:09:55.265986
2019-11-28T07:29:33
2019-11-28T07:29:33
219,265,981
0
0
null
true
2019-11-03T07:26:59
2019-11-03T07:26:58
2019-11-02T03:53:53
2019-11-02T03:53:51
511
0
0
0
null
false
false
import io import os import pickle import tarfile import keras as ks import numpy as np import pandas as pd import sklearn.cluster as cluster import sklearn.metrics as metrics class Classifier: """ A classifier based on K-means clustering and previously created mappings between cluster labels and true labe...
UTF-8
Python
false
false
4,220
py
17
classification.py
13
0.63673
0.63128
0
141
28.929078
92
vdhadda2/quiz
15,753,940,083,856
373b2a263939654d432240a60d726118c12b1873
28e1cadf4f88115f0c0fe8d20973f11f260c7230
/quiz.py
0d33d61b585e5081a437eadf70485110feb87fd3
[]
no_license
https://github.com/vdhadda2/quiz
73e7737b4666ae08f84bdfc91eeb441956c36480
c3218c5a3dc994282a8a71aef62088fa2080547c
refs/heads/master
2021-01-23T00:09:51.746420
2017-03-21T13:52:47
2017-03-21T13:52:47
85,704,926
0
0
null
true
2017-03-21T13:26:20
2017-03-21T13:26:20
2017-03-21T13:10:50
2017-03-21T13:10:50
0
0
0
0
null
null
null
""" ----------------------------------------------------------------------- Question 1. Given two int values, return True if one is negative and one is positive. Except if the parameter "negative" is True, then return True only if both are negative. --------------------------------------------------------------...
UTF-8
Python
false
false
2,965
py
1
quiz.py
1
0.527487
0.495784
0
114
24.008772
90
sreekanthpv/mypythonworks
14,568,529,069,848
119196649e9a3fc21ded40f6a36a3d025391e36f
ddcc93b5b59e1a0d36a5b2ce6b55f13e7239e0f3
/advanced_python_test/q11.py
eae8dd7702181d75c60f6991fcbcdb9fda12d9cc
[]
no_license
https://github.com/sreekanthpv/mypythonworks
a449d8a0d0c9dc1973e03ef627c54dfc1b151fb1
c141ab99627bf7a082621329dfb2546da651bd6b
refs/heads/master
2023-07-10T13:12:15.011257
2021-08-01T14:40:15
2021-08-01T14:40:15
385,128,323
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 11. Write a Python program to find the sequences of one upper case letter followed by lower case letters? import re x='[A-Z]{1}[a-z]+' a=input('enter string') v=re.fullmatch(x,a) if v is not None: print('valid') else: print('invalid')
UTF-8
Python
false
false
245
py
218
q11.py
198
0.685714
0.673469
0
10
23.6
107
ORNL-CEES/thermochimica
15,736,760,175,553
316ff92bfeb434c91d029d1fd83d0e24f070b535
0ca9620ce0091d826e5cc76bd3c2c6b441445373
/python/binaryPhaseDiagramGUI.py
b7af42f153a6676dce4e97ed5f80b42db6a6481b
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
https://github.com/ORNL-CEES/thermochimica
42b8b5c7ffcceebc37acf4f146290ada93d098e1
7cda2eaae5cf73b67c76a3e7602df0f83d8a5611
refs/heads/master
2023-08-08T20:36:20.457000
2023-07-21T20:55:32
2023-07-21T20:55:32
105,085,437
48
28
BSD-3-Clause
false
2023-07-21T20:55:34
2017-09-28T01:02:02
2023-03-29T07:49:05
2023-07-21T20:55:32
12,083
36
21
6
Fortran
false
false
import binaryPhaseDiagramFunctions import PySimpleGUI as sg import os import sys import pickle import copy import matplotlib.pyplot as plt import numpy as np import thermoToolsGUI class CalculationWindow: def __init__(self, parent, datafile, nElements, elements, active): self.parent = parent self.d...
UTF-8
Python
false
false
39,689
py
388
binaryPhaseDiagramGUI.py
21
0.545995
0.538361
0
754
51.637931
313
robsondejesus1996/Python-Graph-Matplotlib
17,721,035,082,806
1ceb1abe332d58d0ac68829da2c35729858bb82c
846e346449118574838ea8bfb574907b0d8f089f
/Projeto Gráficos/graficos/teoriaAprendizagem.py
afdb6a140b84d584dd8599707f6d22652f25e384
[]
no_license
https://github.com/robsondejesus1996/Python-Graph-Matplotlib
08987b6267c227895e3893d4556de99aca350594
87d17166d6e8fe6d536bf6bff721ca2e4def02df
refs/heads/master
2020-06-18T17:39:10.079229
2019-07-11T14:42:18
2019-07-11T14:42:18
196,384,507
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt from numpy.core.tests.test_scalarinherit import A N = 18 #Citações para gráfico doidão #Zero = (10,4,5,5,9,21,8) #Um = (1,6,2,2,3,1,0) #Citação gráfico cumulativo ABP = (0,0,0,0,0,0,0,0,0,0,0,0,0,2,5,6,7,7) C = (1,1,1,1,1,1,2,2,3,9,9,9,9,12,12,15,17,18) CT = (0,0,1,...
UTF-8
Python
false
false
2,283
py
18
teoriaAprendizagem.py
18
0.628245
0.450066
0
55
40.345455
149
Thib-G/cs50project3
1,941,325,265,061
a8c49096b4a416b4a36415a060893fbdf59b6161
dbfc0e0fc2067bf21269dd0a83a529bae238a011
/orders/views.py
bec5ab11225b6914ce9c0f87217418326d36c3d3
[]
no_license
https://github.com/Thib-G/cs50project3
351cd117752beeeddf57a63f36be6fc1dfae2243
cf1b2a0efb520805ac77e3b157c85ff7ea374821
refs/heads/master
2021-06-21T05:32:27.493974
2020-12-21T16:36:33
2020-12-21T16:36:33
144,454,723
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http import HttpResponseRedirect from django.urls import reverse from django.views.decorators.http import require_http_methods from django.views import generic from .models import Category, Pricing, Cart, CartItem # Create your views here. class IndexView(generic.ListView): template_name = 'orders/...
UTF-8
Python
false
false
1,713
py
15
views.py
10
0.672504
0.670169
0
56
29.589286
102
ecoon/watershed-workflow
11,201,274,712,406
d647bd7aefb53ae782a14d110e94c3d4c3d325e9
96c9db91b4296ea8957b037e234e3230ed67067f
/watershed_workflow/sources/manager_soilgrids_2017.py
bdb285974eaa577f8c67b49671859e35a577ff97
[ "BSD-3-Clause" ]
permissive
https://github.com/ecoon/watershed-workflow
8458b1a3ea52c3dcec7746b265c88016fd380968
148540168f43049618360907ce2ea648f62b9d8b
refs/heads/master
2022-10-04T04:48:19.476978
2022-09-19T13:15:10
2022-09-19T13:15:10
211,087,561
34
15
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Manager for downloading SoilGrids250m-2017 products.""" import os, sys import logging import numpy as np import shapely import rasterio import rasterio.mask import watershed_workflow.sources.utils as source_utils import watershed_workflow.sources.names import watershed_workflow.warp from watershed_workflow.sources...
UTF-8
Python
false
false
6,412
py
135
manager_soilgrids_2017.py
80
0.614197
0.594072
0
170
36.705882
159
mrs-eload/bybyepp-test
309,237,695,480
b33ba2b002461789eeddbf80eb60000fc295853a
0bcc82e17bdab466caf1a83683537a4b178c9250
/app/test/fixtures.py
8e9ed09c86ff66e1a02b53e82573c98ad2d1dec4
[]
no_license
https://github.com/mrs-eload/bybyepp-test
2f83d42e8274d056ae96fbd06e76f0f9d1a42750
594f1dfdb152ee573adcac189f9571ed296a66af
refs/heads/master
2023-01-03T11:37:39.024937
2020-10-21T15:27:58
2020-10-21T15:27:58
281,674,651
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import json import random import logging from app.models.Structure import Structure from app.models.Ligand import Ligand from app.services.RedisService import redis_service logger = logging.getLogger("uvicorn") def load_fixtures(): logger.info("Loading structures fixtures ...") codes = ["5dls", ...
UTF-8
Python
false
false
861
py
16
fixtures.py
14
0.670151
0.653891
0
31
26.774194
56
pynucastro/pynucastro
1,683,627,204,682
686dab1702c925a75766f57287e1c5769b8b78f9
c491226c6aaa5729cb4361897b3a92a304317343
/examples/triple-alpha/triple-alpha-cxx.py
98bfb2c7a9090872268daecffd9764759de8f4b1
[ "BSD-3-Clause" ]
permissive
https://github.com/pynucastro/pynucastro
0a319fa23cf76faf0059876011251cc83263c29d
0b07fc46b3f69cf2065164105f95d0ca854e1526
refs/heads/main
2023-08-31T06:58:42.274848
2023-08-24T18:55:36
2023-08-24T18:55:36
47,992,908
33
29
BSD-3-Clause
false
2023-09-12T16:46:08
2015-12-14T18:18:03
2023-08-21T21:11:06
2023-09-12T16:46:06
99,962
41
25
43
Python
false
false
# triple-alpha rate module generator from pynucastro.networks import AmrexAstroCxxNetwork files = ["c12-gaa-he4-fy05", "he4-aag-c12-fy05"] triple_alpha_net = AmrexAstroCxxNetwork(files) triple_alpha_net.write_network()
UTF-8
Python
false
false
232
py
192
triple-alpha-cxx.py
99
0.75
0.706897
0
9
24.666667
52
Mbarley/python_mud
11,905,649,344,695
1996697dd71e1b28fb12b9d4d5ddc2142c4bcc08
071a34eb5ba13f44f96eff6f44a9e13be209da29
/Command/Drop.py
72ecc11ffbb65b63090fdf3746b95c78ae960f75
[]
no_license
https://github.com/Mbarley/python_mud
bc01d72b64e2313c871e24096670f1b8921d2f2a
9eaa3ca3edcc9d39ccb2f4cf64fe1c78da3e783a
refs/heads/master
2020-12-03T03:31:13.510092
2012-10-03T20:33:18
2012-10-03T20:33:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Event.Event import Event from Command import Command import Engine.ActorEngine class Drop(Command): def __init__(self): Command.__init__(self) def execute(self, source, args): if args == None or len(args) == 0: args = [''] if len(args) == 1: args.append('') dropEvent = Event() ...
UTF-8
Python
false
false
584
py
103
Drop.py
86
0.655822
0.648973
0
23
24.434783
67
khahux/PersonalWebsite
8,048,768,737,113
58b494c9e3ce82eb868e47ab29f125085846ca81
5a72406a7a10f78b2b3fd8c7c8bddbf97d0b2cf5
/create_tables.py
189b5f733e053032caf1da0f82f1907eee283e12
[ "MIT" ]
permissive
https://github.com/khahux/PersonalWebsite
4e34f5cad8b7f654679c1355c7ed9948eabc8f55
1d1d667b5490b2fa3d993f44cca072ae7f93c014
refs/heads/master
2016-03-22T09:01:40.819063
2015-06-06T22:17:08
2015-06-06T22:17:08
33,525,370
1
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 # email: khahux@163.com from models.base import db from models.user import User from models.blog import Blog, BlogTags, BlogCategory from models.tags import Tags from models.category import Category from models.note import Note from models.word import Word from models.record import AccessRecord def c...
UTF-8
Python
false
false
610
py
103
create_tables.py
42
0.695082
0.688525
0
24
24.458333
55
jihunchoi/skip-thought-pytorch
10,411,000,773,768
b5b94959b8e989de021f0b3ef986ab946c17bfff
569d8444a16f1884bd78901f02bc2b2bfe8640fb
/models/decoders.py
fd7b42248e6bb0c5f9501462379a1c05f9efc79f
[]
no_license
https://github.com/jihunchoi/skip-thought-pytorch
70ac311fcaafbef8b245678d498a0fb1eb0874d9
fb6ccd7b75c8f1bae0e72e649b254a80551b543c
refs/heads/master
2021-05-07T03:30:01.611375
2017-11-17T12:23:02
2017-11-17T12:23:02
110,930,709
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from torch import nn from torch.autograd import Variable from torch.nn import init class RecurrentDecoder(nn.Module): def __init__(self, rnn_type, num_words, word_dim, hidden_dim, num_layers, dropout_prob): super().__init__() self.rnn_type = rnn_type self.num_words = num_...
UTF-8
Python
false
false
2,801
py
11
decoders.py
10
0.576937
0.57301
0
68
40.191176
73
aldew5/CCC-Solutions
16,303,695,902,383
ec9370943d599e2e1de485ace422ab367df943ae
66e81c9587dc17e7c99823e13dab1573aa76ebb0
/2013/J3.py
588db9bbb02ef1d00327c335b7ea267f18c26aa4
[]
no_license
https://github.com/aldew5/CCC-Solutions
a104f2d0cf2f7c46718a0852be0ef3f40679b4a1
b4c4565cd26d6ea830ddbf0f4563a824f25e4625
refs/heads/master
2022-04-12T09:15:31.846229
2020-04-04T15:11:54
2020-04-04T15:11:54
225,699,845
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# "From 1987 to 2013" J3 2013 # Alec Dewulf # January 14, 2019 year = int(input()) numbers = [] double_num = 0 # infinite loop while True: year += 1 year = str(year) # append to a list of new ints or mark it as a double for i in year: if i not in numbers: numbers.append(i) ...
UTF-8
Python
false
false
626
py
35
J3.py
34
0.538339
0.5
0
34
17.264706
57
Anton-L-GitHub/Learning
8,693,013,813,271
ad3e33bd05bb57d2858bddd54c9937ff0093166e
85958019ffb79d74efd9198386ab149c1116dccd
/Python/1_PROJECTS/Python_bok/Prov (övningar)/Kap11/ovn11-5.py
c2ef3e9084ec94a4901a4531d2b1192c7e8fd1f7
[]
no_license
https://github.com/Anton-L-GitHub/Learning
b70e5324c578a05bca5478bf8629d046ba30fabb
7a685cc05590ca276acb3627eef3a2144d8b6c61
refs/heads/master
2023-08-13T21:33:40.154733
2021-09-15T21:32:51
2021-09-15T21:32:51
293,071,776
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import argv assert len(argv) == 4 txt = argv[3] with open(argv[1], 'r') as f1, open(argv[2], 'w') as f2: for r in f1: if r.find(txt) >= 0: f2.write(r)
UTF-8
Python
false
false
183
py
219
ovn11-5.py
206
0.535519
0.486339
0
7
25.285714
56
slamj1/hostthedocs
3,307,124,865,878
30969477c935e40c3a9dc0adb65695ddc402fe12
027d7cf528ade48c2feca29ff2e4de9fcc5bebc3
/hostthedocs/util.py
18a1205cf98c188a0f968d7a18846d0618975cbf
[ "MIT" ]
permissive
https://github.com/slamj1/hostthedocs
d14550a9b73640f9ec1ee5ae73c20e7da2faa763
e9910819e3c184e8f9de97a9c2317d8de453c0c9
refs/heads/master
2021-05-01T01:49:29.092942
2016-09-19T05:39:14
2016-09-19T05:39:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Provides utility methods. """ def get_filestream_from_request(request): """ Extract the file-stream of the first file object from a :class:`werkzeug.wrappers.BaseRequest`. :param werkzeug.wrappers.BaseRequest request: the `werkzeug` request :return: the file-stream of the first file within th...
UTF-8
Python
false
false
552
py
2
util.py
2
0.701087
0.699275
0
18
29.666667
72
xyleroo/py-sma-modbus2
14,783,277,482,993
0faeb2e2140f45053cbacdff9e1af728fd14855f
16474d4e0462607eb5c7247a942ec049bc697a2c
/format_unit.py
113137d3e598404f8b2963cac3b8d1a7bf7cf3c0
[]
no_license
https://github.com/xyleroo/py-sma-modbus2
4162f70144c9f8800dbeaf829d9912cd607be597
6d6727e6acba2c4f0ba75aa6401b685d90442708
refs/heads/master
2023-08-29T03:24:59.331904
2021-10-24T21:40:12
2021-10-24T21:40:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math SI_PREFIX = { -18 : {'multiplier' : 10 ** 18, 'prefix' : 'a'}, -17 : {'multiplier' : 10 ** 18, 'prefix' : 'a'}, -16 : {'multiplier' : 10 ** 18, 'prefix' : 'a'}, -15 : {'multiplier' : 10 ** 15, 'prefix' : 'f'}, -14 : {'multiplier' : 10 ** 15, 'prefix' : 'f'}, -13 : {'multipli...
UTF-8
Python
false
false
3,379
py
14
format_unit.py
8
0.48563
0.401185
0
84
38.202381
87
mystuart/CatStone-MyCRT
4,148,938,420,671
61ae4257a1e8406076e9dbbb82de4e01f5709648
8f7c0bc64773146e81cc1a32c92ac6486a6f1b19
/mycrt-backend/tests/replay/test_replay.py
591fa878f49aa50a49cea199864cf86b295412f7
[ "Apache-2.0" ]
permissive
https://github.com/mystuart/CatStone-MyCRT
9bb6f154ceafd14be4cf8a77081301075dab52b5
55a28221969dd0db49dd3b8007ccadf09c06202b
refs/heads/master
2023-03-17T04:43:42.156889
2018-06-07T16:14:10
2018-06-07T16:14:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/../..')) from tests.mocking.mockBoto import mockBoto from tests.mocking.mockUser import MockUser from src.replay.replay import get_transactions class TestReplay(unittest.TestCase): def setUp(self): self.user...
UTF-8
Python
false
false
687
py
75
test_replay.py
56
0.6754
0.669578
0
22
30.272727
85
firefly707/nebpyclient
8,804,682,994,993
7d3b000525f929c86d35e9ab254be78bc6541f4e
aec330b4e49e2e689aec3c73ac98bde20f450069
/nebpyclient/api/tokens.py
663eb423c8c6dcc01dc9915b809ebb7c09348f93
[ "MIT" ]
permissive
https://github.com/firefly707/nebpyclient
91afbebdc3213e1252884f59936c9b190072e6b9
8ea044096bd18aaccbfb81eca4e26ec29895a18c
refs/heads/master
2023-07-12T11:22:56.401434
2021-08-31T23:42:34
2021-08-31T23:42:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Copyright 2021 Nebulon, Inc. # All Rights Reserved. # # DISCLAIMER: THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO # EVENT SHALL THE AUTHORS OR COPYRIG...
UTF-8
Python
false
false
8,443
py
44
tokens.py
35
0.597701
0.596042
0
263
31.087452
80
denisecase/chapstack
13,907,104,152,283
347c64acd1ef5f0c47c912020e9231f7beefec59
12e61e591b886433ed7b9eff8d8e9745bffac199
/scripts/09-files.py
3eeb6c24473ec29c4afc76fef999feab9b1f5f1a
[ "MIT" ]
permissive
https://github.com/denisecase/chapstack
1776ca29c42103857c06160f4c8da03d9fe12875
ffe006bbbd61853bc7142ae36ed0e09e8a7e9fc1
refs/heads/main
2023-01-20T13:09:07.466772
2020-11-29T03:31:38
2020-11-29T03:31:38
316,328,276
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
"""09-files.py This script will show how we can read files for processing with Python. """
UTF-8
Python
false
false
91
py
17
09-files.py
10
0.736264
0.714286
0
4
22
71
joanvila/aioredlock
3,685,081,974,406
8e9dd9caf36a7d7b60daba1666aed5878e4d1d2e
47f45e1dae9addc03df9869a80bc02bdc2468187
/examples/sentinel.py
e79fe23e740d55199d6f68d8ff21dffcb08c9ba0
[ "MIT" ]
permissive
https://github.com/joanvila/aioredlock
d54f6686646222246ef19818a789ca60d0299984
685d1b5b08113738083ac8a449cc56b5ce10cee2
refs/heads/master
2022-06-20T03:22:49.768666
2022-05-19T16:43:27
2022-05-19T16:43:27
80,053,206
271
57
MIT
false
2022-05-19T16:43:28
2017-01-25T20:10:37
2022-05-09T12:19:52
2022-05-19T16:43:27
247
233
42
7
Python
false
false
""" This example script demonstrates how to use ``aioredlock`` with Sentinels_. Sentinels are useful when you want to make sure that you are always hitting the master redis instance in your cluster, even after failover. In order to run this script, make sure to start the docker-compose setup. .. code-block:: bash ...
UTF-8
Python
false
false
3,503
py
27
sentinel.py
18
0.687411
0.678561
0
102
33.343137
118
rocky1990/AStar-Pathfinder
6,820,408,103,418
fe6e2cdd332c25b9ee49daa8c13bfeccee96cf4a
32b0f928d9174ef79843edc6c24a69bdd5399ae8
/pathfinder/heap.py
4c8f22e077d15b044079dbf8063daa1bc40fe6b3
[]
no_license
https://github.com/rocky1990/AStar-Pathfinder
c13893daa87801045ee79c932c9c502a73b33c08
1affd8ebf57f2a49954c60d12fae41de244a89cf
refs/heads/master
2021-01-20T04:25:02.052114
2011-02-13T13:33:05
2011-02-13T13:33:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import heapq class Heap: def __init__(self): self.heap = [] self.set = {} self.nodes = [] self.free_spaces = [] self.next_free = 0 def len(self): return len(self.nodes) def push(self, node): if node.gridsquare in self.set: index = self.s...
UTF-8
Python
false
false
1,164
py
7
heap.py
7
0.494845
0.491409
0
40
27.925
69
KatjaSchimmel/Robofont-helpers
12,429,635,359,863
07c774662042c67fa11006373077632f8dc9a35b
3eca9317d9ef47f1653c0c694c222a86978a9f6d
/draw_guideline_in_middle_of_stems.py
c62e50f08d041c73e508874c3c4208d53e702290
[]
no_license
https://github.com/KatjaSchimmel/Robofont-helpers
9a283ab749e4fd942eeca0c55bf1e9910f20e3d5
50ea1bdc9074d73851f0f83224fb1658315aa4ad
refs/heads/master
2020-04-27T05:55:34.970752
2020-02-19T10:02:31
2020-02-19T10:02:31
174,094,505
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# select two points on a stem # check direction of the contour (horizontal or vertical) # draw a horizontal or vertical guideline in the middle between those points font = CurrentFont() glyph = CurrentGlyph() points_selected = [] #find coordinates of selected points and add them to list for contour in glyph: for ...
UTF-8
Python
false
false
4,476
py
10
draw_guideline_in_middle_of_stems.py
9
0.619303
0.590259
0
98
44.663265
156
mlukewizard/3DSegmentation
5,798,205,894,091
4a50a770917fb1065d842057c4cd937e04e28d20
e4902b146a6d77026944d08c67e155690ac9f6ad
/predict3D.py
18acdeb7b59c3c6dc7450ffb3504a810913dc40b
[]
no_license
https://github.com/mlukewizard/3DSegmentation
61e589d579d6b00d983ed08338f4e7d9b0d6f7fa
5665bc70579c0f288e68bd8b65177e98c177f0e7
refs/heads/master
2021-05-06T17:50:09.136491
2019-01-18T21:57:25
2019-01-18T21:57:25
111,852,420
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function from keras.callbacks import ModelCheckpoint from keras.models import Model, load_model from keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D, concatenate, ConvLSTM2D, TimeDistributed, Bidirectional from keras.optimizers import Adam from keras import losses import...
UTF-8
Python
false
false
1,407
py
4
predict3D.py
3
0.617626
0.550817
0
48
27.3125
123
meejah/txtorcon
5,214,090,310,530
d076c6de2ca1a44c5ddd67defdc877fce16d69fe
7341a050b77bba6fd1fe53e0caee6f5d491789ad
/test/test_router.py
8faa5add821ca4096162b17f70d58fddfb9c139d
[ "MIT" ]
permissive
https://github.com/meejah/txtorcon
45b60a0b812cc8e647c00d47c4eedfaf59d6e2fd
668d829fe061cbc90e74c494c708e59594599794
refs/heads/main
2023-08-31T08:31:35.772972
2023-08-30T17:36:46
2023-08-30T17:36:46
3,852,351
193
66
MIT
false
2023-08-30T17:36:47
2012-03-28T06:51:27
2023-08-24T23:47:23
2023-08-30T17:36:46
3,900
243
72
46
Python
false
false
import json from datetime import datetime from mock import Mock from twisted.trial import unittest from twisted.internet import defer from twisted.python.failure import Failure from twisted.web.client import ResponseDone from txtorcon.router import Router, hexIdFromHash, hashFromHexId class FakeController(object): ...
UTF-8
Python
false
false
11,110
py
183
test_router.py
89
0.548155
0.475338
0
331
32.564955
90
hdedhiya/skyline
3,324,304,692,394
2d9286f52114ea4efa7a49452e1e3dbd17874c52
5140125c9fc1d9bb468fa6c5b43da8206810ce55
/src/test/python/visualize.py
134d622bb513a119b846f6fa7d79cf1f668fbbec
[]
no_license
https://github.com/hdedhiya/skyline
015c0bb70fc822210674ced5edac6585f21922d2
6ef78e288c704293b4b8b629a6cdeefc451d0082
refs/heads/master
2022-04-11T03:07:17.303214
2020-03-23T22:19:01
2020-03-23T22:19:01
247,558,175
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt import numpy as np skyline = open('../../../target/skyline/skyline-1.txt', 'r') points = open('../java/db/dataset1.txt', 'r') modpoint = [34.78, 19.24] # Point inserted / deleted p = [] for line in points: if len(line) != 0: tokens = line.strip().split(' ') if len(t...
UTF-8
Python
false
false
935
py
6
visualize.py
4
0.589305
0.554011
0
35
25.742857
78
Hsintien-Ng/age_exp
10,170,482,581,423
9c3993cdce699bf1b7ea5d2e01df2ded63f3d207
4e518c51762a95bf8633bf25115832209b77156a
/main.py
71a61479fb95c3d55d6a8b6713ed6d7149f45a66
[]
no_license
https://github.com/Hsintien-Ng/age_exp
b4c86bfe76035e335eae05b5cb6bfec3943a23cd
cfde29d44497203a6cb15756980fa9beb4fdfc7a
refs/heads/master
2021-07-06T14:06:04.682024
2020-08-13T03:39:53
2020-08-13T03:39:53
153,274,842
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from dataset.MORPH import MORPH from model.plain_cnn_asymmetry import PlainCNN_Asym from model.plain_cnn_atrous import PlainCNN_Atrous from model.plain_cnn_asymmetry import plain_parameters_func from train.calculator.age_mae_calculator import AgeMAECalculator from train.loss.KL_Divergence import KLDivLoss fro...
UTF-8
Python
false
false
4,146
py
42,727
main.py
37
0.657501
0.645683
0
101
40.049505
107
reusee/defphp
8,272,107,040,408
f66984a0577084fec0276992a6ad3d1beb5e299c
c11cac44a0ce73d09eee422aa3911f2e58d97ab8
/make_html_specification.py
9602bb91c7547c21e92e47904faec84cf7352960
[]
no_license
https://github.com/reusee/defphp
a756989491e10b3c67b03146ec3154439fff41a0
627d1ccf8db507c11d0d8c99554f0cad9f867150
refs/heads/master
2021-01-10T18:54:09.102883
2012-03-25T07:29:34
2012-03-25T07:29:34
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib2 import re url = 'http://dev.w3.org/html5/spec/index.html#attributes-1' content = urllib2.urlopen(url).read() start = content.index('Attributes</h3>') start = content.index('<tbody>', start) end = content.index('</tbody>', start) rows = content[start:end].split('<tr>') attribute_dict = {} for row in row...
UTF-8
Python
false
false
1,912
py
34
make_html_specification.py
33
0.632322
0.626569
0
62
29.83871
61
gvwilson/tools
3,470,333,612,197
cc897488deb0d103f80e1b72f473a4b0760b3f6a
391c2e8d839a9278d356c0fc21ecacffd939ed84
/topen
f0d05cf0acce4a40d2163d262b362cbcd9264746
[]
no_license
https://github.com/gvwilson/tools
0ba19e4a56fa838ed71c93d9caeb2cd380bd015c
f43f8eb19109b5088eaccd46e8cad7bd6055f1db
refs/heads/master
2019-07-15T04:48:37.078615
2019-01-19T19:10:01
2019-01-19T19:10:01
26,680,389
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import sys import os import re pat = re.compile(r'(\(.\) )?(\d{4}-\d{2}-\d{2} ).*(http.?://[^ ]+).*') target = int(sys.argv[1]) with open(os.path.join(os.environ['TODO_DIR'], 'todo.txt'), 'r') as reader: for (i, line) in enumerate(reader.readlines()): m = pat.search(line) if...
UTF-8
Python
false
false
434
35
topen
34
0.511521
0.497696
0
16
26.125
75
chrisritchie1994/Compendium_Deployment
10,703,058,528,578
a41587ee258f5d68665df90cde38f97541b786ce
54b4f76c358a19a2fba43f0c49026f2c08e5eaa6
/Compendium/compendium_app/migrations/0002_auto_20181118_1723.py
8f2088aef3142d160f5fb43b2fd21e0d71aa5464
[]
no_license
https://github.com/chrisritchie1994/Compendium_Deployment
9a50de0b8b0576c34baeceace2acb296f6ac5af0
918cd5b2631c7b24ff6f250043387f74d66c2bef
refs/heads/master
2020-04-14T13:11:47.109988
2019-01-03T14:25:22
2019-01-03T14:25:22
163,857,613
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.3 on 2018-11-18 07:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('compendium_app', '0001_i...
UTF-8
Python
false
false
1,248
py
33
0002_auto_20181118_1723.py
21
0.564103
0.548878
0
40
30.2
110
google/skia
6,665,789,267,961
824ace81e6fb5b42b45da522a64a1d57385aa2c5
0bcd128368e2de959ca648960ffd7944067fcf27
/tools/skpbench/skiaperf.py
23608a5875b09e58f80bc3f3623064dc1f129aa2
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/google/skia
ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee
bf6b239838d3eb56562fffd0856f4047867ae771
refs/heads/main
2023-08-31T21:03:04.620734
2023-08-31T18:24:15
2023-08-31T20:20:26
15,773,229
8,064
1,487
BSD-3-Clause
false
2023-09-11T13:42:07
2014-01-09T17:09:57
2023-09-11T01:21:26
2023-09-11T05:10:41
874,952
7,866
1,376
23
C++
false
false
#!/usr/bin/env python # Copyright 2016 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function from _benchresult import BenchResult from argparse import ArgumentParser from collections import defaultdict import json impo...
UTF-8
Python
false
false
2,784
py
7,235
skiaperf.py
5,176
0.615302
0.610632
0
92
29.26087
79
bbaobelief/aio_proxy
3,719,441,688,128
0e294749ab73f2cb495bfc14eea8faecaa2b7bb9
20243a459956b3736c510e48e5f0e751d3195e9f
/crawler/sp.py
98652c149855854fa34ce6755068e1563328d295
[]
no_license
https://github.com/bbaobelief/aio_proxy
07a249067e292c75e79c01f0eef119c248e659c7
8f57477b4eff7de0985507e890a33f156a47afea
refs/heads/master
2020-03-21T15:30:56.741143
2018-08-23T06:41:02
2018-08-23T06:41:02
138,716,918
0
0
null
false
2021-03-31T19:01:57
2018-06-26T09:39:55
2018-08-23T06:41:35
2021-03-31T19:01:56
3,698
0
0
4
Python
false
false
import aiohttp import asyncio #proxy="http://180.97.193.58:3128" proxy="http://114.250.25.19:80" async def get(): async with aiohttp.ClientSession() as session: async with session.get('https://www.baidu.com', timeout=20, proxy=proxy) as resp: print(resp.status) assert resp.status == 200 print(...
UTF-8
Python
false
false
452
py
11
sp.py
8
0.676991
0.606195
0
17
25.588235
85
iskracat/tlspu.cookiepolicy
214,748,405,842
394da563b11e6e13e14c64f13bad36fa0060af36
2b02f940a59de3ea9ca8c420d76f5ff39f07ef80
/tlspu/cookiepolicy/browser/viewlets.py
18b2595ac8716b707d40e47c0cccae27ee5f8167
[]
no_license
https://github.com/iskracat/tlspu.cookiepolicy
0a2c5bdac34a257a2926123ead9441f67b4c63a6
5291b8f4259b8f83a4ac673c08404e12d58d53f4
refs/heads/master
2021-06-07T14:19:35.741418
2017-06-14T08:33:39
2017-06-14T08:33:39
31,893,483
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.CMFCore.utils import getToolByName from plone.app.layout.viewlets import ViewletBase from plone.registry.interfaces import IRegistry from zope.component import getUtility class CookiePolicyViewlet(ViewletBase): enabled = False ...
UTF-8
Python
false
false
1,113
py
7
viewlets.py
3
0.678347
0.678347
0
31
34.903226
78
langus0/imgrid
16,269,336,165,454
9098a7d18012bf5d2305ba22976347add17f915e
585699fb489bc420fcdc048d2ac15577a695a40d
/mesh-clusterer/clustering/mesh/equalwidth_mesh.py
ed0f86df91d20d5b428983e3e2be7bd6a3a11254
[]
no_license
https://github.com/langus0/imgrid
fbcae3368cd3c15eecdb0d95ba8824df7232ceb7
d12c2a8c34b494ef048528818e324f48997eac7e
refs/heads/master
2021-01-10T00:04:03.894826
2017-09-21T11:35:06
2017-09-21T11:35:06
91,773,531
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 from clustering.mesh.mesh import Mesh from clustering.cube import Cube from clustering.cube_classifiers.probability_cube_classifier import ProbabilityCubeClassifier, ONLY_MAJORITY, \ MINORITY_CLASS import numpy as np import math import itertools __author__ = "Mateusz Lango, Dariusz Brzezinski" c...
UTF-8
Python
false
false
6,149
py
103
equalwidth_mesh.py
22
0.554724
0.544316
0
172
34.75
111
GgnDpSngh/ERAN-VNN-COMP
9,328,669,005,279
b01bb81457deea219155945019d7603225e04b5b
1e53c854bd6d6239c584db35c55d1fdcacc00638
/tf_verify/krelu.py
2a5f547ae8d5fee33d76930fd6d2390b4b1fb02d
[ "Apache-2.0" ]
permissive
https://github.com/GgnDpSngh/ERAN-VNN-COMP
785145f9d8edca74de7d1e54cf67f7423577a9fb
98734af4d752346b68d3f7b68f75b5b44c605cd8
refs/heads/master
2022-12-13T01:40:54.076816
2020-08-27T18:12:06
2020-08-27T18:12:06
290,538,076
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from elina_scalar import * from elina_dimension import * from elina_linexpr0 import * from elina_abstract0 import * from fppoly import * import numpy as np import cdd import time import itertools import multiprocessing import math from config import config """ From reference manual: http://web.mit.edu/sage/export/cd...
UTF-8
Python
false
false
16,738
py
61
krelu.py
15
0.582985
0.571872
0
458
35.545852
129
victorviro/Text-classifier-from-BERT-embeddings
15,427,522,564,666
4fad6d3a8c72ecf9829e90e2157e187333b6fefc
cc0959203937193253fded9af1cc5cef10076568
/src/train.py
03e4ae66695f0d9bac2bfc5f276cc7b0e2188659
[]
no_license
https://github.com/victorviro/Text-classifier-from-BERT-embeddings
1a6576b68e8f70d442951dcd03cceca910f54df9
41580df2caec3f3cac4525e9069d930d43f594f2
refs/heads/master
2023-02-27T07:54:38.410736
2021-01-30T10:49:39
2021-01-30T10:49:39
329,711,383
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pickle import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression import spacy_sentence_bert from constants import DATASET_PATH, SPACY_MODEL_NAME, MODEL_PATH from utils import get_sentence_embeddings def train_model(): """ Load the dat...
UTF-8
Python
false
false
1,795
py
7
train.py
4
0.636212
0.630641
0
54
32.222222
75
yiulau/all_code
9,715,216,035,477
17e43893a32b892a082e4015dcfaf0660db4bb36
a77ad6a7d32478a3921a67ed339ee1d120853f37
/abstract/T_diag_e.py
0212afd9b063d63f857f5703591bc0f592ef5a9a
[]
no_license
https://github.com/yiulau/all_code
5cf7804c5a77d197f6a979d6fafa036f95d16659
4630ea6efc630616e6f767807ebbd64c82852726
refs/heads/master
2020-03-18T05:19:50.586402
2018-08-03T09:14:59
2018-08-03T09:14:59
134,337,109
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from abstract.abstract_class_T import T from abstract.abstract_class_point import point import torch class T_diag_e(T): def __init__(self,metric,linkedV): self.metric = metric super(T_diag_e, self).__init__(linkedV) def evaluate_scalar(self,q_point=None,p_point=None): if not q_point is ...
UTF-8
Python
false
false
1,520
py
340
T_diag_e.py
320
0.594737
0.592105
0
39
38
113
iiibsceprana/pranavsai
18,408,229,840,382
d111d9d6ac3a7a4f25de11d5c46b98197ed5421b
14f223f1855215f6cbeaba533bcfe26532161918
/functions/funtest3.py
956b97cedf42647a34bdcd0532a3dd82ad72ec7b
[]
no_license
https://github.com/iiibsceprana/pranavsai
1026519a44eac429db8c4a6e3664277839d5dd52
ffd8c937c50814676b0ee1eabdfd461087d52b96
refs/heads/master
2020-03-09T23:36:23.258180
2018-04-11T08:53:55
2018-04-11T08:53:55
129,061,808
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def printme( str="my name is pranav sai"): "this prints a passed string into the function" print(str) printme() printme("my name is sai pranav")
UTF-8
Python
false
false
160
py
44
funtest3.py
44
0.66875
0.66875
0
7
21.714286
51
cynthiayu316/Tiny-Tuffys-Super-Mario-Project
17,540,646,440,839
a2784521e02322c2c10e3f3a50166aa2f84bcda0
6aa63fda98ba7c1d57324781651d782ba8aaab8e
/pipe.py
cb9c48577b4ac3f73f165d47417a3db575c514df
[]
no_license
https://github.com/cynthiayu316/Tiny-Tuffys-Super-Mario-Project
f8f602a2b20b90b58418988bf8cd50f24e52a3b6
1502509cca1c0e87cbf846a2a4eab214bfe249f2
refs/heads/master
2021-02-06T04:00:37.328753
2019-11-04T06:34:42
2019-11-04T06:34:42
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame from pygame.sprite import Sprite class Pipe(Sprite): small_pipe = pygame.image.load('images/small_pipe.png') medium_pipe = pygame.image.load('images/medium_pipe.png') large_pipe = pygame.image.load('images/large_pipe.png') def __init__(self, pos, screen, size=0): super...
UTF-8
Python
false
false
1,143
py
15
pipe.py
14
0.550306
0.546807
0
39
27.307692
68
Jackroll/aprendendopython
4,492,535,826,821
bc917072897aeecc12e49fdbc7c66aee1b72d344
a1d5290470d5a8beb99846d62d8539a13021470e
/exercicios_udemy/Orientacao_Objetos/desafio_poo/main.py
823ed48bb124f96e6dc038788294bbb6963dd913
[]
no_license
https://github.com/Jackroll/aprendendopython
26007465b42666f0a9aff43e8229b24aef418d4c
9211612a1be8015bcf8d23d8cdfbd11d9df38135
refs/heads/master
2021-02-19T19:40:22.993033
2020-04-04T21:35:08
2020-04-04T21:35:08
245,319,139
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Sistema bancario: - Banco - Clientes - contas Banco = [ [Clientes ] ] - Clientes: - tem que ter conta (corrente ou poupança) - Sacar - Depositar - Conta Corrente / Poupança : - Limite extra (pode ser sacado e ficar com saldo negativo) -...
UTF-8
Python
false
false
1,789
py
104
main.py
100
0.727784
0.677165
0
63
27.238095
78
sumeilan/lemon_testcase
6,451,040,884,530
5fd4e8f492d3e62dfc874073534dd1fd01b55b7c
b7fd9500a776c0e92676e65b80dec0f28ebbd232
/test2.py
90453af1e3f27ca0dd828a7fc1164f9cad8d8853
[]
no_license
https://github.com/sumeilan/lemon_testcase
b433a36f32010a06b1684f1e4494236b4e964ac0
fda97abac0540cbdca52c1e0f848bf776f4182bd
refs/heads/master
2022-12-09T22:07:30.845115
2019-10-19T13:59:34
2019-10-19T13:59:34
198,031,251
0
1
null
false
2022-11-25T22:51:19
2019-07-21T08:20:36
2019-10-19T14:01:38
2022-11-25T22:51:19
5,442
0
1
1
Python
false
false
import hashlib import hmac import base64 import json secretKey = 'SwYNTwt5qPABx29Atyi0' body='{"page":"1","pageSize":"20","app_key":"lemondream"}' bo={"page": "1", "pageSize": "20", "app_key": "lemondream"} co = json.dumps(bo).replace(" ", "") #讲bo 变成 body boo={'page':'1','pageSize':'20','app_key':'lemondream'} boo...
UTF-8
Python
false
false
1,070
py
21
test2.py
17
0.712406
0.656015
0
28
36.892857
115
komkar123/Udacity_NanoDegree_DataEngineering
558,345,777,486
2270b6b4e571fbc9d63e53094ddfb03bbe09673d
e052eb5507b15bd8ac35edc8d7473b0ce9413412
/Airflow/plugins/operators/load_dimension.py
5fe0fb9f675ee6cb47b867bdcd1aab15122a2997
[]
no_license
https://github.com/komkar123/Udacity_NanoDegree_DataEngineering
19ddea0478dbdae102a4fe67d2f9c5cdf1db8c61
3e4da07962b93566b7b7ab234114d1a24fcfd3cf
refs/heads/master
2022-11-13T05:25:50.146729
2020-07-11T00:41:26
2020-07-11T00:41:26
262,697,913
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from airflow.hooks.postgres_hook import PostgresHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults class LoadDimensionOperator(BaseOperator): ui_color = '#80BD9E' insert_sql=""" Insert into {table} {sql}; """ @apply_defaults def __init__...
UTF-8
Python
false
false
867
py
17
load_dimension.py
8
0.597463
0.594002
0
32
26.09375
69
gaz888/Python-mini-blog
14,267,881,366,958
b5dbb964b4ac018839dc825c12df9598174aee1b
6f33f1425b0ef6888fa2001f0c31cb1ef14c91c7
/entities/Post.py
66631843824321e5650b2c7f6886b741c6216ec1
[]
no_license
https://github.com/gaz888/Python-mini-blog
bac4fd6d860415c0cc02a7f0afe560fd508fd569
5d87652e7dbe0246331f14258d87eb7713c1fd7c
refs/heads/master
2021-01-17T20:09:10.666803
2013-01-01T22:37:25
2013-01-01T22:37:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from google.appengine.ext import db from google.appengine.api import memcache import time __author__ = 'ssav' class Post(db.Model): title = db.StringProperty(required=True) content = db.TextProperty(required=True) created = db.DateTimeProperty(auto_now_add=True) ALL_POSTS = 'all_posts' LAST_TIM...
UTF-8
Python
false
false
1,454
py
24
Post.py
14
0.610729
0.610729
0
47
29.957447
75
NikithaChandrashekar/guessing
13,357,348,312,257
c44ec8b580103b5f468bcb7e648124243f661406
ec0cea13a51abae7b101d145de6c289649038a10
/guessingGame.py
b025408961823ae73ecee5b8beeea8c7ebe6ecce
[]
no_license
https://github.com/NikithaChandrashekar/guessing
c62cd23a23fb56144c5a7810d77fe884d78e9f49
d13c51aa8d0466c80713cf0069a668f20e5b614c
refs/heads/main
2023-07-22T11:27:14.814106
2021-09-08T11:51:41
2021-09-08T11:51:41
404,328,005
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
name=input("Hi!Enter your name.") print("ok"+name+",hi!") age=input("Please tell me your age!") print("hmm,okay !") q1=input("guess the capital of india!") if(q1=="Delhi"): print("yes that is correct!") else: print("sorry, but that is wrong.")
UTF-8
Python
false
false
254
py
2
guessingGame.py
1
0.641732
0.633858
0
9
27
39
rodrigolc/gowdock-landing
8,899,172,257,627
23a7f9802b29caf9e00aade8a506bdd3d1324f09
cd2b85de3990e7cc2ae66ba1610c07ef5c220098
/landing_page/models.py
2dda4ec5a04cb3f58f98af11bb97788e8ac45a3b
[]
no_license
https://github.com/rodrigolc/gowdock-landing
1c635dc9e3c0789cc6e63da3bdfad636bec1f691
5397c8453b625467ed737083ab57d46ce892f02a
refs/heads/master
2018-11-04T14:22:41.579353
2018-10-05T18:43:26
2018-10-05T18:43:26
146,206,638
0
0
null
false
2018-09-11T23:04:38
2018-08-26T18:37:57
2018-09-03T13:48:26
2018-09-11T23:04:38
2,994
0
0
0
Python
false
null
from django.db import models # Create your models here. class CadastroLanding(models.Model): nome = models.CharField( max_length=120, error_messages={ 'blank': "Nome vazio" } ) email = models.EmailField( unique=True, error_messages={ 'null': ...
UTF-8
Python
false
false
547
py
12
models.py
4
0.519266
0.513761
0
23
22.695652
49
ivanag01/Python-By-Example
5,858,335,425,294
f2e83d7060229496d8abd0ec9c36db3bc2ef9e83
a6e5b996f70c36b1d258fe7d65446f8ced5f7f1b
/src/065.py
85531eeb82e2e02dea41f9578ba52f09e3301739
[]
no_license
https://github.com/ivanag01/Python-By-Example
5e0087628d2f3641be9183d4c00c42b346c4704c
baeb6f129777da20e7da869fe778016d1403b44e
refs/heads/main
2023-06-01T10:28:37.740258
2021-06-18T11:45:43
2021-06-18T11:45:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import turtle turtle.left(90) turtle.forward(100) turtle.right(90) turtle.penup() turtle.forward(50) turtle.pendown() turtle.forward(75) turtle.right(90) turtle.forward(50) turtle.right(90) turtle.forward(75) turtle.left(90) turtle.forward(50) turtle.left(90) turtle.forward(75) turtle.penup() turtle.forward(50) tur...
UTF-8
Python
false
false
572
py
57
065.py
56
0.769231
0.678322
0
39
13.692308
20
gsakkas/seq2parse
14,877,766,742,752
52acf77bc52a98f2486bb57d00586162691c417a
e547f7a92e7a1c1d79f8631f9e8ee8a93879a4eb
/src/transformer_classifier.py
2037c9312c97e67af88b642a371573a980892ae4
[]
no_license
https://github.com/gsakkas/seq2parse
3c33ec7bc6cc6e4abd9e4981e53efdc173b7a7b9
7ae0681f1139cb873868727f035c1b7a369c3eb9
refs/heads/main
2023-04-09T12:29:37.902066
2023-01-18T21:32:12
2023-01-18T21:32:12
417,597,310
7
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras import regularizers """ ## Implement a Transformer block as a layer """ class TransformerBlock(layers.Layer): def __init__(self, embed_dim, num_heads, ff_dim, rate=0.1): super(TransformerBlock, se...
UTF-8
Python
false
false
7,814
py
386
transformer_classifier.py
227
0.665088
0.653187
0
181
42.171271
169
rluria14/maxarcat
1,236,950,606,942
2522c1fab2b61ba6fa00ca7529399d748f370113
b61c07b0e33f68a41ec184305d81769aa48345b0
/maxarcat_client/test/test_stacitem_api.py
10433ba66bc77c38729d344ae3b89d821ad0a73f
[ "MIT" ]
permissive
https://github.com/rluria14/maxarcat
c5d6909d8fc74b4f49b9cec5816f935547c7e10b
dc4fd010fc65149c0b3421438b48f1af20887404
refs/heads/master
2023-06-09T16:58:58.559576
2021-07-01T01:08:53
2021-07-01T01:08:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 """ Maxar Content API - Catalog The Maxar Content Catalog API implements a STAC-compliant service for searching the Maxar content catalog. __The STAC specification is still under development. When version 1.0 of the STAC specification is released the Content Catalog API will be updated to re...
UTF-8
Python
false
false
1,372
py
36
test_stacitem_api.py
18
0.682216
0.667638
0
47
28.191489
440
thomasboevith/pyrad
2,929,167,734,747
204281895e48adefb28724fa4bb73562ac0e37a6
77d36fec53d21f20e55c1860abe4680a78b5f383
/utils_proj.py
6b5550af422372e65c263fbf6c08cf382feaa079
[]
no_license
https://github.com/thomasboevith/pyrad
dbc963bea038ae3dea37fc8a3b98856fdb5df3c5
249abbca681f2876ef893009540f07e884b038dd
refs/heads/master
2019-04-05T00:55:04.080525
2016-09-06T08:36:09
2016-09-06T08:36:09
56,674,485
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import pyproj import sys """Some predefined and standard projections""" log = logging.getLogger(__name__) def predefined_projections(projname): if projname == "dmi_stere": """ Stereographic projection (DMI standard projection) """ projstring = '+proj=stere +ellps=WGS84 +lat_0=56 +...
UTF-8
Python
false
false
3,100
py
8
utils_proj.py
7
0.538065
0.493226
0
75
40.333333
79
OanaIgnat/coding_practice
16,071,767,659,395
d31eb1c6aa35696581ec48a3cd097d75edb720fa
fc44f5469ab61537c96594c63e11f599201e6aaf
/data_structures_algorithms/arrays/arrange.py
8fec681fb94e6a7d73779177072911f68be3b836
[]
no_license
https://github.com/OanaIgnat/coding_practice
ad98ef052bf24c0547ef61a5a5bd848207259123
73a7841f8467e5e6ea7fed942c464b8d71be9a55
refs/heads/master
2022-03-03T22:54:31.130738
2022-02-25T18:04:42
2022-02-25T18:04:42
168,975,280
10
2
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Facebook: Rearrange a given array so that Arr[i] becomes Arr[Arr[i]] with O(1) extra space. Example: Input : [1, 0] Return : [0, 1] Lets say N = size of the array. Then, following holds true : All elements in the array are in the range [0, N-1] N * N does not overflow for a signed integer ''' class Solution: ...
UTF-8
Python
false
false
1,568
py
61
arrange.py
56
0.5
0.457908
0
60
25.133333
114
jiachen247/CodeIt2018-CreditSussie
7,550,552,549,111
a4e0b59a7b55a6cde6e9cefc455d070a64636217
7ae994ceed2d419c8054e723158b7cb11e129a69
/codeitsuisse/routes/broadcasterpt2.py
98a28474ddd8cd3300506d8843399dc2f90441a9
[]
no_license
https://github.com/jiachen247/CodeIt2018-CreditSussie
fdc85e3ed8e6936904f64353fa941bae28fc9ea5
c47344bb9215dfe490f74b48baa0edcaf0f22779
refs/heads/master
2021-09-23T12:56:30.776568
2018-09-23T01:35:57
2018-09-23T01:35:57
149,738,675
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging from flask import request, jsonify; from codeitsuisse import app; logger = logging.getLogger(__name__) @app.route('/broadcaster/most-connected-node', methods=['POST','GET']) def evaluate_most_connected_node(): data = request.get_json(); logging.info("data sent for evaluation {}".format(data)) ...
UTF-8
Python
false
false
1,470
py
26
broadcasterpt2.py
23
0.552381
0.541497
0
46
30.978261
70
lithium/django-ingress-discoverer
10,015,863,779,738
fc709c29aa1084ee571d13cba29350fdfb12088a
6930f4f0c79f3d938298447643d955cb7835df84
/discoverer/management/commands/import_from_portalinfo.py
e99885c4d197eb24e5d5950ac510fd4641aeb74b
[]
no_license
https://github.com/lithium/django-ingress-discoverer
231e8b5bd5d0586b47518144ced4aae7d555e972
5c7985e8dd110ddf8f85e6eb70b1bedac8e05f25
refs/heads/master
2022-01-15T20:05:47.326040
2017-06-25T05:15:03
2017-06-25T05:15:03
212,792,475
0
0
null
false
2022-01-06T22:37:56
2019-10-04T10:45:01
2019-10-04T10:45:53
2022-01-06T22:37:56
105
0
0
2
Python
false
false
import pprint from django.core.management import BaseCommand from pymongo.errors import BulkWriteError from discoverer.models import PortalInfo from discoverer.portalindex.helpers import MongoPortalIndex class Command(BaseCommand): def handle(self, *args, **options): for pi in PortalInfo.objects.all(): ...
UTF-8
Python
false
false
811
py
33
import_from_portalinfo.py
23
0.606658
0.59926
0
27
29.037037
59
davelidev/LeetCode
10,307,921,522,582
32a2e6b1aa1edf59fc6547b39e8898f183625fed
cd47aaf8de3b09706988ffb4f4ad9a5ae8e9ff5c
/201 Bitwise AND of Numbers Range.py
2b4e87c4cad05055f74f71987ad6788627253abb
[]
no_license
https://github.com/davelidev/LeetCode
023d6d0c987218480022164afc4f6cb4232093d2
c89d2b92c2e0881a2809caa753351ab4ef5caa18
refs/heads/master
2020-03-23T07:02:28.609282
2018-11-03T02:56:33
2018-11-03T02:56:33
141,244,429
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Answer(object): '''201. Bitwise AND of Numbers Range''' def rangeBitwiseAnd(m, n): res = ~0 while ((m & res) != (n & res)): res = res << 1 return res & m
UTF-8
Python
false
false
199
py
346
201 Bitwise AND of Numbers Range.py
346
0.492462
0.467337
0
7
27.571429
39
mayckxavier/ci-crud-generator
13,709,535,638,814
bcf807b87d3aa69bc9abf116862201140e270b3b
e68a30ada8d1956f1f4455eb2c453cb3622b4183
/crud_generator.py
1f57ed5e60ed7799bb32d377d8fe90acf39d1a75
[]
no_license
https://github.com/mayckxavier/ci-crud-generator
adfb596a260b9d29e925cf907d57cf449a0b2b74
ead04c129192ba887104fffb0b4bcae987dfd655
refs/heads/master
2021-01-20T02:28:47.447388
2016-07-21T12:01:51
2016-07-21T12:01:51
63,865,671
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys from shutil import copyfile, move controllersPath = 'application/controllers/' modelsPath = 'application/models/' viewsPath = 'application/views/' crud_generator_files = 'crud_generator_files/' def create_controller(param): # Verificando se control...
UTF-8
Python
false
false
3,199
py
6
crud_generator.py
5
0.616228
0.615288
0
108
28.555556
83
riavats05/4June2018
10,703,058,506,289
73b3e66ca12c62b92c25674e16ebad28bcaaa31e
e8d9a486877c0fafc313d00c76ad014cbb04e1ae
/database_prgm.py
70d759a34facf6169891a70ab2f81e75598f002d
[]
no_license
https://github.com/riavats05/4June2018
69b11404a6921ba079e9c40f38c7e890aecea075
49a4c3b307cf24d2409b1d6499058bd24c849a57
refs/heads/master
2020-03-20T21:38:26.367934
2018-06-28T07:09:54
2018-06-28T07:09:54
137,744,569
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2 import mysql.connector as mysql connection=mysql.connect(user='root',password='riavats',host='localhost',database='adhoc1') cur=connection.cursor() cur.execute("select name,email from student") output=cur.fetchall() print output print "1. Insert" print "2. Update" print "3. Exit" value=raw_input("Ent...
UTF-8
Python
false
false
605
py
12
database_prgm.py
11
0.727273
0.710744
0
21
27.761905
91
skyportal/skyportal
13,597,866,459,160
042ce6c71104164ef362cfba22c181dc2bfac193
a18d2b12d0e6afa1e3f5b6e0a6c84d671cdd5e34
/skyportal/tests/api/test_catalog_services.py
ac6990058b46673e3e27b2f905fae90b717af7fa
[ "BSD-3-Clause", "MIT" ]
permissive
https://github.com/skyportal/skyportal
a55b59a50b7d9d8437a2c6a978cb7713bb67aee2
161d3532ba3ba059446addcdac58ca96f39e9636
refs/heads/main
2023-09-01T03:39:33.676748
2023-08-28T16:29:02
2023-08-28T16:29:02
82,240,075
80
100
NOASSERTION
false
2023-09-14T21:08:34
2017-02-17T00:34:43
2023-08-29T03:00:42
2023-09-14T21:08:32
60,967
78
81
106
Python
false
false
import numpy as np import pytest import time import uuid from skyportal.tests import api @pytest.mark.flaky(reruns=2) def test_swift_lsxps(super_admin_token): name = str(uuid.uuid4()) status, data = api( 'POST', 'telescope', data={ 'name': name, 'nickname': na...
UTF-8
Python
false
false
1,701
py
984
test_catalog_services.py
871
0.5097
0.470312
0
72
22.625
57
hhelibeb/leetcode
14,611,478,753,364
a179b5007a3fa18b8b84bd3512cdabb8f34681fa
9e1993270cb9cf714fc102647861557d0e859b62
/1276. Number of Burgers with No Waste of Ingredients.py
b99d7ede00035eb800e0ca1fd02523ed32dad324
[]
no_license
https://github.com/hhelibeb/leetcode
06adb57bad9e2ef3e0140c7e364788b534441370
dc02ea889ec3b53415dc1c5f9e7444c2b46fcd06
refs/heads/master
2021-01-20T18:28:05.125275
2020-04-30T14:13:36
2020-04-30T14:13:36
59,983,962
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List class Solution: def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]: if tomatoSlices % 2 != 0: return if tomatoSlices > cheeseSlices * 4 or tomatoSlices < cheeseSlices * 2: return jumbo = 0 smallRight = t...
UTF-8
Python
false
false
1,220
py
20
1276. Number of Burgers with No Waste of Ingredients.py
19
0.544262
0.517213
0
32
36.125
91
bopopescu/geosci
10,522,669,888,669
0508e1f61a2cb36b87d5114c6f917cff419c9352
bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4
/sage/src/sage/sets/finite_set_maps.py
763e503ff1e977d04eb67a76930fbdbb6e0fce1d
[]
no_license
https://github.com/bopopescu/geosci
28792bda1ec1f06e23ba8dcb313769b98f793dad
0d9eacbf74e2acffefde93e39f8bcbec745cdaba
refs/heads/master
2021-09-22T17:47:20.194233
2018-09-12T22:19:36
2018-09-12T22:19:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
r""" Maps between finite sets This module implements parents modeling the set of all maps between two finite sets. At the user level, any such parent should be constructed using the factory class :class:`FiniteSetMaps` which properly selects which of its subclasses to use. AUTHORS: - Florent Hivert """ #************...
UTF-8
Python
false
false
17,658
py
1,686
finite_set_maps.py
1,083
0.52707
0.508155
0
586
29.131399
94
truckli/practical-calcs
10,617,159,201,277
276a2d14fbc69de02af7e523649d1f1f9c0fa822
abd2510393fd980cea62d5716f20f7510547020f
/baseDialog.pyw
e254d0ceb36927c9e2048d94c7ea713e57309bf7
[]
no_license
https://github.com/truckli/practical-calcs
d25d714edab082122a2e8006dbf2a7ffcf70165a
94d554c65704910d0c5e90dfac6872c93bc53424
refs/heads/master
2016-03-27T16:34:49.901955
2013-09-16T08:15:46
2013-09-16T08:15:46
35,704,381
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Copyright (c) 2007-8 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 2 of the License, or # version 3 of the Lice...
UTF-8
Python
false
false
1,234
pyw
4
baseDialog.pyw
3
0.719611
0.710697
0
46
25.76087
74
DimitriMisiak/foobar-challenge-withgoogle
9,474,697,905,476
dff1b70018e79bcaf884e3e3b3b688697bc5cc6e
fdc6be235a166db4ac152fb55510036c2a9cf317
/bomb_baby.py
5be715e5070470b13a4af61aac7df115bb9f1c07
[]
no_license
https://github.com/DimitriMisiak/foobar-challenge-withgoogle
ca4afec3237c0817ff7ea8d106dbd909fc33f62b
ee9d6a229a87e350c41cc8d5251bf7f88a4bee08
refs/heads/main
2023-06-14T15:25:41.920027
2021-07-14T22:56:12
2021-07-14T22:56:12
373,237,719
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 19 14:56:15 2021 @author: dimit """ def solution(M, F): M = int(M) F = int(F) n_gen = 0 while True: n_gen += max(M,F) // min(M,F) remainder = max(M,F) % min(M,F) F = min(M,F) M = remainder print(M, F) if F =...
UTF-8
Python
false
false
561
py
8
bomb_baby.py
8
0.440285
0.388592
0
31
17.129032
39
rashid0531/DistributedCNN
8,967,891,729,375
0696bdcace348f2733176c6a6b955ecc8eabe88a
c38596522e2b39a4742149c5f65ed9b5886e0c6b
/distributed_train.py
4f988097559b20c13f0491ceeb3725b0cc2020e6
[]
no_license
https://github.com/rashid0531/DistributedCNN
d06771736f2e7e42439667bd8f2bdb069ba83088
daaf547a48ee0c7ceb970f33d2bb3bd269e61431
refs/heads/master
2022-05-20T18:54:45.364748
2019-07-04T20:57:37
2019-07-04T20:57:37
138,433,398
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import argparse import tensorflow as tf import os from PIL import Image, ImageFile import numpy as np import prepare from matplotlib import pyplot as plt from datetime import datetime from tensorflow.python.client import timeline import modified_MCNN as model import os import re import time from d...
UTF-8
Python
false
false
12,623
py
25
distributed_train.py
19
0.638438
0.632734
0
275
44.901818
208
krishnavpai/open_source_start
1,090,921,701,652
f133f6477d7d5f7861a22c7e07b8fcc38e339f8a
c68f04d903c4e926b7b9a38096ed09dc257366b1
/Python/reverse_linked_list.py
a4dc60dd1c253ab2f44f6d93f9b79c2fa66ad645
[]
no_license
https://github.com/krishnavpai/open_source_start
bbbb7aa0f6d7ddfc811a1b93807626aa2fd2c39e
81af597111abb98ff24ae46607361248f6c8723c
refs/heads/master
2023-08-20T23:21:34.204120
2021-10-01T20:36:29
2021-10-01T20:36:29
412,608,512
1
0
null
true
2021-10-01T20:27:57
2021-10-01T20:27:56
2021-10-01T17:28:41
2021-10-01T19:28:03
5,693
0
0
0
null
false
false
from typing import Tuple class Node: def __init__(self, data: int, next_=None) -> None: self.data = data self.next_ = next_ class LinkedList: # Minimal representation of linked list def __init__(self) -> None: self.head = None def insert(self, data: int) -> None: ''' ...
UTF-8
Python
false
false
3,108
py
45
reverse_linked_list.py
39
0.560167
0.55888
0
109
27.513761
78
ellmetha/morganaubert-resume
549,755,821,930
016fe53482182cdae599985df9935abb71dd2087
7a897f5e1b857b4342340583966126fdd0b7ec73
/main/__init__.py
80adbd9d8f22bd030f29015b76d2559e2010fd82
[ "MIT" ]
permissive
https://github.com/ellmetha/morganaubert-resume
4690a678b5f12bf3ad3ce21b036a738b65018c19
7987ba5f1b0667d75b94ecbcf9ae5bbc0c4c9627
refs/heads/main
2023-07-19T15:22:58.873621
2023-07-15T13:01:44
2023-07-15T13:01:44
23,937,127
2
1
MIT
false
2023-07-19T02:58:11
2014-09-11T21:53:52
2022-01-01T14:12:45
2023-07-19T02:58:10
10,850
0
0
1
HTML
false
false
from flask import Flask, redirect, request from config import config from . import extensions, modules def create_app(config_name): config_obj = config[config_name]() app = Flask(__name__, static_url_path='/static') # Initializes configuration values. app.config.from_object(config_obj) # Confi...
UTF-8
Python
false
false
899
py
38
__init__.py
19
0.656285
0.651835
0
33
26.242424
79
gabriellaec/desoft-analise-exercicios
2,946,347,588,954
0af77932304e0a999dda1243059e530fb868b603
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_252/ch146_2020_04_13_02_16_13_512281.py
8b50d7e598a73adf37af44c088813c6796457fc2
[]
no_license
https://github.com/gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def conta_ocorrencias(lista): d={} for i in range(len(lista)): palavra=lista[i] if palavra in d: d[palavra]+=1 else: d[palavra]=1 return d
UTF-8
Python
false
false
207
py
35,359
ch146_2020_04_13_02_16_13_512281.py
35,352
0.47343
0.463768
0
9
21.111111
31
silvadirceu/experiments
13,752,485,311,889
9ba83ec644ff7c0269fed0c77792ba6bc139aa36
036f11eaae82a9c7838580d141375ab3c03f739a
/psychouacoustic-critic/perceptual_critic.py
8a7f780418d28153921407b0c9ec6e9016600380
[]
no_license
https://github.com/silvadirceu/experiments
8b6f1739a51803f73da89c137d07871505ddf712
2390392726a43aa5587e02d8ee2a423cf281463c
refs/heads/master
2022-02-19T11:18:52.485742
2019-09-26T14:43:51
2019-09-26T14:43:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import zounds from zounds.learn import GanExperiment from zounds.learn import Conv1d, ConvTranspose1d, DctTransform, sample_norm import torch from torch import nn from torch.nn import functional as F latent_dim = 100 sample_size = 8192 def sample_norm(x): # norms = torch.norm(x, dim=1, keepdim=True) # return...
UTF-8
Python
false
false
9,911
py
77
perceptual_critic.py
58
0.527898
0.496015
0
305
31.495082
79
lwijers/spygame
11,390,253,276,200
44bef6133ecf0b1f829f8c41a3911fe4af43846e
fb8555be68272d90946e56a50c2eff973a9f0b0e
/_items.py
f43f4cfcf38dd5874cbfbea9c585ebbc6f963a7e
[]
no_license
https://github.com/lwijers/spygame
95b34aa7a1490faff340760aab044650b2e3f250
b85a3d9ad4f0320cc2c0bfee4983edce0815b120
refs/heads/master
2020-03-14T07:39:29.809164
2018-04-29T16:07:49
2018-04-29T16:07:49
131,508,949
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame from main._const import * class Ladder(): def __init__(self, grid, start_rect): self.possible_interactions = { 'move_here' : { "req" : None} } self.stats = {} self.grid = grid self.height = SM_CELL_SIZE * 6 self.width = SM_CELL_SIZE ...
UTF-8
Python
false
false
1,441
py
25
_items.py
24
0.569049
0.564192
0
53
26.188679
86
JoseRivas1998/Snake-pygame
34,359,785,324
cf31543f396e333def3805904c18b9596b9b5164
e1a6082207c7b16637479ffea69ad7074ec36f69
/snake.py
2447f6a03497496b55f91eb9886888a97dc8f54d
[]
no_license
https://github.com/JoseRivas1998/Snake-pygame
d6d8ac247016b91ad2accfbe1dcbd811a283c8e3
e22dee003c0c1f52aa8b0a9cfe4658431c1599e0
refs/heads/master
2020-07-01T10:44:35.903962
2019-08-08T05:20:28
2019-08-08T05:20:28
201,151,104
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import Tuple from pygame.font import Font from pygame.surface import Surface class Snake: score: int = 0 @staticmethod def draw__text(text: str, center: Tuple[float, float], color: Tuple[int, int, int], font: Font, surface: Surface): text_surface = font.render(...
UTF-8
Python
false
false
464
py
17
snake.py
16
0.640086
0.637931
0
16
28
99
Mesteriis/atavism
601,295,455,639
33862fe40d8cfcc2cdafd32433c08434c4be1767
36847f055b9e6cc852b2ffd4081f61563f9456d0
/atavism/http11/objects.py
db03e5f63b35eebececbec83f50695f16559eef4
[ "Unlicense" ]
permissive
https://github.com/Mesteriis/atavism
427611f2cde4068cb73508dd1cfd30b1ee797906
4db376589fdd712dc7f023a54296d4f4965fd80a
refs/heads/master
2021-05-30T12:36:43.138763
2015-06-02T12:53:39
2015-06-02T12:53:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" HTTP relies on Requests and Responses. The classes contained in this module are able to be created in either a client or server environment. They are named for their content and intent. """ try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from atavism.http11....
UTF-8
Python
false
false
4,169
py
19
objects.py
18
0.566563
0.550971
0
131
30.824427
100
Ananyapam7/CS-2201
7,679,401,536,027
663f82b8315cc345f81380191deb124d2c5b3b77
075c5d30aca7627025d529d2ab2bdbcb77d6cbab
/Worksheet 09/Q3.py
14db0c35e7bd63b3a39d8de4785741d0ddd7cdef
[]
no_license
https://github.com/Ananyapam7/CS-2201
a10f20c65a13042919a04dd156f741ed348adb91
12615b687afeba20f425afcd0b0f2b3ca6548746
refs/heads/master
2022-12-04T12:11:01.435419
2020-08-23T11:10:58
2020-08-23T11:10:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np #a1=float(raw_input("Enter lower limit of integration :")) #a2=float(raw_input("Enter upper limit of integration :")) guass=np.loadtxt('gauss32.dat') W=guass[:,1] X=guass[:,2] def I(a,b,f): Z=(((b-a)*0.5*X)+(b+a)*0.5) return np.dot(f(Z),W)*(b-a)*0.5 f=lambda x: (np.sin(x))**2 g=lambda x: x*np.ex...
UTF-8
Python
false
false
603
py
18
Q3.py
15
0.606965
0.537313
0
21
27.619048
98
rightfitdegree/overfitting
14,431,090,137,610
492919badb4056befc22a16bfa75080c17e9f6d6
65b6ae531284a0f75b97eb784b8aa67f0be87450
/overfitting/VectorAleatorio.py
2c3cabdfb4f9306aa02b4446768650518f72948f
[]
no_license
https://github.com/rightfitdegree/overfitting
3a7ff73a9510fec1626606be68f66746dd4e2295
c9b33b00498fc9eee70ea90173ccb13cad654038
refs/heads/master
2020-07-12T05:50:49.673047
2019-09-09T14:40:41
2019-09-09T14:40:41
204,735,483
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random random.seed() import pandas as pd import numpy as np #from scipy.optimize import minimize_scalar class RandPol(pd.DataFrame): """Dataframe para generar polinomios aleatorios en intervalo -1 ≤ X ≤ 1; -1 ≤ Y ≤ 1 """ #Headers para columnas del DataFrame Nº = 'Nº' X = 'X' ...
UTF-8
Python
false
false
3,378
py
2
VectorAleatorio.py
2
0.603931
0.597082
0
123
26.308943
92