hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
a80b6a8d0bacba13b3fe61daf36962d8ad3001a4
8,892
py
Python
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
src/titanic/tit_utils.py
buffbob/titanic
1e52814076ad78f6f9845d7b8f829889977a907b
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import GridSearchCV, train_test_split, cross_val_score from sklearn.tree import DecisionTreeClassifier from sklearn.metrics import accuracy_score, classification_report import matplotlib.pyplot as plt import numpy as np import category_encoders as ce from sklearn.preproc...
31.870968
109
0.624944
a80bd9815a0efacc56fe16adf0b6e490442b6851
161
py
Python
magic_markdown/__init__.py
transfluxus/magic_markdown
3a71d0c0a0937dc87973b6e19389f27575e16208
[ "MIT" ]
10
2019-04-09T17:33:52.000Z
2021-05-10T04:58:59.000Z
magic_markdown/__init__.py
transfluxus/magic_markdown
3a71d0c0a0937dc87973b6e19389f27575e16208
[ "MIT" ]
null
null
null
magic_markdown/__init__.py
transfluxus/magic_markdown
3a71d0c0a0937dc87973b6e19389f27575e16208
[ "MIT" ]
null
null
null
name = "magic_markdown" from magic_markdown.MagicMarkdown import MagicMarkdown
23
54
0.838509
a80cfdeae5dd9779dfdf75f7f464b230527883ae
1,167
py
Python
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
src/Tests/power_generators_tests/solar_panel_tests/solar_panel_east_west_test.py
BoKleynen/P-O-3-Smart-Energy-Home
4849038c47199aa0a752ff5a4f2afa91f4a9e8f0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd from house.production.solar_panel import SolarPanel from house import House from math import pi from time import time start_time = time() solar_panel_east = SolarPanel(285.0, 10*pi/180, -pi/2, 0.87, 1.540539, 10) solar_panel_west = SolarPanel(285.0, 10*pi/180, pi/2...
33.342857
167
0.642674
a813a7003f5f5d2c9a1b282747c12188d836b770
2,468
py
Python
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
9
2021-11-01T06:06:33.000Z
2022-02-07T12:21:18.000Z
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
null
null
null
src/lsct/models/cnn_1d.py
junyongyou/lsct_phiqnet
ffa546b3225c7db0bc7977565dc11a91186fe939
[ "MIT" ]
1
2022-03-06T07:38:32.000Z
2022-03-06T07:38:32.000Z
from tensorflow.keras.layers import Layer, Conv1D, Input, Dropout, MaxPool1D, Masking import tensorflow.keras.backend as K from tensorflow.keras import Model import tensorflow as tf if __name__ == '__main__': input_shape = (16, 5 * 256) filters = [32, 64, 128, 256] pooling_sizes = [2, 2, 2, 2] inputs...
37.393939
112
0.573339
a81433a2173979769be9813ef0e72f88f835d3f9
339
py
Python
1 clean code/auto_format_on_save.py
philippschmalen/ml-devops-engineer
98c4c94b807215e2a909905235bde4a8d022477f
[ "MIT" ]
null
null
null
1 clean code/auto_format_on_save.py
philippschmalen/ml-devops-engineer
98c4c94b807215e2a909905235bde4a8d022477f
[ "MIT" ]
null
null
null
1 clean code/auto_format_on_save.py
philippschmalen/ml-devops-engineer
98c4c94b807215e2a909905235bde4a8d022477f
[ "MIT" ]
null
null
null
""" Play with autoformatting on save Ensure to pip install black within your environment """ # test linting with an unnecessary import # it should complain and suggest a solution import sys thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964, "okay": "This is getting way too long", }
16.142857
51
0.666667
a81435452d7a1fd0220c50904adbc5e774a45f27
931
py
Python
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
test/utils.py
eddrial/aapy
929f554aea24c0a893052f0907488e0a843fd5dd
[ "Apache-2.0" ]
null
null
null
import json import os import mock def get_data_filepath(filename): """Construct filepath for a file in the test/data directory Args: filename: name of file Returns: full path to file """ return os.path.join(os.path.dirname(__file__), 'data', filename) def load_from_file(filen...
21.159091
68
0.651987
a81666f0e6701e07b7dd6f00c88fe2096ec32290
391
py
Python
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
null
null
null
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
null
null
null
archive/AIAP_v1.00/v1.2b/promoter_bin.py
ShaopengLiu1/Zhanglab_ATAC-seq_analysis
3f615c159bb04fcc3f7b777e00c5f04ff105898c
[ "MIT" ]
1
2018-02-26T03:14:46.000Z
2018-02-26T03:14:46.000Z
import sys peak=[] with open(sys.argv[1],'r') as f: for line in f: line=line.strip('\n').split('\t') peak.append(int(line[3])) f.close() num=int(len(peak)/100.0) bin=[] for i in range(99): bin.append(str(i+1)+'\t'+str(sum(peak[num*i:num*(i+1)])/(num*1.0))+'\n') bin.append('100'+'\t'+str(sum(peak[num*99:])/(num*...
20.578947
73
0.59335
a8172aac1601eb8a00a3b924aa63876138f48a83
1,347
py
Python
Code/Database Creator/examples.py
Storm-Petrel/HawkEye
f9afde3866ab9e5e71de7f2be4d836be9ed48d69
[ "MIT" ]
null
null
null
Code/Database Creator/examples.py
Storm-Petrel/HawkEye
f9afde3866ab9e5e71de7f2be4d836be9ed48d69
[ "MIT" ]
null
null
null
Code/Database Creator/examples.py
Storm-Petrel/HawkEye
f9afde3866ab9e5e71de7f2be4d836be9ed48d69
[ "MIT" ]
null
null
null
import csv from faker import Faker fake = Faker() for x in range(0, 10): placa = fake.pystr(min_chars=3, max_chars=3).upper() + str(fake.pydecimal(left_digits=1, right_digits=1, positive=True)) + str(fake.pydecimal(left_digits=1, right_digits=1, positive=True)) placa = placa.replace(".","") atua...
51.807692
193
0.697847
a8178087a6d24532c3fa392eae43c6d6a8b30612
4,595
py
Python
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
2
2019-07-31T23:14:14.000Z
2020-12-26T16:27:02.000Z
MultiInputDialog.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
2
2019-07-31T22:22:06.000Z
2020-07-14T04:58:16.000Z
from PyQt5.QtWidgets import QWidget, QApplication, QPushButton, QLabel, QLineEdit, QVBoxLayout, QMessageBox, QCheckBox,\ QSpinBox, QComboBox, QListWidget, QDialog, QFileDialog, QProgressBar, QTableWidget, QTableWidgetItem,\ QAbstractItemView, QSpinBox, QSplitter, QSizePolicy, QAbstractScrollArea, QHBoxLayout, Q...
47.864583
120
0.654189
a81b25109e2c25d80338be4ee486823e581a2347
3,813
py
Python
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
null
null
null
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
1
2022-01-09T12:07:13.000Z
2022-01-09T15:29:41.000Z
src/handlers.py
jneethling/WikiStats
232640bf3799851554fa4c13cee8a7f63eb532e2
[ "MIT" ]
null
null
null
import os import psutil import json import sqlite3 import threading from datetime import datetime, timezone from websocket import create_connection
32.87069
199
0.575924
a81d611063f78006b5948c72bc4dd6b96d015544
1,035
py
Python
simulate/continue.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
2
2015-04-27T01:57:43.000Z
2015-05-01T18:18:56.000Z
simulate/continue.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
null
null
null
simulate/continue.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
null
null
null
from __future__ import print_function from simtk.openmm import app import simtk.openmm as mm from simtk import unit from sys import stdout import os import time import numpy as np import argparse from equil import setup_sim, dynamix parser = argparse.ArgumentParser(description='equilibrate structures') parser.add_argu...
26.538462
88
0.745894
a81eba16cf9a55afaac7c0432d5bc776ba731b35
40,893
py
Python
py/agentflow/preprocessors/observation_transforms_test.py
wx-b/dm_robotics
5d407622360ccf7f0b4b50bcee84589e2cfd0783
[ "Apache-2.0" ]
128
2021-09-08T18:39:39.000Z
2022-03-27T11:29:05.000Z
py/agentflow/preprocessors/observation_transforms_test.py
wx-b/dm_robotics
5d407622360ccf7f0b4b50bcee84589e2cfd0783
[ "Apache-2.0" ]
7
2021-10-11T14:26:17.000Z
2022-03-15T17:26:45.000Z
py/agentflow/preprocessors/observation_transforms_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
8
2021-09-08T18:25:49.000Z
2022-02-21T23:45:16.000Z
# Copyright 2020 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.358037
80
0.706747
a81fa302f2ff4cbc6dc18bbb647920f29a503d5e
1,897
py
Python
2017/23b.py
mcbor/advent_of_code_2016
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
1
2016-12-17T10:53:22.000Z
2016-12-17T10:53:22.000Z
2017/23b.py
mcbor/adventofcode
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
null
null
null
2017/23b.py
mcbor/adventofcode
14453b970d3e0f031ae6a66f2028652b6ed870dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 23b.py ~~~~~~ Advent of Code 2017 - Day 23: Coprocessor Conflagration Part Two Now, it's time to fix the problem. The debug mode switch is wired directly to register a. You flip the switch, which makes register a now start at 1 when the pr...
24.012658
79
0.615709
a81fc289f1eb7f0a4f761bd960c55555bea22c98
4,456
py
Python
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
game_of_life.py
WinterWonderland/Game_of_Life
99eced42146a195b6a7bc423f76f0fd79f5771d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 20 11:59:50 2018 @author: klaus """ import numpy as np import matplotlib.pyplot as plt import time import random from argparse import ArgumentParser, RawTextHelpFormatter if __name__ == "__main__": argument_parser = ArgumentParser(description=""" ...
41.64486
123
0.47711
a82054bcbbc93091d6cde0c3bba2fa420fc0e4b0
520
py
Python
tests/mixins/back_tests.py
StuartMacKay/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
9
2020-05-16T20:26:33.000Z
2021-11-02T06:24:46.000Z
tests/mixins/back_tests.py
StuartMacKay/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
17
2019-06-22T09:41:22.000Z
2020-09-11T06:25:21.000Z
tests/mixins/back_tests.py
ProjectBabbler/ebird-api
14b5c777548416a58abec05e25cd4b9a8e22f210
[ "MIT" ]
null
null
null
from ebird.api.constants import DEFAULT_BACK from tests.mixins.base import BaseMixin
30.588235
51
0.709615
a820c01ed9ab1a3512b23d858002b832b81b6f26
506
py
Python
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
6
2021-02-09T22:27:55.000Z
2022-01-14T18:15:17.000Z
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
34
2021-02-09T22:23:33.000Z
2022-03-31T16:22:51.000Z
examples/snippets/data_io/df_connect/export_simple.py
nguyentr17/tamr-toolbox
1d27101eda12f937813cdbfe27e2fa9c33ac34d2
[ "Apache-2.0" ]
12
2021-02-09T21:17:10.000Z
2022-02-09T16:35:39.000Z
""" Export data from Tamr using df-connect. An example where everything is default in config file, which implies exported data is written back to same database as ingested from. """ import tamr_toolbox as tbox my_config = tbox.utils.config.from_yaml("examples/resources/conf/connect.config.yaml") my_connect = tbox.dat...
36.142857
94
0.8083
a822bff3f043bc516ac3c82ab2394920c525256d
1,700
py
Python
services/web/project/auth/forms.py
petervuyk456/persona_finance
5c4c1bea0e176f37cc122571b846de1f020bdd92
[ "MIT" ]
null
null
null
services/web/project/auth/forms.py
petervuyk456/persona_finance
5c4c1bea0e176f37cc122571b846de1f020bdd92
[ "MIT" ]
null
null
null
services/web/project/auth/forms.py
petervuyk456/persona_finance
5c4c1bea0e176f37cc122571b846de1f020bdd92
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField from wtforms.validators import DataRequired, Length, EqualTo, URL from project.auth.models import User
32.075472
72
0.629412
a82471d2b32cd5726156914bf073feb69a5965b8
10,619
py
Python
projectGo.py
KyleBrownCS/SoftDev2
c992061a849f19f1ccbea71e4c0aa97fb2e135dc
[ "MIT" ]
null
null
null
projectGo.py
KyleBrownCS/SoftDev2
c992061a849f19f1ccbea71e4c0aa97fb2e135dc
[ "MIT" ]
null
null
null
projectGo.py
KyleBrownCS/SoftDev2
c992061a849f19f1ccbea71e4c0aa97fb2e135dc
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, jsonify import sqlite3 import json import re import logging from applicationInfo import ApplicationInfo logging.basicConfig(filename='/var/www/SoftDev2/projectGo.log', level=logging.DEBUG) app = Flask(__name__) applicationInfo = ApplicationInfo() row_pos_obligation...
39.475836
297
0.617384
a8247bed0a1cb5051fa0d35c0fab64fca16aa20d
1,396
py
Python
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
python/cuML/test/test_dbscan.py
rongou/cuml
9fbd7187ccf7ee7457c55b768ebd8ea86dbe2bec
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA 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...
32.465116
86
0.703438
a827531247ffd24ded530b9e0dea0c181d142c7b
114
py
Python
math_and_algorithm/024.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
math_and_algorithm/024.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
math_and_algorithm/024.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) ans = 0 for _ in range(N): p, q = map(int, input().split()) ans += (1 / p) * q print(ans)
19
36
0.5
a8276b0d3215a9fe2604eec700ad87c77dc2f29b
769
py
Python
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
1
2020-05-13T19:16:23.000Z
2020-05-13T19:16:23.000Z
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
LeetCode/0023_merge_k_sorted_lists.py
KanegaeGabriel/ye-olde-interview-prep-grind
868362872523a5688f49ab48efb09c3008e0db4d
[ "MIT" ]
null
null
null
from heapq import heappush, heappop l1 = ListNode(1) l1.next = ListNode(4) l1.next.next = ListNode(5) l2 = ListNode(1) l2.next = ListNode(3) l2.next.next = ListNode(4) l3 = ListNode(2) l3.next = ListNode(6) l3 = mergeKLists([l1, l2, l3]) p = l3 while p: print(p.val, end=" ") # 1 1 2 3 4 4 5 6 p = p.next pr...
17.477273
45
0.579974
a82a766dd5a8919e5aec354cbe63b71c9cd59549
2,297
py
Python
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
1
2021-07-09T11:51:04.000Z
2021-07-09T11:51:04.000Z
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
null
null
null
source/cell_mask/cell_mask.py
zhanyinx/SPT_analysis
1cf806c1fd6051e7fc998d2860a16bea6aa9de1a
[ "MIT" ]
null
null
null
import argparse import glob import numpy as np import os import skimage.io import torch import tifffile from cellpose import models def _parse_args(): """Parse command-line arguments.""" parser = argparse.ArgumentParser() parser.add_argument( "-i", "--input", type=str, def...
25.241758
85
0.562908
a82b6067d87e3c320c8e0fb55b9b998dccade592
14,134
py
Python
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
null
null
null
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
1
2021-06-08T02:43:08.000Z
2021-06-08T03:05:21.000Z
02-customer-cliff-dive/python/emery_leslie.py
leslem/insight-data-challenges
14c56d30663d7fef178b820d2128dbf4782c1200
[ "MIT" ]
null
null
null
# # Customer cliff dive data challenge # 2020-02-17 # Leslie Emery # ## Summary # ### The problem # The head of the Yammer product team has noticed a precipitous drop in weekly active users, which is one of the main KPIs for customer engagement. What has caused this drop? # ### My approach and results # I began b...
51.963235
524
0.743809
a82ba74fc6af916b17675886faaf3aad6278c7c2
796
py
Python
students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
import socket import threading import random sock = socket.socket() sock.connect(('localhost', 9090)) number = random.randint(0,1000) name = "person" + str(number) threading.Thread(target=send_message).start() threading.Thread(target=receive_message).start()
20.410256
56
0.548995
a82c200cd117a48cc9a2ebacd146f50b56baabcf
23,587
py
Python
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
128
2016-05-10T01:38:27.000Z
2022-02-04T07:14:12.000Z
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
6
2016-07-19T09:27:47.000Z
2021-07-08T21:22:32.000Z
convolutional_attention/token_naming_data.py
s1530129650/convolutional-attention
8839da8146962879bb419a61253e7cf1b684fb22
[ "BSD-3-Clause" ]
36
2016-05-11T08:57:26.000Z
2021-07-07T02:37:07.000Z
from collections import defaultdict import heapq from itertools import chain, repeat from feature_dict import FeatureDictionary import json import numpy as np import scipy.sparse as sp def __get_data_in_forward_format(self, names, code, name_cx_size): """ Get the data in a "forward" model format. ...
51.953744
143
0.644338
a82c44a1683f511d5f99fbda3a6f12bd84f86c4c
550
py
Python
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
null
null
null
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
1
2021-02-27T06:12:07.000Z
2021-03-01T14:32:39.000Z
test_word.py
AsherSeiling/Ap-hug-Vocab-database
fbf29a225e81a5807b6ff4e06fbb24e88ce55a6a
[ "MIT" ]
1
2021-02-27T06:14:55.000Z
2021-02-27T06:14:55.000Z
words = open("words.txt", "r") words = [x.rstrip("\n") for x in words.readlines()] refwords = open("referencewords.txt", "r") refwords = [x.strip("\n") for x in refwords.readlines()] words_needed = [] main() for i in words_needed: print(i)
20.37037
56
0.650909
a82e508670c379c3dbb7d2f2e849d1ec9ed6d7a8
2,736
py
Python
democrasite/users/tests/test_forms.py
mfosterw/cookiestocracy
6912e9e7c3006024d0fbee61dce5c48e63e9e231
[ "MIT" ]
null
null
null
democrasite/users/tests/test_forms.py
mfosterw/cookiestocracy
6912e9e7c3006024d0fbee61dce5c48e63e9e231
[ "MIT" ]
9
2021-07-18T17:16:42.000Z
2022-03-31T00:19:14.000Z
democrasite/users/tests/test_forms.py
mfosterw/cookiestocracy
6912e9e7c3006024d0fbee61dce5c48e63e9e231
[ "MIT" ]
null
null
null
# pylint: disable=too-few-public-methods,no-self-use from django.utils.crypto import get_random_string from django.utils.translation import gettext_lazy as _ from democrasite.users.forms import ( DisabledChangePasswordForm, DisabledResetPasswordForm, DisabledResetPasswordKeyForm, DisabledSetPasswordFor...
32.571429
87
0.623904
a82ef552d3bf70dc77e897c13a1b0f9b584ffa9d
3,359
py
Python
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
1
2021-05-24T08:00:29.000Z
2021-05-24T08:00:29.000Z
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
null
null
null
src/keras_networks.py
RU-IIPL/2DLD_keras
8c291b6a652f54bd94cb3a5c8382d10ba42e5cbf
[ "MIT" ]
1
2021-09-29T03:43:46.000Z
2021-09-29T03:43:46.000Z
# -*- coding: utf-8 -*- """ @author: Terada """ from keras.models import Sequential, Model from keras.layers import Dense, MaxPooling2D, Flatten, Dropout from keras.layers import Conv2D, BatchNormalization, ZeroPadding2D, MaxPool2D from keras.layers import Input, Convolution2D, AveragePooling2D, merge, Reshape, Activat...
42.518987
122
0.677583
a82fdc3cbf4660f5463187cd042910a00705a302
9,951
py
Python
lambdak_spec.py
yawaramin/lambdak
5038531f2939dfbbbf94ea859454efaf69bf6487
[ "MIT" ]
19
2015-01-13T23:36:23.000Z
2021-05-29T16:05:05.000Z
lambdak_spec.py
yawaramin/lambdak
5038531f2939dfbbbf94ea859454efaf69bf6487
[ "MIT" ]
1
2015-11-09T17:23:05.000Z
2015-11-09T18:48:26.000Z
lambdak_spec.py
yawaramin/lambdak
5038531f2939dfbbbf94ea859454efaf69bf6487
[ "MIT" ]
3
2016-03-26T15:57:36.000Z
2018-11-30T07:04:03.000Z
from contextlib import closing, contextmanager import StringIO as s import unittest as t from lambdak import * # A helper class to test attribute access. # Helper functions for the tests. def inc(x): return x + 1 if __name__ == "__main__": t.main()
25.320611
162
0.633203
a830be9674eca4b0486b3f40d92cbb270322784c
2,327
py
Python
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
7
2019-03-04T14:28:53.000Z
2022-01-31T12:11:53.000Z
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
null
null
null
Bitcoin_Malware.py
Ismael-Safadi/Bitcoin-Wallet-address-spoofer
16b92d5538d10a2b14ee1fed441a25bdb33a2e67
[ "MIT" ]
4
2019-03-04T14:29:01.000Z
2022-01-31T12:11:40.000Z
# Coded By : Ismael Al-safadi from win32gui import GetWindowText, GetForegroundWindow from pyperclip import copy from re import findall from win32clipboard import OpenClipboard , GetClipboardData , CloseClipboard from time import sleep a = BitcoinDroper() while True: if a.check_active_window() and a.che...
31.026667
96
0.628277
a832641c2261a8791df173a07f00c6ea847b04f1
504
py
Python
Exploits/Protostar/stack/stack2.py
SkyBulk/OSCE
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
80
2018-07-12T04:58:02.000Z
2022-03-18T11:31:49.000Z
Exploits/Protostar/stack/stack2.py
SunWare-shellcoder/OSCE-1
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
null
null
null
Exploits/Protostar/stack/stack2.py
SunWare-shellcoder/OSCE-1
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
43
2018-07-12T19:48:15.000Z
2021-11-01T13:16:25.000Z
#!/usr/bin/env python # $Id: stack2.py,v 1.0 2018/06/21 23:12:02 dhn Exp $ from pwn import * level = 2 host = "10.168.142.133" user = "user" chal = "stack%i" % level password = "user" binary = "/opt/protostar/bin/%s" % chal shell = ssh(host=host, user=user, password=password) padding = "A" * 64 addr = p32(0x0d0a0...
20.16
55
0.656746
a8347276bdea4347d1187329f50e22db158c90b3
5,096
py
Python
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
4
2020-02-13T18:57:41.000Z
2020-08-03T21:08:26.000Z
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
null
null
null
Stock_Programs/myOauth.py
timwroge/DeepPurple
3d6f3203938853ede654ef4f88b7451a1ba3999e
[ "Apache-2.0" ]
1
2021-06-14T13:42:39.000Z
2021-06-14T13:42:39.000Z
import urllib.parse, urllib.request,json import time import hmac, hashlib,random,base64 #yahoo stuff #client ID dj0yJmk9S3owYWNNcm1jS3VIJmQ9WVdrOU1HMUZiMHh5TjJNbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD0xOQ-- #client secret ID fcde44eb1bf2a7ff474b9fd861a6fcf33be56d3f ##### ACTUAL FUNCTIONS
41.770492
116
0.724882
a8347a798c6edcafbe98def909244e3a366c1264
5,246
py
Python
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
9
2017-05-27T20:42:46.000Z
2020-11-12T21:03:28.000Z
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
30
2017-02-16T19:43:18.000Z
2018-01-17T21:17:01.000Z
IOController/src/UpdateManager.py
MicrosoftDX/liquidintel
8c3f840f88ca3515cc812078a620e2a845978177
[ "MIT" ]
6
2017-02-24T03:40:04.000Z
2020-11-22T20:29:11.000Z
import os, sys, logging, threading, tempfile, shutil, tarfile, inspect from ConfigParser import RawConfigParser import requests from DXLiquidIntelApi import DXLiquidIntelApi log = logging.getLogger(__name__)
51.940594
191
0.62276
a8347ba774f82ced779a3ceac5d45c914fbb1cf6
3,179
py
Python
tests/test_derivatives.py
whalenpt/rkstiff
9fbec7ddd123cc644d392933b518d342751b4cd8
[ "MIT" ]
4
2021-11-05T15:35:21.000Z
2022-01-17T10:20:57.000Z
tests/test_derivatives.py
whalenpt/rkstiff
9fbec7ddd123cc644d392933b518d342751b4cd8
[ "MIT" ]
null
null
null
tests/test_derivatives.py
whalenpt/rkstiff
9fbec7ddd123cc644d392933b518d342751b4cd8
[ "MIT" ]
null
null
null
from rkstiff.grids import construct_x_kx_rfft, construct_x_kx_fft from rkstiff.grids import construct_x_Dx_cheb from rkstiff.derivatives import dx_rfft, dx_fft import numpy as np
26.057377
74
0.624096
a834a938200061353abd64e3aa79cc1eac77b3bf
2,511
py
Python
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
null
null
null
python/jinja2_template.py
bismog/leetcode
13b8a77045f96e7c59ddfe287481f6aaa68e564d
[ "MIT" ]
1
2018-08-17T07:07:15.000Z
2018-08-17T07:07:15.000Z
#!/usr/bin/env python import os from jinja2 import Environment, FileSystemLoader PATH = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(os.path.join(PATH, 'templates'))) mac_addr = "01:23:45:67:89:01" PXE_ROOT_DIR = "/data/tftpboot" pxe_options = { 'os_distribution': 'centos...
31
84
0.68419
a837db7dbbd9e3811093f9342986a637e65f9e07
1,101
py
Python
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
school_system/users/admin.py
SanyaDeath/BIA-school-system
d07e4e86f91cf1e24c211cc9f5524c50da45b0e5
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from .models import Student, User admin.site.site_header = 'BIA SCHOOL SYSTEM' admin.site.register(User, UserAdmin) admin.site.register(Student, StudentUser)
28.230769
66
0.613079
b5179adb5c10e59288f470f8fa76ecec344ba97b
1,111
py
Python
converter.py
ownerofworld/TDroidDesk
5c773f15d764e6cff468bb39ed40dca5ba07d902
[ "MIT" ]
20
2017-02-22T18:36:57.000Z
2022-03-23T11:03:35.000Z
converter.py
extratone/TDroidDesk
e778463e996368374c856e6154dc0885df1f3c11
[ "MIT" ]
3
2017-02-23T03:51:07.000Z
2017-03-26T15:06:35.000Z
converter.py
extratone/TDroidDesk
e778463e996368374c856e6154dc0885df1f3c11
[ "MIT" ]
9
2017-02-23T19:39:20.000Z
2022-01-02T03:28:01.000Z
# coding: utf-8 """Converter module.""" import util THEME = 'theme' BACKGROUND = 'background'
26.452381
74
0.621062
b517e64ad1c06cf00c0f78b0ee1fc02a33f3ce6e
3,109
py
Python
tools/serve/test_serve.py
mtrzos/wpt
6e559a60ecfa38ad6cc434911dd0995a63900db6
[ "BSD-3-Clause" ]
null
null
null
tools/serve/test_serve.py
mtrzos/wpt
6e559a60ecfa38ad6cc434911dd0995a63900db6
[ "BSD-3-Clause" ]
null
null
null
tools/serve/test_serve.py
mtrzos/wpt
6e559a60ecfa38ad6cc434911dd0995a63900db6
[ "BSD-3-Clause" ]
1
2021-04-06T20:06:58.000Z
2021-04-06T20:06:58.000Z
import pickle import platform import os import pytest import localpaths from . import serve from .serve import Config def test_ws_doc_root_default(): c = Config() assert c.ws_doc_root == os.path.join(localpaths.repo_root, "websockets", "handlers") def test_init_ws_doc_root(): c = Config(ws_doc_root="...
38.8625
88
0.525571
b51830bb1dccb3fd7e3c8b9bb5061b4737e27584
8,440
py
Python
webshell/preprocess.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
1
2020-09-15T01:44:21.000Z
2020-09-15T01:44:21.000Z
webshell/preprocess.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
null
null
null
webshell/preprocess.py
radish608/graduationProject_DL4WebSecurity
1bafeca95d8c02be438b79e8192cae3f624879c9
[ "MIT" ]
null
null
null
# -*-coding: utf-8 -*- import os import re from sklearn.feature_extraction.text import CountVectorizer import sys import numpy as np from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import TfidfTransformer import commands import tflearn import pickle max_features=10000 max_docu...
26.049383
104
0.619313
b5195d6a3d0b3fd5a3b08706a1231fda25ed0eb8
2,252
py
Python
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
12
2020-09-07T11:19:10.000Z
2022-02-17T17:40:19.000Z
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
110
2020-09-02T15:29:24.000Z
2022-03-09T09:50:01.000Z
py/DREAM/Settings/Equations/RunawayElectronDistribution.py
chalmersplasmatheory/DREAM
715637ada94f5e35db16f23c2fd49bb7401f4a27
[ "MIT" ]
3
2021-05-21T13:24:31.000Z
2022-02-11T14:43:12.000Z
import numpy as np from DREAM.Settings.Equations.EquationException import EquationException from . import DistributionFunction as DistFunc from . DistributionFunction import DistributionFunction from .. TransportSettings import TransportSettings INIT_FORWARD = 1 INIT_XI_NEGATIVE = 2 INIT_XI_POSITIVE = 3 INIT_ISOTROP...
30.026667
83
0.655861
b519b948a7702826eb1cadca71144eb49329174c
8,907
py
Python
chevah/compat/tests/normal/testing/test_assertion.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/tests/normal/testing/test_assertion.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/tests/normal/testing/test_assertion.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# Copyright (c) 2015 Adi Roiban. # See LICENSE for details. """ Tests for the assertion helpers. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import os from chevah.compat.exceptions import CompatError from chevah.compat.testing import ChevahTestCase, ...
32.507299
78
0.615359
b51c24c2a8046cf56cf971ce8b89fbb099048127
2,253
py
Python
tests/basic_test.py
patpizio/conformal_predictors
80d46d8728af23cf4a412024f592c40b51d977c7
[ "MIT" ]
null
null
null
tests/basic_test.py
patpizio/conformal_predictors
80d46d8728af23cf4a412024f592c40b51d977c7
[ "MIT" ]
4
2021-08-04T15:11:33.000Z
2021-08-04T22:52:03.000Z
tests/basic_test.py
patpizio/conformal_predictors
80d46d8728af23cf4a412024f592c40b51d977c7
[ "MIT" ]
null
null
null
import unittest import sys sys.path.insert(0, '../src/') from conformal_predictors.icp import ConformalPredictor from conformal_predictors.nc_measures import * import conformal_predictors.calibrutils as cu from sklearn.datasets import * import numpy as np from sklearn.svm import SVC from sklearn.ensemble import Ran...
29.644737
112
0.699512
b51c95bad3faa026a48a62db4fc8bca989c644e2
7,561
py
Python
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
data/unaligned_dataset.py
basicskywards/cyclegan-yolo
536498706da30707facf1211355ff21df2e5b227
[ "BSD-3-Clause" ]
null
null
null
import os.path import torchvision.transforms as transforms from data.base_dataset import BaseDataset, get_transform from data.image_folder import make_dataset from PIL import Image import PIL from pdb import set_trace as st import torch import numpy as np #from yolo.utils.datasets import pad #import torchvision.trans...
40.005291
206
0.562492
b51f90c659e185b69613117f368541efd8ec132f
8,396
py
Python
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
primare_control/primare_interface.py
ZenithDK/primare-control
597a2dd15bedb511fab5cca8d01044692d1e2d96
[ "Apache-2.0" ]
null
null
null
"""Interface to Primare amplifiers using Twisted SerialPort. This module allows you to control your Primare I22 and I32 amplifier from the command line using Primare's binary protocol via the RS232 port on the amplifier. """ import logging import click from contextlib import closing from primare_control import Prima...
36.504348
79
0.47737
b51fa08d66290d275d2da9e4167fcbc0a1d4e931
382
py
Python
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
sjfxjc/foundations-for-analytics-with-python-master/csv/2csv_reader_parsing_and_write.py
SaronZhou/python
40d73b49b9b17542c73a3c09d28e479d2fefcde3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import csv import sys input_file = sys.argv[1] output_file = sys.argv[2] with open(input_file, 'r', newline='') as csv_in_file: with open(output_file, 'w', newline='') as csv_out_file: filereader = csv.reader(csv_in_file, delimiter=',') filewriter = csv.writer(csv_out_file, delimiter=',') ...
29.384615
57
0.730366
b520efe1b1cf2e4fbb13042874cc3d5189db3ae6
2,980
py
Python
provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
15
2016-09-21T22:27:45.000Z
2022-01-17T15:44:42.000Z
provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
87
2016-09-19T13:26:05.000Z
2022-03-16T04:16:47.000Z
provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py
Ama-Gi/prov-neo4j-covid19-track
67a79694ad3b48c34dd263f1508c0bdfbc6702fb
[ "Apache-2.0" ]
3
2016-10-17T19:25:10.000Z
2020-06-26T12:38:34.000Z
import unittest from provdbconnector.exceptions.database import InvalidOptionsException, AuthException from provdbconnector import Neo4jAdapter, NEO4J_USER, NEO4J_PASS, NEO4J_HOST, NEO4J_BOLT_PORT from provdbconnector.prov_db import ProvDb from provdbconnector.tests import AdapterTestTemplate from provdbconnector.test...
33.863636
124
0.601342
b521c6c0f419d3631f195792a8be1ffaddad4502
1,956
py
Python
Python3-ThirdPartyLibrary/Chapter06_psutil.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-ThirdPartyLibrary/Chapter06_psutil.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-ThirdPartyLibrary/Chapter06_psutil.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import psutil # CPU print("CPU: ", psutil.cpu_count()) # CPU print("CPU: ", psutil.cpu_count(logical=False)) # CPU print("CPU: ", psutil.cpu_times()) # CPU # for x in range(3): # print(psutil.cpu_percent(interval=1, percpu=True)) # CPU # print("memory", psutil.virtual_memor...
36.222222
73
0.596626
b5220f9d88a447b033fc07fa837a16f3731fa688
1,971
py
Python
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
7
2022-01-29T22:19:55.000Z
2022-03-28T18:18:19.000Z
ocrDA.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
import json from NewDeclarationInQueue.formular_converter import FormularConverter from NewDeclarationInQueue.preprocess_one_step import PreprocessOneStep from NewDeclarationInQueue.preprocess_two_steps import PreProcessTwoSteps from NewDeclarationInQueue.processfiles.customprocess.search_text_line_parameter import Se...
38.647059
112
0.811771
b522c08e48bccc21cac46f1faeda9461a2a4bfcf
1,187
py
Python
backend/model/migrate/versions/18632a2d5fc_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/18632a2d5fc_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/18632a2d5fc_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Extend event column in account history Revision ID: 18632a2d5fc Revises: 3e19c50e864 Create Date: 2015-06-05 17:49:12.757269 """ # revision identifiers, used by Alembic. revision = '18632a2d5fc' down_revision = '3e19c50e864' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa fr...
21.581818
63
0.670598
b522cbe5a92fd1c03c4cc0d0200215ca4a546a8f
8,018
py
Python
grid_user/models.py
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
grid_user/models.py
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
grid_user/models.py
topd333/Xlab
28d89b3b18717957229ca52cb2cbbbc20bd31eae
[ "Unlicense" ]
null
null
null
import random import datetime from django.db import models from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) from django.utils import timezone SECURTYQUESTION = ( ('1', "What city were you born in?"), ('2', "What is your mother's maiden name?"), ('3', "What street did you gro...
31.077519
114
0.634697
b523c2ff097c63e33e8bee17d44fcc56243d89de
1,729
py
Python
keyboards/inline/in_processing/confirm_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/inline/in_processing/confirm_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
keyboards/inline/in_processing/confirm_keyboard.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from emoji import emojize from data import all_emoji from aiogram.types import InlineKeyboardMarkup from aiogram.types import InlineKeyboardButton from aiogram.utils.callback_data import CallbackData cb_confirm_close = CallbackData('cb_cc', 'type_btn')
26.6
76
0.625795
b524a997831cceef37fb6ffcb9a5a1813e885500
9,076
py
Python
utils/HCA/a_star.py
proroklab/magat_pathplanning
a2cab3b11abc46904bc45be1762a780becb1e8c7
[ "MIT" ]
40
2021-07-01T03:14:20.000Z
2022-03-23T23:45:22.000Z
utils/HCA/a_star.py
QingbiaoLi/magat_pathplanning
f28429b1a2ab7866c3001b82e6ae9ca3f072c106
[ "MIT" ]
null
null
null
utils/HCA/a_star.py
QingbiaoLi/magat_pathplanning
f28429b1a2ab7866c3001b82e6ae9ca3f072c106
[ "MIT" ]
13
2021-07-14T07:57:16.000Z
2022-03-03T10:43:25.000Z
''' This file contains utility of AStarSearch. Thanks to Binyu Wang for providing the codes. ''' from random import randint import numpy as np # img = np.zeros((20,20)) # source = (0,0) # dest = (img.shape[0]-1, img.shape[1]-1) # path = AStarSearch(img, source, dest)
35.592157
119
0.552336
b525a442d992316233f044f50e799f9a075c90fa
1,270
py
Python
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2020-08-02T10:06:19.000Z
2022-03-29T06:10:57.000Z
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
null
null
null
app/users/tasks.py
atulmishra-one/dairy_management_portal
a07320dc0f4419d4c78f7d2453c63b1c9544aba8
[ "MIT" ]
2
2019-02-03T15:44:02.000Z
2021-03-09T07:30:28.000Z
import xlrd from app.services.extension import task_server, sqlalchemy as db from app.models.core.user import User from app.application import initialize_app try: from app.config.production import ProductionConfig as config_object except ImportError: from app.config.local import LocalConfig as config_object
27.608696
71
0.607874
b526e227b8af6adb71768eb4900aaf57a69f1acb
3,444
py
Python
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
3
2018-07-06T17:06:28.000Z
2018-09-06T03:31:43.000Z
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
null
null
null
savenger.py
SlapBot/GodkillerArmor
27058332cd94c4389b092a621eeedc834d8f5a15
[ "MIT" ]
1
2018-07-10T00:13:07.000Z
2018-07-10T00:13:07.000Z
from praw import Reddit import random
44.727273
108
0.626597
b52a4b91de40afb841386437bc92df7dcd61942d
1,493
py
Python
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/pyRiemann-0.2.2/pyriemann/channelselection.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
from .utils.distance import distance from .classification import MDM import numpy from sklearn.base import BaseEstimator, TransformerMixin ##########################################################
31.765957
62
0.464836
b52aa43dd118effc265e50061d8175f3814721d2
1,897
py
Python
syncbase/user/urls.py
gkrnours/syncbase
0e20d400fe83e2157ee6e893a105253d20634808
[ "MIT" ]
null
null
null
syncbase/user/urls.py
gkrnours/syncbase
0e20d400fe83e2157ee6e893a105253d20634808
[ "MIT" ]
null
null
null
syncbase/user/urls.py
gkrnours/syncbase
0e20d400fe83e2157ee6e893a105253d20634808
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib.auth import views as auth from user.forms import NewAccountForm from user import views app_name = 'user' urlpatterns = [ # auth url(r'^create/$', views.UserCreate.as_view(), name='create'), url(r'^login/$', auth.login, {'template_name...
34.490909
95
0.655245
b52daf8a9a6916b3bc3be9fb6b077491427da67f
1,728
py
Python
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
mac_changer.py
xicoder96/luv-sic
033527b558c3e4d7f254dca1e2f6f0ccf9ff78fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import subprocess import re import argparse if __name__ == "__main__": options = get_arguments() current_mac = get_current_mac(options.interface) print(f"Current Mac:{current_mac}") change_mac(options.interface, options.new_mac) current_mac = get_current_mac(options.inter...
33.230769
79
0.65162
b53016b4f1a8a22aaafbf177615312636a59d031
1,916
py
Python
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
training/model.py
J77M/stuffy-nose-recognition
e5d8957e2026e9046e6ffee69a60a11a686bc042
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import time import utils path = r'data/' x, y = utils.reload_data(path) inp_shape = (x[0].shape[0],1) x = np.array(x).reshape(-1, 1000, 1)# change 1000 to your sample lenght if you changed frame (= CHUNK ) or RESOLUTION # prepared for testing and evaluating. try other comb...
39.102041
173
0.641441
b5317c9553e4578dd1313a39baa5b57770eff21b
6,163
py
Python
app/api_service/ice_creams/migrations/0001_initial.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
app/api_service/ice_creams/migrations/0001_initial.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
app/api_service/ice_creams/migrations/0001_initial.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-12 07:47 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
66.268817
204
0.646438
b5325a85e324486debcb82eb330c6fd293cb8cf4
1,306
py
Python
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
7
2020-09-01T21:52:37.000Z
2022-02-25T16:00:08.000Z
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
4
2021-09-10T22:15:09.000Z
2022-03-25T22:17:43.000Z
game/game/protocol.py
maosplx/L2py
5d81b2ea150c0096cfce184706fa226950f7f583
[ "MIT" ]
9
2020-09-01T21:53:39.000Z
2022-03-30T12:03:04.000Z
import logging from common.api_handlers import handle_request from common.packet import Packet from common.response import Response from common.transport.protocol import TCPProtocol from game.models.world import WORLD from game.session import GameSession from game.states import Connected LOG = logging.getLogger(f"l2p...
30.372093
79
0.658499
b532e08e69d241104c91b1c89e9d10205dab72ab
292
py
Python
day6.py
seblars/AdventOfCode2020
dc41181caa50fe03645aa36d70fe0ebd76cd6e25
[ "MIT" ]
1
2020-12-16T09:37:01.000Z
2020-12-16T09:37:01.000Z
day6.py
seblars/AdventOfCode2020
dc41181caa50fe03645aa36d70fe0ebd76cd6e25
[ "MIT" ]
null
null
null
day6.py
seblars/AdventOfCode2020
dc41181caa50fe03645aa36d70fe0ebd76cd6e25
[ "MIT" ]
null
null
null
import fileinput # "day6.txt" groups = [x.split() for x in ''.join(fileinput.input()).split('\n\n')] # part 1 print(sum(len(set([j for sub in group for j in sub])) for group in groups)) # part 2 print(sum(len(set.intersection(*[set(list(j)) for j in group])) for group in groups))
29.2
86
0.64726
b53308bf2a97499e9f1e960c2ded7b7ca3598996
370
py
Python
Conditional/Extras/Everton/02.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
7
2021-05-25T16:49:20.000Z
2022-02-17T11:57:32.000Z
Conditional/Extras/Everton/02.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
null
null
null
Conditional/Extras/Everton/02.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
8
2021-05-25T16:49:39.000Z
2021-09-30T18:02:07.000Z
'''Considere o problema de computar o valor absoluto de um nmero real. O valor absoluto de um nmero real x dado por f(x) = x se x >= 0 ou f(x) = -x se x < 0. Projete e implemente um programa em Python que lei um nmero de ponto flutuante x, calcule e imprima o valor absoluto de x.''' x = float(input()) y = (x**2)**(1...
33.636364
126
0.651351
b536ac94f02abdab43e5ca604aa965f6ad2715d0
1,394
py
Python
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
null
null
null
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
1
2022-03-30T22:20:38.000Z
2022-03-31T15:02:22.000Z
pyoptmat/solvers.py
Argonne-National-Laboratory/pyoptmat
a6e5e8d0b93c77374d4ccbc65a86262eec5df77b
[ "MIT" ]
2
2021-11-16T15:13:54.000Z
2022-01-06T21:35:42.000Z
import torch import warnings def newton_raphson(fn, x0, linsolver = "lu", rtol = 1e-6, atol = 1e-10, miter = 100): """ Solve a nonlinear system with Newton's method. Return the solution and the last Jacobian Args: fn: function that returns the residual and Jacobian x0:...
27.333333
82
0.585366
b5373a616def2b1d58dca3805f309b56a4c149e0
323
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/number-of-substrings-with-only-1s.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1)
20.1875
46
0.436533
b537ff6eac7f94b76cf8db09b3957cee998efb52
4,531
py
Python
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/edgefarm-demos
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
null
null
null
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/edgefarm-demos
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
9
2021-04-21T10:37:45.000Z
2021-07-28T05:56:50.000Z
usecase-2/monitoring/fleet-seat-info-monitor/src/seat_res_train_monitor.py
edgefarm/train-simulation
6381d4a2f7f9c1d0632ab8123fed2bd0763d3b34
[ "MIT" ]
null
null
null
import logging import datetime import asyncio from edgefarm_application.base.application_module import application_module_network_nats from edgefarm_application.base.avro import schemaless_decode from run_task import run_task from state_tracker import StateTracker from schema_loader import schema_load _logger = logg...
31.685315
96
0.608034
b53809b9629204fc4062a7f81e9f288aeb36cec8
302
py
Python
modulo 03/script_03.py
p-g-krish/CursoSecurityToolsPython
7b2205a33d23166a37a6b8105b9ca5863855aa85
[ "Apache-2.0" ]
10
2020-02-13T03:14:29.000Z
2021-09-16T04:32:40.000Z
modulo 03/script_03.py
p-g-krish/CursoSecurityToolsPython
7b2205a33d23166a37a6b8105b9ca5863855aa85
[ "Apache-2.0" ]
null
null
null
modulo 03/script_03.py
p-g-krish/CursoSecurityToolsPython
7b2205a33d23166a37a6b8105b9ca5863855aa85
[ "Apache-2.0" ]
4
2020-02-18T23:42:23.000Z
2021-09-10T05:52:09.000Z
from termcolor import colored, cprint import sys text = colored('Hello, World!', 'red', attrs=['reverse', 'blink']) print(text) cprint('Hello, World!', 'green', 'on_red') for i in range(10): cprint(i, 'magenta', end=' ') cprint("Attention!",'red', attrs=['bold'], file=sys.stdout)
33.555556
68
0.622517
b538595bde41c89c5a8fbdc33e2ae560a927b953
1,597
py
Python
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
2
2021-07-12T02:37:46.000Z
2021-12-28T23:03:20.000Z
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
28
2021-12-29T00:51:24.000Z
2022-03-24T08:03:59.000Z
src/AML/run_training.py
monkeypants/CartridgeOCR
a2cdaa72e3839a881118b85f5ff7b4515579004b
[ "MIT" ]
4
2021-09-24T16:13:43.000Z
2022-03-09T17:52:35.000Z
import sys from azureml.core import Workspace, Experiment, Environment, ScriptRunConfig from azureml.core.compute import ComputeTarget, AmlCompute from azureml.core.compute_target import ComputeTargetException from shutil import copy ws = Workspace.from_config() # Choose a name for your CPU cluster # cpu_cluster_name...
35.488889
86
0.708203
b538fc619dc6adad01e93a8132a517e7cc8b2d80
818
py
Python
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
3
2021-05-04T13:20:39.000Z
2021-11-03T12:43:02.000Z
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
39
2021-04-16T02:55:28.000Z
2022-03-30T14:23:50.000Z
tests/conftest.py
cielavenir/pyppmd-py2
c148b8fbe7cb0c0e9f68fdf9a1c3599325f0e4c8
[ "BSD-3-Clause" ]
3
2021-07-07T17:39:30.000Z
2022-03-30T15:15:44.000Z
import cpuinfo def pytest_benchmark_update_json(config, benchmarks, output_json): """Calculate compression/decompression speed and add as extra_info""" for benchmark in output_json["benchmarks"]: if "data_size" in benchmark["extra_info"]: rate = benchmark["extra_info"].get("data_size", 0.0...
43.052632
110
0.684597
b53920dd20dbdafabadb24be44f2a512437147fb
331
py
Python
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
examples/test_gcld3.py
lbp0200/EasyNMT
d253e9346996a47aa989bb33aed72e531528dc27
[ "Apache-2.0" ]
null
null
null
import time import gcld3 detector = gcld3.NNetLanguageIdentifier(min_num_bytes=0, max_num_bytes=1000) # text = "This text is written in English" text = "" while True: result = detector.FindLanguage(text=text) print(text, result.probability, result.language) time.sle...
25.461538
59
0.65861
b539e3fd28c31f9e28937feef603fdbd7a3fc98e
1,593
py
Python
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
src/0075下一个排列/index.py
zzh2036/OneDayOneLeetcode
1198692e68f8f0dbf15555e45969122e1a92840a
[ "MIT" ]
null
null
null
''' 1 nums = [1,2,3] [1,3,2] 2 nums = [3,2,1] [1,2,3] 3 nums = [1,1,5] [1,5,1] 4 nums = [1] [1] 1 <= nums.length <= 100 0 <= nums[i] <= 100 ''' if __name__ == '__main__': points = [1, 2, 3] ins = Solution() ins.nextPermutation(points) print(points)
22.125
61
0.468927
b53a0396d1bab4e9ce336103d0380f331ae41db6
7,906
py
Python
scripts/structural_make_html_report.py
vogelbac/LAB-QA2GO-
be434da7399d396413309f947f4b634d8fae9a17
[ "BSD-3-Clause" ]
14
2019-02-07T10:50:58.000Z
2021-09-03T16:11:00.000Z
scripts/structural_make_html_report.py
vogelbac/LAB-QA2GO-
be434da7399d396413309f947f4b634d8fae9a17
[ "BSD-3-Clause" ]
6
2019-01-28T09:19:27.000Z
2021-09-09T06:56:42.000Z
scripts/structural_make_html_report.py
vogelbac/LAB-QA2GO
be434da7399d396413309f947f4b634d8fae9a17
[ "BSD-3-Clause" ]
4
2019-01-28T09:00:58.000Z
2021-05-25T13:54:40.000Z
# script to generate the overview and individual html report website. import os import numpy
41.610526
193
0.68214
b53dea5224a5f4701caa31694ad6c985328e3868
12,226
py
Python
pynetdicom3/sop_class.py
mcgregorandrew/pynetdicom3
1c798f9b0ad086cf0a8d0619e57f2bc2fbbf13f1
[ "MIT" ]
null
null
null
pynetdicom3/sop_class.py
mcgregorandrew/pynetdicom3
1c798f9b0ad086cf0a8d0619e57f2bc2fbbf13f1
[ "MIT" ]
null
null
null
pynetdicom3/sop_class.py
mcgregorandrew/pynetdicom3
1c798f9b0ad086cf0a8d0619e57f2bc2fbbf13f1
[ "MIT" ]
2
2020-09-27T06:41:41.000Z
2021-02-07T06:53:02.000Z
"""Generates the supported SOP Classes.""" from collections import namedtuple import inspect import logging import sys from pydicom.uid import UID from pynetdicom3.service_class import ( VerificationServiceClass, StorageServiceClass, QueryRetrieveServiceClass, BasicWorklistManagementServiceClass, ) ...
49.699187
108
0.679699
b53df049332ea39e2f7827214e41edfb7e42ca6c
7,885
py
Python
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
feed_forward_model.py
karlschrader/deepPD
678793c9026eab2681d2d0a3b7e7f9f91c0f3bc5
[ "MIT" ]
null
null
null
import os from datetime import datetime import numpy as np import tensorflow as tf from tensorflow.python.training import moving_averages TF_DTYPE = tf.float64 MOMENTUM = 0.99 EPSILON = 1e-6 DELTA_CLIP = 50.0
38.842365
95
0.557261
b53f8bde038bcadd2b2dcbf0be630c6ab3f7dcdd
122
py
Python
semg_bss/hyser/__init__.py
nihil21/semg-bss
c8abd8aad6ed35e22a31d238adafe28f22bbcb3f
[ "MIT" ]
2
2021-12-09T15:27:42.000Z
2021-12-16T12:48:54.000Z
semg_bss/hyser/__init__.py
nihil21/semg-bss
c8abd8aad6ed35e22a31d238adafe28f22bbcb3f
[ "MIT" ]
null
null
null
semg_bss/hyser/__init__.py
nihil21/semg-bss
c8abd8aad6ed35e22a31d238adafe28f22bbcb3f
[ "MIT" ]
null
null
null
from .dataset import load_pr, load_1dof, load_mvc, load_ndof __all__ = ["load_pr", "load_1dof", "load_mvc", "load_ndof"]
30.5
60
0.737705
b540b40d9aaf331bef2f785083b2bbd7ed30bfe6
619
py
Python
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
Fibonacci/Python/fibonacci.py
IanDoarn/LearningRepo
4c5906b3c1f497a979c3fce89a66d1e571cd6b42
[ "MIT" ]
null
null
null
""" Fibonacci sequence using python generators Written by: Ian Doarn """ if __name__ == '__main__': # Maximum fib numbers to print max_i = 20 for i, fib_n in enumerate(fib()): #Print each yielded fib number print('{i:3}: {f:3}'.format(i=i, f=fib_n)) # Break when we hit max_i val...
23.807692
75
0.55412
b543980e156f1837cc8c91284aa02b3f5bbf8218
974
py
Python
Chapter 6/glossary_2.py
WilliamJaber/Python-Crash-Course
d87621785011039fbe0b42f0d8b6cd2364246577
[ "MIT" ]
null
null
null
Chapter 6/glossary_2.py
WilliamJaber/Python-Crash-Course
d87621785011039fbe0b42f0d8b6cd2364246577
[ "MIT" ]
null
null
null
Chapter 6/glossary_2.py
WilliamJaber/Python-Crash-Course
d87621785011039fbe0b42f0d8b6cd2364246577
[ "MIT" ]
5
2021-09-22T16:53:47.000Z
2022-03-24T00:56:49.000Z
glossary = { 'intger': 'is colloquially defined as a number that can be written without a fractional component.\n', 'iterate': 'is the repetition of a process in order to generate a sequence of outcomes.\n', 'indentation': 'is an empty space at the beginning of a line that groups particular blocks of code.\...
64.933333
125
0.710472
b543f58cf6e8b8dc209086801165057172e20d3f
1,711
py
Python
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
25
2019-07-16T22:32:44.000Z
2022-01-25T05:23:07.000Z
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
19
2018-12-17T20:42:11.000Z
2020-02-12T21:29:51.000Z
scripts/test_spider_roundtrip.py
mattr1/seq2struct_forPRs
cdc9e3c94380fb479ed3e3c77f370038d27cf2d6
[ "MIT" ]
22
2019-03-16T05:57:27.000Z
2020-10-25T04:34:54.000Z
import ast import argparse import json import os import pprint import astor import tqdm import _jsonnet from seq2struct import datasets from seq2struct import grammars from seq2struct.utils import registry from third_party.spider import evaluation if __name__ == '__main__': main()
30.553571
102
0.663939
b5441f2ff301c902adbb89a228a3e18af8032444
1,632
py
Python
tune/noniterative/objective.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
14
2021-03-03T20:02:09.000Z
2021-11-10T20:32:22.000Z
tune/noniterative/objective.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
26
2021-04-30T19:56:06.000Z
2022-01-18T04:40:00.000Z
tune/noniterative/objective.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
2
2021-04-30T03:12:21.000Z
2022-02-05T12:13:37.000Z
from tune.constants import TUNE_STOPPER_DEFAULT_CHECK_INTERVAL from typing import Any, Callable, Optional from tune._utils import run_monitored_process from tune.concepts.flow import Trial, TrialReport def validate_noniterative_objective( func: NonIterativeObjectiveFunc, trial: Trial, validator: Callab...
33.306122
85
0.717525
b545de61a4d0708ce0bd62bccdbaa4f9ddf7238d
371
py
Python
ThinkPython/chap10/ex7.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap10/ex7.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
ThinkPython/chap10/ex7.py
sokolowskik/Tutorials
d2681d4f18b03e00f90f9132c77f0b23b74d2629
[ "MIT" ]
null
null
null
a1 = 'mary' b1 = 'army' a2 = 'mary' b2 = 'mark' def is_anagram(a, b): """ Return True if words a and b are anagrams. Return Flase if otherwise. """ a_list = list(a) b_list = list(b) a_list.sort() b_list.sort() if a_list == b_list: return True else: return False ...
16.130435
46
0.574124
b54662251afe3923c7f22e2ffa35d6fb5d4cc63b
459
py
Python
pymotion/models/notification.py
LeResKP/motion
4a7c6200ca6fd20edb3b98c6ea1215c90d988a78
[ "MIT" ]
null
null
null
pymotion/models/notification.py
LeResKP/motion
4a7c6200ca6fd20edb3b98c6ea1215c90d988a78
[ "MIT" ]
null
null
null
pymotion/models/notification.py
LeResKP/motion
4a7c6200ca6fd20edb3b98c6ea1215c90d988a78
[ "MIT" ]
null
null
null
from sqlalchemy import ( Column, ForeignKey, Integer, Text, ) from sqlalchemy.orm import relationship from .meta import Base
21.857143
77
0.714597
b5473421d6c0b8e5ed5978ee678700c80296d6a9
1,340
py
Python
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
utils/model_helper.py
CocoBir/django-restful-demo
aeb7f8a0bcff5c52b528c7b0c48f87de5f392320
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ model helper ~~~~~~~~~~~~ :Created: 2016-8-5 :Copyright: (c) 2016<smileboywtu@gmail.com> """ from customer_exceptions import OffsetOutOfRangeException
23.103448
60
0.568657
b54756c2e6e68e661aab45de212b547f340ad633
2,603
py
Python
djadmin2/templatetags/admin2_tags.py
beezz/django-admin2
4aec1a3836011cd46e5eb8b6375590bf5a76c044
[ "BSD-3-Clause" ]
1
2015-04-30T13:34:03.000Z
2015-04-30T13:34:03.000Z
djadmin2/templatetags/admin2_tags.py
taxido/django-admin2
6a6b3d5f790b8289b0dd0f9194d80799af8804dc
[ "BSD-3-Clause" ]
1
2021-03-19T23:57:09.000Z
2021-03-19T23:57:09.000Z
djadmin2/templatetags/admin2_tags.py
RyanBalfanz/django-admin2
e7f0611eea22370bb3418e25e9cd10ddbac4fd6d
[ "BSD-3-Clause" ]
null
null
null
from django import template register = template.Library() from .. import utils
26.835052
84
0.702651
b5484bee48cb34153d413c1639f3e4d36037235a
2,323
py
Python
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
tests/test_filters/test_edges.py
luluricketts/biothings_explorer
ae2009ff285f96a08e0145f242846ca613b5069c
[ "Apache-2.0" ]
null
null
null
""" Tests for edges.py """ import unittest import pandas as pd from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher from biothings_explorer.filters.edges import filter_node_degree if __name__ == '__main__': unittest.main()
40.754386
106
0.54025
b54ed986a0849287fd62118ba89a87ae8732ba9e
974
py
Python
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
1
2018-08-15T02:52:52.000Z
2018-08-15T02:52:52.000Z
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
null
null
null
get_data.py
ryanw3bb/fpl
a06fbf8ada5f549f0750ed9af46f53b3a1a0149e
[ "MIT" ]
null
null
null
""" Retrieves data as json files from fantasy.premierleague.com """ import json import requests LAST_SEASON_DATA_FILENAME = "data/player_data_20_21.json" DATA_URL = "https://fantasy.premierleague.com/api/bootstrap-static/" DATA_FILENAME = "data/player_data_21_22.json" FIXTURES_URL = "https://fantasy.premierleague.c...
24.974359
68
0.74846
b54f720607fa63d495bc79cd36045e62028217a1
5,587
py
Python
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
1
2021-08-10T19:29:52.000Z
2021-08-10T19:29:52.000Z
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
null
null
null
examples/spawning5.py
MissMeriel/BeamNGpy
a8467c57537441802bc5b56f0012dfee2b5f5af0
[ "MIT" ]
null
null
null
from beamngpy import BeamNGpy, Vehicle, Scenario, ScenarioObject from beamngpy import setup_logging, Config from beamngpy.sensors import Camera, GForces, Lidar, Electrics, Damage, Timer import beamngpy import time, random # globals default_model = 'pickup' default_scenario = 'west_coast_usa' #'cliff' # smallgrid dt = ...
36.51634
133
0.583139
b55212239eec52a949a21799291c19c62811b1b2
17,827
py
Python
steam/check_acf.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
19
2015-02-02T16:49:32.000Z
2021-12-04T02:33:10.000Z
steam/check_acf.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
1
2015-07-11T13:57:34.000Z
2015-11-16T02:36:23.000Z
steam/check_acf.py
DarkStarSword/junk
f0de649a3ef92715fbc6aeff7599ad843763c32b
[ "MIT" ]
4
2017-02-06T21:11:17.000Z
2019-04-04T15:11:50.000Z
#!/usr/bin/env python from __future__ import print_function import os, optparse, glob import depotcache, acf from ui import ui_tty as ui import hashlib import sys g_indent = ' ' colours = { False: 'back_red black', True: '' } if __name__ == '__main__': main() # vi:noet:ts=8:sw=8
35.941532
388
0.710664
b5523d39a4d4c8cb3b8be163ac345c9888bb29a1
178
py
Python
reference/old/distance-simple.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
reference/old/distance-simple.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
reference/old/distance-simple.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
from gpiozero import DistanceSensor from time import sleep sensor = DistanceSensor(echo=23, trigger=22) while True: print('Distance: ', sensor.distance * 100) sleep(1)
19.777778
46
0.735955
b5526b9490a6617e9343309ab67db978943793e5
1,070
py
Python
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
SmallTips/RemoveDuplication.py
Akasan/PythonTips
eee85c35fd25576c7b2b01af838749608bf8989c
[ "MIT" ]
null
null
null
import pickle def remove_duplicate_from_list(data): """ remove duplications from specific list any data can be contained in the data. if the data is hashable, you can implement this function easily like below. data = list(set(data)) but if the data is unhashable, you have to im...
36.896552
89
0.66729
b5533e6640dc60d29a04f82e1a7722aa55036807
7,226
py
Python
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
1
2022-02-08T18:28:30.000Z
2022-02-08T18:28:30.000Z
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
null
null
null
ultraviolet_cli/commands/fixtures.py
mnyrop/ultraviolet-cli
f177adde71a899ca6775bd4673d30e19ccdb2a30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2022 NYU Libraries. # # ultraviolet-cli is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio module for custom UltraViolet commands.""" import click import glob import json import os imp...
33.146789
128
0.63313
b553c83a33407279287a7fa673284b12f5a363b1
1,320
py
Python
consts.py
twyair/hebrew-verb-inflection
a85773a008ea3fc1b8c36f92ac3100315edee6b6
[ "MIT" ]
null
null
null
consts.py
twyair/hebrew-verb-inflection
a85773a008ea3fc1b8c36f92ac3100315edee6b6
[ "MIT" ]
null
null
null
consts.py
twyair/hebrew-verb-inflection
a85773a008ea3fc1b8c36f92ac3100315edee6b6
[ "MIT" ]
null
null
null
from __future__ import annotations from enum import Enum, auto # TODO: rename
22
88
0.559848
b55d244aa62443aced945674009694fb76ee238b
1,834
py
Python
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
24
2021-12-02T01:00:54.000Z
2022-03-27T00:50:28.000Z
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
null
null
null
src/function_manager/function_manager.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
3
2021-12-02T01:00:47.000Z
2022-03-04T07:33:09.000Z
import gevent import docker import os from function_info import parse from port_controller import PortController from function import Function import random repack_clean_interval = 5.000 # repack and clean every 5 seconds dispatch_interval = 0.005 # 200 qps at most # the class for scheduling functions' int...
37.428571
104
0.681025
b55f0296b5c70a3898760614021a220983b1ac36
333
py
Python
getall.py
bransorem/Magic-Scraper
f68ae25122391efe440c8652119d146a75be4cea
[ "Unlicense" ]
2
2018-07-16T21:24:34.000Z
2020-12-19T21:34:00.000Z
getall.py
bransorem/Magic-Scraper
f68ae25122391efe440c8652119d146a75be4cea
[ "Unlicense" ]
null
null
null
getall.py
bransorem/Magic-Scraper
f68ae25122391efe440c8652119d146a75be4cea
[ "Unlicense" ]
null
null
null
import sets import scan_set import os path = 'ids/' setlist = os.listdir(path) for set in sets.set_info: s = set + '.txt' if s not in setlist: print "Getting " + set getall(set) print "\n\nCompletely Finished........"
15.857143
39
0.615616
b55f0ffd6458d9da1434363a2f94293d840e899b
6,717
py
Python
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
1
2022-02-17T07:58:06.000Z
2022-02-17T07:58:06.000Z
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
null
null
null
MalmoEnv/run.py
chemgymrl/malmo
207e2530ec94af46450ba6d0e62d691ade91e282
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------ # Copyright (c) 2018 Microsoft Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), to deal in the Software ...
46.645833
128
0.650737
b55f2629add10c43d98efae9012f1f13e3691bd5
1,172
py
Python
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
62
2018-11-30T05:53:32.000Z
2022-03-20T13:15:22.000Z
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
25
2019-08-12T18:53:41.000Z
2021-12-28T10:17:39.000Z
example/wrapper/common/5001-get_tgpio_digital.py
krasin/xArm-Python-SDK-ssh
9c854e8bfa78d0e91b67efbab79f733ddf19e916
[ "BSD-3-Clause" ]
43
2019-01-03T04:47:13.000Z
2022-03-18T06:40:59.000Z
#!/usr/bin/env python3 # Software License Agreement (BSD License) # # Copyright (c) 2019, UFACTORY, Inc. # All rights reserved. # # Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com> """ Example: Get GPIO Digital """ import os import sys import time sys.path.append(os.path.join(os.path.dirname(__file__), ...
23.44
70
0.648464
b560237f424501f39681590b33c61e9846076455
2,429
py
Python
sdk/python/pulumi_lxd/__init__.py
soupdiver/pulumi-lxd
258395aefd6a4cf138d470d7de70babed3310063
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_lxd/__init__.py
soupdiver/pulumi-lxd
258395aefd6a4cf138d470d7de70babed3310063
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_lxd/__init__.py
soupdiver/pulumi-lxd
258395aefd6a4cf138d470d7de70babed3310063
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from . import _utilities import typing # Export this package's modules as members: from .cached_image import * from .container import *...
19.58871
87
0.627419
b56057ff5dbd4cdc1d25d244ff87b18b26455492
544
py
Python
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
49-group anagrams/main.py
ytong82/leetcode
34e08c430d654b14b1608211f74702f57e507189
[ "Apache-2.0" ]
null
null
null
strs = ["eat", "tea", "tan", "ate", "nat", "bat"] sol = Solution() print(sol.groupAnagrams(strs))
22.666667
51
0.443015
b561af012e5087c35cc2997a33fe02fbbdb5ae5d
2,429
py
Python
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
1
2018-06-20T01:42:54.000Z
2018-06-20T01:42:54.000Z
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
null
null
null
vending.py
mit-dci/litvending
28f8f2b51691eac7c69de153aafbe72663d9892c
[ "MIT" ]
1
2022-02-15T06:48:15.000Z
2022-02-15T06:48:15.000Z
#!/usr/bin/env python3 import os import time import sys gpio = None try: import RPi.GPIO gpio = RPi.GPIO except: print('RPi library not found. We\'re probably on a dev machine. Moving on...') import lvconfig import litrpc # This could be more efficient, we're making a lot more requests than we need to. if __n...
26.11828
136
0.669823
b563b116c6a5501886a56db83d13d435b9bc033e
3,070
py
Python
python-study/2.py
yu1k/python-study
0bf2e2927696f58f36c05602446ecd71e31596e3
[ "MIT" ]
null
null
null
python-study/2.py
yu1k/python-study
0bf2e2927696f58f36c05602446ecd71e31596e3
[ "MIT" ]
null
null
null
python-study/2.py
yu1k/python-study
0bf2e2927696f58f36c05602446ecd71e31596e3
[ "MIT" ]
null
null
null
#*** *** #Python, ' (), " (). print('some eggs') print("some eggs") print('some eggs\nsome eggs') #a == b abTrue, False print('some eggs' == "some eggs") #True #'...' ' , "..." " , # \ () . print("I don't Know him") #I don't know him print('"Python"') #"Python" print("I don\'t know him") #I don't know him p...
17.150838
59
0.70684
b5656eebed6c2a64ded792a644ba9d21bbe79fe1
570
py
Python
tests/test_delete_query.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
4
2020-04-15T10:50:03.000Z
2021-07-22T12:23:50.000Z
tests/test_delete_query.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
2
2020-05-24T08:54:56.000Z
2020-05-24T09:04:31.000Z
tests/test_delete_query.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
null
null
null
import pytest from fluentql import GenericSQLDialect, Q from fluentql.types import Table test_table = Table("test_table")
21.111111
73
0.652632
b56b02915f5cdfb61babcb70fc1c32bc2970b2fa
597
py
Python
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
67
2017-11-23T18:48:47.000Z
2022-03-29T08:03:25.000Z
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
null
null
null
Section02/ParsingChart.py
fosterleejoe/Developing-NLP-Applications-Using-NLTK-in-Python
f2cac32c02d0632fb89f32446388ef15d9926bbc
[ "MIT" ]
49
2017-12-06T16:10:14.000Z
2021-11-25T09:02:49.000Z
from nltk.grammar import CFG from nltk.parse.chart import ChartParser, BU_LC_STRATEGY grammar = CFG.fromstring(""" S -> T1 T4 T1 -> NNP VBZ T2 -> DT NN T3 -> IN NNP T4 -> T3 | T2 T3 NNP -> 'Tajmahal' | 'Agra' | 'Bangalore' | 'Karnataka' VBZ -> 'is' IN -> 'in' | 'of' DT -> 'the' NN -> 'capital' """) cp = ChartParser(g...
22.961538
56
0.676717