hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
03bd2bfd0c61d2a79ebac5bc28f8f5b65ddc6392
5,154
py
Python
conveyorclient/v1/plans.py
Hybrid-Cloud/conveyorclient
329fe37ef4fb7229e5bec9575a86c06e5d4da934
[ "Apache-2.0" ]
null
null
null
conveyorclient/v1/plans.py
Hybrid-Cloud/conveyorclient
329fe37ef4fb7229e5bec9575a86c06e5d4da934
[ "Apache-2.0" ]
null
null
null
conveyorclient/v1/plans.py
Hybrid-Cloud/conveyorclient
329fe37ef4fb7229e5bec9575a86c06e5d4da934
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Huawei, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.828025
78
0.569461
4,364
0.846721
0
0
0
0
0
0
2,206
0.428017
03bd7fc88e1ab0df9ab78abcf865b46a9d55c33e
1,931
py
Python
submissions/Miner/myCSPs.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
submissions/Miner/myCSPs.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
submissions/Miner/myCSPs.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
import csp rgb = ['R', 'G', 'B'] d2 = {'A': rgb, 'B': rgb, 'C': ['R'], 'D': rgb} v2 = d2.keys() n2 = {'A': ['B', 'C', 'D'], 'B': ['A', 'C', 'D'], 'C': ['A', 'B'], 'D': ['A', 'B']} def constraints(A, a, B, b): if A == B: # e.g. NSW == NSW return True if a == b: # e.g. W...
21.943182
87
0.51942
0
0
0
0
0
0
0
0
843
0.436561
03be4922cf34a2e0414b43d8fd34bbb658de3dc7
247
py
Python
sample/scoping/__init__.py
diko316/python-sample
f8a61da465bc1b3589dabe29dac72a8c25ce0239
[ "MIT" ]
null
null
null
sample/scoping/__init__.py
diko316/python-sample
f8a61da465bc1b3589dabe29dac72a8c25ce0239
[ "MIT" ]
null
null
null
sample/scoping/__init__.py
diko316/python-sample
f8a61da465bc1b3589dabe29dac72a8c25ce0239
[ "MIT" ]
null
null
null
"""Nothing special, just calling sample.test.show()""" from sample.scoping import function def run(): print """ Scoping 1. function run """ function.run1() print """ 2. function run """ function.run2()
11.227273
54
0.57085
0
0
0
0
0
0
0
0
133
0.538462
03bf606f96d7db50104b5beeafeafef7cf2ccc0a
2,504
py
Python
bot.py
Stienvdh/IEToolie
bfa5cb35cdb63a4dceba935c5098e6ab6729228c
[ "BSD-Source-Code" ]
null
null
null
bot.py
Stienvdh/IEToolie
bfa5cb35cdb63a4dceba935c5098e6ab6729228c
[ "BSD-Source-Code" ]
null
null
null
bot.py
Stienvdh/IEToolie
bfa5cb35cdb63a4dceba935c5098e6ab6729228c
[ "BSD-Source-Code" ]
null
null
null
""" Copyright (c) 2021 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of the material herein must be in accordance with t...
32.519481
72
0.708866
0
0
0
0
1,183
0.472067
0
0
1,401
0.559058
03c0d7a2bce24dca073f581faa19144a145e5531
1,174
py
Python
extras/Roll_A_Dice_Or_Two.py
namangoel05/area4
69be5dcb24a14d8e5be9e88d2deb72fdc6510136
[ "MIT" ]
null
null
null
extras/Roll_A_Dice_Or_Two.py
namangoel05/area4
69be5dcb24a14d8e5be9e88d2deb72fdc6510136
[ "MIT" ]
null
null
null
extras/Roll_A_Dice_Or_Two.py
namangoel05/area4
69be5dcb24a14d8e5be9e88d2deb72fdc6510136
[ "MIT" ]
null
null
null
from random import randint import time import random def One_OR_Two(): #Right here its saying that for number 1 press it will roll one dice And when number 2 pressed it will roll 2 and ect. if input("Do you want 1 dice or 2? \n\1 for 1(Die) \n2 for 2(Dice) :") == '1': print("The dice rolled",random.rand...
58.7
205
0.682283
0
0
0
0
0
0
0
0
845
0.719761
03c1692548de12b27e2465162cb0ac18bb61a489
5,224
py
Python
stats_eddie/SVM.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
2
2019-04-01T00:54:39.000Z
2021-06-22T18:02:47.000Z
stats_eddie/SVM.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
null
null
null
stats_eddie/SVM.py
dalakada/TwiCSv2
40672a99a201f6e2aab9dd085e1f4a29e8253f3b
[ "MIT" ]
2
2018-06-20T14:50:03.000Z
2020-08-27T01:55:34.000Z
# coding: utf-8 import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn import svm from scipy import stats class SVM1(): def __init__(self,train): #train the algorithm once self.train = pd.read_csv(train,delimiter=",",sep='\s*,\s*') self.tr...
20.730159
120
0.626723
3,265
0.625
0
0
0
0
0
0
3,587
0.686639
03c1918314d95df834d6cdd5e651896610e70399
836
py
Python
pyviews/rendering/tests/setup_tests.py
eumis/pyviews
9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b
[ "MIT" ]
6
2018-02-16T14:37:53.000Z
2020-03-20T13:22:17.000Z
pyviews/rendering/tests/setup_tests.py
eumis/pyviews
9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b
[ "MIT" ]
null
null
null
pyviews/rendering/tests/setup_tests.py
eumis/pyviews
9f3a3a72eddda2bd33bbb16b45d9fa4f9ebfcc0b
[ "MIT" ]
1
2019-03-15T12:47:42.000Z
2019-03-15T12:47:42.000Z
from os.path import abspath from injectool import resolve, SingletonResolver from pytest import mark from pyviews.rendering import RenderingPipeline from pyviews.rendering.setup import use_rendering @mark.usefixtures('container_fixture') class UseRenderingTests: @staticmethod def test_views_folder(): ...
26.967742
92
0.721292
593
0.70933
0
0
632
0.755981
0
0
188
0.22488
03c266ba0c3fa77c77f277fa9c8c15adc29fe57b
7,166
py
Python
util.py
sekunder/ergm
b60bc2b1cb64d2969bcab2dbe75511eb732a113d
[ "CC0-1.0" ]
2
2020-12-14T09:13:35.000Z
2021-03-22T07:28:37.000Z
util.py
sekunder/ergm
b60bc2b1cb64d2969bcab2dbe75511eb732a113d
[ "CC0-1.0" ]
null
null
null
util.py
sekunder/ergm
b60bc2b1cb64d2969bcab2dbe75511eb732a113d
[ "CC0-1.0" ]
null
null
null
""" utility functions for ergm """ import numpy as np import datetime import sys import networkx as nx from itertools import combinations # from scipy import sparse def log_msg(*args, out=sys.stdout, **kwargs): """Print message m with a timestamp if out is not None.""" if out: print(datetime.datetime...
37.915344
145
0.652107
0
0
491
0.068518
0
0
0
0
4,405
0.614708
03c2eb282e47a2c54bf098cbd77a6d4905f87e9b
533
py
Python
deneme.py
github21yandex/Calismalarim-Python
1dad342b13c3e4000d5dd8cb79d776e3fc665e3a
[ "Unlicense" ]
null
null
null
deneme.py
github21yandex/Calismalarim-Python
1dad342b13c3e4000d5dd8cb79d776e3fc665e3a
[ "Unlicense" ]
null
null
null
deneme.py
github21yandex/Calismalarim-Python
1dad342b13c3e4000d5dd8cb79d776e3fc665e3a
[ "Unlicense" ]
null
null
null
import sys import locale locale.setlocale(locale.LC_ALL, "tr_TR.utf-8") cumle = "merhaba\tiyi\tmisiN?" sesli="ıouieaüöIOUİEAÜÖ" sesliler ="" sessizler="" gecici="" tur = "ğıüşöçĞİÜŞÖÇ" ing = "giusocGIUSOC" liste = ["ali", "veli", "samet"] liste = [[1,2,3],[4,5,6],[7,8,9,10]] liste2 = [1, 2, 3, "mehmed"] w = op...
14.805556
52
0.60788
0
0
0
0
0
0
0
0
225
0.407609
03c346bda5036c16e0584f1e697773c94ff92837
1,377
py
Python
benchmark.py
btclib-org/btclib_libsecp256k1
b7bdd0df121c9c674edc88a55ea6cadad75dafef
[ "MIT" ]
null
null
null
benchmark.py
btclib-org/btclib_libsecp256k1
b7bdd0df121c9c674edc88a55ea6cadad75dafef
[ "MIT" ]
null
null
null
benchmark.py
btclib-org/btclib_libsecp256k1
b7bdd0df121c9c674edc88a55ea6cadad75dafef
[ "MIT" ]
null
null
null
import time import btclib.ecc.dsa import btclib.ecc.ssa import coincurve from btclib.hashes import reduce_to_hlen from btclib.to_pub_key import pub_keyinfo_from_prv_key import btclib_libsecp256k1.dsa import btclib_libsecp256k1.ssa prvkey = 1 pubkey_bytes = pub_keyinfo_from_prv_key(prvkey)[0] msg_bytes = reduce_to_h...
25.036364
87
0.777778
0
0
0
0
0
0
0
0
37
0.02687
03c353c49d50ef67c6d81977950a525f9133c41a
904
py
Python
face_pose_dataset/estimation/interface.py
samuelbaltanas/face-pose-dataset
84c864c155ac7c0b231032d403c0e2b2bc10b871
[ "MIT" ]
1
2020-06-18T07:58:46.000Z
2020-06-18T07:58:46.000Z
face_pose_dataset/estimation/interface.py
samuelbaltanas/face-pose-dataset
84c864c155ac7c0b231032d403c0e2b2bc10b871
[ "MIT" ]
null
null
null
face_pose_dataset/estimation/interface.py
samuelbaltanas/face-pose-dataset
84c864c155ac7c0b231032d403c0e2b2bc10b871
[ "MIT" ]
null
null
null
import abc import numpy as np from face_pose_dataset import core class Estimator(abc.ABC): def run(self, frame: np.ndarray) -> core.Angle: raise NotImplementedError("Estimator is an abstract class") def preprocess_image(self, frame: np.ndarray, bbox: np.ndarray) -> np.ndarray: """ Proceed w...
26.588235
82
0.622788
834
0.922566
0
0
0
0
0
0
509
0.563053
03c4437ca693f17d281bdd30bb65c08f78eb2db5
7,392
py
Python
hah_classification/data.py
jieguangzhou/AIChallenger_SentimentAnalysis
4dcd10c2e12bd266fb19c6b5cf50346766a4a37b
[ "MIT" ]
null
null
null
hah_classification/data.py
jieguangzhou/AIChallenger_SentimentAnalysis
4dcd10c2e12bd266fb19c6b5cf50346766a4a37b
[ "MIT" ]
null
null
null
hah_classification/data.py
jieguangzhou/AIChallenger_SentimentAnalysis
4dcd10c2e12bd266fb19c6b5cf50346766a4a37b
[ "MIT" ]
null
null
null
from collections import Counter import logging import random import numpy as np import jieba from hah_classification.develop.IO import read_file, write_file import pandas as pd import os logger = logging.getLogger(__file__) logger.setLevel(logging.INFO) PAD_IDX = 0 UNK_IDX = 1 COLUMNS = ['location_traffic_convenienc...
36.235294
115
0.645157
0
0
1,652
0.220384
0
0
0
0
1,449
0.193303
03c52c6e87b48e4cd8e5aedb1e34b9798cbe5aba
5,458
py
Python
lumapps/cli.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
null
null
null
lumapps/cli.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
1
2018-12-12T10:06:52.000Z
2018-12-12T10:31:56.000Z
lumapps/cli.py
aureldent/lumapps-sdk
9ee7ddbb0e5c94ec098f1d6c053bfd82698c2e8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function, unicode_literals import sys import argparse import json from lumapps.utils import ApiCallError, get_conf, set_conf, FILTERS from lumapps.client import ApiClient import logging LIST_CONFIGS = "***LIST_CONFIGS***" def parse_args(): s = "" for f in F...
30.662921
88
0.601869
0
0
0
0
0
0
0
0
1,209
0.22151
03c75ce6159591454805a4dc5c10c17e271ffe14
8,397
py
Python
webpreview/previews.py
taghash/webpreview
b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5
[ "MIT" ]
null
null
null
webpreview/previews.py
taghash/webpreview
b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5
[ "MIT" ]
2
2020-07-02T23:20:05.000Z
2020-07-03T07:26:36.000Z
webpreview/previews.py
taghash/webpreview
b86cb6d547ddbca40fe69ca59c11a0c6e058f6d5
[ "MIT" ]
1
2022-03-05T06:33:38.000Z
2022-03-05T06:33:38.000Z
import re import requests from requests.exceptions import * from bs4 import BeautifulSoup from .excepts import * from .helpers import process_image_url class PreviewBase(object): """ Base for all web preview. """ def __init__(self, url = None, properties = None, timeout=None, headers=None, content=N...
40.960976
150
0.617959
7,038
0.838156
0
0
452
0.053829
0
0
2,941
0.350244
03c782e3bc4c98e44210318ac8cb634e86e76e91
13,832
py
Python
publicAPI/crest_endpoint.py
EVEprosper/ProsperAPI
2d25b9210d32ca777204b1dddb56848d7075dd85
[ "MIT" ]
13
2017-03-27T13:10:52.000Z
2020-07-30T09:33:11.000Z
publicAPI/crest_endpoint.py
EVEprosper/ProsperAPI
2d25b9210d32ca777204b1dddb56848d7075dd85
[ "MIT" ]
19
2016-11-14T00:58:54.000Z
2018-06-11T16:54:25.000Z
publicAPI/crest_endpoint.py
EVEprosper/ProsperAPI
2d25b9210d32ca777204b1dddb56848d7075dd85
[ "MIT" ]
5
2017-04-19T01:12:06.000Z
2021-03-07T02:23:45.000Z
"""crest_endpoint.py: collection of public crest endpoints for Prosper""" import sys from os import path from datetime import datetime from enum import Enum import logging import ujson as json from flask import Flask, Response, jsonify from flask_restful import reqparse, Api, Resource, request import publicAPI.forec...
31.579909
74
0.52393
10,726
0.775448
0
0
231
0.0167
0
0
3,070
0.221949
03c7c1d39078369622ad7852e9cd54cf976ecdc8
1,536
py
Python
script-diagnostico-covid19/conexao_db.py
am1701/estudos-python
67b82161782a6862c3a81ab59ee3d92d7c262b36
[ "MIT" ]
null
null
null
script-diagnostico-covid19/conexao_db.py
am1701/estudos-python
67b82161782a6862c3a81ab59ee3d92d7c262b36
[ "MIT" ]
null
null
null
script-diagnostico-covid19/conexao_db.py
am1701/estudos-python
67b82161782a6862c3a81ab59ee3d92d7c262b36
[ "MIT" ]
null
null
null
#!/bin/python3 import sys from time import sleep try: import mysql.connector except: print('''Você precisa do modulo mysql_connector instalado, no README.md tem todos os passos necessários para a instalação deste modulo.''') print('='*30) pritn("O script irá encerrar em 3 segundos. Bye!!") sleep(3) sys.exit(1)...
22.925373
172
0.673177
0
0
0
0
0
0
0
0
663
0.43024
03cf66408abae7099aee97c7a650861c8b31d19d
3,233
py
Python
2021/day_18.py
Javitronxo/AdventOfCode
3a31544824881d353d899bc820d92b005af6b4eb
[ "MIT" ]
1
2021-12-03T14:37:28.000Z
2021-12-03T14:37:28.000Z
2021/day_18.py
Javitronxo/AdventOfCode
3a31544824881d353d899bc820d92b005af6b4eb
[ "MIT" ]
null
null
null
2021/day_18.py
Javitronxo/AdventOfCode
3a31544824881d353d899bc820d92b005af6b4eb
[ "MIT" ]
null
null
null
import collections import itertools from dataclasses import dataclass from typing import List @dataclass class Node: value: int depth: int def add_numbers(number_one: List[Node], number_two: List[Node]) -> List[Node]: new_number = [ Node(node.value, node.depth + 1) for node in number_one...
33.677083
99
0.519332
41
0.012682
0
0
52
0.016084
0
0
167
0.051655
03d1137912ab50699b6179c220fe8310bb178774
4,428
py
Python
server.py
Celnardur/simple_server
930f0066b26781d5a77ae3ac60caa0ac9b685b9f
[ "MIT" ]
null
null
null
server.py
Celnardur/simple_server
930f0066b26781d5a77ae3ac60caa0ac9b685b9f
[ "MIT" ]
null
null
null
server.py
Celnardur/simple_server
930f0066b26781d5a77ae3ac60caa0ac9b685b9f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from http.server import BaseHTTPRequestHandler, HTTPServer, SimpleHTTPRequestHandler import json import os import mimetypes import sys # import api bufsize = 4096 base_path = "./www" class server(BaseHTTPRequestHandler): def get_payload(self): if not ('Content-Length' in self.heade...
30.75
84
0.536811
2,661
0.600949
0
0
0
0
0
0
1,197
0.270325
03d16b56e7eb71686fb7086761419a2ac514491c
5,771
py
Python
contents/1_command_line_reinforcement_learning/treasure_on_right.py
Pankaj-Baranwal/Reinforcement-learning-with-tensorflow
cf738d3e975aa9d2384dcd1a65dbdd156ddd970f
[ "MIT" ]
null
null
null
contents/1_command_line_reinforcement_learning/treasure_on_right.py
Pankaj-Baranwal/Reinforcement-learning-with-tensorflow
cf738d3e975aa9d2384dcd1a65dbdd156ddd970f
[ "MIT" ]
null
null
null
contents/1_command_line_reinforcement_learning/treasure_on_right.py
Pankaj-Baranwal/Reinforcement-learning-with-tensorflow
cf738d3e975aa9d2384dcd1a65dbdd156ddd970f
[ "MIT" ]
null
null
null
""" A simple example for Reinforcement Learning using table lookup Q-learning method. An agent "o" is on the left of a 1 dimensional world, the treasure is on the rightmost location. Run this program and to see how the agent will improve its strategy of finding the treasure. View more on my tutorial page: https://morv...
40.929078
603
0.666609
0
0
0
0
0
0
0
0
3,485
0.602837
03d430af1217994371a7fc92b45f322c0f6446ff
6,427
py
Python
common/data.py
looselyconnected/fastai
12d38d760393f1a677cc825d99283c8efcffbef5
[ "MIT" ]
null
null
null
common/data.py
looselyconnected/fastai
12d38d760393f1a677cc825d99283c8efcffbef5
[ "MIT" ]
null
null
null
common/data.py
looselyconnected/fastai
12d38d760393f1a677cc825d99283c8efcffbef5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from fastai.structured import apply_cats from io import StringIO from sklearn.metrics import mean_squared_error import matplotlib.pyplot as plt import seaborn as sns import time import os from contextlib import contextmanager from sklearn.metrics import mean_squared_error def t...
34.005291
110
0.632644
0
0
114
0.017738
130
0.020227
0
0
874
0.135989
03d56a3fb87b437933882dff43b9721b0cb74ab5
86
py
Python
run.py
heston/label-commander
327c1e105bce83b8b674b55411f7fe2650d3a610
[ "MIT" ]
3
2019-03-25T04:33:01.000Z
2021-01-03T22:21:04.000Z
run.py
heston/label-commander
327c1e105bce83b8b674b55411f7fe2650d3a610
[ "MIT" ]
4
2020-03-26T06:56:18.000Z
2022-01-02T19:50:12.000Z
run.py
heston/label-commander
327c1e105bce83b8b674b55411f7fe2650d3a610
[ "MIT" ]
1
2021-11-30T22:33:41.000Z
2021-11-30T22:33:41.000Z
from labelcommander import listener if __name__ == '__main__': listener.listen()
17.2
35
0.744186
0
0
0
0
0
0
0
0
10
0.116279
03d58fb77cc50e8c7e2d0563b74268be5018aa59
314
py
Python
src/Zadanie3/Checker.py
TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska
264823f21d220a353528e5aa4fba9ff424a7ed5b
[ "MIT" ]
null
null
null
src/Zadanie3/Checker.py
TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska
264823f21d220a353528e5aa4fba9ff424a7ed5b
[ "MIT" ]
null
null
null
src/Zadanie3/Checker.py
TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska
264823f21d220a353528e5aa4fba9ff424a7ed5b
[ "MIT" ]
null
null
null
from Zadanie3.AlarmClock import AlarmClock class Checker: def __init__(self): self.alarm_clock = AlarmClock() def remainder(self, file): hour = self.alarm_clock.getTime() if hour > 17: self.alarm_clock.playWavFile(file) self.alarm_clock.wavWasPlayed()
19.625
46
0.640127
266
0.847134
0
0
0
0
0
0
0
0
03d5e71eac1ee63a4847306cf3c4d429e8818a82
1,039
py
Python
passmate/config.py
TobiasKaiser/passmate
49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e
[ "Apache-2.0" ]
11
2018-02-05T16:32:22.000Z
2022-02-11T06:56:17.000Z
passmate/config.py
TobiasKaiser/passmate
49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e
[ "Apache-2.0" ]
15
2017-10-08T13:23:03.000Z
2019-02-16T23:03:40.000Z
passmate/config.py
TobiasKaiser/passmate
49c7d528a71ced7a9c395fafa22cc4cc2dddfc7e
[ "Apache-2.0" ]
1
2019-05-03T03:49:11.000Z
2019-05-03T03:49:11.000Z
import platform from pathlib import Path from dataclasses import dataclass @dataclass(frozen=True) class Config: primary_db: str shared_folder: str host_id: str @classmethod def default(cls): primary_db_default = str(Path.home() / ".local/share/passmate/local.pmdb") shared_folder_d...
31.484848
82
0.641001
938
0.902791
0
0
962
0.92589
0
0
226
0.217517
03d72a96e0bb111eee8bbb9b6df1fc3b8c2f4ed6
101
py
Python
intervalmap/__init__.py
marciogameiro/intervalmap
2ae87100dc3954a67e62d30f1f7882ea40a0e326
[ "MIT" ]
null
null
null
intervalmap/__init__.py
marciogameiro/intervalmap
2ae87100dc3954a67e62d30f1f7882ea40a0e326
[ "MIT" ]
null
null
null
intervalmap/__init__.py
marciogameiro/intervalmap
2ae87100dc3954a67e62d30f1f7882ea40a0e326
[ "MIT" ]
null
null
null
# __init__.py # Marcio Gameiro # 2021-01-05 # MIT LICENSE from intervalmap.PlotIntervalMap import *
14.428571
41
0.762376
0
0
0
0
0
0
0
0
54
0.534653
03d7a95c066c675726f7f6a54e1d1bc42d1e9abc
4,902
py
Python
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py
hongkai-dai/neural-network-lyapunov-1
8843c13f69f7f39cbb939ab250413e76f61843f6
[ "MIT" ]
58
2021-06-21T08:59:52.000Z
2022-03-31T14:35:23.000Z
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py
StanfordASL/neural-network-lyapunov
9e5db1c7f91b42df729026c9aa8575bc126f66b6
[ "MIT" ]
8
2021-08-22T05:31:23.000Z
2022-03-29T03:47:07.000Z
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py
StanfordASL/neural-network-lyapunov
9e5db1c7f91b42df729026c9aa8575bc126f66b6
[ "MIT" ]
11
2021-06-21T04:29:59.000Z
2022-03-30T05:54:43.000Z
import neural_network_lyapunov.worlds as worlds import neural_network_lyapunov.utils as utils import neural_network_lyapunov.control_affine_system as mut import pytinydiffsim as pd import argparse import torch import yaml def load_multibody(cfg): world = pd.TinyWorld() urdf_data = pd.TinyUrdfParser().load_u...
33.806897
77
0.583639
0
0
0
0
0
0
0
0
526
0.107303
03d8328b61bc799b5ba1024c6c14cfed870ecffb
1,038
py
Python
Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py
AkashKV-1998/Warehouse-Management-System
33d96c52064262156ddcd459a36e2f63d4df2c30
[ "Apache-2.0" ]
3
2021-09-05T16:09:58.000Z
2022-03-25T14:32:34.000Z
Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py
AkashKV-1998/Warehouse-Management-System
33d96c52064262156ddcd459a36e2f63d4df2c30
[ "Apache-2.0" ]
null
null
null
Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py
AkashKV-1998/Warehouse-Management-System
33d96c52064262156ddcd459a36e2f63d4df2c30
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models class Category(models.Model): Name = models.CharField(max_length=50) def __str__(self): return self.Name class Manufacturer(models.Model): Name = models.CharField(max_length = 100) AddressLine1 = mode...
30.529412
80
0.735067
933
0.898844
0
0
0
0
0
0
23
0.022158
03d85822a20ea24f7c4d4a8477238913b316792b
417
py
Python
base/migrations/0035_outline_morale_on.py
rafsaf/Plemiona_Planer
1a0e2da0c4b18f1abd1df876f688c6442cba17ce
[ "Apache-2.0" ]
2
2020-11-15T12:50:07.000Z
2020-11-17T21:54:54.000Z
base/migrations/0035_outline_morale_on.py
rafsaf/Plemiona_Planer
1a0e2da0c4b18f1abd1df876f688c6442cba17ce
[ "Apache-2.0" ]
21
2021-11-01T14:04:19.000Z
2022-03-25T06:31:03.000Z
base/migrations/0035_outline_morale_on.py
rafsaf/Tribal-Wars-Planer
083af9b1efe814be3abe975b9ac8faccc00ebb09
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-17 22:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("base", "0034_outline_morale_on_targets_greater_than_and_more"), ] operations = [ migrations.AddField( model_name="outline", ...
21.947368
73
0.628297
324
0.776978
0
0
0
0
0
0
127
0.304556
03da330638b8a1576e15bc62abc446e553a243a9
5,210
py
Python
WF_SDK/dmm.py
Digilent/WaveForms-SDK-Getting-Started
ae33d5e19552dea41ddfca6ec038fe462a922c73
[ "MIT" ]
3
2021-12-14T18:08:11.000Z
2022-02-26T11:06:30.000Z
WF_SDK/dmm.py
Digilent/WaveForms-SDK-Getting-Started
ae33d5e19552dea41ddfca6ec038fe462a922c73
[ "MIT" ]
null
null
null
WF_SDK/dmm.py
Digilent/WaveForms-SDK-Getting-Started
ae33d5e19552dea41ddfca6ec038fe462a922c73
[ "MIT" ]
null
null
null
""" DIGITAL MULTIMETER CONTROL FUNCTIONS: open, measure, close """ import ctypes # import the C compatible data types from sys import platform, path # this is needed to check the OS type and get the PATH from os import sep # OS specific file path separators # load the dynamic lib...
43.057851
149
0.638196
0
0
0
0
0
0
0
0
1,922
0.368552
03db6243c45ed78fbff736368c5df610046c336d
403
py
Python
camproxy/app/routes.py
k-wojcik/hassio-addons
4d82843136d593fbee5d839b45713680594a1f28
[ "Apache-2.0" ]
null
null
null
camproxy/app/routes.py
k-wojcik/hassio-addons
4d82843136d593fbee5d839b45713680594a1f28
[ "Apache-2.0" ]
null
null
null
camproxy/app/routes.py
k-wojcik/hassio-addons
4d82843136d593fbee5d839b45713680594a1f28
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from flask import Flask, render_template, request, Response import stream import json from shared import logger from main import app @app.route("/healthcheck") def healthcheck(): return "ok" @app.route('/cam/<camId>/stream', methods=['GET']) def camstream(camId): logger.info("Beg...
26.866667
71
0.74938
0
0
0
0
237
0.588089
0
0
79
0.19603
03db670dee02fd2299659dad3e38740bdd61a32c
2,107
py
Python
partition_type.py
DenisNovac/GPTUtils
cecb3f63e616df5eb77e67bb8684e82b86e101d1
[ "MIT" ]
null
null
null
partition_type.py
DenisNovac/GPTUtils
cecb3f63e616df5eb77e67bb8684e82b86e101d1
[ "MIT" ]
null
null
null
partition_type.py
DenisNovac/GPTUtils
cecb3f63e616df5eb77e67bb8684e82b86e101d1
[ "MIT" ]
null
null
null
# Enumeration for GPT disks utility (for Python 3) # # Other GPT utilities https://github.com/DenisNovac/GPTUtils # Documentation https://en.wikipedia.org/wiki/GUID_Partition_Table from enum import Enum class PartitionType(Enum): MBR="024DEE41-33E7-11D3-9D69-0008C781F39F" EFI="C12A7328-F81F-11D2-BA4B-00A0C...
50.166667
92
0.78168
1,899
0.901281
0
0
254
0.120551
0
0
1,154
0.547698
03db6cf4674ca4c09f270ace6aad4ada5abd8720
446
py
Python
api/app/celery/celery_app.py
VidroX/recommdo
fe518158b1a63225816054fb129f680e1d0c7d9c
[ "MIT" ]
null
null
null
api/app/celery/celery_app.py
VidroX/recommdo
fe518158b1a63225816054fb129f680e1d0c7d9c
[ "MIT" ]
null
null
null
api/app/celery/celery_app.py
VidroX/recommdo
fe518158b1a63225816054fb129f680e1d0c7d9c
[ "MIT" ]
null
null
null
from celery import Celery from app import settings broker_url = 'redis://:' + settings.REDIS_PASSWORD + '@redis:6379/0' celery_app = Celery('recommdo', broker=broker_url, include=['app.celery.celery_worker']) celery_app.conf.task_routes = { "app.celery.celery_worker.import_and_analyze_purchases": {'queue': 'celer...
34.307692
88
0.755605
0
0
0
0
0
0
0
0
191
0.428251
03db746274ce14f01fd2c68bd4565066f688e0cc
4,765
py
Python
ActionSystem.py
Rookfighter/TextAdventure
f24176065c9be26bd3bee983c2a63215452cb314
[ "MIT" ]
2
2016-03-21T15:26:02.000Z
2016-03-21T15:26:05.000Z
ActionSystem.py
Rookfighter/TextAdventure
f24176065c9be26bd3bee983c2a63215452cb314
[ "MIT" ]
null
null
null
ActionSystem.py
Rookfighter/TextAdventure
f24176065c9be26bd3bee983c2a63215452cb314
[ "MIT" ]
null
null
null
from EventSystem import Event import utils class ActionSystem: def __init__(self, player, rooms, tuiSystem, eventQueue): self.__player = player self.__rooms = rooms self.__tuiSystem = tuiSystem self.__eventQueue = eventQueue # a mapping for input actions to functions ...
30.741935
87
0.583631
4,721
0.990766
0
0
0
0
0
0
984
0.206506
03dcb1403bf2626fa9e60230581256736ccc99ba
1,192
py
Python
yafas/auth/resources.py
lallamilagro/yafas-server
8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94
[ "MIT" ]
null
null
null
yafas/auth/resources.py
lallamilagro/yafas-server
8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94
[ "MIT" ]
null
null
null
yafas/auth/resources.py
lallamilagro/yafas-server
8bd8b64c7bfdaeeadffe0daf91eecf91091fcb94
[ "MIT" ]
null
null
null
import falcon from . import CookieCreator, data_api, schemas class AuthCookiesMixin: schema = None require_token = None def cookies_data(self, request) -> dict: token, _ = self.schema().load(request.media) return CookieCreator(token)() def set_cookies(self, request, response): ...
24.326531
72
0.687081
1,115
0.935403
0
0
0
0
0
0
7
0.005872
03deed2eb45e83f7284046e17bf2aaf69dbbad88
14,394
py
Python
train_model.py
taiducvu/VNG-NSFW-DETECTION
f49b6ad21ed9c8646c402a37015a80258fb79a68
[ "MIT" ]
null
null
null
train_model.py
taiducvu/VNG-NSFW-DETECTION
f49b6ad21ed9c8646c402a37015a80258fb79a68
[ "MIT" ]
null
null
null
train_model.py
taiducvu/VNG-NSFW-DETECTION
f49b6ad21ed9c8646c402a37015a80258fb79a68
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf import data as dt import vng_model as md import time import csv import math FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string('train_dir', '/home/taivu/workspace/Pycharm_...
41.481268
118
0.553633
0
0
0
0
0
0
0
0
4,102
0.28498
03deff63d4fe5a3fc6c43174f1b43ca9ad27e1c4
1,417
py
Python
scanpy_gene_filtering.py
granatumx/gbox-py
b3e264a22bc6a041f2dd631d952eae29c0ecae21
[ "MIT" ]
null
null
null
scanpy_gene_filtering.py
granatumx/gbox-py
b3e264a22bc6a041f2dd631d952eae29c0ecae21
[ "MIT" ]
1
2020-06-16T17:14:45.000Z
2020-06-16T17:14:45.000Z
scanpy_gene_filtering.py
granatumx/gbox-py
b3e264a22bc6a041f2dd631d952eae29c0ecae21
[ "MIT" ]
2
2020-06-16T16:42:40.000Z
2020-08-28T16:59:42.000Z
import math import scanpy.api as sc import numpy as np from granatum_sdk import Granatum def main(): gn = Granatum() adata = gn.ann_data_from_assay(gn.get_import("assay")) min_cells_expressed = gn.get_arg("min_cells_expressed") min_mean = gn.get_arg("min_mean") max_mean = gn.get_arg("max_mean") ...
26.735849
129
0.637262
0
0
0
0
0
0
0
0
297
0.209598
03e220ad44802d7ccaad8ff67ed213cf295d4afb
37,309
py
Python
stores/apps/preferences/views.py
diassor/CollectorCity-Market-Place
892ad220b8cf1c0fc7433f625213fe61729522b2
[ "Apache-2.0" ]
135
2015-03-19T13:28:18.000Z
2022-03-27T06:41:42.000Z
stores/apps/preferences/views.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
null
null
null
stores/apps/preferences/views.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
83
2015-01-30T01:00:15.000Z
2022-03-08T17:25:10.000Z
""" Edit shop preferences """ import datetime from preferences.forms import MarketingForm, TaxStateEditForm import logging from django.conf import settings from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse, Http404, HttpResponseForbidden from django.shortcuts i...
38.265641
152
0.638613
0
0
0
0
34,657
0.928918
0
0
8,371
0.224369
03e365fc58c1889f65eac6521d7aecdc3431dbf8
3,538
py
Python
pagapp/application_api/album_api.py
eugeneandrienko/PyArtistsGallery
b75114955859d45d9dfb5c901213f25a6e09f488
[ "MIT" ]
null
null
null
pagapp/application_api/album_api.py
eugeneandrienko/PyArtistsGallery
b75114955859d45d9dfb5c901213f25a6e09f488
[ "MIT" ]
null
null
null
pagapp/application_api/album_api.py
eugeneandrienko/PyArtistsGallery
b75114955859d45d9dfb5c901213f25a6e09f488
[ "MIT" ]
null
null
null
"""Handlers for albums' API calls.""" import json from flask import request, current_app from flask_login import login_required from pagapp.support_functions import remove_danger_symbols from pagapp.application_api import application_api from pagapp.models import db from pagapp.models.albums import Albums from pagapp...
31.589286
80
0.644997
0
0
0
0
2,708
0.765404
0
0
1,195
0.337761
03e4c99b5e129d999b826ed6583329b22a13afb6
2,097
py
Python
DNBC4tools/tools/utils.py
lishuangshuang0616/DNBC4dev
2fc54e87edc5586e92d470669b6aa37661ac016a
[ "MIT" ]
null
null
null
DNBC4tools/tools/utils.py
lishuangshuang0616/DNBC4dev
2fc54e87edc5586e92d470669b6aa37661ac016a
[ "MIT" ]
null
null
null
DNBC4tools/tools/utils.py
lishuangshuang0616/DNBC4dev
2fc54e87edc5586e92d470669b6aa37661ac016a
[ "MIT" ]
null
null
null
import os,sys import time import logging import sys from datetime import timedelta from subprocess import check_call from DNBC4tools.__init__ import _root_dir def str_mkdir(arg): if not os.path.exists(arg): os.system('mkdir -p %s'%arg) def change_path(): os.environ['PATH'] += ':'+'/'.join(str(_root_di...
33.285714
93
0.593705
0
0
0
0
0
0
0
0
378
0.180258
03e53a24fd233c0d84133edd52d9952b5a344c50
346
py
Python
bot.py
parityapp/mattermost-bot
80f9a21ed8962226d74266e492f3a763d45314b4
[ "MIT" ]
null
null
null
bot.py
parityapp/mattermost-bot
80f9a21ed8962226d74266e492f3a763d45314b4
[ "MIT" ]
null
null
null
bot.py
parityapp/mattermost-bot
80f9a21ed8962226d74266e492f3a763d45314b4
[ "MIT" ]
null
null
null
import re from mattermost_bot.bot import listen_to from mattermost_bot.bot import respond_to @respond_to('hi', re.IGNORECASE) def hi(message): message.reply('I can understand hi or HI!') @listen_to('Can someone help me?') def help_me(message): # Message is replied to the sender (prefixed with @user) me...
23.066667
60
0.731214
0
0
0
0
247
0.713873
0
0
123
0.355491
03e65ebb8db11f83d90833408439680a1da222bc
3,432
py
Python
riberry/app/backends/impl/celery/base.py
srafehi/riberry
2ffa48945264177c6cef88512c1bc80ca4bf1d5e
[ "MIT" ]
2
2019-12-09T10:24:36.000Z
2019-12-09T10:26:56.000Z
riberry/app/backends/impl/celery/base.py
srafehi/riberry
2ffa48945264177c6cef88512c1bc80ca4bf1d5e
[ "MIT" ]
2
2018-06-11T11:34:28.000Z
2018-08-22T12:00:19.000Z
riberry/app/backends/impl/celery/base.py
srafehi/riberry
2ffa48945264177c6cef88512c1bc80ca4bf1d5e
[ "MIT" ]
null
null
null
from typing import Dict, AnyStr import celery import riberry from . import patch, tasks, addons from .executor import TaskExecutor from .tracker import CeleryExecutionTracker def send_task_process_rib_kwargs(self, *args, **kwargs): riberry_properties = {} if kwargs.get('kwargs'): for key, value in k...
34.32
108
0.668415
2,970
0.865385
0
0
0
0
0
0
319
0.092949
03e6fbea2bc31d53355d4df0ef6a940806f422a0
2,753
py
Python
amitypes/hsd.py
slac-lcls/amityping
a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d
[ "BSD-3-Clause-LBNL" ]
null
null
null
amitypes/hsd.py
slac-lcls/amityping
a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d
[ "BSD-3-Clause-LBNL" ]
null
null
null
amitypes/hsd.py
slac-lcls/amityping
a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d
[ "BSD-3-Clause-LBNL" ]
1
2020-12-13T01:54:32.000Z
2020-12-13T01:54:32.000Z
import typing from mypy_extensions import TypedDict from amitypes.array import Array1d __all__ = [ 'TypedDict', 'PeakTimes', 'HSDSegementPeakTimes', 'HSDPeakTimes', 'Peaks', 'HSDSegmentPeaks', 'HSDPeaks', 'HSDSegmentWaveforms', 'HSDWaveforms', 'HSDAssemblies', 'HSDTypes', ]...
25.256881
64
0.392663
0
0
0
0
0
0
0
0
396
0.143843
03e72378fe20cb97a330f6cb48639d89ec4e8658
4,975
py
Python
lib/astc-encoder/Test/astc_test_image_dl.py
atteneder/KTX-Software
15369663a43d72972dfe0a7e3597d3ef6d90b6b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-1-Clause", "BSD-3-Clause" ]
619
2015-04-30T14:55:02.000Z
2022-03-30T06:56:14.000Z
lib/astc-encoder/Test/astc_test_image_dl.py
atteneder/KTX-Software
15369663a43d72972dfe0a7e3597d3ef6d90b6b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-1-Clause", "BSD-3-Clause" ]
283
2018-02-05T01:42:19.000Z
2022-03-24T09:26:16.000Z
lib/astc-encoder/Test/astc_test_image_dl.py
atteneder/KTX-Software
15369663a43d72972dfe0a7e3597d3ef6d90b6b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-1-Clause", "BSD-3-Clause" ]
167
2015-04-30T15:06:25.000Z
2022-03-24T03:02:00.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 # ----------------------------------------------------------------------------- # Copyright 2019-2020 Arm 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 ob...
27.638889
79
0.617085
0
0
0
0
0
0
0
0
2,608
0.524221
03e945af9ade9cf54e3b850a6b3c0ce9e40fad3b
1,183
py
Python
data_visualization/api_blueprint/predefined_configurations.py
danielrenes/car-data-visualization
9fb18c7bc8ec3e796793178acab350f0b5e7ef5b
[ "MIT" ]
null
null
null
data_visualization/api_blueprint/predefined_configurations.py
danielrenes/car-data-visualization
9fb18c7bc8ec3e796793178acab350f0b5e7ef5b
[ "MIT" ]
null
null
null
data_visualization/api_blueprint/predefined_configurations.py
danielrenes/car-data-visualization
9fb18c7bc8ec3e796793178acab350f0b5e7ef5b
[ "MIT" ]
null
null
null
import json from flask import jsonify, abort, request, url_for from . import api from .. import db from ..models import PredefinedConfiguration from ..queries import query_all_predefined_configs, query_get_predefined_config_by_id @api.route('/predefinedconfigs', methods=['GET']) def get_predefined_configs(): pre...
35.848485
117
0.760778
0
0
0
0
945
0.798817
0
0
137
0.115807
03ea04acda2fa195ba0bef26aa773982feaf40ce
2,918
py
Python
web_api/bearings/apis/inventory.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2020-12-04T03:15:47.000Z
2020-12-04T03:15:47.000Z
web_api/bearings/apis/inventory.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2021-06-01T22:24:27.000Z
2021-06-01T22:24:27.000Z
web_api/bearings/apis/inventory.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
2
2020-12-04T03:16:18.000Z
2021-09-04T14:10:12.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: inventory.py @time: 2018-06-28 00:23 """ import datetime from libs.mysql_orm_op import DbInstance from web_api.databases.bearings import db from web_api.models.bearings import Inventory db_instance = DbInstance(db) def get_inve...
21.29927
96
0.64976
0
0
0
0
0
0
0
0
1,604
0.506953
03ea99f6452fd0664caac74940ef228cb2d560ff
3,549
py
Python
cmapPy/clue_api_client/clue_api_client.py
RCBiczok/cmapPy
580b0d656892e72f58047666a94e2769ddf63b3f
[ "BSD-3-Clause" ]
2
2019-03-01T18:20:10.000Z
2019-05-05T13:04:32.000Z
cmapPy/clue_api_client/clue_api_client.py
RCBiczok/cmapPy
580b0d656892e72f58047666a94e2769ddf63b3f
[ "BSD-3-Clause" ]
10
2022-03-14T18:40:45.000Z
2022-03-22T12:45:02.000Z
cmapPy/clue_api_client/clue_api_client.py
RCBiczok/cmapPy
580b0d656892e72f58047666a94e2769ddf63b3f
[ "BSD-3-Clause" ]
2
2019-01-30T10:37:50.000Z
2019-01-30T10:45:37.000Z
import requests import logging import cmapPy.clue_api_client.setup_logger as setup_logger import json __authors__ = "David L. Lahr" __email__ = "dlahr@broadinstitute.org" logger = logging.getLogger(setup_logger.LOGGER_NAME) class ClueApiClient(object): """Basic class for running queries against CLUE api ""...
35.848485
130
0.658495
3,320
0.935475
0
0
238
0.067061
0
0
1,443
0.406593
03eaec8f3f1adfdd6c5d23c7746d28621b17b634
185
py
Python
Stock Managment System/__clieinit__.py
AutoSiliconeHoses/SMS
11a0d8262d8cc87bfb0da94f008f34f9b12df2fd
[ "Unlicense" ]
null
null
null
Stock Managment System/__clieinit__.py
AutoSiliconeHoses/SMS
11a0d8262d8cc87bfb0da94f008f34f9b12df2fd
[ "Unlicense" ]
23
2019-07-05T10:07:58.000Z
2021-06-02T00:22:16.000Z
Stock Managment System/__clieinit__.py
AutoSiliconeHoses/SMS
11a0d8262d8cc87bfb0da94f008f34f9b12df2fd
[ "Unlicense" ]
null
null
null
import sys, string, os, yaml import Client.client as client with open("config.yml", 'r') as cfg: config = yaml.load(cfg, Loader=yaml.FullLoader) client.runClient("192.168.1.131")
23.125
51
0.713514
0
0
0
0
0
0
0
0
30
0.162162
03ec5ee390c83bab9a9210d74914176c04449ccd
2,467
py
Python
src/gtk3/entrycompletion/MainWindow.py
alexandrebarbaruiva/gui-python-gtk
7b8e8ab05645271ae55e1e2165eefc9c8f5b0250
[ "MIT" ]
42
2020-05-09T16:23:23.000Z
2022-03-28T13:05:32.000Z
src/gtk3/entrycompletion/MainWindow.py
alexandrebarbaruiva/gui-python-gtk
7b8e8ab05645271ae55e1e2165eefc9c8f5b0250
[ "MIT" ]
2
2020-05-27T19:23:54.000Z
2022-03-08T01:42:59.000Z
src/gtk3/entrycompletion/MainWindow.py
alexandrebarbaruiva/gui-python-gtk
7b8e8ab05645271ae55e1e2165eefc9c8f5b0250
[ "MIT" ]
8
2020-05-09T16:23:28.000Z
2022-03-31T22:44:45.000Z
# -*- coding: utf-8 -*- """GTK.EntryCompletion().""" import gi gi.require_version(namespace='Gtk', version='3.0') from gi.repository import Gtk, GObject, Gio class MainWindow(Gtk.ApplicationWindow): brazilian_states = [ (1, 'Acre'), (2, 'Alagoas'), (3, 'Amapá'), (4, 'Amazonas'), (5, 'Bahia'), (...
32.038961
88
0.615728
2,220
0.895884
0
0
0
0
0
0
503
0.202986
03ee7a6ae2c980b37bf1c84311246a9eeb2654e7
21,227
py
Python
tests/Buffer_Test.py
elmar-hinz/Python.V
687202f2fbf66affdbb500095bbfa944be0dab5f
[ "MIT" ]
9
2016-01-12T20:32:54.000Z
2021-02-10T13:41:35.000Z
tests/Buffer_Test.py
elmar-hinz/Python.Vii
687202f2fbf66affdbb500095bbfa944be0dab5f
[ "MIT" ]
null
null
null
tests/Buffer_Test.py
elmar-hinz/Python.Vii
687202f2fbf66affdbb500095bbfa944be0dab5f
[ "MIT" ]
null
null
null
from nose.tools import * from vii.Buffer import * from vii.Signals import slot class Receiver: def __init__(self): slot("updatedBuffer", self) slot("filledBuffer", self) slot("deletedFromBuffer", self) slot("insertedIntoBuffer", self) self.seen = {} def receive(self, s...
36.28547
84
0.590286
21,142
0.995996
0
0
1,633
0.07693
0
0
3,203
0.150893
03f0e18a2fb018fcb36f1fa0b744ae71787750e6
4,821
py
Python
Chapter06/chapter_6_utils.py
YongBeomKim/py-finance
7c7830904b67cd23c47e793e1f47a9702e7765f3
[ "MIT" ]
1
2021-03-16T04:32:15.000Z
2021-03-16T04:32:15.000Z
Chapter06/chapter_6_utils.py
YongBeomKim/py-finance
7c7830904b67cd23c47e793e1f47a9702e7765f3
[ "MIT" ]
null
null
null
Chapter06/chapter_6_utils.py
YongBeomKim/py-finance
7c7830904b67cd23c47e793e1f47a9702e7765f3
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import norm def simulate_gbm(s_0, mu, sigma, n_sims, T, N, random_seed=42, antithetic_var=False): ''' Function used for simulating stock returns using Geometric Brownian Motion. Parameters ---------- s_0 : float Initial stock price mu : float ...
31.103226
117
0.581
0
0
0
0
0
0
0
0
2,402
0.498237
03f0e951e703bc07082b6a1a6a828adfe88ff594
797
py
Python
CanChickensFly.py
griledchicken/VAMPY-2017-CS
1bc71734751850b580b481eac51c5c235d0ca9e2
[ "MIT" ]
null
null
null
CanChickensFly.py
griledchicken/VAMPY-2017-CS
1bc71734751850b580b481eac51c5c235d0ca9e2
[ "MIT" ]
null
null
null
CanChickensFly.py
griledchicken/VAMPY-2017-CS
1bc71734751850b580b481eac51c5c235d0ca9e2
[ "MIT" ]
null
null
null
answer = input("Can Chickens Fly? YES/NO: ") if answer == "YES": answer = input("Can they fly well? YES/NO: ") if answer == "YES": answer = input("Have you ever seen a Chicken? YES/NO: ") if answer == "YES": print("You're lying to me") else: print("Go take a look at one") else: answer = input("Have you...
26.566667
58
0.607277
0
0
0
0
0
0
0
0
413
0.518193
03f1cc820b06286b1457546292140f6fdb636884
552
py
Python
namedtuple.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
namedtuple.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
namedtuple.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
from collections import namedtuple import sys def avg_marks_manual_input(): l = int(input("How many times?")) r = namedtuple('r',input("Headers?").split(' '),rename=True) a = [r._make(input().split(' ')) for i in range(l)] print(f'{sum([int(i.marks) for i in a]) / l:.2f}') first_line = sys.stdin.read...
36.8
106
0.637681
0
0
0
0
0
0
0
0
145
0.262681
03f2a4a307188ecd417f28abec6cc88bd1e7da2d
829
py
Python
tests/test_simulator/test_ff.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
tests/test_simulator/test_ff.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
tests/test_simulator/test_ff.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
from .test_primitives import PRIM_FF import magma as m from magma.simulator import PythonSimulator from magma.scope import * def test_sim_ff(): class TestCircuit(m.Circuit): io = m.IO(I=m.In(m.Bit), O=m.Out(m.Bit)) + m.ClockIO() ff = PRIM_FF() m.wire(io.I, ff.D) m.wire(ff.Q, io.O) ...
24.382353
62
0.651387
169
0.20386
0
0
0
0
0
0
0
0
03f2f46697905dc14454de66877a20450a1d4124
2,223
py
Python
literature-review/q-learning/q-learning.py
ByronDev121/literature-review
23c276e92534793d85c7af5c24d93603f8ee7678
[ "MIT" ]
null
null
null
literature-review/q-learning/q-learning.py
ByronDev121/literature-review
23c276e92534793d85c7af5c24d93603f8ee7678
[ "MIT" ]
null
null
null
literature-review/q-learning/q-learning.py
ByronDev121/literature-review
23c276e92534793d85c7af5c24d93603f8ee7678
[ "MIT" ]
null
null
null
import gym import time import os import matplotlib.pyplot as plt import numpy as np from gym.envs.registration import register from agent import QAgent register( id='FrozenLake8x8NoSLip-v0', entry_point='gym.envs.toy_text:FrozenLakeEnv', # kwargs={"map_name": "8x8", 'is_slippery': False}, kwargs={'is_s...
26.783133
91
0.634728
0
0
0
0
0
0
0
0
418
0.188034
03f309a30afe79b57c7abb4ede08dda5bc7ee303
625
py
Python
data/clean_test.py
iotayo/aivivn-tone
7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004
[ "MIT" ]
40
2019-07-31T18:13:13.000Z
2021-12-07T09:45:07.000Z
data/clean_test.py
iotayo/aivivn-tone
7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004
[ "MIT" ]
5
2019-08-07T10:21:52.000Z
2021-05-26T06:08:48.000Z
data/clean_test.py
iotayo/aivivn-tone
7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004
[ "MIT" ]
15
2019-07-31T17:57:53.000Z
2021-05-27T10:43:46.000Z
from tqdm import tqdm input_path = "./test_word_per_line.txt" output_path = "./test_cleaned.txt" curr_id = "" curr_sent = [] with open(output_path, mode="wt", encoding="utf-8") as f: lines = open(input_path).readlines() for idx, line in tqdm(enumerate(lines)): if idx == 0: continue line = line.strip() line_...
28.409091
59
0.6288
0
0
0
0
0
0
0
0
89
0.1424
03f39d73c00f084610ed84399b397649419510bb
229
py
Python
cntr/utils.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
2
2021-08-01T06:39:43.000Z
2021-08-01T06:39:58.000Z
cntr/utils.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
1
2021-06-08T11:24:30.000Z
2021-06-09T07:47:26.000Z
cntr/utils.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
null
null
null
import os import pathlib def get_data_path(file): prefix = pathlib.Path(__file__).parent.resolve() return os.path.abspath(os.path.join(prefix, file)) if __name__ == '__main__': print(get_data_path('data/name.txt'))
22.9
54
0.720524
0
0
0
0
0
0
0
0
25
0.10917
03f3ee5a1e2a0e3c2f5c128492384043eac78f5c
1,583
py
Python
translators/test.py
uiuc-arc/Storm
afa9cc5d4ef7e163a5255140c27aca4cf1b47036
[ "MIT" ]
2
2020-01-02T22:55:04.000Z
2021-12-10T01:21:30.000Z
translators/test.py
uiuc-arc/Storm
afa9cc5d4ef7e163a5255140c27aca4cf1b47036
[ "MIT" ]
null
null
null
translators/test.py
uiuc-arc/Storm
afa9cc5d4ef7e163a5255140c27aca4cf1b47036
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import antlr4 from antlr4 import * from language.antlr.Template2Lexer import Template2Lexer from language.antlr.Template2Parser import Template2Parser from language.antlr.Template2Listener import Template2Listener from newbackends.pyrotranslator import PyroTranslator from languag...
27.293103
62
0.759949
122
0.077069
0
0
0
0
0
0
157
0.099179
03f524b31fd0d91cd3b0e302abe39bb4f73b97a6
6,355
py
Python
pytc/experiments/base.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
20
2017-04-27T16:30:03.000Z
2021-08-12T19:42:05.000Z
pytc/experiments/base.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
15
2016-12-12T20:40:44.000Z
2022-02-20T12:05:37.000Z
pytc/experiments/base.py
jharman25/pytc
d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac
[ "Unlicense" ]
6
2016-06-23T00:54:21.000Z
2020-05-19T05:24:20.000Z
__description__ = \ """ experiments.py Classes for loading experimental ITC data and associating those data with a model. Units: Volumes are in microliters Temperatures are in Kelvin Concentrations are in molar Energy is `units`, where `units` is specified when instantiating the ITCExperiment cl...
24.631783
83
0.557671
5,876
0.924626
0
0
3,246
0.510779
0
0
2,798
0.440283
03f8ccce3ecf35b88bf241958bca977a39da0829
2,743
py
Python
tests/_geom/test_path_bezier_3d_continual.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_geom/test_path_bezier_3d_continual.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_geom/test_path_bezier_3d_continual.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import re from random import randint from typing import Match from typing import Optional from retrying import retry import apysc as ap from apysc._expression import var_names from tests.testing_helper import assert_attrs class TestPathBezier3DContinual: @retry(stop_max_attempt_number=15, wait_fi...
38.633803
78
0.582574
2,503
0.912505
0
0
2,447
0.892089
0
0
377
0.137441
03fa298b7ad91850feb3603a0d09e4d69c6f4462
2,108
py
Python
cogs/owner.py
SuperYellowSystem/FactorioQuizzBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
1
2018-04-08T16:47:02.000Z
2018-04-08T16:47:02.000Z
cogs/owner.py
SuperYellowSystem/FactorioQuizBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
null
null
null
cogs/owner.py
SuperYellowSystem/FactorioQuizBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
null
null
null
# NB: Based on the work of Rapptz on RoboDanny # src: https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/admin.py # ====================================================================== # imports # ====================================================================== from discord.ext import commands as cmds import...
33.460317
72
0.52277
1,488
0.705882
0
0
1,333
0.632353
1,156
0.548387
834
0.395636
03fac18b0bfdebf09b938bb372680e33554a0ff7
817
py
Python
Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py
ltdangkhoa/Computer-Science-Fundamental
b70ba714e1dd13fcb377125e047c5fc08d3a82b3
[ "MIT" ]
null
null
null
from e14_b import MyDeck, MyCard def demo_a(): card_2_heart = MyCard(2, '❤') print(card_2_heart) card_3_diamond = MyCard(3, '♦') print(card_3_diamond) card_13_spade = MyCard(13, '♠') print(card_13_spade) def demo_b(): cards_deck = MyDeck(num_of_deck=1) cards_deck.shuffle_deck() pr...
24.757576
63
0.662179
0
0
0
0
0
0
0
0
25
0.030377
03fcad1d1936cee28640a02b1c3ebdfc5c4cd278
53
py
Python
python_lessons/MtMk_Test_Files/numpy_test.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/numpy_test.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/numpy_test.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
import numpy as np arr = np.arange(0,11) print(arr)
17.666667
22
0.698113
0
0
0
0
0
0
0
0
0
0
03fcf010e806a2ca558ead9b4f75e81efede549f
135
py
Python
flask_simple/mocks.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
null
null
null
flask_simple/mocks.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
5
2016-01-30T13:32:23.000Z
2016-02-06T13:34:11.000Z
flask_simple/mocks.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from unittest.mock import MagicMock render_template = MagicMock(return_value="this is a test")
16.875
58
0.762963
0
0
0
0
0
0
0
0
51
0.377778
03ff93fc9d98330d3ad870c21f0120ad11f705f7
183
py
Python
bot/reporting/admin.py
psemdel/py-trading-bot
69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019
[ "MIT" ]
null
null
null
bot/reporting/admin.py
psemdel/py-trading-bot
69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019
[ "MIT" ]
1
2022-02-07T21:13:55.000Z
2022-02-07T21:13:55.000Z
bot/reporting/admin.py
psemdel/py-trading-bot
69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019
[ "MIT" ]
null
null
null
from django.contrib import admin from django.apps import apps from reporting.models import * admin.site.register(Report) admin.site.register(ActionReport) admin.site.register(Alert)
22.875
33
0.825137
0
0
0
0
0
0
0
0
0
0
03ffdfae2150b0ebaf5889a8ceb87f9a3acb8bf4
616
py
Python
pyrival/graphs/components.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
748
2018-09-27T01:08:12.000Z
2022-03-25T17:31:56.000Z
pyrival/graphs/components.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
38
2019-02-24T14:50:02.000Z
2022-03-25T01:27:50.000Z
pyrival/graphs/components.py
MattJDavidson/aoc2021
1c26697da55e58408f36525639d201303f808b1b
[ "Apache-2.0" ]
288
2018-10-29T11:55:57.000Z
2022-03-20T04:37:27.000Z
def connected_components(n, graph): components, visited = [], [False] * n def dfs(start): component, stack = [], [start] while stack: start = stack[-1] if visited[start]: stack.pop() continue else: visited[sta...
22
41
0.470779
0
0
0
0
0
0
0
0
0
0
ff002fdb0500e9897354e32946b348260a72d40c
976
py
Python
lino/modlib/uploads/__init__.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
1
2019-11-13T19:38:50.000Z
2019-11-13T19:38:50.000Z
lino/modlib/uploads/__init__.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
null
null
null
lino/modlib/uploads/__init__.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2010-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) """Adds functionality for uploading files to the server and managing them. See :doc:`/specs/uploads`. """ from lino import ad, _ class Plugin(ad.Plugin): "See :doc:`/dev/plugins`." verbose_name = _("Uploads") menu_grou...
27.885714
79
0.659836
756
0.77459
0
0
0
0
0
0
330
0.338115
ff01277f87c5e7fac7a733b20837d1ed277d4304
2,097
py
Python
cloudferrylib/os/actions/upload_file_to_image.py
toha10/CloudFerry
5f844a480d3326d1fea74cca35b648c32d390fab
[ "Apache-2.0" ]
null
null
null
cloudferrylib/os/actions/upload_file_to_image.py
toha10/CloudFerry
5f844a480d3326d1fea74cca35b648c32d390fab
[ "Apache-2.0" ]
null
null
null
cloudferrylib/os/actions/upload_file_to_image.py
toha10/CloudFerry
5f844a480d3326d1fea74cca35b648c32d390fab
[ "Apache-2.0" ]
null
null
null
from cloudferrylib.base.action import action from fabric.api import run, settings from cloudferrylib.utils import utils as utl CLOUD = 'cloud' BACKEND = 'backend' CEPH = 'ceph' ISCSI = 'iscsi' COMPUTE = 'compute' INSTANCES = 'instances' INSTANCE_BODY = 'instance' INSTANCE = 'instance' DIFF = 'diff' EPHEMERAL = 'ephem...
34.95
106
0.560801
1,590
0.758226
0
0
0
0
0
0
443
0.211254
ff01ccc9f186d9a1a01af517bc0fcb70db7dd2eb
1,672
py
Python
application.py
roniemartinez/real-time-charts-with-fastapi
f5f30f8283acafb30a97a5060803fe9d1d872b69
[ "MIT" ]
28
2022-03-20T14:10:04.000Z
2022-03-30T21:50:15.000Z
application.py
roniemartinez/real-time-charts-with-fastapi
f5f30f8283acafb30a97a5060803fe9d1d872b69
[ "MIT" ]
null
null
null
application.py
roniemartinez/real-time-charts-with-fastapi
f5f30f8283acafb30a97a5060803fe9d1d872b69
[ "MIT" ]
1
2022-03-21T21:50:27.000Z
2022-03-21T21:50:27.000Z
import json import logging import random import sys from datetime import datetime from typing import Iterator import asyncio from fastapi import FastAPI from fastapi.responses import HTMLResponse, StreamingResponse from fastapi.requests import Request from fastapi.templating import Jinja2Templates logging.basicConfig...
30.962963
106
0.711124
0
0
589
0.352273
497
0.297249
1,003
0.59988
427
0.255383
ff0349321664c71151b8b6a6936853d728c7a48f
2,666
py
Python
Source/GeniusLyricsGUI.py
Fingolfin7/Music-Metadata-and-Lyrics
6b26c048b9a0905f0097d2bd212285296ab3ba54
[ "MIT" ]
4
2021-08-07T00:15:12.000Z
2021-12-12T20:45:15.000Z
Source/GeniusLyricsGUI.py
Fingolfin7/Music-Metadata-and-Lyrics
6b26c048b9a0905f0097d2bd212285296ab3ba54
[ "MIT" ]
1
2021-08-06T23:29:47.000Z
2021-08-06T23:29:47.000Z
Source/GeniusLyricsGUI.py
Fingolfin7/Music-Metadata-and-Lyrics
6b26c048b9a0905f0097d2bd212285296ab3ba54
[ "MIT" ]
3
2021-08-07T01:53:20.000Z
2021-08-07T23:21:02.000Z
import os import threading from tkinter import * from tkinter import messagebox from GeniusLyrics import search_song_lyrics, song_dict class GeniusLyricsGUI: def __init__(self, tk_root: Tk): tk_root.resizable(width=False, height=False) self.lyrics_frame = Frame(tk_root) self.songName = St...
33.325
113
0.609152
2,323
0.871343
0
0
0
0
0
0
331
0.124156
ff03a6d3f532ff9a0b7cb29e49f83b8383befaa7
6,300
py
Python
src/vulkan/helpers/render_pass.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
67
2019-01-06T13:01:46.000Z
2022-01-04T17:50:58.000Z
src/vulkan/helpers/render_pass.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
2
2019-01-07T18:25:00.000Z
2021-05-10T09:32:17.000Z
src/vulkan/helpers/render_pass.py
gabdube/panic-panda
ecbda506eeafe3dbdf932cdb20b938646502f892
[ "MIT" ]
6
2019-07-31T08:16:26.000Z
2020-12-26T04:34:52.000Z
from .. import vk from .utils import check_ctypes_members, sequence_to_array, array, array_pointer from ctypes import byref, c_uint32, c_float def rect_2d(x, y, width, height): return vk.Rect2D( offset=vk.Offset2D(x=x, y=y), extent=vk.Extent2D(width=width, height=height) ) def framebuffer_cre...
40.645161
124
0.71873
0
0
0
0
0
0
0
0
822
0.130476
ff03dab57925319f515c5c11149dcf10058593ae
1,124
py
Python
raspy/components/motors/motor_state_change_event.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/components/motors/motor_state_change_event.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/components/motors/motor_state_change_event.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
"""This module contains the MotorStateChangeEvent type.""" from raspy.components.motors import motor_state class MotorStateChangeEvent(object): """The event that gets raised when a motor changes state.""" def __init__(self, old_state, new_state): """Initialize a new instance of MotorStateChangeEven...
27.414634
78
0.634342
1,012
0.900356
0
0
380
0.338078
0
0
574
0.510676
ff04665b138db9fa8f8563e4a316caa05474ffd6
2,537
py
Python
contrib/PyTorch/Official/cv/image_object_detection/RetinaNet/tests/test_model_analysis.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/tests/test_model_analysis.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/tests/test_model_analysis.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Copyright 2020 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....
35.236111
81
0.707923
1,310
0.516358
0
0
0
0
0
0
1,150
0.453291
ff05c27eae2a6e4a7afcb14ff90aef2245e06be5
302
py
Python
mli/utility.py
karu-bee/ml_interpret_book
c398023dff175118c98e9f6dd3785d6b317b359e
[ "BSD-3-Clause" ]
18
2021-08-11T02:04:53.000Z
2022-03-26T03:23:47.000Z
mli/utility.py
karu-bee/ml_interpret_book
c398023dff175118c98e9f6dd3785d6b317b359e
[ "BSD-3-Clause" ]
null
null
null
mli/utility.py
karu-bee/ml_interpret_book
c398023dff175118c98e9f6dd3785d6b317b359e
[ "BSD-3-Clause" ]
11
2021-09-19T08:39:01.000Z
2022-03-28T08:58:45.000Z
import pandas as pd def get_coef(estimator, var_names): """特徴量名と回帰係数が対応したデータフレームを作成する""" # 切片含む回帰係数と特徴量の名前を抜き出してデータフレームにまとめる df = pd.DataFrame( data={"coef": [estimator.intercept_] + estimator.coef_.tolist()}, index=["intercept"] + var_names ) return df
23.230769
74
0.645695
0
0
0
0
0
0
0
0
202
0.480952
ff07394e395b62d46e9233ac28ffd68f59cd8a96
649
py
Python
app.py
tommorris/ftfyweb
c9bb5b2381b8dc4d831ac7113041988b9e1d2629
[ "MIT" ]
null
null
null
app.py
tommorris/ftfyweb
c9bb5b2381b8dc4d831ac7113041988b9e1d2629
[ "MIT" ]
null
null
null
app.py
tommorris/ftfyweb
c9bb5b2381b8dc4d831ac7113041988b9e1d2629
[ "MIT" ]
null
null
null
import ftfy from flask import Flask, request, Response import os app = Flask(__name__) @app.route("/", methods=["GET"]) def index(): return '<!DOCTYPE html>\n<html><head><title>FTFY on the web</title><body><form method="POST" action="/"><textarea name="text"></textarea><br /><input type="submit" /></body></html>'...
32.45
185
0.654854
0
0
0
0
445
0.68567
0
0
263
0.405239
ff07cdddcc59acdcb5eb9d02bbab6e7854827b9d
454
py
Python
src/265. Paint House II .py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/265. Paint House II .py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/265. Paint House II .py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def minCostII(self, costs: List[List[int]]) -> int: if not costs: return 0 lower_row = costs[-1] k = len(lower_row) for i in range(len(costs)-2, -1, -1): curr_row = costs[i][:] for j in range(k): curr_row[j] += min(lower_row[:j...
25.222222
67
0.491189
450
0.991189
0
0
0
0
0
0
18
0.039648
ff0849124ea93b7bec63c0f48293d31e29b5e59a
442
py
Python
tryouts/withBlessings.py
programmingLego/legoBTLE4PI
d4641eb3e5451f8f64a4ac038ebadb8c3b452ec0
[ "MIT" ]
2
2021-06-05T18:06:43.000Z
2021-08-13T12:16:48.000Z
tryouts/withBlessings.py
programmingLego/legoBTLE4PI
d4641eb3e5451f8f64a4ac038ebadb8c3b452ec0
[ "MIT" ]
4
2021-06-05T18:55:26.000Z
2021-06-23T19:40:53.000Z
tryouts/withBlessings.py
DietrichChristopeit/project-cimino
62eaf5e2661200094742c1ab65524128488d84bf
[ "MIT" ]
null
null
null
import time from blessings import Terminal term = Terminal() with term.location(): for i in range(10): t = i l = len(str(t)) print(term.move(10, term.height-1) + 'This is', term.underline(str(t))) time.sleep(1) print(term.move(10, term.height - 1) + 'This is', l*' ') ...
31.571429
127
0.597285
0
0
0
0
0
0
0
0
36
0.081448
ff08e3833e5406d35fb9da8d119e002439370636
1,399
py
Python
python/test.py
yushulx/myget-barcode-sample
f47d79794f439cae4baf33e6299802dd35587da7
[ "CNRI-Python" ]
null
null
null
python/test.py
yushulx/myget-barcode-sample
f47d79794f439cae4baf33e6299802dd35587da7
[ "CNRI-Python" ]
null
null
null
python/test.py
yushulx/myget-barcode-sample
f47d79794f439cae4baf33e6299802dd35587da7
[ "CNRI-Python" ]
null
null
null
from dbr import DynamsoftBarcodeReader dbr = DynamsoftBarcodeReader() def InitLicense(license): dbr.InitLicense(license) def DecodeFile(fileName): try: results = dbr.DecodeFile(fileName) textResults = results["TextResults"] resultsLength = len(textResults) print("count: " + st...
34.121951
71
0.593281
0
0
0
0
0
0
0
0
248
0.177269
ff094fcc3bfffb49faac08b0936857ef5e95c080
3,963
py
Python
examples/plotting/AdaptiveW_process_SA.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
2
2020-01-07T04:12:42.000Z
2021-12-21T22:25:31.000Z
examples/plotting/AdaptiveW_process_SA.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
11
2019-11-29T02:59:34.000Z
2022-03-12T00:07:28.000Z
examples/plotting/AdaptiveW_process_SA.py
JiazhengChai/synergy_DRL
c08e78e5fe39d9d46213e1bf07b8dafc2195b05a
[ "MIT" ]
1
2020-04-28T12:06:40.000Z
2020-04-28T12:06:40.000Z
from sklearn.preprocessing import StandardScaler import numpy as np from sklearn.metrics import r2_score from matplotlib import pyplot as plt import os from matplotlib.lines import Line2D from exp_variant_class import exp_variant#,PCA from sklearn.decomposition import PCA import argparse from scipy import integrate imp...
23.873494
127
0.661368
0
0
0
0
0
0
0
0
514
0.1297
ff098e38a6ea9af6ee303beb724496a6885a6fff
1,100
py
Python
p886m/possible_bipartition.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p886m/possible_bipartition.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p886m/possible_bipartition.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List from collections import defaultdict class Solution: def possibleBipartition(self, N: int, dislikes: List[List[int]]) -> bool: graph = defaultdict(list) for a, b in dislikes: graph[a].append(b) graph[b].append(a) RED, BLUE = 0, 1 colo...
28.205128
77
0.513636
558
0.507273
0
0
0
0
0
0
138
0.125455
ff0ad96003ab263c05c0ef76f377fb269621afc1
1,315
py
Python
misc/wysalem.py
wy2136/wython
0eaa9db335d57052806ae956afe6a34705407628
[ "MIT" ]
1
2022-03-21T21:24:40.000Z
2022-03-21T21:24:40.000Z
misc/wysalem.py
wy2136/wython
0eaa9db335d57052806ae956afe6a34705407628
[ "MIT" ]
null
null
null
misc/wysalem.py
wy2136/wython
0eaa9db335d57052806ae956afe6a34705407628
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Wenchang Yang (wenchang@princeton.edu) # Fri May 15 13:45:34 EDT 2020 if __name__ == '__main__': from misc.timer import Timer tt = Timer(f'start {__file__}') import sys, os.path, os, glob import xarray as xr, numpy as np, pandas as pd #import matplotlib.pyplot as plt #more imports import...
24.811321
74
0.642586
0
0
0
0
0
0
0
0
412
0.313308
ff0b2afd610385ef75e98eb2924a9e2596709742
4,120
py
Python
ops/update_version.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
5
2017-11-28T14:57:53.000Z
2019-01-16T08:48:10.000Z
ops/update_version.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
49
2017-04-11T11:18:58.000Z
2021-02-10T23:06:20.000Z
ops/update_version.py
DropD/sparkplug
be817103ef32cbc908de004659b538993d14eeb4
[ "MIT" ]
8
2017-06-16T17:01:33.000Z
2021-02-09T10:28:03.000Z
"""Update version numbers everywhere based on git tags.""" from __future__ import print_function import os import re import json import fileinput import contextlib import subprocess try: # prefer the backport for Python <3.5 from pathlib2 import Path except ImportError: from pathlib import Path import colle...
34.049587
134
0.65801
3,308
0.802913
204
0.049515
1,594
0.386893
0
0
1,229
0.298301
ff0b92cac5191bfb5cafcf2ad2b6f9c3f1b55cd2
1,516
py
Python
my_twitter_bot.py
Tomonori-Yoshino/Automating_tweets
117b09973f22a2438335facfdb427dbb2e23d005
[ "MIT" ]
null
null
null
my_twitter_bot.py
Tomonori-Yoshino/Automating_tweets
117b09973f22a2438335facfdb427dbb2e23d005
[ "MIT" ]
null
null
null
my_twitter_bot.py
Tomonori-Yoshino/Automating_tweets
117b09973f22a2438335facfdb427dbb2e23d005
[ "MIT" ]
null
null
null
import tweepy import time print("this is my twitter bot") CONSUMER_KEY = 'Xqpf3M4z5poRH6yp17lGXgUSU' CONSUMER_SECRET = '2RVEN70Ti4QCl0kDMptrY4AnJF6kqEOBFdSEV1aZf3rBEN8AeL' ACCESS_KEY = '732483098336595968-hH2jZVrpjKy0WxkM6dHzyZJ5kGgCrE9' ACCESS_SECRET = '98B9BTk2toO3qLIppsMcsPThgOSoOf9GiGZ55OGFIypYE' auth = tweepy.O...
28.074074
103
0.718338
0
0
0
0
0
0
0
0
359
0.236807
ff0d6655608abd51b92ee26a4cf60baaeb0ced3d
4,038
py
Python
booktime/settings.py
adityatelange/django-ebook-audiobook-website
c07647df78b1807d585b3f14678e7726ba89f5c7
[ "MIT" ]
2
2019-09-10T09:42:23.000Z
2019-11-28T08:56:09.000Z
booktime/settings.py
adityatelange/django-ebook-audiobook-website
c07647df78b1807d585b3f14678e7726ba89f5c7
[ "MIT" ]
null
null
null
booktime/settings.py
adityatelange/django-ebook-audiobook-website
c07647df78b1807d585b3f14678e7726ba89f5c7
[ "MIT" ]
null
null
null
""" Django settings for booktime project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
26.92
91
0.687717
0
0
0
0
0
0
0
0
2,614
0.64735
ff0db082700495307506b5163be178a41cbf3825
83
py
Python
paintbot/__init__.py
MimirHQ/paintbot
486e6a6cf8013adf613f66905f5ed682c05087f9
[ "MIT" ]
1
2018-06-13T18:03:12.000Z
2018-06-13T18:03:12.000Z
paintbot/__init__.py
MimirHQ/paintbot
486e6a6cf8013adf613f66905f5ed682c05087f9
[ "MIT" ]
null
null
null
paintbot/__init__.py
MimirHQ/paintbot
486e6a6cf8013adf613f66905f5ed682c05087f9
[ "MIT" ]
null
null
null
""" paintbot main module """ from paintbot.game import ( # noqa PaintGame )
9.222222
35
0.638554
0
0
0
0
0
0
0
0
34
0.409639
ff0f2f83aeb478e57ecba0e353fdfa1c90342077
73
py
Python
sonos_pi3_controller/bt_pair_controller/__init__.py
kirkden/sonos_pi3_refresh
cfa997f3a26bd7738eef7b685a9c1e037c53ed7e
[ "MIT" ]
1
2021-03-24T15:14:50.000Z
2021-03-24T15:14:50.000Z
sonos_pi3_controller/bt_pair_controller/__init__.py
kirkden/sonos_pi3_refresh
cfa997f3a26bd7738eef7b685a9c1e037c53ed7e
[ "MIT" ]
null
null
null
sonos_pi3_controller/bt_pair_controller/__init__.py
kirkden/sonos_pi3_refresh
cfa997f3a26bd7738eef7b685a9c1e037c53ed7e
[ "MIT" ]
null
null
null
from .bt_pair_controller import set_bt_pairing, update_bt_device_config
24.333333
71
0.890411
0
0
0
0
0
0
0
0
0
0
ff0ff3bb7018607eef270c5c0dfe4b9eddf207b1
6,850
py
Python
crypto.py
souravdas142/LiveChain
f590060e8d77f29694e746459c4e4f780c37295c
[ "MIT" ]
1
2021-05-08T08:12:34.000Z
2021-05-08T08:12:34.000Z
crypto.py
souravdas142/LiveChain
f590060e8d77f29694e746459c4e4f780c37295c
[ "MIT" ]
null
null
null
crypto.py
souravdas142/LiveChain
f590060e8d77f29694e746459c4e4f780c37295c
[ "MIT" ]
1
2021-05-08T08:13:18.000Z
2021-05-08T08:13:18.000Z
import random class crypto: P = 2 ** 256 - 2 ** 32 - 2 ** 9 - 2 ** 8 - 2 ** 7 - 2 ** 6 - 2 ** 4 - 1 # prime number for modulus operations order = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 # order for the elliptic curve y^2=x^3+7 ,used in bitcoin Gx = 550662630222773436695787...
32.464455
164
0.500292
6,831
0.997226
0
0
0
0
0
0
1,575
0.229927
ff1042f2a23ccb08afabbfa3dbb2d4b96cc2e564
2,062
py
Python
fio.py
fabrickit-fablib/benchmark
48670230ab67192074047dbbc397c2b5e13edcdf
[ "MIT" ]
null
null
null
fio.py
fabrickit-fablib/benchmark
48670230ab67192074047dbbc397c2b5e13edcdf
[ "MIT" ]
null
null
null
fio.py
fabrickit-fablib/benchmark
48670230ab67192074047dbbc397c2b5e13edcdf
[ "MIT" ]
null
null
null
# coding: utf-8 import copy import json from fabkit import * # noqa from fablib.base import SimpleBase class Fio(SimpleBase): def __init__(self): self.data_key = 'sysbench' self.data = { 'mysql': { 'user': 'sysbench', 'password': 'sysbench', ...
28.246575
84
0.461203
1,954
0.947624
0
0
0
0
0
0
613
0.297284
ff11450e5548a704cb271296b84792ba3051678a
5,433
py
Python
knowledgebase/db/mongo.py
linkdd/knowledgebase
89cd5a6802efd1359863f91b742a43684354b8b2
[ "MIT" ]
1
2017-03-20T08:48:33.000Z
2017-03-20T08:48:33.000Z
knowledgebase/db/mongo.py
linkdd/knowledgebase
89cd5a6802efd1359863f91b742a43684354b8b2
[ "MIT" ]
null
null
null
knowledgebase/db/mongo.py
linkdd/knowledgebase
89cd5a6802efd1359863f91b742a43684354b8b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from knowledgebase.db.base import Vertex as BaseVertex from knowledgebase.db.base import Edge as BaseEdge from knowledgebase.db.base import ElementView as BaseElementView from knowledgebase.db.base import Graph as BaseGraph from bson.objectid import ObjectId from pymongo import MongoClient fro...
27.029851
74
0.561936
5,013
0.922695
2,166
0.398675
942
0.173385
0
0
259
0.047672
ff11ad37041d3b4e8d72e395cee185f651939aa0
85
py
Python
setup.py
MrRubyRed/MBRL
fa8e357325611fd8431ce3be5e97592011f010c6
[ "BSD-3-Clause" ]
null
null
null
setup.py
MrRubyRed/MBRL
fa8e357325611fd8431ce3be5e97592011f010c6
[ "BSD-3-Clause" ]
null
null
null
setup.py
MrRubyRed/MBRL
fa8e357325611fd8431ce3be5e97592011f010c6
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup(name='mbrl', version='0.1.0', packages=['mbrl'])
21.25
54
0.705882
0
0
0
0
0
0
0
0
19
0.223529
ff13684383add06888abbfe0e42239e9acfeb522
1,591
py
Python
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
""" Drawing Vector Fields https://stackoverflow.com/questions/25342072/computing-and-drawing-vector-fields Adding colorbar to existing axis https://stackoverflow.com/questions/32462881/add-colorbar-to-existing-axis """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_loc...
25.66129
80
0.670647
0
0
0
0
0
0
0
0
590
0.370836
ff166319d7571cbeff470120486344f6e07be45c
2,809
py
Python
database/user.py
As-12/Fit-App-backend-
d95b07fdb1aed882d01d3a70b4b0f308374bf304
[ "MIT" ]
null
null
null
database/user.py
As-12/Fit-App-backend-
d95b07fdb1aed882d01d3a70b4b0f308374bf304
[ "MIT" ]
null
null
null
database/user.py
As-12/Fit-App-backend-
d95b07fdb1aed882d01d3a70b4b0f308374bf304
[ "MIT" ]
null
null
null
from main import db from dataclasses import dataclass import database @dataclass class User(db.Model): __tablename__ = 'user' id: str = db.Column(db.String, primary_key=True, autoincrement=False) target_weight: float = db.Column(db.Float, nullable=False) height: float = db.Colu...
29.260417
72
0.503382
2,725
0.970096
0
0
2,736
0.974012
0
0
1,310
0.466358
ff179049d6a93f539ffdb9a3e5f19fac5a840892
2,755
py
Python
AutoFormer/model/module/Linear_super.py
Inch-Z/Cream
5adb978db133842dd44f54614a9303dc5d11aa7d
[ "MIT" ]
307
2020-10-29T13:17:02.000Z
2022-03-30T09:55:49.000Z
AutoFormer/model/module/Linear_super.py
Inch-Z/Cream
5adb978db133842dd44f54614a9303dc5d11aa7d
[ "MIT" ]
42
2020-10-30T07:09:48.000Z
2022-03-29T13:54:56.000Z
AutoFormer/model/module/Linear_super.py
Inch-Z/Cream
5adb978db133842dd44f54614a9303dc5d11aa7d
[ "MIT" ]
64
2020-10-30T10:08:48.000Z
2022-03-30T06:51:01.000Z
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np class LinearSuper(nn.Linear): def __init__(self, super_in_dim, super_out_dim, bias=True, uniform_=None, non_linear='linear', scale=False): super().__init__(super_in_dim, super_out_dim, bias=bias) # super_in_dim a...
33.597561
115
0.676951
2,377
0.862795
0
0
0
0
0
0
200
0.072595
ff17afb225298a2ce7876034f454a6c0c4d8cebd
1,251
py
Python
aquascope/util/config.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
null
null
null
aquascope/util/config.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
3
2019-04-03T13:22:47.000Z
2019-12-02T15:49:31.000Z
aquascope/util/config.py
MicroscopeIT/aquascope_backend
6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24
[ "MIT" ]
2
2019-05-15T13:30:42.000Z
2020-06-12T02:42:49.000Z
from collections import abc import copy import yaml def data_merge(a, b): if isinstance(a, abc.Mapping): if not isinstance(b, abc.Mapping): raise TypeError('cannot merge {} into a dictionary'.format(b)) a = copy.deepcopy(a) for k in b: try: a[k] = d...
20.508197
74
0.544365
809
0.646683
0
0
0
0
0
0
108
0.086331
ff18f8d189b281647e54313083f71e52b26e849f
5,532
py
Python
oxasl/gui/calib_tab.py
physimals/oxasl
e583103f3313aed2890b60190b6ca7b265a46e3c
[ "Apache-2.0" ]
1
2021-01-27T05:48:20.000Z
2021-01-27T05:48:20.000Z
oxasl/gui/calib_tab.py
ibme-qubic/oxasl
8a0c055752d6e10cd932336ae6916f0c4fc0a2e9
[ "Apache-2.0" ]
13
2019-01-14T13:22:00.000Z
2020-09-12T20:34:20.000Z
oxasl/gui/calib_tab.py
physimals/oxasl
e583103f3313aed2890b60190b6ca7b265a46e3c
[ "Apache-2.0" ]
3
2019-03-19T15:46:48.000Z
2020-03-13T16:55:48.000Z
""" oxasl.gui.calibration_tab.py Copyright (c) 2019 University of Oxford """ from oxasl.gui.widgets import TabPage class AslCalibration(TabPage): """ Tab page containing options for calibration """ def __init__(self, parent, idx, n): TabPage.__init__(self, parent, "Calibration", idx, n) ...
41.283582
124
0.625271
5,413
0.978489
0
0
0
0
0
0
1,012
0.182936
ff1965ee1d197cb5fef833ce6f16c3119dfdad66
295
py
Python
annodomini/__init__.py
TheDubliner/RedArmy-Cogs
f0ae7ab554e176254a91e322e0cf349b69971e98
[ "MIT" ]
null
null
null
annodomini/__init__.py
TheDubliner/RedArmy-Cogs
f0ae7ab554e176254a91e322e0cf349b69971e98
[ "MIT" ]
5
2020-05-16T12:21:26.000Z
2020-06-01T11:26:50.000Z
annodomini/__init__.py
TheDubliner/RedArmy-Cogs
f0ae7ab554e176254a91e322e0cf349b69971e98
[ "MIT" ]
null
null
null
from .annodomini import AnnoDomini __red_end_user_data_statement__ = ( "This cog stores data attached to a user ID for the purpose of running " " the game and saving statistics.\n" "This cog supports data removal requests." ) def setup(bot): bot.add_cog(AnnoDomini(bot))
22.692308
76
0.718644
0
0
0
0
0
0
0
0
150
0.508475
ff19d763570001bb5b3069ee03ffa76d0400a9d7
1,303
py
Python
3. Linear Regresion/3-6)Mini Batch and Data Load.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
3. Linear Regresion/3-6)Mini Batch and Data Load.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
3. Linear Regresion/3-6)Mini Batch and Data Load.py
choijiwoong/-ROKA-torch-tutorial-files
c298fdf911cd64757895c3ab9f71ae7c3467c545
[ "Unlicense" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import TensorDataset from torch.utils.data import DataLoader x_train=torch.FloatTensor([[73,80,75], [93,88,93], [89,91,90], [96,98,100], ...
30.302326
89
0.623945
0
0
0
0
0
0
0
0
210
0.161167
ff1ad4b17580fbaf7e85b4376dc04a3da6a40153
42
py
Python
src/dcos_e2e_cli/dcos_docker/commands/__init__.py
jongiddy/dcos-e2e
b52ef9a1097a8fb328902064345cc6c8b0bf5779
[ "Apache-2.0" ]
63
2018-05-17T21:02:14.000Z
2021-11-15T19:18:03.000Z
src/dcos_e2e_cli/dcos_docker/commands/__init__.py
jongiddy/dcos-e2e
b52ef9a1097a8fb328902064345cc6c8b0bf5779
[ "Apache-2.0" ]
225
2017-09-08T02:24:58.000Z
2018-05-16T12:18:58.000Z
src/dcos_e2e_cli/dcos_docker/commands/__init__.py
jongiddy/dcos-e2e
b52ef9a1097a8fb328902064345cc6c8b0bf5779
[ "Apache-2.0" ]
21
2018-06-14T21:58:24.000Z
2021-11-15T19:18:06.000Z
""" Commands for ``minidcos docker``. """
10.5
33
0.595238
0
0
0
0
0
0
0
0
41
0.97619
205b8088479920dca866cedf75f6b27d51ad46f9
200
py
Python
halo_bian/bian/plugins/halo_bian_err_plugin.py
halo-framework/halo-bian
38fe577bf3e5e0fe57f5e3eb5809d609e3f880ac
[ "MIT" ]
null
null
null
halo_bian/bian/plugins/halo_bian_err_plugin.py
halo-framework/halo-bian
38fe577bf3e5e0fe57f5e3eb5809d609e3f880ac
[ "MIT" ]
null
null
null
halo_bian/bian/plugins/halo_bian_err_plugin.py
halo-framework/halo-bian
38fe577bf3e5e0fe57f5e3eb5809d609e3f880ac
[ "MIT" ]
null
null
null
class BianPlugin(): def ready(self): return True def run(self,core,*params): err = "from halo_bian.bian.mixin_err_msg import ErrorMessages\n\n" return {"err":err}
16.666667
74
0.615
196
0.98
0
0
0
0
0
0
65
0.325
205bed737ae851cb6d34930622f0a31f72e6dab8
6,792
py
Python
s3scan.py
abhn/Public-AWS-S3-Finder
8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d
[ "MIT" ]
21
2017-05-27T07:44:45.000Z
2022-02-16T14:11:46.000Z
s3scan.py
abhn/Public-AWS-S3-Finder
8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d
[ "MIT" ]
null
null
null
s3scan.py
abhn/Public-AWS-S3-Finder
8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d
[ "MIT" ]
13
2017-06-17T05:22:26.000Z
2020-10-18T09:36:00.000Z
import re import sys, os import httplib2 import boto3, botocore from BeautifulSoup import BeautifulSoup, SoupStrainer from optparse import OptionParser from botocore.client import Config # Saving myself from passing around these variables # Sorry! globalBaseUrl = "" globalLinkList = [] s3 = None # https://stackover...
26.740157
102
0.665342
202
0.029741
0
0
0
0
0
0
2,568
0.378092
205d500564f612d825bf5416f85d96a0ea9a3138
441
py
Python
plants/migrations/0013_plant_access_type.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
null
null
null
plants/migrations/0013_plant_access_type.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
21
2021-08-30T14:52:33.000Z
2022-02-08T14:24:21.000Z
plants/migrations/0013_plant_access_type.py
spalk/Plant-Passport-gitpod
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-17 14:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('plants', '0012_alter_photo_user'), ] operations = [ migrations.AddField( model_name='plant', name='access_type', ...
23.210526
106
0.587302
348
0.789116
0
0
0
0
0
0
124
0.281179
205f2e686753d8740c59888037ef43abf26bbe29
16,346
py
Python
src/services/pokemonirc/game_output.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
6
2018-08-07T14:57:58.000Z
2020-02-13T18:43:49.000Z
src/services/pokemonirc/game_output.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
2
2018-08-08T12:12:28.000Z
2018-08-23T12:46:25.000Z
src/services/pokemonirc/game_output.py
Telsanyr/Johnny_VI
db9f54457c33b1f70616671611e6bc4fc4c44d1b
[ "WTFPL" ]
1
2018-08-07T14:51:15.000Z
2018-08-07T14:51:15.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # coding: utf8 # Libs imports import os import json import time from datetime import datetime # Rule #1: Always print arguments with str() function # Rule #2: In order to avoid useless ping, add '_' before any player username if the command can be triggered by someone else...
58.378571
229
0.587789
16,093
0.980384
0
0
0
0
0
0
6,180
0.376485