hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
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
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
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
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
1b0d4ccfdff9588eb2c7e78e6b13fe6ef61ffb70
28,671
py
Python
python_playground/data/make_figure.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/data/make_figure.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/data/make_figure.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
# make figure for MC sampling single pair import math import random import matplotlib from experiments import low_rank_errors matplotlib.use('pgf') matplotlib.use("pgf") pgf_with_rc_fonts = { "font.family": "serif", "font.serif": [], # use latex default serif font "font.sans-serif": ["DejaVu Sans"], # ...
44.109231
136
0.616756
ca5f1a1b6dd56099280d1241847e8b715c64d61b
488
py
Python
RedBook/ch2/2-11.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/2-11.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/2-11.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from http.client import HTTPConnection from urllib.parse import urlencode host = '127.0.0.1:8000' params = urlencode({ 'language': 'python', 'name': '김석훈', 'email': 'shkim@naver.com', }) headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'text/plain', } conn = HTTPConnectio...
21.217391
56
0.670082
0494e131f4be4f30005682d8a6e454eaedcdebf7
189
py
Python
Hackerrank_problems/MinimumHeightOFTriangle/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/MinimumHeightOFTriangle/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/MinimumHeightOFTriangle/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
import math # To use ceil function b, a = map(int, input().split()) # To take input h = (2*a)/(b) # Getting height if h > int(h): print(math.ceil(h)) else: print("%.0f" % h)
15.75
49
0.560847
b6b80ed06c38120ce55ae5819b73ac6d12deff8e
11,560
py
Python
venv/lib/python3.7/site-packages/twilio/rest/preview/trusted_comms/business/insights/impressions_rate.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2020-11-13T02:31:25.000Z
2020-12-24T22:04:30.000Z
venv/lib/python3.7/site-packages/twilio/rest/preview/trusted_comms/business/insights/impressions_rate.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
7
2020-06-03T19:08:42.000Z
2021-09-22T19:08:32.000Z
bot/lib/python3.7/site-packages/twilio/rest/preview/trusted_comms/business/insights/impressions_rate.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
1
2020-08-27T01:33:19.000Z
2020-08-27T01:33:19.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import...
37.051282
112
0.670588
6d0441476b2f3433448e5d32452065be8b7773bf
2,069
py
Python
classification/scripts/configs_hyperparameter_tuning/TFIDF_best_f1.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/configs_hyperparameter_tuning/TFIDF_best_f1.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/configs_hyperparameter_tuning/TFIDF_best_f1.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
class Configurations: configs = [ # # Configurations for Machine-Learning Pipeline # {# tfidf best f1 # basic preprocessing "textToLowerCase": True, "textReplaceUmlaut": True, "textRemoveSpecialCharacters": True, "textRemov...
32.84127
86
0.460609
6d31d1b7d2a7f4ffb0d84e93e28be3f3c997a53e
337
py
Python
packages/watchmen-model/src/watchmen_model/common/data_result_set.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/common/data_result_set.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/common/data_result_set.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime, date, time from typing import List, Union from pydantic import BaseModel DataResultSetCell = Union[str, int, float, bool, datetime, date, time, None] DataResultSetRow = List[DataResultSetCell] DataResultSet = List[DataResultSetRow] class DataResult(BaseModel): columns: List[str] dat...
24.071429
76
0.795252
1e9bed6a3d642440ffb50ff61e9ecda0651d086d
1,124
py
Python
jumpserver-dev/run_server.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
jumpserver-dev/run_server.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
jumpserver-dev/run_server.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ from threading import Thread import os import subprocess try: from config import config as env_config, env CONFIG = env_config.get(env, 'default')() except ImportError: CONFIG = type('_', (), {'__getattr__': None})() BASE_DIR = os.path.dirname(os.path.abspa...
20.071429
98
0.660142
15b6c61dc68c322d8ce191c6adbe84d57ef2c305
5,718
py
Python
official/nlp/ernie/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/ernie/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/ernie/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
52.458716
111
0.636236
f905b8da1aaba7184934bc74f997aa11b0a1bc0e
12,905
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/demandbase.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/demandbase.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/demandbase.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
41.763754
231
0.488648
da9f2bd5dbf3ab0302ff35faea3e56ad6addff02
1,365
py
Python
Base/main-teste.py
AlanDeveloper/Flask-Mail
f2d9245f4614d99645b480a861b311f56f274af1
[ "MIT" ]
null
null
null
Base/main-teste.py
AlanDeveloper/Flask-Mail
f2d9245f4614d99645b480a861b311f56f274af1
[ "MIT" ]
null
null
null
Base/main-teste.py
AlanDeveloper/Flask-Mail
f2d9245f4614d99645b480a861b311f56f274af1
[ "MIT" ]
null
null
null
from flask import Flask, flash, render_template, request, redirect, url_for, session from server import ServerDAO app = Flask(__name__, template_folder='template') app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' @app.route('/') def index(): return render_template('index.html') @app.route('/register', methods=['POST']) def...
26.764706
84
0.681319
972807d8b86be0ce50bfabea1120b9b0f8accbe8
17,380
py
Python
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/utils/read_image_to_list.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/utils/read_image_to_list.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/utils/read_image_to_list.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
# Copyright 2018 Deep Learning Service of Huawei Cloud. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
41.08747
119
0.568297
9799f6a50528e51ce92f17d39057daa9345d2dd2
1,050
py
Python
rengine/scripts/generate_exercise.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/scripts/generate_exercise.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/scripts/generate_exercise.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
import argparse from rengine.config import ExerciseLoad, ExerciseType, MuscleGroup from rengine.exercises import pick_random_exercise import pprint def run(): parser = argparse.ArgumentParser("Rengine Client") parser.add_argument("exercise_type", metavar="exercise-type", action="store" , default=ExerciseType.H...
80.769231
217
0.777143
c1238851a419cc26e524c64764bbcdc9a5679a67
221
py
Python
test.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
1
2022-03-09T20:44:33.000Z
2022-03-09T20:44:33.000Z
test.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
test.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os import random import json import numpy as np import pandas as pd # import xgboost as xgb import lib import lib.api import lib.market import lib.wallet import xgboost
10.52381
23
0.760181
a9c352b9a5735ff6f2aebc8a5e053cadf34af939
2,076
py
Python
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/G@1/Menu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/G@1/Menu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/G@1/Menu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * from tkinter import font from tkinter.filedialog import askopenfilename def show(): print("The content of the whole db!") def change(): print("The content of some specific key is changed!") def insert(): print("Insert the contents!") def remove(): print("Insert some specific contents!") ...
43.25
122
0.74711
e7ba7c87138e3ba2cf2f4aa74d4d45ce74968618
1,174
py
Python
back-end/src/analysis/generate_features.py
akshah/iodb
80fbad1cb639e2cad304d6565cf4918ee5b4e4c0
[ "Apache-2.0" ]
null
null
null
back-end/src/analysis/generate_features.py
akshah/iodb
80fbad1cb639e2cad304d6565cf4918ee5b4e4c0
[ "Apache-2.0" ]
null
null
null
back-end/src/analysis/generate_features.py
akshah/iodb
80fbad1cb639e2cad304d6565cf4918ee5b4e4c0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import MySQLdb import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab from scipy.optimize import curve_fit def standard(data): mean=np.mean(data) std=np.std(data) return (data - mean)/std db = MySQLdb.connect(host="proton.netsec.colostate.edu", # your host, usually loc...
23.019608
208
0.708688
d488c997209dc2d3b06e6b45f91d21d9759dbc0b
412
py
Python
ArtificialIntelligence/BotBuilding/bot_saves_princess2.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
ArtificialIntelligence/BotBuilding/bot_saves_princess2.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
ArtificialIntelligence/BotBuilding/bot_saves_princess2.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
def nextMove(n,r,c,grid): for x in range(n): for y in range(n): if(grid[x][y] == 'p'): row, col = x,y if(col != c): return (col > c) and 'RIGHT' or 'LEFT' else: return (row > r) and 'DOWN' or 'UP' n = int(input()) r,c = [int(i) for i in input().strip().sp...
24.235294
47
0.490291
2e2ef177b94935238bdb6240bacf441a764679ba
28,003
py
Python
research/cvtmodel/regnet/src/regnet_x_8gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/regnet/src/regnet_x_8gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/regnet/src/regnet_x_8gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
59.707889
119
0.508731
9958b187c6d631fd3957221f2ffa72c85b1f5db8
4,282
py
Python
bind/pyevt/pyevt/ecc.py
harrywong/evt
95985384619e0f5ff4021e8838d421ac4b4b946d
[ "BSD-3-Clause" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
bind/pyevt/pyevt/ecc.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
bind/pyevt/pyevt/ecc.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
364
2018-06-09T12:11:53.000Z
2020-12-15T03:26:48.000Z
from . import evt_exception, libevt from .evt_data import EvtData class PublicKey(EvtData): def __init__(self, data): super().__init__(data) def __str__(self): return self.to_string() def to_string(self): str_c = self.evt.ffi.new('char**') ret = self.evt.lib.evt_public_ke...
33.193798
70
0.656469
996911edbbbaa7ed60473fe37e1cbd32f996e45c
810
py
Python
libs/langdetectspacy/LangDetectSpacyModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/langdetectspacy/LangDetectSpacyModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/langdetectspacy/LangDetectSpacyModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys import spacy sys.path.append(os.path.dirname(__file__)) from spacy_langdetect import LanguageDetector from libs.AbstractLanguageDetectionModel import AbstractLanguageDetectionModel class LangDetectSpacyModel(AbstractLanguageDetectionModel): def __init__(self): AbstractLanguageDetect...
31.153846
82
0.718519
41ff2a541667c6c492056e02390f21086bad694c
2,305
py
Python
EnergyCapacity/scrape_data.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
EnergyCapacity/scrape_data.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
EnergyCapacity/scrape_data.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% import numpy as np import pandas as pd import requests import os import pathlib from bs4 import BeautifulSoup # %% area_type = 'CTY' # BZN - for bidding zone # %% List countryies and url codes base_url=f"https://transparency.entsoe.eu/generation/r2/installedGenerationCapacityAggregation/show?name=&defaultValue...
51.222222
816
0.768764
7a878340c2916a6fcdf97f69a9332ddad3b1c6e0
2,514
py
Python
verto/processors/ImageInlinePattern.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/ImageInlinePattern.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/ImageInlinePattern.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.utils.HtmlParser import HtmlParser from verto.processors.utils import parse_arguments from verto.utils.image_file_name_components import image_file_name_components from markdown.inlinepatterns import Pattern import re class ImageInlinePattern(Pattern): '''Return a link element from the given match.''' ...
41.9
99
0.66428
56e600ec44b62b804fc6de836ba2be6228b438ce
1,974
py
Python
src/test/tests/simulation/mandelbrot.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/mandelbrot.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/simulation/mandelbrot.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: mandelbrot.py # # Tests: libsim - connecting to simulation and retrieving data from it. # mesh - 2D structured mesh. # scalars # AMR # # Programmer: Brad Wh...
25.636364
78
0.592705
56e62d8b06315c4e8a830962368a90052d7e2c5f
13,958
py
Python
src/helper.py
TheMagnat/Projet-RP
74d5bb7c07705b06fbdf93e5587568d9ecf574e0
[ "MIT" ]
null
null
null
src/helper.py
TheMagnat/Projet-RP
74d5bb7c07705b06fbdf93e5587568d9ecf574e0
[ "MIT" ]
null
null
null
src/helper.py
TheMagnat/Projet-RP
74d5bb7c07705b06fbdf93e5587568d9ecf574e0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt #from numba import njit #import numba #import math """ arg: n: Number of tasks maxDuration: The duration are in [1, maxDuration[ return random duration array drawn according to an uniform distribution """ def generateRandomDurations(n, maxDuration=3): ...
26.041045
179
0.618857
77b911d5b9971cd9fdac3f7a87dc9ebbe2b098cb
370
py
Python
algorithms/ar-lsrh/python3/linear_search.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
1
2021-02-12T17:15:35.000Z
2021-02-12T17:15:35.000Z
algorithms/ar-lsrh/python3/linear_search.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
null
null
null
algorithms/ar-lsrh/python3/linear_search.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
null
null
null
def linearsearch(arr, x): ''' We will traverse through out the list and will try to compare every element one by one. ''' for i,element in enumerate(arr): if x == element: return i else: return -1 def main(): arr = [2, 3, 0, 4] result = linearsearch(...
21.764706
58
0.540541
24824d4d5b070caa05ccf4d0ad324eec16d59a72
873
py
Python
setup.py
Slanman3755/VERAS
07a6b26f9360e7bc605b767489cc86c683b57fae
[ "MIT" ]
null
null
null
setup.py
Slanman3755/VERAS
07a6b26f9360e7bc605b767489cc86c683b57fae
[ "MIT" ]
null
null
null
setup.py
Slanman3755/VERAS
07a6b26f9360e7bc605b767489cc86c683b57fae
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name="VERAS-Slanman3755", version="0.0.1", author="Spencer Lanman", author_email="slanman3755@gmail.com", description="Vatsim En Route Automation System", lo...
29.1
52
0.628866
8ed80772bf11ec9a08e84345f82dbc3ce31cedeb
172
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 59/59.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 59/59.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 59/59.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Print out three lines saying for instance item 1 has index 0, and so on. a = [1, 2, 3] for index, item in enumerate(a): print("Item %s has index %s" % (item, index))
28.666667
73
0.651163
d9701aed15a1a52c13f4168a1c22667b01cf3a57
1,549
py
Python
src/02_motion.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
1
2016-09-22T18:31:15.000Z
2016-09-22T18:31:15.000Z
src/02_motion.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
null
null
null
src/02_motion.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
null
null
null
import cv2, imutils, time, numpy camera = cv2.VideoCapture(0) time.sleep(0.25) min_area = 500 referenceFrame = None while True: (grabbed, frame) = camera.read() if not grabbed: break frame = imutils.resize(frame, width=800) gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) gray = cv2.GaussianBlur(gray...
27.175439
112
0.659781
79719cb6e4917c5ca64b8b5921cb307a20089efb
14,922
py
Python
AP3/basic_local_classifier.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
AP3/basic_local_classifier.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
AP3/basic_local_classifier.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """A basic classifier which uses only local features.""" import os.path from PIL import Image import scipy.misc import scipy.ndimage import logging import sys import time import numpy as np import json logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', ...
33.683973
78
0.556695
30f8cbb7f4a712ec0f657f27ea3b1064d24a26d0
10,204
py
Python
Unknown/lyx/stock_market.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Unknown/lyx/stock_market.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Unknown/lyx/stock_market.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
''' Welcome to Forma.ai stock statement generator! In this problem, you will be coding up a transaction statement generator for a existing trader on our stock trading system. The inputs are provided below, and the exact output you are to generate is provided after the inputs. actions: the timestamped actions that the ...
37.377289
119
0.592513
eba286b3a7591ec55faf579a9193cee35688186a
130
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Decimal_to_Binary_Rec.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Decimal_to_Binary_Rec.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Decimal_to_Binary_Rec.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def convertToBinary(n): if(n>1): convertToBinary(n//2) print(n%2,end='') n=int(input("Enter a number : ")) convertToBinary(n)
18.571429
33
0.669231
15f16e31e6a70aa347d21c2a0698aa0f45066565
3,520
py
Python
main.py
0xsmoos/LMB
0b3510ce210ffac28c5bed776f8eee3d9431bef4
[ "MIT" ]
null
null
null
main.py
0xsmoos/LMB
0b3510ce210ffac28c5bed776f8eee3d9431bef4
[ "MIT" ]
null
null
null
main.py
0xsmoos/LMB
0b3510ce210ffac28c5bed776f8eee3d9431bef4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # filename : main.py # description : Find Lunch!? # author : Ian Ault # email : ianault2022@isd282.org # date : 02-14-2022 # version : v1.0 # usage : python main.py # notes : # license : MIT # py versi...
32.592593
184
0.693182
ba646267a8325d6ffc606277d1be3e24ee13ae0d
626
py
Python
src/data_science/data_science/tools/objects.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/tools/objects.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/tools/objects.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
def assign_attr_from_dictionary(object, dictionary, attribute): """ Read fields from json format. :param object: object with the attribute :param dictionary: dictionary (or json) :param attr: attr to assign """ if attribute in dictionary: setattr(object, attribute, dicti...
28.454545
63
0.634185
ba84e364c944a341667f4abb5f4f61b0b398863e
3,408
py
Python
Twitch Bot/twitch_bot.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-05T14:30:34.000Z
2021-07-05T14:30:34.000Z
Twitch Bot/twitch_bot.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:36:02.000Z
2021-07-02T15:37:25.000Z
Twitch Bot/twitch_bot.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:15:17.000Z
2021-07-02T15:15:17.000Z
import re import socket # --------------------------------------------- Start Settings ---------------------------------------------------- HOST = "irc.twitch.tv" # Hostname of the IRC-Server in this case twitch's PORT = 6667 # Default IRC-Port CHAN = "#test...
29.634783
116
0.419601
88c48bf92629ae84b1da10e99efc74471bd1b24d
7,990
py
Python
server.py
openHPI/Embedded-Smart-Home-2016
f234f58bcde5f841e793d8c9a63388b0a333e143
[ "MIT" ]
1
2017-07-11T14:14:48.000Z
2017-07-11T14:14:48.000Z
server.py
openHPI/Embedded-Smart-Home-2016
f234f58bcde5f841e793d8c9a63388b0a333e143
[ "MIT" ]
null
null
null
server.py
openHPI/Embedded-Smart-Home-2016
f234f58bcde5f841e793d8c9a63388b0a333e143
[ "MIT" ]
1
2020-06-18T20:44:05.000Z
2020-06-18T20:44:05.000Z
import RPi.GPIO as GPIO from http.server import BaseHTTPRequestHandler, HTTPServer import threading import spidev import time from datetime import datetime import os import json global sensor_display_thread # HTTPRequestHandler class class FirstHTTP_RequestHandler(BaseHTTPRequestHandler): def do_GET(self): s...
29.702602
127
0.581852
0042e2396fd2a4fed32e2d4765c4d26e5f7c1c7e
1,592
py
Python
research/cv/UNet3+/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/UNet3+/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/UNet3+/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
39.8
84
0.668342
4e4c99b1c0eb65992e237e703ff86b1c9e0c1412
1,899
py
Python
tests/conftest.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-10-31T13:34:12.000Z
2019-10-31T13:34:12.000Z
tests/conftest.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-05-27T13:03:25.000Z
2019-05-27T13:03:25.000Z
tests/conftest.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
null
null
null
import os import tempfile import pytest from pvtool import create_app, TestingConfig from pvtool.db import db from pvtool.routes._users import User @pytest.fixture def app(): """skeleton for testing that is coming db_fd: file handle for temporary database""" # db_fd, db_path = tempfile.mkstemp() app...
21.1
75
0.656661
0947d0832eaae28c1b17191f3e35b0f7e3cc647d
1,668
py
Python
Liter_Server/Topic.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/Topic.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/Topic.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
import sqlite3 import time import os def new(uid: int, mid: int, name: str, icon=None): c.execute("INSERT INTO TOPIC VALUES (NULL,?,?,?,?,?,?);", (uid, mid, mid, name, time.strftime(r'%Y/%m/%d %H:%M', time.localtime()), icon)) conn.commit() return c.execute('SELECT TID from TOPIC order by TID desc limit 0...
27.344262
142
0.523981
e116f8ec097869a80595df57c235e1989e4c21e0
1,623
py
Python
tssb/measure.py
sharadmv/tssb
9385ea9ab199070034a36f92b6520152f801823a
[ "MIT" ]
null
null
null
tssb/measure.py
sharadmv/tssb
9385ea9ab199070034a36f92b6520152f801823a
[ "MIT" ]
null
null
null
tssb/measure.py
sharadmv/tssb
9385ea9ab199070034a36f92b6520152f801823a
[ "MIT" ]
null
null
null
import numpy as np import scipy.stats as stats from dist import Distribution from process import IndependentRandomProcess, MarkovTreeRandomProcess from tssb import TSSB, depth_weight class RandomMeasure(Distribution): def sample_one(self): raise NotImplementedError class RandomCountingMeasure(RandomMeas...
30.622642
118
0.712261
09e965be5dc0205293089555223d92fe339c73ae
38,820
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/misc/matplottools.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/misc/matplottools.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/misc/matplottools.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
49.96139
187
0.464323
283acc425e39993c697642c49d41ef7d4733d6a5
16
py
Python
car.py
tlee753/sphinx
eb5ccca14580fd600f75c259c958615529cced10
[ "MIT" ]
null
null
null
car.py
tlee753/sphinx
eb5ccca14580fd600f75c259c958615529cced10
[ "MIT" ]
null
null
null
car.py
tlee753/sphinx
eb5ccca14580fd600f75c259c958615529cced10
[ "MIT" ]
null
null
null
myCar = "Ford";
8
15
0.5625
289288660903efcba7385f81ba68191c7bd0aa06
1,991
py
Python
Packs/Malware/Scripts/AppendindicatorFieldWrapper/AppendindicatorFieldWrapper.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Malware/Scripts/AppendindicatorFieldWrapper/AppendindicatorFieldWrapper.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/Malware/Scripts/AppendindicatorFieldWrapper/AppendindicatorFieldWrapper.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
""" A wrapper script to the 'AppendindicatorField' script, that enables adding tags to certain indicators. Note: You can use this script as a layout button that allows adding tags to indicators. """ import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * from typing import ...
31.109375
114
0.690105
25091be11079c21769721ae8df4945261b1c9aa8
145
py
Python
Topics/Recursion/Practices/01-Print-Reverse-String.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Topics/Recursion/Practices/01-Print-Reverse-String.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Topics/Recursion/Practices/01-Print-Reverse-String.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def reverse(st: str, n: int) -> None: if n == 0: return print(st[n-1], end="") reverse(st, n-1) st = input() reverse(st, len(st))
14.5
37
0.531034
2533ab6f55855ed13d19fe0233a469de2118eaaa
752
py
Python
python/data_sutram/scraper/gecko_dr.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/gecko_dr.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/gecko_dr.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from selenium.webdriver import Firefox from selenium.webdriver.support.events import EventFiringWebDriver, AbstractEventListener import time from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys class MyListener(AbstractEventLis...
28.923077
89
0.769947
c28dd15c13af2e484a2ec9ad6569417323cd9c5c
4,996
py
Python
src/onegov/quill/widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/quill/widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/quill/widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from random import choice from wtforms.widgets import HiddenInput from wtforms.widgets.core import HTMLString HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] LISTS = ['ol', 'ul'] TAGS = ['strong', 'em', 'a'] + HEADINGS + LISTS + ['blockquote'] class QuillInput(HiddenInput): """ Renders the text content as h...
36.735294
76
0.473579
6c1af3be21b1a1db55d699634e09b6d2120142c1
1,387
py
Python
Hadoop/Project/trained_classifier/classify.py
pallamidessi/Courses
ac5573cefc4c307c1a9f16a2c4e016a201dabece
[ "MIT" ]
null
null
null
Hadoop/Project/trained_classifier/classify.py
pallamidessi/Courses
ac5573cefc4c307c1a9f16a2c4e016a201dabece
[ "MIT" ]
null
null
null
Hadoop/Project/trained_classifier/classify.py
pallamidessi/Courses
ac5573cefc4c307c1a9f16a2c4e016a201dabece
[ "MIT" ]
null
null
null
import nltk import pickle import sys import re from nltk.classify.naivebayes import NaiveBayesClassifier word_features = [] def get_words_in_tweets(tweets): all_words = [] for (words, sentiment) in tweets: all_words.extend(words) return all_words def get_word_features(wordlist): wordlist = nlt...
21.338462
73
0.699351
6c604644e464ba16d0285b1b5ed6dc8ec8c237f9
963
py
Python
functions/map.py
jlittek/Anki-Vector
1478885955dc142c70d92c6a9e24ef9e8fd5cb18
[ "MIT" ]
null
null
null
functions/map.py
jlittek/Anki-Vector
1478885955dc142c70d92c6a9e24ef9e8fd5cb18
[ "MIT" ]
null
null
null
functions/map.py
jlittek/Anki-Vector
1478885955dc142c70d92c6a9e24ef9e8fd5cb18
[ "MIT" ]
null
null
null
from cv2 import cv2 import numpy as np import anki_vector import sys def map(robot): # Map to track the robot's path during the game: map_height = 160*3 map_widht = 100*3 blank_image = np.zeros(shape=[map_height, map_widht, 3], dtype=np.uint8) cv2.circle(blank_image, center=(150,map_height-15 *3), radius=4, co...
40.125
111
0.703011
05f700362c05f1f68901c803f751e413c9813ab7
153
py
Python
GitHub_lessons/git_test/main_project/Project_01/HalloWelt.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
GitHub_lessons/git_test/main_project/Project_01/HalloWelt.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
GitHub_lessons/git_test/main_project/Project_01/HalloWelt.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
print("Hello World!") print("(C) Markus Martin 2021") print("-------------------------------------") print("Hier wurde ein weiterer Text hinzugefügt.!")
30.6
51
0.535948
af57a482edd5e847288aa99981931e1e0e820085
459
py
Python
src/onegov/newsletter/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/newsletter/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/newsletter/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.core.upgrade import upgrade_task from onegov.core.orm.types import UTCDateTime from sqlalchemy import Column @upgrade_task('Add scheduled column') def add_...
30.6
74
0.775599
bb7980052ba938c26e69e1517b2926a1176b50b5
3,873
py
Python
skripte/python/edit_tools/abgleich_suffixe.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/abgleich_suffixe.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/abgleich_suffixe.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2014 Günter Milde. # Released without warranty under the terms of the # GNU General Public License (v. 2 or later) # :Id: $Id: $ # Abgleich der Trennstellen zwischen Woertern mit unterschiedlichem Suffix # ===========================...
27.863309
110
0.588949
bbd3531317d7986410453be2605921a3d1b5222e
804
py
Python
lib/python/qmk/converter.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
lib/python/qmk/converter.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/converter.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""Functions to convert to and from QMK formats """ from collections import OrderedDict def kle2qmk(kle): """Convert a KLE layout to QMK's layout format. """ layout = [] for row in kle: for key in row: if key['decal']: continue qmk_key = OrderedDict( ...
23.647059
64
0.44403
bbd72147e41dfc01f4ac755d33c814ab676661d9
432
py
Python
pacman-arch/test/pacman/tests/sync102.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync102.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync102.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with a newer local package" sp = pmpkg("dummy", "0.9-1") sp.files = ["bin/foo", "bin/bar"] lp = pmpkg("dummy") lp.files = ["bin/foo", "bin/baz"] self.addpkg2db("sync", sp) self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1....
24
58
0.689815
bbe41fb6db9166bab7ea19b8c111fcd980f7fbe8
6,852
py
Python
src/resources/clients/python_client/viewerstate.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/resources/clients/python_client/viewerstate.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/resources/clients/python_client/viewerstate.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import json global_viewerstate = None class Struct(object): def __init__(self): for k, v in self.__data__.items(): if isinstance(v, dict): #setattr(self, str(k), Struct(str(k),v)) #self.__dict__[str(k)] = Struct(str(k),v) #TODO: handle recursive objects self.__dict__[str(k...
34.959184
108
0.542177
bbe8afa3c760ad2c6fa60e764376c0f4cfafaad4
4,422
py
Python
Sprint-Challenge--Intro-Python/src/cityreader/cityreader.py
tobias-fyi/01_intro_python
c56645291b8bce94d8511c3277fefba1fe8add89
[ "MIT" ]
null
null
null
Sprint-Challenge--Intro-Python/src/cityreader/cityreader.py
tobias-fyi/01_intro_python
c56645291b8bce94d8511c3277fefba1fe8add89
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Sprint-Challenge--Intro-Python/src/cityreader/cityreader.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Create a class to hold a city location. Call the class "City". It should have fields for name, lat and lon (representing latitude and longitude). We have a collection of US cities with population over 750,000 stored in the file "cities.csv". (CSV stands for "comma-separated values".) In the body of the `cityreade...
34.546875
90
0.687698
5906c4698189168b47f9eff59f86d536a2c952af
966
py
Python
07_Testing/network/project4/network/migrations/0006_auto_20201112_1455.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
07_Testing/network/project4/network/migrations/0006_auto_20201112_1455.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
07_Testing/network/project4/network/migrations/0006_auto_20201112_1455.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-12 14:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('network', '0005_auto_20201112_1333'), ] operations = [ migrations.RemoveField( model_name='like', name='is_dislike',...
25.421053
49
0.548654
5948dc8ede29621c1c4fe1d35e291cf4224a1bf4
5,605
py
Python
examples/FlexibleEBNF/tests/initialize_server_test.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
examples/FlexibleEBNF/tests/initialize_server_test.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
examples/FlexibleEBNF/tests/initialize_server_test.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import asyncio import sys request_1 = """Content-Length: 4642 { "jsonrpc": "2.0", "id": 0, "method": "initialize", "params": { "processId": 3406, "rootPath": "/home/eckhart/Entwicklung/DHParser/examples/json", "rootUri": "file:///home/eckhart/Entwicklung/DHParser/examples/...
22.330677
73
0.394291
3cd8b42ac3db22d1bd16df20bf1bd8fef7012b93
382
py
Python
Pythonjunior2020/Woche2/Aufgabe_2_4_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_4_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_4_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 2.4.2, Woche 2, Block 4, Aufgabe 2 # Listen anlegen erste_Gruppe = ["Schere", "Stift", "Regenjacke","Lampe"] zweite_Gruppe = ["Regenschirm", "Schaufel", "Schreibblock"] # Liste ergaenzen Gruppe = [] Gruppe += erste_Gruppe Gruppe += zweite_Gruppe # Liste Ausgeben for i in range(len(Gruppe)) : print(Gruppe[i]) ...
22.470588
59
0.693717
e601ec72d24624471d42b06c251d1a1ed33ea39a
1,445
py
Python
tests/server/handlers/test_integrations.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
tests/server/handlers/test_integrations.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
tests/server/handlers/test_integrations.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import uuid import pytest from server import create_app INTEGRATIONS_ENDPOINT = "/v1/api/integrations" NUM_INTEGRATIONS_IN_DB = 1 @pytest.fixture def client(tmpdir): app = create_app() app.config["TESTING"] = True with app.test_client() as client: yield client def test_integrations_get_all(clie...
29.489796
90
0.7391
05116021cf4097e4d7df219d4a4460f4fac911dd
1,231
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/src/player.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/src/player.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/src/player.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Write a class to hold player information, e.g. what room they are in # currently. class Player: def __init__(self, player_name, current_room, inventory=[]): self.player_name = player_name self.current_room = current_room self.inventory = inventory def Name(self): return self.p...
31.564103
82
0.645004
e9764bc9111a2a5f0aab5940535b3a271b1fdeae
444
py
Python
pacman-arch/test/pacman/tests/ignore001.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/ignore001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/ignore001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sync with irrelevant ignored packages" package1 = pmpkg("package1") self.addpkg2db("local", package1) package2 = pmpkg("package2") self.addpkg2db("local", package2) package2up = pmpkg("package2", "2.0-1") self.addpkg2db("sync", package2up) self.option["IgnorePkg"] = ["irrelevant"] self.args = "-...
24.666667
58
0.734234
9b29510402dee189f77f237b9965dc546a24f791
4,443
py
Python
test/test_npu/test_network_ops/test_index_copy.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_index_copy.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_index_copy.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to...
43.990099
118
0.624578
9bbd1721f4ceb6ba8b41a6fba047c2c032d29c5c
1,640
py
Python
ppyt/rules/entry_rules/basic_entry_rules.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/rules/entry_rules/basic_entry_rules.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/rules/entry_rules/basic_entry_rules.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import logging from ppyt import const from ppyt.rules.entry_rules import EntryBase logger = logging.getLogger(__name__) class SimpleEntry(EntryBase): """(conditionsを覗いて)条件なしで仕掛けるクラスです。""" _findkey = '条件なし' # entry_ruleを一意に特定できる名前をつけます。 def _setup(self): """初期化時に呼ばれます。パラメータ類を設定し...
26.031746
52
0.621341
b5e96210fbb5caf8db79538e22db0c0e0c31ced9
1,885
py
Python
research/cv/CGAN/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/CGAN/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/CGAN/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
34.907407
100
0.691247
bd03db7110a1bb4492517d243a74556c543ab91a
1,073
pyde
Python
sketches/spirograph/spirograph.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/spirograph/spirograph.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/spirograph/spirograph.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
r1 = 300.0 # Radius großer Kreis (width/2) r2 = 110.0 # Radius innerer Kreis r3 = 5.0 # Radius malender »Punkt« p = 0.75 # Großer Kreis x1 = 0 y1 = 0 t = 0 points = [] def setup(): size(600, 600) this.surface.setTitle("Spirograph") def draw(): global r1, r2, x1, y1, t, p, points translate(width...
21.46
48
0.522833
1fbe9bef592b54fae7c258430c5c2ebc423c2d4f
2,059
py
Python
K-means/KMeansWithBandWidth.py
moeinmd1380/MachineLearning
3f5490fb379a217be5bca993b6e3983d151db11c
[ "Unlicense" ]
null
null
null
K-means/KMeansWithBandWidth.py
moeinmd1380/MachineLearning
3f5490fb379a217be5bca993b6e3983d151db11c
[ "Unlicense" ]
null
null
null
K-means/KMeansWithBandWidth.py
moeinmd1380/MachineLearning
3f5490fb379a217be5bca993b6e3983d151db11c
[ "Unlicense" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt class KMeansWithBandWidth: def __init__(self, x, bandWidth): self.x = x self.r = bandWidth self.centers = x self.categorize = {} @staticmethod def uniqueNewCenters(centers): uniqueCenters = [] for i in cent...
30.279412
68
0.549296
f1a19a62b4f211cd9414c7c0411dee2297f03238
666
py
Python
gestionNeuroLab_Panel_de_Control/models.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
null
null
null
gestionNeuroLab_Panel_de_Control/models.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
null
null
null
gestionNeuroLab_Panel_de_Control/models.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
null
null
null
# GESTION PANEL DE CONTROL from django.db import models #from gestionNeuroLab_Panel_de_Control import gestionTomaDatos, gestionProcesamientoDatos, gestionProtocolos_y_Estudios, gestionResultadosProtocolo, gestionPlanificacion_y_Desarrollo_Proyectos_Nuevos # Create your models here. class APP_TableroControl(models.Mod...
55.5
199
0.837838
7b116c4beed293fad998b66f7424372e6ae9d933
1,128
py
Python
solutions/py_engine_esp32_demo/build_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
solutions/py_engine_esp32_demo/build_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
solutions/py_engine_esp32_demo/build_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import os import platform import argparse import sys import shutil cur_os = platform.system() arch = platform.architecture() path = '' magic = '0xefefefef' if cur_os == 'Linux': if '64bit' in arch: path = 'linux64' else: path = 'linux32' elif cur_os == 'Darwin': path...
31.333333
134
0.676418
9e28dd09f6bc48a7436ab7f5adc0ee9e299e9079
1,437
py
Python
debtor_editor.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
debtor_editor.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
debtor_editor.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
from PyQt5 import uic from PyQt5.QtWidgets import QDialog, QMessageBox from objects import Debtor class DebtorEditor(QDialog): def __init__(self, debtors: list, debtor: Debtor = None): super(DebtorEditor, self).__init__() uic.loadUi("designer/add_debtor.ui", self) self.id = 0 self...
31.23913
90
0.629088
7b91f41249f8b90e3f3813c5d37a8a82f6bc8695
8,641
py
Python
kiosk/migrations/0001_initial.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
kiosk/migrations/0001_initial.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
kiosk/migrations/0001_initial.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-09-20 13:56 from __future__ import unicode_literals from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): ...
46.708108
164
0.610925
c8f4a5fed2037a88b4c35e0ecd4b687dce90acc4
76
py
Python
python-practice/tempCodeRunnerFile.py
refinec/refinec-keep-learning
f6753fee81b5c3f2c240ec37ead54e967d975d01
[ "MIT" ]
null
null
null
python-practice/tempCodeRunnerFile.py
refinec/refinec-keep-learning
f6753fee81b5c3f2c240ec37ead54e967d975d01
[ "MIT" ]
null
null
null
python-practice/tempCodeRunnerFile.py
refinec/refinec-keep-learning
f6753fee81b5c3f2c240ec37ead54e967d975d01
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # coding=utf-8 # !/usr/bin/Python3 print(type(int))
15.2
23
0.592105
b5917c3639dd496ed9c2b42141ba599e5c409431
947
py
Python
leetcode/207-Course-Scedule/CourseSchedueI_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/207-Course-Scedule/CourseSchedueI_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/207-Course-Scedule/CourseSchedueI_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' Based on http://www.cnblogs.com/grandyang/p/4484571.html ''' class Solution: # @param {integer} numCourses # @param {integer[][]} prerequisites # @return {boolean} def canFinish(self, numCourses, prerequisites): indegrees = [0] * numCourses graphs = [set() for _ in ...
31.566667
110
0.521647
a97b1bfa5bfc89f5e4bdd5b56fbc3aa0654483ed
976
py
Python
leetcode/145-Binary-Tree-Postorder-Traversal/BinTreePostTraversal_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/145-Binary-Tree-Postorder-Traversal/BinTreePostTraversal_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/145-Binary-Tree-Postorder-Traversal/BinTreePostTraversal_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param root, a tree node # @return a list of integers def recursive_postorder(self, root, list): if root: self.postorder(root.left, list) self.postorder(root.right, list) list.append(root.val) def iterative_postorder(self, root, list): ...
32.533333
115
0.510246
8d19323ef8641014986af18c1fd9c9d119bdf63b
25,342
py
Python
backend/app/core/solver/feeback_generator.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/core/solver/feeback_generator.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/core/solver/feeback_generator.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import Dict, List, Tuple, Union from app.core.solver.feedback_config import FeedbackConfig from app.core.solver.task_result_factory import TaskResultFactory from app.schemas.solver_result import LineResult, PointResult, PolygonResult from app.schemas.task import ( AnnotationFeedback, SelectI...
41.680921
120
0.57892
570cfde0c1a87498f0c500d6d0bac3e19dfb2990
15,607
py
Python
Python/pyBitwiseAutomation/BitwiseDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/BitwiseDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/BitwiseDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
# BitwiseDevice.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person or...
35.309955
128
0.568463
f51474af18f80c64c7af277ea833cc8e9c953b61
3,357
py
Python
mitglieder/tests/test_views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/mitglieder/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/mitglieder/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.test import TestCase, Client from django.urls import reverse, resolve from django.contrib.auth import get_user_model import json from mitglieder.models import Mitglied, MitgliedAmt, MitgliedMail class TestViews(TestCase): def setUp(self): self.client = Client() # Hinzufügen von Admin...
36.096774
90
0.661901
f542c9489579de63751612a725633a7c168f7ab8
5,259
py
Python
Benchmarks/Exmouth_Gulf/full_model/python_script.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
Benchmarks/Exmouth_Gulf/full_model/python_script.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
Benchmarks/Exmouth_Gulf/full_model/python_script.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
import OpenGeoSys import vtk as vtk import numpy as np from math import pi, sin import os from scipy.interpolate import interp1d #seaward_salinity = 0.05 #tide_daily_amplitude = .7 #tide_monthly_amplitude = .35 #tide_yearly_amplitude = .2 #tide_daily_period = 60 * 60 * 12. #tide_monthly_period = 60. * 60 * 24 * 31 /...
29.544944
78
0.637193
f581670fb94ca2ca2087991d0c1056c4a46d307e
287
py
Python
HackerP/introduction/print_function.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/introduction/print_function.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/introduction/print_function.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
# print_function # Created by JKChang # 14/08/2018, 11:01 # Tag: # Description: https://www.hackerrank.com/challenges/python-print/problem if __name__ == '__main__': n = int(input()) print(''.join([str(x) for x in range(1, n + 1)])) # print(*range(1,int(input())+1),sep='')
26.090909
73
0.634146
fdd8f0a7490ec59fe4e08c77cdfb5c039b1d9ff0
9,906
py
Python
language/parser.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
1
2021-03-05T07:44:05.000Z
2021-03-05T07:44:05.000Z
language/parser.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
3
2017-06-04T03:01:31.000Z
2017-08-04T04:04:37.000Z
language/parser.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
null
null
null
from __future__ import print_function, division import os import sys sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "bigfatnoob" from language.grammar import grammar from parsimonious.nodes import NodeVisitor from language.template import Model, O, Decision from utils.lib import M...
27.214286
96
0.641732
8bee792f0c28bc6d2300f3d6b6252d5c1af66c0e
1,621
py
Python
bot/exts/moderation/modlog.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/exts/moderation/modlog.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/exts/moderation/modlog.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
from datetime import datetime import discord from discord.ext import commands from bot.bot import Bot from bot.constants import Colours from bot.database.models import Guild class ModLog(commands.Cog): def __init__(self, bot: Bot): self.bot = bot @commands.Cog.listener() async def on_message_de...
28.946429
86
0.640345
e3276ff249e741a061ca24242060f8f4ae6a4c80
764
py
Python
xmlns/rev/status.py
danja/danja.github.io
26662fdf910b8121e14b8470fc4abb94707c574a
[ "Apache-2.0" ]
null
null
null
xmlns/rev/status.py
danja/danja.github.io
26662fdf910b8121e14b8470fc4abb94707c574a
[ "Apache-2.0" ]
null
null
null
xmlns/rev/status.py
danja/danja.github.io
26662fdf910b8121e14b8470fc4abb94707c574a
[ "Apache-2.0" ]
null
null
null
import urllib u="""http://xmlarmyknife.org/api/rdf/sparql/query?default-graph-uri=http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2Findex.rdf&query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0APREFIX+vs%3A+%3Chttp%3...
191
723
0.747382
9a0ffc9e976abfc2b5f3dbf0aaf574c7db78ed44
10,761
py
Python
Contents/Code/__init__.py
Y4nek/FilmWeb.bundle
83aba325fd465268b4fbf37f09e456a0f2623843
[ "MIT" ]
null
null
null
Contents/Code/__init__.py
Y4nek/FilmWeb.bundle
83aba325fd465268b4fbf37f09e456a0f2623843
[ "MIT" ]
null
null
null
Contents/Code/__init__.py
Y4nek/FilmWeb.bundle
83aba325fd465268b4fbf37f09e456a0f2623843
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time, urllib, re, unicodedata FILMWEB = 'http://www.filmweb.pl' FILMWEB_SEARCH = 'http://www.filmweb.pl/search/film?q=%s&startYear=%s&endYear=%s&startRate=&endRate=&startCount=&endCount=&sort=TEXT_SCORE&sortAscending=false' class FilmWebStandaloneAgent(Agent.Movies): name = 'FilmWeb.pl...
34.601286
179
0.648267
3256b191616e43ec728311f24433ca148d61c63a
611
py
Python
skimind/kernel/pdfManag/tests/test_pdfmanag.py
NathBangwa/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
1
2020-11-13T18:30:47.000Z
2020-11-13T18:30:47.000Z
skimind/kernel/pdfManag/tests/test_pdfmanag.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
5
2020-11-13T18:16:48.000Z
2021-09-08T01:04:59.000Z
skimind/kernel/pdfManag/tests/test_pdfmanag.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
null
null
null
import unittest from .. import data_extractor from .. import main from .. import skiconfig from .. import config import os file_name = filter(lambda filename: '.pdf' in filename, os.listdir(config.PDF_SAMPLES_DIR)) file_name = list(file_name)[0] class TestPdfManag(unittest.TestCase): def setUp(self): ...
19.09375
91
0.672668
089fbfbea28b4342a0bc763f4a521280710f579b
2,034
py
Python
skimind/kernel/learningModels/config.py
NathBangwa/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
1
2020-11-13T18:30:47.000Z
2020-11-13T18:30:47.000Z
skimind/kernel/learningModels/config.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
5
2020-11-13T18:16:48.000Z
2021-09-08T01:04:59.000Z
skimind/kernel/learningModels/config.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
null
null
null
#-*-coding: utf-8 -*- # skimind.config from . import skiconfig # os import os # files import json #--------------------------------------------------------------------------- # Checkpoint backup #--------------------------------------------------------------------------- BACKUP_CHECKPOINT = "BACKUP" PATH_BACKUP...
24.804878
84
0.444936
3ecc470f253bbe7c064b16ded0f68ee4e1ff6a90
706
py
Python
scripts/component_graph/test/server/graph/test_component_link.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/test/server/graph/test_component_link.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/test/server/graph/test_component_link.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from server.graph.component_link import * class TestComponentLink(unittest.TestCase): def test_export(self): ...
30.695652
80
0.691218
3ef54c2d826d1b30da850825d073f8d67a3ad83d
400
py
Python
HackerRank/30-Days-of-Code/Day 2: Operators/operators.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
30-Days-of-Code/Day 2: Operators/operators.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
30-Days-of-Code/Day 2: Operators/operators.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
#!/bin/python3 import sys if __name__ == "__main__": meal_cost = float(input().strip()) tip_percent = int(input().strip()) tax_percent = int(input().strip()) tip = meal_cost * (tip_percent / 100) tax = meal_cost * (tax_percent / 100) total_cost = meal_cost + tip + tax total_cost = round(...
23.529412
66
0.6425
f5c839a4fdddc78069c05a2cd3da360c87682c56
1,325
py
Python
module/index.py
abraxas767/ezencode
14d870a708c4da1389858f5265c36b930a0e5176
[ "MIT" ]
null
null
null
module/index.py
abraxas767/ezencode
14d870a708c4da1389858f5265c36b930a0e5176
[ "MIT" ]
null
null
null
module/index.py
abraxas767/ezencode
14d870a708c4da1389858f5265c36b930a0e5176
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import sys sys.path.insert(0, "./encodings/huffman/") from huffman_encoding import HuffmanEncoding sys.path.insert(0, "./encodings/morse/") from morse_encoding import MorseEncoding # get users encryption descision def ask() -> None: print("Do you want to use [confirm with ENTER]") prin...
23.660714
58
0.546415
f5ca42e0f7befaa6a96b957cac92d740ecebdaf5
718
py
Python
project/services/event_suggestion.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/services/event_suggestion.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/services/event_suggestion.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from sqlalchemy import and_ from sqlalchemy.orm import load_only from project import db from project.models import EventReviewStatus, EventSuggestion def insert_event_suggestion(event_suggestion): event_suggestion.review_status = EventReviewStatus.inbox db.session.add(event_suggestion) def get_event_review...
29.916667
87
0.779944
722056bb9a210b5dcad8d11b89f127c98cdca598
144
py
Python
ALBERT/seed_all.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
ALBERT/seed_all.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
ALBERT/seed_all.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
import torch import numpy as np def seed_all(seed): torch.cuda.manual_seed(seed) torch.manual_seed(seed) np.random.seed(seed)
20.571429
33
0.701389
263f6bb6971007635b589e1b27298d5633b6a8c3
3,659
py
Python
spider_django/django_app/migrations/0001_initial.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
spider_django/django_app/migrations/0001_initial.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
spider_django/django_app/migrations/0001_initial.py
Tiangewang0524/zzu_spider
eddd534f6a7bfb39eec5a7e240f830550b2285cb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-06 01:42 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TSpiderConf', fields=[ ('id', models.AutoFi...
50.123288
114
0.573927
cd01ce05221c212014b6ef5905b4ae6bdda67f6d
6,752
py
Python
repo/plugin.video.tagesschau/tagesschau.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.tagesschau/tagesschau.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.tagesschau/tagesschau.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# -*- coding: utf-8 -*- # Copyright 2011 Jörn Schumacher, Henning Saul # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
39.48538
127
0.657287
e45d44254baaea8e67d0f0ddbfef195025be8dfb
1,374
py
Python
angstrom/2021/web/Spoofy/app.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2021/web/Spoofy/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2021/web/Spoofy/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from flask import Flask, Response, request import os from typing import List FLAG: str = os.environ.get("FLAG") or "flag{fake_flag}" with open(__file__, "r") as f: SOURCE: str = f.read() app: Flask = Flask(__name__) def text_response(body: str, status: int = 200, **kwargs) -> Response: return Response(body,...
32.714286
91
0.609898
39cfa91570a89d1aab1c7aad1d1e91a7674966ab
9,667
py
Python
autojail/config/shmem.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/config/shmem.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/config/shmem.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
# type: ignore import copy from typing import Optional, Tuple from ..model import ( Board, GroupedMemoryRegion, JailhouseConfig, MemoryRegion, PCIDevice, ) from .passes import BasePass class ConfigSHMemRegionsPass(BasePass): """Set flags for shmem regions according to global config""" d...
34.402135
100
0.552188
84426a4dcd2ce66b756b62720a52044e8f54585b
2,921
py
Python
Vorlesungsinhalte/2020-10-23_MauMau/test.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-23_MauMau/test.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-23_MauMau/test.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
2
2020-10-08T18:08:59.000Z
2020-10-29T19:53:34.000Z
import maumau def test_mischen(): ausgangsstapel = [("Pik", "Dame"), ("Kreuz", "König")] teststapel = ausgangsstapel.copy() maumau.mischen(teststapel) # Differenzstapel berechnen: # Enthält alle Karten, die nur in einem von ausgangsstapel und teststapel enthalten sind. differenzstapel = [k f...
32.820225
101
0.641561
4b4aad784fa12b42dde96564dfefdc8294c1c15d
2,992
py
Python
test/test_extractor.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
test/test_extractor.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
test/test_extractor.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import os.path import shutil import tarfile from pathlib import Path import pytest from cleo import CommandTester from devtools import debug from autojail.extract import BoardInfoExtractor, DeviceTreeExtractor from autojail.main import AutojailApp test_data_folder = os.path.join(os.path.dirname(__file__), "test_data...
29.048544
80
0.724933
4bc2f67fd60c62feb2b3218694a5accaff7d2177
1,353
py
Python
tools/pythonpkg/tests/fast/pandas/test_create_table_from_pandas.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/pandas/test_create_table_from_pandas.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/pandas/test_create_table_from_pandas.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import pytest import duckdb import pandas as pd import numpy as np import sys def assert_create(internal_data, expected_result, data_type): conn = duckdb.connect() df_in = pd.DataFrame(data=internal_data, dtype=data_type) conn.execute("CREATE TABLE t AS SELECT * FROM df_in") result = conn.execute("SE...
34.692308
75
0.691057
29b72030baa652e65ec9918245160f9842aa0d32
149
py
Python
inn_checker/inn_check/apps.py
bmu0/inn_checker
3c5f736c179af5c3a4bb80a5c403aee0969ea5e9
[ "MIT" ]
null
null
null
inn_checker/inn_check/apps.py
bmu0/inn_checker
3c5f736c179af5c3a4bb80a5c403aee0969ea5e9
[ "MIT" ]
null
null
null
inn_checker/inn_check/apps.py
bmu0/inn_checker
3c5f736c179af5c3a4bb80a5c403aee0969ea5e9
[ "MIT" ]
null
null
null
from django.apps import AppConfig class InnCheckConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'inn_check'
21.285714
56
0.765101
29d41fd735cd807e25d5c8f0ef9d4aaa334fdc30
950
py
Python
src/server/app/annotations/token/token_decrypt.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/annotations/token/token_decrypt.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/annotations/token/token_decrypt.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
import flask from app.endpoints.authentication.auth_service import AuthService from flask import request from setup import fernet authService = AuthService() def verify_decrypted_token(func): def wrapper(*args, **kwargs): jwt_token_decrypted(func) return func(*args, **kwargs) return wrapper ...
25
75
0.710526
8a4d2ca7e2540d1555d68e83301b6340355296f2
1,116
py
Python
resources/mechanics_lib/ELibrary.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/ELibrary.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/ELibrary.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from EDevice import EDevice from EModule import EModule # Define some devices and modules to use digitalLED = EDevice("Digital LED", "D_O") analogLED = EDevice("Analog LED", "A_O") digitalSensor = EDevice("Digital Sensor", "D_I") analogSensor = EDevice("Analog Sensor", "A_I") servo = EDevice("Servo", "SERVO") jointSe...
29.368421
71
0.697133
76d8dbbbff8e5a571049fd2265d9d6c6a42651bf
4,969
py
Python
source/river-0.1.0/contrib/layout.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/river-0.1.0/contrib/layout.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/river-0.1.0/contrib/layout.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # # Fibonacci sprial layout for river, implemented in simple python. Reading this # code should help you get a basic understanding of how to use river-layout to # create a basic layout generator. # # This depends on pywayland: https://github.com/flacjacket/pywayland/ # # Q: Wow, this looks compli...
34.748252
91
0.6774
7c7a4b7e449e96885751940269c85fe1881a96df
44,242
py
Python
feedcrawler/sites/shared/content_all.py
rix1337/FeedCrawler
6c104c39f1bd45e5d49c02c90bb8d9fd35f9709e
[ "MIT" ]
16
2021-04-06T07:37:18.000Z
2022-03-27T15:05:32.000Z
feedcrawler/sites/shared/content_all.py
rix1337/FeedCrawler
6c104c39f1bd45e5d49c02c90bb8d9fd35f9709e
[ "MIT" ]
17
2021-06-09T10:37:49.000Z
2022-03-31T07:29:36.000Z
feedcrawler/sites/shared/content_all.py
rix1337/FeedCrawler
6c104c39f1bd45e5d49c02c90bb8d9fd35f9709e
[ "MIT" ]
3
2021-05-22T13:49:57.000Z
2022-01-05T11:15:47.000Z
# -*- coding: utf-8 -*- # FeedCrawler # Projekt von https://github.com/rix1337 import hashlib import re from imdb import IMDb from feedcrawler import internal from feedcrawler.common import check_is_site from feedcrawler.common import check_valid_release from feedcrawler.common import fullhd_title from feedcrawler.c...
47.572043
159
0.473306
7c807b1dfab62ffdcefe06eceb9de29e317debdc
2,431
py
Python
oneflow/python/test/ops/test_multi_square_sum.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/ops/test_multi_square_sum.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/test/ops/test_multi_square_sum.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
30.772152
86
0.691896