hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
61cec369b3732fca5135012a654d9aa0eab32326
7,944
py
Python
MTVulnerability/utils/losses_pytorch.py
yamizi/taskaugment
8393e15d7ae16f267592edf1d67e20368aeeb1b5
[ "MIT" ]
null
null
null
MTVulnerability/utils/losses_pytorch.py
yamizi/taskaugment
8393e15d7ae16f267592edf1d67e20368aeeb1b5
[ "MIT" ]
null
null
null
MTVulnerability/utils/losses_pytorch.py
yamizi/taskaugment
8393e15d7ae16f267592edf1d67e20368aeeb1b5
[ "MIT" ]
null
null
null
import sys, os sys.path.append("./midlevel-reps") from visualpriors.taskonomy_network import TaskonomyDecoder import torch import torch.nn.functional as F import torch.nn as nn SMOOTH = 1e-6 CHANNELS_TO_TASKS = { 1: ['colorization', 'edge_texture', 'edge_occlusion', 'keypoints3d', 'keypoints2d', 'reshading', 'd...
45.136364
276
0.656596
61cf7342efb940a3f5d7c9b44e90c3d3f4d12610
21,205
py
Python
src/trails/flow_model.py
BenDickens/trails
a89a1a901c7be38cdcb7a59339587e518ab8f14d
[ "MIT" ]
4
2020-09-14T07:20:19.000Z
2021-04-22T14:23:04.000Z
src/trails/flow_model.py
BenDickens/trails
a89a1a901c7be38cdcb7a59339587e518ab8f14d
[ "MIT" ]
5
2021-03-17T17:02:27.000Z
2021-08-31T10:09:38.000Z
src/trails/flow_model.py
BenDickens/trails
a89a1a901c7be38cdcb7a59339587e518ab8f14d
[ "MIT" ]
3
2020-09-07T07:35:28.000Z
2021-04-22T14:23:39.000Z
import os,sys import numpy as np import pandas as pd import geopandas as gpd import matplotlib.pyplot as plt import pygeos from osgeo import gdal from tqdm import tqdm import igraph as ig import contextily as ctx from rasterstats import zonal_stats import time import pylab as pl from IPython import display import seabo...
35.400668
145
0.636831
61cffba0eebf31780c12f21faf032f94e065f6a5
1,238
py
Python
offsite/core/utils.py
wh1te909/backup-offsite
694f773583eb825b44ff20c51598ac9e1106cd32
[ "MIT" ]
4
2021-01-20T15:45:35.000Z
2021-07-09T02:15:31.000Z
offsite/core/utils.py
wh1te909/backup-offsite
694f773583eb825b44ff20c51598ac9e1106cd32
[ "MIT" ]
6
2020-08-02T23:31:07.000Z
2021-09-22T19:19:50.000Z
offsite/core/utils.py
wh1te909/backup-offsite
694f773583eb825b44ff20c51598ac9e1106cd32
[ "MIT" ]
null
null
null
from channels.auth import AuthMiddlewareStack from knox.auth import TokenAuthentication from django.contrib.auth.models import AnonymousUser from channels.db import database_sync_to_async KnoxAuthMiddlewareStack = lambda inner: KnoxAuthMiddleware(AuthMiddlewareStack(inner))
25.265306
86
0.697092
61d14e7bc92cdd86e7f3f92f3039ee396ac2a457
6,841
py
Python
unik/indexing.py
balbasty/unik
7b8b2a0989495eec7bc0db6c672ce904cbcb1063
[ "MIT" ]
null
null
null
unik/indexing.py
balbasty/unik
7b8b2a0989495eec7bc0db6c672ce904cbcb1063
[ "MIT" ]
null
null
null
unik/indexing.py
balbasty/unik
7b8b2a0989495eec7bc0db6c672ce904cbcb1063
[ "MIT" ]
null
null
null
"""Access / change tensor shape.""" import tensorflow as tf import numpy as np from .magik import tensor_compat from .alloc import zeros_like from .types import has_tensor, as_tensor, cast, dtype from .shapes import shape, reshape, flatten, transpose, unstack from ._math_for_indexing import cumprod, minimum, maximum f...
35.262887
77
0.582517
61d192d69ecdae0462072ff12464ac90f01f69d0
1,478
py
Python
aleph/views/alerts_api.py
adikadashrieq/aleph
acc03197c10e511a279ae3a05120187223f173d2
[ "MIT" ]
1
2019-06-18T21:35:59.000Z
2019-06-18T21:35:59.000Z
aleph/views/alerts_api.py
heartofstone/aleph
d66b6615d2bfa10c291c63754f53b468de8bebde
[ "MIT" ]
null
null
null
aleph/views/alerts_api.py
heartofstone/aleph
d66b6615d2bfa10c291c63754f53b468de8bebde
[ "MIT" ]
null
null
null
from flask import Blueprint, request from aleph.core import db from aleph.model import Alert from aleph.search import DatabaseQueryResult from aleph.views.forms import AlertSchema from aleph.views.serializers import AlertSerializer from aleph.views.util import require, obj_or_404 from aleph.views.util import parse_req...
31.446809
71
0.750338
61d210a06894e407303586520efa2e44fe445461
11,283
py
Python
run.py
Acforest/LogPrompt
199766cea9988bc6e8b1c71352b090da68bbb71d
[ "Apache-2.0" ]
null
null
null
run.py
Acforest/LogPrompt
199766cea9988bc6e8b1c71352b090da68bbb71d
[ "Apache-2.0" ]
null
null
null
run.py
Acforest/LogPrompt
199766cea9988bc6e8b1c71352b090da68bbb71d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
58.46114
119
0.660197
61d24122d7792980c0b72c95b9dc3ec6c9efd631
2,282
py
Python
data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/253384/national_data_science_bowl_2-master/alexcode/code/model.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
from keras.models import Sequential from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D from keras.layers.core import Activation, Dense, Flatten, Dropout from keras.optimizers import Adam from keras.regularizers import l2 from keras import backend as K def center_normalize(x)...
34.575758
82
0.659509
61d29e48cb817ece86e476bffbf91b00d5532c33
8,685
py
Python
BuildDeb.py
KOLANICH/GraalVM_deb_packages_CI
f41786b4daa11efebe24402f5000111137365b4f
[ "Apache-2.0", "Unlicense" ]
null
null
null
BuildDeb.py
KOLANICH/GraalVM_deb_packages_CI
f41786b4daa11efebe24402f5000111137365b4f
[ "Apache-2.0", "Unlicense" ]
null
null
null
BuildDeb.py
KOLANICH/GraalVM_deb_packages_CI
f41786b4daa11efebe24402f5000111137365b4f
[ "Apache-2.0", "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import sys import struct import re import os from itertools import chain import warnings import tarfile import sh from tqdm import tqdm from pydebhelper import * from getLatestVersionAndURLWithGitHubAPI import getTargets config = OrderedDict() config["llvm"] = { "descriptionLong": "LLVM e...
32.773585
691
0.687737
61d2ae9ec01343c7273afc66fcb5912f5895801a
6,267
py
Python
mergify_engine/utils.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
mergify_engine/utils.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
mergify_engine/utils.py
Madhu-1/mergify-engine
9ca4f4697cc825230b1584f5587f10393cabc971
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright 2017 Red Hat, 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 applicab...
27.977679
88
0.6322
61d440e6d71c032e6b0102e0319c9ad174f35ff4
1,750
py
Python
milefrienddb/models/vehicles.py
jcrjaci/mil_test
ed54f55c5aacd8ffd110b7c173422dbd0cac631f
[ "MIT" ]
null
null
null
milefrienddb/models/vehicles.py
jcrjaci/mil_test
ed54f55c5aacd8ffd110b7c173422dbd0cac631f
[ "MIT" ]
null
null
null
milefrienddb/models/vehicles.py
jcrjaci/mil_test
ed54f55c5aacd8ffd110b7c173422dbd0cac631f
[ "MIT" ]
null
null
null
"""Vehicle's app models.""" import uuid from django.db import models from .clients import Client
38.043478
87
0.737714
61d6182a3cde9be8c7c4791931417d4e0d9e7b55
187
py
Python
ejercicio_4.py
Laurardila440/taller-de-secuencias
9db216d2431661e0777273fc5b8360a316d7dbd2
[ "Apache-2.0" ]
null
null
null
ejercicio_4.py
Laurardila440/taller-de-secuencias
9db216d2431661e0777273fc5b8360a316d7dbd2
[ "Apache-2.0" ]
null
null
null
ejercicio_4.py
Laurardila440/taller-de-secuencias
9db216d2431661e0777273fc5b8360a316d7dbd2
[ "Apache-2.0" ]
null
null
null
""" Entradas compra-->int-->c salidas Descuento-->flot-->d """ c=float(input("digite compra")) #caja negra d=(c*0.15) total=(c-d) #Salidas print("el total a pagar es de :"+str(total))
14.384615
44
0.641711
61d6aa3833e84422d5bd54157900ea1d35ffca0b
878
py
Python
429.py
geethakamath18/Leetcode
8e55e0a47ee35ed100b30dda6682c7ce1033d4b2
[ "MIT" ]
null
null
null
429.py
geethakamath18/Leetcode
8e55e0a47ee35ed100b30dda6682c7ce1033d4b2
[ "MIT" ]
null
null
null
429.py
geethakamath18/Leetcode
8e55e0a47ee35ed100b30dda6682c7ce1033d4b2
[ "MIT" ]
null
null
null
#LeetCode problem 429: N-ary Tree Level Order Traversal """ # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """
26.606061
61
0.544419
61d7cc4850de782acf97ce8fd6bae60d5d5eb06f
544
py
Python
PyhonServer/app-client.py
sixfourtwo/auhack19
65b94c6cbdbfbd50e355c12b8ca2792b3b086321
[ "Apache-2.0" ]
null
null
null
PyhonServer/app-client.py
sixfourtwo/auhack19
65b94c6cbdbfbd50e355c12b8ca2792b3b086321
[ "Apache-2.0" ]
null
null
null
PyhonServer/app-client.py
sixfourtwo/auhack19
65b94c6cbdbfbd50e355c12b8ca2792b3b086321
[ "Apache-2.0" ]
null
null
null
# importing the requests library import requests import json # api-endpoint URL = "http://127.0.0.1:80/water_mark" # defining a params dict for the parameters to be sent to the API # data is picture data # tagString is the text to embed into picture. data = { "data":"This is the original text", "tagStri...
22.666667
66
0.6875
61d90f523acdcf1af2ba8df7242ffe2e2fdeac93
9,827
py
Python
memnet.py
404akhan/memnet
a8cf9e0a480575d9d36de6fa3357f667d64e0b05
[ "BSD-3-Clause" ]
1
2018-02-01T05:17:13.000Z
2018-02-01T05:17:13.000Z
memnet.py
404akhan/memnet
a8cf9e0a480575d9d36de6fa3357f667d64e0b05
[ "BSD-3-Clause" ]
null
null
null
memnet.py
404akhan/memnet
a8cf9e0a480575d9d36de6fa3357f667d64e0b05
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn.functional as F import torch.nn.init as init from torch import nn, autograd from torch.utils.data import DataLoader from babi import BabiDataset, pad_collate from torch.nn.utils import clip_grad_norm torch.backends.cudnn.benchmark = True torch.backends.cudnn.fastest = True HIDDEN_DIM ...
37.083019
110
0.623792
61d93349709f00bb603d8566d8afdb83080026fb
3,444
py
Python
tests/test_tba.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
11
2019-10-14T02:05:38.000Z
2022-03-10T14:10:22.000Z
tests/test_tba.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
29
2019-09-02T05:49:40.000Z
2022-02-26T00:57:54.000Z
tests/test_tba.py
StanfordAHA/Lake
34df001db107e1a0824b7fdb05b9f2145bf49a3e
[ "BSD-3-Clause" ]
1
2021-04-16T20:26:13.000Z
2021-04-16T20:26:13.000Z
from lake.models.tba_model import TBAModel from lake.modules.transpose_buffer_aggregation import TransposeBufferAggregation from lake.passes.passes import lift_config_reg import magma as m from magma import * import fault import tempfile import kratos as k import random as rand import pytest if __name__ == "__main__...
29.947826
94
0.594948
61da398102287561106f2583dbf3dd6a0d400ea3
1,442
py
Python
2018/02/py/run.py
Bigsby/aoc
409fefbb0467628fa298288064acb622bb53ee58
[ "CC0-1.0" ]
1
2021-06-11T17:24:05.000Z
2021-06-11T17:24:05.000Z
2018/02/py/run.py
Bigsby/aoc
409fefbb0467628fa298288064acb622bb53ee58
[ "CC0-1.0" ]
null
null
null
2018/02/py/run.py
Bigsby/aoc
409fefbb0467628fa298288064acb622bb53ee58
[ "CC0-1.0" ]
null
null
null
#! /usr/bin/python3 import sys, os, time from typing import List, Tuple from itertools import combinations if __name__ == "__main__": main()
25.75
72
0.615811
61da655b21d56bf52e1b1c392472699b90dc9b53
275
py
Python
text_directions.py
ErnestoPena/Game-Of-Life.-Python
046bca4ae1c69e08efed4f45057b097653410ec8
[ "MIT" ]
null
null
null
text_directions.py
ErnestoPena/Game-Of-Life.-Python
046bca4ae1c69e08efed4f45057b097653410ec8
[ "MIT" ]
null
null
null
text_directions.py
ErnestoPena/Game-Of-Life.-Python
046bca4ae1c69e08efed4f45057b097653410ec8
[ "MIT" ]
null
null
null
import pygame
45.833333
122
0.632727
61db9a4dde565ed6cc9ccd45b6a858a56b15b618
515
py
Python
brummi/config.py
fredreichbier/brummi
d833e6dc0b74c8bddea225c785b3cba463b13ecd
[ "MIT" ]
1
2015-11-05T04:35:07.000Z
2015-11-05T04:35:07.000Z
brummi/config.py
fredreichbier/brummi
d833e6dc0b74c8bddea225c785b3cba463b13ecd
[ "MIT" ]
null
null
null
brummi/config.py
fredreichbier/brummi
d833e6dc0b74c8bddea225c785b3cba463b13ecd
[ "MIT" ]
null
null
null
import pkg_resources from . import BrummiRepository DEFAULTS = { 'templates': pkg_resources.resource_filename('brummi', 'templates'), 'out_path': 'docs', }
23.409091
72
0.615534
61de22931c74120ebd50c4d032782c041e459df7
730
py
Python
kittiground/__init__.py
JeremyBYU/polylidar-kitti
bfad0dc4a74e136d2841dccf3ccc05d982f18a8e
[ "MIT" ]
null
null
null
kittiground/__init__.py
JeremyBYU/polylidar-kitti
bfad0dc4a74e136d2841dccf3ccc05d982f18a8e
[ "MIT" ]
null
null
null
kittiground/__init__.py
JeremyBYU/polylidar-kitti
bfad0dc4a74e136d2841dccf3ccc05d982f18a8e
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np THIS_FILE = Path(__file__) THIS_DIR = THIS_FILE.parent DEFAULT_CONFIG_FILE = THIS_DIR / 'config' / 'default.yaml' # Width/height of the visual screens IMG_WIDTH = 1242 IMG_HEIGHT = 375 # INTRINISCS = np.array([[649.51905284, 0.00000000, 620.50000000], # ...
38.421053
75
0.610959
61df694948c2ba5c7d34c79e97268eab5f090a30
3,272
py
Python
palette/core/color_transfer.py
SuziKim/PaletteSelection
cfc0052996b5c8dc1da2d6e30798dd1fed138ebe
[ "MIT" ]
23
2015-08-25T12:31:44.000Z
2021-12-15T03:18:12.000Z
palette/core/color_transfer.py
SuziKim/PaletteSelection
cfc0052996b5c8dc1da2d6e30798dd1fed138ebe
[ "MIT" ]
null
null
null
palette/core/color_transfer.py
SuziKim/PaletteSelection
cfc0052996b5c8dc1da2d6e30798dd1fed138ebe
[ "MIT" ]
7
2017-07-27T10:57:36.000Z
2022-02-22T06:51:44.000Z
# -*- coding: utf-8 -*- ## @package palette.core.color_transfer # # Color transfer. # @author tody # @date 2015/09/16 import numpy as np from scipy.interpolate import Rbf import matplotlib.pyplot as plt from palette.core.lab_slices import LabSlice, LabSlicePlot, Lab2rgb_py ## Color transfer for ab co...
37.181818
93
0.652812
61dfafddb5a99f013e5962a29c6779ac49a5f150
1,447
py
Python
CursoEmVideoPython/desafio95.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
null
null
null
CursoEmVideoPython/desafio95.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
1
2020-07-04T16:27:25.000Z
2020-07-04T16:27:25.000Z
CursoEmVideoPython/desafio95.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
null
null
null
scoult = dict() gols = list() time = list() temp = 0 while True: scoult['Jogador'] = str(input('Qual o nome do jogador: ')) scoult['Nmero partidas'] = int(input('Quantas partidas foram jogadas? ')) for i in range(0,scoult['Nmero partidas']): gols.append(int(input(f'Quantos gols foram marcados na par...
38.078947
109
0.561852
61dfc58457362e0a41be0f73d8c2ed155141035c
428
py
Python
Section07_Bridge/script-Bridge.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
1
2020-10-20T07:41:51.000Z
2020-10-20T07:41:51.000Z
Section07_Bridge/script-Bridge.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
null
null
null
Section07_Bridge/script-Bridge.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
null
null
null
# Circles and squares # Each can be rendered in vector or raster form from Section07_Bridge.Brigde.Circle import Circle from Section07_Bridge.Brigde.RasterRenderer import RasterRenderer from Section07_Bridge.Brigde.VectorRenderer import VectorRenderer if __name__ == '__main__': raster = RasterRenderer() vector...
30.571429
65
0.766355
61e1ff665914cfb40790ee569edb6f9cb201dad5
3,668
py
Python
Algorithms/On-Policy/A2C/DISCOVER_A2C.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
Algorithms/On-Policy/A2C/DISCOVER_A2C.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
Algorithms/On-Policy/A2C/DISCOVER_A2C.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.optim as optim from utils import init
37.050505
104
0.638768
61e3abea3e991562a75549fe727c93817d1999de
3,400
py
Python
user/beaninfo_Global.py
dvdrm/gd
c004724344577bb608fa0611d10c16b211995f72
[ "Apache-2.0" ]
null
null
null
user/beaninfo_Global.py
dvdrm/gd
c004724344577bb608fa0611d10c16b211995f72
[ "Apache-2.0" ]
null
null
null
user/beaninfo_Global.py
dvdrm/gd
c004724344577bb608fa0611d10c16b211995f72
[ "Apache-2.0" ]
null
null
null
from telethon import events, Button from .login import user from .. import jdbot from ..bot.utils import cmd, TASK_CMD,split_list, press_event from ..diy.utils import read, write import asyncio import re
33.009709
134
0.516471
61e4ce6929b3cf5b02ae69957ea9065425f62a24
2,409
py
Python
samples/boxcheck.py
cg2v/box_requests
024141a263c8918962957b75d208c532c7b853f0
[ "Apache-2.0" ]
null
null
null
samples/boxcheck.py
cg2v/box_requests
024141a263c8918962957b75d208c532c7b853f0
[ "Apache-2.0" ]
null
null
null
samples/boxcheck.py
cg2v/box_requests
024141a263c8918962957b75d208c532c7b853f0
[ "Apache-2.0" ]
1
2018-10-23T15:48:00.000Z
2018-10-23T15:48:00.000Z
#!/usr/bin/python import box_requests import requests import os import sys import time import socket import optparse import logging o=optparse.OptionParser() o.add_option('-v', '--verbose', action="store_true", dest="verbose", default=False, help="Display username on success") o.add_option('-d', '--debug', action="...
33.929577
120
0.688252
61e6e408c9d358e1ba90de75b214eb2a33ce5303
2,663
py
Python
sourcecode/src/vx/lha/Main.py
ivarvb/LHA
b3b7613180d533468edf762195922b73c70c525c
[ "MIT" ]
null
null
null
sourcecode/src/vx/lha/Main.py
ivarvb/LHA
b3b7613180d533468edf762195922b73c70c525c
[ "MIT" ]
null
null
null
sourcecode/src/vx/lha/Main.py
ivarvb/LHA
b3b7613180d533468edf762195922b73c70c525c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author: Ivar """ from Description import * from Classification import * if __name__ == "__main__": inputdir = "../../../../data/LHA/dataset_1" outputdir = inputdir+"/csv/exp/"+Util.now() template = [ { "name":"RAD", ...
23.156522
56
0.437852
61e6fadc19dca2b7aaa1c0e67b41806d94ed6219
12,263
py
Python
pyemits/core/ml/regression/trainer.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
6
2021-10-21T14:13:25.000Z
2021-12-26T12:22:51.000Z
pyemits/core/ml/regression/trainer.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
pyemits/core/ml/regression/trainer.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
from sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressor, AdaBoostRegressor from sklearn.neural_network import MLPRegressor from sklearn.linear_model import ElasticNet, Ridge, Lasso, BayesianRidge, HuberRegressor from xgboost import XGBRegressor from lightgbm import LGBMRegressor from pyemits.core....
40.471947
125
0.644133
61e7231e5da397e138846e32322894665e310b28
7,092
py
Python
network_core/network_graph.py
markusgl/SocialCompanion
e816af21c600b33dbcac25d088d4d75957d0349a
[ "MIT" ]
2
2018-12-21T12:55:21.000Z
2019-05-29T06:35:58.000Z
network_core/network_graph.py
markusgl/SocialCompanion
e816af21c600b33dbcac25d088d4d75957d0349a
[ "MIT" ]
8
2019-12-16T21:08:36.000Z
2021-03-31T18:58:35.000Z
network_core/network_graph.py
markusgl/SocialCompanion
e816af21c600b33dbcac25d088d4d75957d0349a
[ "MIT" ]
null
null
null
""" knowledge graph representation using neo4j this class uses py2neo with will be the final version """ import os import json from py2neo import Graph, Relationship, NodeMatcher, Node from network_core.ogm.node_objects import Me, Contact, Misc USERTYPE = "User" CONTACTTYPE = "Contact" ROOT_DIR = os.path.dirname(os.p...
30.437768
129
0.563593
61e83a0c30e6a67dbfeb574d16e0f027af82160b
538
py
Python
randutils/lists.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
1
2021-08-03T17:34:31.000Z
2021-08-03T17:34:31.000Z
randutils/lists.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
null
null
null
randutils/lists.py
JoelLefkowitz/randutils
91bfb6a56676675edb241f11b602a46880520c72
[ "MIT" ]
null
null
null
import numpy as np from .chance import by_chance from .exceptions import EmptyListError
18.551724
53
0.689591
61ea28b84ee81d7761635919c06d71cde4b781c4
2,355
py
Python
src/train_and_evaluate.py
rajeevteejwal/mlops_wine_quality
970ce27712932ca535309230da69fc5c29d82c38
[ "MIT" ]
null
null
null
src/train_and_evaluate.py
rajeevteejwal/mlops_wine_quality
970ce27712932ca535309230da69fc5c29d82c38
[ "MIT" ]
null
null
null
src/train_and_evaluate.py
rajeevteejwal/mlops_wine_quality
970ce27712932ca535309230da69fc5c29d82c38
[ "MIT" ]
null
null
null
import os import pandas as pd from sklearn.linear_model import ElasticNet from sklearn.metrics import r2_score, mean_squared_error, mean_absolute_error import argparse import numpy as np import json import joblib from get_data import read_config if __name__ == '__main__': args = argparse.ArgumentParser() ar...
31.824324
77
0.675159
61ebdb6920b4b4c3e3a8b0b2f9c1a74ed61083fb
961
py
Python
examples/plot_magnitudes.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
examples/plot_magnitudes.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
examples/plot_magnitudes.py
zsiciarz/pygcvs
ed5522ab9cf9237592a6af7a0bc8cad079afeb67
[ "MIT" ]
null
null
null
""" Visualisation of maximum/minimum magnitude for GCVS stars. """ import sys import matplotlib.pyplot as plot from pygcvs import read_gcvs if __name__ == '__main__': try: gcvs_file = sys.argv[1] except IndexError: print('Usage: python plot_magnitudes.py <path to iii.dat>') else: ...
30.03125
73
0.64204
61ebe9703928c7c7be701af932bf4a612970dd3f
382
py
Python
InvenTree/stock/migrations/0028_auto_20200421_0724.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
656
2017-03-29T22:06:14.000Z
2022-03-30T11:23:52.000Z
InvenTree/stock/migrations/0028_auto_20200421_0724.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
1,545
2017-04-10T23:26:04.000Z
2022-03-31T18:32:10.000Z
InvenTree/stock/migrations/0028_auto_20200421_0724.py
fablabbcn/InvenTree
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
[ "MIT" ]
196
2017-03-28T03:06:21.000Z
2022-03-28T11:53:29.000Z
# Generated by Django 3.0.5 on 2020-04-21 07:24 from django.db import migrations
20.105263
48
0.604712
61ec2ee4a4b5c284984cd0be3baf3b3ee50702c4
1,595
py
Python
weideshop/urls.py
michaelgichia/weideshop
01a408b358b9ad7d52747b42c36dc16206b4b915
[ "BSD-2-Clause" ]
null
null
null
weideshop/urls.py
michaelgichia/weideshop
01a408b358b9ad7d52747b42c36dc16206b4b915
[ "BSD-2-Clause" ]
null
null
null
weideshop/urls.py
michaelgichia/weideshop
01a408b358b9ad7d52747b42c36dc16206b4b915
[ "BSD-2-Clause" ]
null
null
null
"""weideshop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
37.093023
106
0.717241
61ed3298ce258d1708cb601b97ca2bb3d32448c9
18,023
py
Python
netor/tinydb/scripts/netorconf.py
aegiacometti/neto
4169a93a4d789facfe9a41d214b1a6c15e8f2fb9
[ "Apache-2.0" ]
1
2020-01-02T04:31:11.000Z
2020-01-02T04:31:11.000Z
netor/tinydb/scripts/netorconf.py
aegiacometti/neto
4169a93a4d789facfe9a41d214b1a6c15e8f2fb9
[ "Apache-2.0" ]
null
null
null
netor/tinydb/scripts/netorconf.py
aegiacometti/neto
4169a93a4d789facfe9a41d214b1a6c15e8f2fb9
[ "Apache-2.0" ]
1
2021-02-23T04:34:48.000Z
2021-02-23T04:34:48.000Z
#!/usr/bin/env python3 import os import sys import configparser import fileinput import netorlogging import datetime from shutil import copyfile def _netor_config(): """ It is used for updating the Neto home directory in the configuration files and scripts. This is useful, if you want to have 2 working ...
42.011655
119
0.668146
61edb2c25c99c318b707a55fcdfcaaf007b47999
4,780
py
Python
test/api/mutations/test_check_repository_by_commit.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
test/api/mutations/test_check_repository_by_commit.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
test/api/mutations/test_check_repository_by_commit.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
null
null
null
import pytest from zoo.auditing.models import Issue from zoo.auditing.check_discovery import Effort, Kind, Severity pytestmark = pytest.mark.django_db query = """ mutation test ($input: CheckRepositoryByCommitInput!) { checkRepositoryByCommit (input: $input) { allCheckResults { isFound ...
34.142857
88
0.604393
61ee17d15d59c91dd4a80c2ec70be31d3dc1095f
134
py
Python
start/hello_world.py
nguyenductamlhp/tensorflow_demo
7c4b55dff80dd435806a1b22dee6eb32ae39c02d
[ "MIT" ]
null
null
null
start/hello_world.py
nguyenductamlhp/tensorflow_demo
7c4b55dff80dd435806a1b22dee6eb32ae39c02d
[ "MIT" ]
null
null
null
start/hello_world.py
nguyenductamlhp/tensorflow_demo
7c4b55dff80dd435806a1b22dee6eb32ae39c02d
[ "MIT" ]
1
2018-11-05T06:40:09.000Z
2018-11-05T06:40:09.000Z
# -*- coding: utf-8 -*- import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') sess = tf.Session() print(sess.run(hello))
19.142857
41
0.671642
61f0c4fd22f5b70221a5b58b1db5553ecb4e26b8
755
py
Python
behavioral/command/logic/generators/trader_generator.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/command/logic/generators/trader_generator.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
behavioral/command/logic/generators/trader_generator.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
from random import randint from typing import Optional from behavioral.command.data import Trader from behavioral.command.logic.generators import ItemsGenerator
30.2
98
0.717881
61f42117264c7b5f1ae0b590ff1b7ddfa85808ba
11,119
py
Python
test3.py
dg1223/GestureRecognition
07078b0b8340c8b94f42414efe0ed36158e8c0ea
[ "MIT" ]
2
2019-02-12T17:59:41.000Z
2019-10-27T03:36:08.000Z
test3.py
dg1223/GestureRecognition
07078b0b8340c8b94f42414efe0ed36158e8c0ea
[ "MIT" ]
null
null
null
test3.py
dg1223/GestureRecognition
07078b0b8340c8b94f42414efe0ed36158e8c0ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Aug 29 00:07:11 2015 @author: Shamir """ for i in range(len(os.listdir(sourcePath))): # we have 6 files corresponding to 6 gestures print 'i = ', i gesture = os.listdir(sourcePath)[i] ...
63.176136
229
0.461462
61f65e88bb74b76264401d01893c2004742b5044
1,919
py
Python
build.py
micklenguyen/hw2-scripting
3603a2c4d7518890eacc4f071f347f90dd295ee6
[ "MIT" ]
null
null
null
build.py
micklenguyen/hw2-scripting
3603a2c4d7518890eacc4f071f347f90dd295ee6
[ "MIT" ]
null
null
null
build.py
micklenguyen/hw2-scripting
3603a2c4d7518890eacc4f071f347f90dd295ee6
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
24.922078
97
0.730589
61f94a0bece7deb448882a08f6a458e64ef93c8e
35,113
py
Python
src/jote/jote.py
InformaticsMatters/data-manager-job-tester
f8915e005f16685d159535a2455628eb1d7ac518
[ "MIT" ]
null
null
null
src/jote/jote.py
InformaticsMatters/data-manager-job-tester
f8915e005f16685d159535a2455628eb1d7ac518
[ "MIT" ]
1
2022-01-28T10:06:28.000Z
2022-01-31T14:51:52.000Z
src/jote/jote.py
InformaticsMatters/data-manager-job-tester
f8915e005f16685d159535a2455628eb1d7ac518
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Informatics Matters Job Tester (JOTE). Get help running this utility with 'jote --help' """ import argparse import os import shutil import stat from stat import S_IRGRP, S_IRUSR, S_IWGRP, S_IWUSR import subprocess import sys from typing import Any, Dict, List, Optional, Tuple from munch impo...
35.183367
100
0.584741
61f95f027b40f870a2f775166934b53fdd79358c
18,636
py
Python
src/cred_manage/bitwarden.py
areese801/cred_manage
01f08ddc0b954c36e27ce1d6407f087c8aff0d4f
[ "MIT" ]
null
null
null
src/cred_manage/bitwarden.py
areese801/cred_manage
01f08ddc0b954c36e27ce1d6407f087c8aff0d4f
[ "MIT" ]
null
null
null
src/cred_manage/bitwarden.py
areese801/cred_manage
01f08ddc0b954c36e27ce1d6407f087c8aff0d4f
[ "MIT" ]
null
null
null
""" Subclass of the BaseCredContainer used for reading secrets from bitwarden password manager. This class wraps the bitwarden CLI. See: https://bitwarden.com/help/article/cli/#using-an-api-key Note that only the Enterprise version of bitwarden can (supported) hit the REST API. In contrast, the API key that can be ...
41.972973
247
0.6481
61f9d61ddf16dfe982de5cd443717f5e39b05a82
7,027
py
Python
transforms/waveform.py
koukyo1994/kaggle-rfcx
c3573d014d99312b58882e7b939de6c1055129b1
[ "MIT" ]
6
2021-02-18T05:18:17.000Z
2022-02-19T02:49:32.000Z
transforms/waveform.py
koukyo1994/kaggle-rfcx
c3573d014d99312b58882e7b939de6c1055129b1
[ "MIT" ]
null
null
null
transforms/waveform.py
koukyo1994/kaggle-rfcx
c3573d014d99312b58882e7b939de6c1055129b1
[ "MIT" ]
2
2021-02-18T11:31:50.000Z
2022-02-19T02:49:07.000Z
import colorednoise as cn import librosa import numpy as np
31.231111
104
0.605237
61fa26c1e849bd6b6249a17cb7a588c5997af757
438
py
Python
Back/generalchatroom/models.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
null
null
null
Back/generalchatroom/models.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
1
2020-12-27T14:59:35.000Z
2020-12-27T14:59:35.000Z
Back/generalchatroom/models.py
sadeghjafari5528/404-
0499b93cc473ec4def96d95364180eb4f4dafb11
[ "MIT" ]
2
2020-10-30T08:08:32.000Z
2020-10-30T20:47:51.000Z
from django.db import models from registeration.models import User from chatroom.models import Chatroom
36.5
83
0.773973
61fa91668b7e930a4d4c6429b8910bfdb88b86e5
1,095
py
Python
plyplus/test/test_trees.py
rubycandy/test-plyplus
ced9377e6c26dcf308dd9f480411af9c8dbe9c56
[ "MIT" ]
169
2015-01-16T12:48:23.000Z
2021-12-09T16:00:13.000Z
plyplus/test/test_trees.py
rubycandy/test-plyplus
ced9377e6c26dcf308dd9f480411af9c8dbe9c56
[ "MIT" ]
26
2015-01-23T16:30:28.000Z
2018-07-07T09:14:18.000Z
plyplus/test/test_trees.py
rubycandy/test-plyplus
ced9377e6c26dcf308dd9f480411af9c8dbe9c56
[ "MIT" ]
53
2015-01-22T20:20:10.000Z
2021-12-05T13:39:57.000Z
from __future__ import absolute_import import unittest import logging import copy import pickle from plyplus.plyplus import STree logging.basicConfig(level=logging.INFO) if __name__ == '__main__': unittest.main()
24.886364
76
0.613699
61fae1b5b671ac52f912549b4f9c186cb38b0495
1,563
py
Python
misaligned.py
clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya
1861f2db11a508e9c1e2f7ce351d11d87c0c734c
[ "MIT" ]
null
null
null
misaligned.py
clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya
1861f2db11a508e9c1e2f7ce351d11d87c0c734c
[ "MIT" ]
null
null
null
misaligned.py
clean-code-craft-tcq-2/test-failer-in-py-yashaswin-mayya
1861f2db11a508e9c1e2f7ce351d11d87c0c734c
[ "MIT" ]
null
null
null
MAJOR_COLORS = ["White", "Red", "Black", "Yellow", "Violet"] MINOR_COLORS = ["Blue", "Orange", "Green", "Brown", "Slate"] print_color_map() #testing each of 25 color pairs if __name__ == '__main__': print_color_map() test_color_map(1, 'White', 'Blue') test_color_map(2, 'White', 'Orange') t...
36.348837
129
0.685861
61fe5553a131ad8494dec157c4505511e27beecb
611
py
Python
examples/embed_cmd.py
bentettmar/discord.py-self_embed
4253ea7977b17972de2e15de3606a183f70b22b0
[ "MIT" ]
2
2022-03-31T04:06:05.000Z
2022-03-31T16:39:40.000Z
examples/embed_cmd.py
bentettmar/discord.py-self_embed
4253ea7977b17972de2e15de3606a183f70b22b0
[ "MIT" ]
3
2022-03-29T11:58:16.000Z
2022-03-31T16:41:13.000Z
examples/embed_cmd.py
bentettmar/discord.py-self_embed
4253ea7977b17972de2e15de3606a183f70b22b0
[ "MIT" ]
null
null
null
import discord_self_embed from discord.ext import commands bot = commands.Bot(command_prefix=".", self_bot=True) bot.run("TOKEN_HERE")
33.944444
193
0.749591
1101b9ca063e23e2fd57ae664425f377c0723f09
8,823
py
Python
analysis.py
liunx/lmms
ea54f64934d90887a38446ef02ed2baed91548db
[ "MIT" ]
null
null
null
analysis.py
liunx/lmms
ea54f64934d90887a38446ef02ed2baed91548db
[ "MIT" ]
null
null
null
analysis.py
liunx/lmms
ea54f64934d90887a38446ef02ed2baed91548db
[ "MIT" ]
null
null
null
import re import copy from operator import itemgetter import music21 as m21 if __name__ == "__main__": data = ['C4~', ['chord', 'E4~', 'G4~'], [ 'chord', 'E4~', 'G4~'], ['chord', 'E4', 'G4']] data2 = ['C4', ['trip', 'C4', 'E4', 'G4']] data3 = ['C4~', 'C4', 'E4~', 'E4'] data4 = ['CC8', 'r8', ...
33.804598
115
0.438286
11025303e524cbae387748d4c806d2a09276590a
6,302
py
Python
tests/server/utils.py
csadorf/aiida-optimade
99ee1113cfc109a40a83bb43af8d07ce7e1601e6
[ "MIT" ]
null
null
null
tests/server/utils.py
csadorf/aiida-optimade
99ee1113cfc109a40a83bb43af8d07ce7e1601e6
[ "MIT" ]
null
null
null
tests/server/utils.py
csadorf/aiida-optimade
99ee1113cfc109a40a83bb43af8d07ce7e1601e6
[ "MIT" ]
null
null
null
# pylint: disable=no-name-in-module,too-many-arguments import json import re import typing from urllib.parse import urlparse import warnings from requests import Response from fastapi.testclient import TestClient from pydantic import BaseModel import pytest from starlette import testclient from optimade import __api...
32.65285
86
0.60822
11026c0c5eee347310533201a00163d72346ee00
3,673
py
Python
super_topic/main.py
susmote/WeiboTools
659232b4525bcbedf350da1127d382ff6c6e9e71
[ "MIT" ]
3
2018-11-11T22:07:23.000Z
2019-03-08T08:20:31.000Z
super_topic/main.py
susmote/WeiboTools
659232b4525bcbedf350da1127d382ff6c6e9e71
[ "MIT" ]
null
null
null
super_topic/main.py
susmote/WeiboTools
659232b4525bcbedf350da1127d382ff6c6e9e71
[ "MIT" ]
1
2021-08-31T06:44:54.000Z
2021-08-31T06:44:54.000Z
# -*- coding: utf-8 -*- """ Created on 2018/11/5 @author: susmote """ import time import requests import json # if __name__ == '__main__': username = input(": ") password = input(": ") login_url = "https://passport.weibo.cn/sso/login" headers = { "Referer": "https://passport.weibo.cn/si...
37.865979
118
0.58263
11028d4ec017320409e77b44e5459cd4e2c1cd81
1,163
py
Python
websupportsk_ddns/notifiers.py
JozefGalbicka/websupportsk-ddns
8fe1408121dc5f14f42e6603d9a50bcaa5afabee
[ "MIT" ]
2
2021-07-28T09:09:58.000Z
2021-07-28T10:28:45.000Z
websupportsk_ddns/notifiers.py
JozefGalbicka/websupportsk-ddns
8fe1408121dc5f14f42e6603d9a50bcaa5afabee
[ "MIT" ]
1
2021-11-14T11:31:38.000Z
2021-11-19T22:38:44.000Z
websupportsk_ddns/notifiers.py
JozefGalbicka/websupportsk-ddns
8fe1408121dc5f14f42e6603d9a50bcaa5afabee
[ "MIT" ]
null
null
null
import requests import logging logger = logging.getLogger(__name__)
29.075
65
0.618229
110368e70ed99472870504d326991f7e709f610a
311
py
Python
apps/xero_workspace/job_urls.py
akshay-codemonk/fyle-xero
a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6
[ "MIT" ]
null
null
null
apps/xero_workspace/job_urls.py
akshay-codemonk/fyle-xero
a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6
[ "MIT" ]
null
null
null
apps/xero_workspace/job_urls.py
akshay-codemonk/fyle-xero
a040dab12282a9a64ca01aca2dc09f8bb7eaa0f6
[ "MIT" ]
null
null
null
from django.urls import path, include from apps.xero_workspace.views import ScheduleSyncView urlpatterns = [ path('<int:workspace_id>/expense_group/', include('apps.fyle_expense.job_urls')), path('<int:workspace_id>/settings/schedule/trigger/', ScheduleSyncView.as_view(), name="schedule_trigger"), ]
34.555556
111
0.768489
1106ac76603f4bd71050edfab94366e8d6245198
43,058
py
Python
tests/test_decision_maker/test_base.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
null
null
null
tests/test_decision_maker/test_base.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
1
2020-02-21T14:28:13.000Z
2020-03-05T14:53:53.000Z
tests/test_decision_maker/test_base.py
cyenyxe/agents-aea
c2aec9127028ae13def3f69fbc80d35400de1565
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
41.925998
106
0.641042
11070c63ba36e05b385352144090c398a2ed7415
15,806
py
Python
code/plotting/plot_lsst.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
1
2019-08-27T10:05:41.000Z
2019-08-27T10:05:41.000Z
code/plotting/plot_lsst.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
code/plotting/plot_lsst.py
modichirag/21cm_cleaning
1615fea4e2d617bb6ef00770a49698901227daa8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Plots the power spectra and Fourier-space biases for the HI. # import warnings from mpi4py import MPI rank = MPI.COMM_WORLD.rank #warnings.filterwarnings("ignore") if rank!=0: warnings.filterwarnings("ignore") import numpy as np import os, sys import matplotlib.pyplot as plt fro...
41.704485
210
0.575161
1107964a13a8c587e9dedd0f0fb6a2581ecb0887
3,999
py
Python
ndfinance/strategies/basic/__init__.py
gomtinQQ/NDFinance
522bf0486e5f5337c522d0e34b088f386c7c3290
[ "MIT" ]
35
2020-09-26T16:31:45.000Z
2022-01-01T12:12:21.000Z
ndfinance/strategies/basic/__init__.py
gomtinQQ/NDFinance
522bf0486e5f5337c522d0e34b088f386c7c3290
[ "MIT" ]
1
2020-09-27T08:54:23.000Z
2020-09-27T08:54:23.000Z
ndfinance/strategies/basic/__init__.py
gomtinQQ/NDFinance
522bf0486e5f5337c522d0e34b088f386c7c3290
[ "MIT" ]
8
2020-10-06T23:51:22.000Z
2022-02-16T12:11:10.000Z
from ndfinance.strategies import Strategy, PeriodicRebalancingStrategy from ndfinance.brokers.base import order from ndfinance.brokers.base.order import * from ndfinance.strategies.utils import *
44.932584
127
0.68017
1107cf1f8235f1761f09ec217b10ad75f1307704
1,662
py
Python
06_Trees/shortest_unique_prefix.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
61
2018-02-18T08:16:31.000Z
2022-02-17T17:18:57.000Z
06_Trees/shortest_unique_prefix.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
1
2018-02-23T20:06:18.000Z
2019-12-29T18:52:20.000Z
06_Trees/shortest_unique_prefix.py
Sheetal0601/InterviewBit
72ba1507278dafac6e5fb81da20d372e3d141348
[ "MIT" ]
30
2018-03-28T19:02:23.000Z
2021-07-06T20:00:14.000Z
# Shortest Unique Prefix # https://www.interviewbit.com/problems/shortest-unique-prefix/ # # Find shortest unique prefix to represent each word in the list. # # Example: # # Input: [zebra, dog, duck, dove] # Output: {z, dog, du, dov} # where we can see that # zebra = z # dog = dog # duck = du # dove = dov # NOTE : Ass...
24.086957
106
0.496992
110af0aa9cc468fbee2f90b29540e3ee61251308
1,975
py
Python
daemon.py
hletrd/TRIPOL_polarizer
124d202bf876635bd402306fb5d7572fd45ce599
[ "MIT" ]
null
null
null
daemon.py
hletrd/TRIPOL_polarizer
124d202bf876635bd402306fb5d7572fd45ce599
[ "MIT" ]
null
null
null
daemon.py
hletrd/TRIPOL_polarizer
124d202bf876635bd402306fb5d7572fd45ce599
[ "MIT" ]
null
null
null
from flask import Flask, render_template, send_from_directory import serial import serial.tools.list_ports import threading app = Flask(__name__) class SerialHandler(object): if __name__ == '__main__': bind_ip = '127.0.0.1' bind_port = 8000 serialhandler = SerialHandler() run_server()
23.511905
75
0.698228
110bd5c7d26cb1039d7248113ac5574d56217da1
134
py
Python
tests/agave_mock_server/wsgi.py
vdjserver/agave-cli
4ad0826779cd760eb8a102978c456fee214ce8a3
[ "BSD-3-Clause" ]
null
null
null
tests/agave_mock_server/wsgi.py
vdjserver/agave-cli
4ad0826779cd760eb8a102978c456fee214ce8a3
[ "BSD-3-Clause" ]
1
2019-06-11T21:48:12.000Z
2019-06-11T22:11:35.000Z
tests/agave_mock_server/wsgi.py
vdjserver/agave-cli
4ad0826779cd760eb8a102978c456fee214ce8a3
[ "BSD-3-Clause" ]
null
null
null
from agave_mock_server import app as application if __name__ == "__main__": application.run(host="0.0.0.0", ssl_context="adhoc")
26.8
56
0.738806
110ec99e58e5ce9d328a5556af8ee117cc5ebd9a
3,304
py
Python
src/utils.py
senadkurtisi/neural-style-transfer
0048d8b184959de095f0821f63205c8ce3ff2dff
[ "MIT" ]
null
null
null
src/utils.py
senadkurtisi/neural-style-transfer
0048d8b184959de095f0821f63205c8ce3ff2dff
[ "MIT" ]
null
null
null
src/utils.py
senadkurtisi/neural-style-transfer
0048d8b184959de095f0821f63205c8ce3ff2dff
[ "MIT" ]
null
null
null
from PIL import Image import numpy as np import torch import torchvision.transforms.transforms as transforms import os from config import cfg def preprocess_img(img_path): """ Loads the desired image and prepares it for VGG19 model. Parameters: img_path: path to the image Returns: ...
29.765766
106
0.553874
1111178ffeca17f97dbc94edf513c3e6554c30c4
5,179
py
Python
myfunc.py
dedo94/GUIGG
be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d
[ "MIT" ]
1
2019-02-15T22:38:40.000Z
2019-02-15T22:38:40.000Z
myfunc.py
dedo94/GUIGG
be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d
[ "MIT" ]
null
null
null
myfunc.py
dedo94/GUIGG
be4d6243ee9abcfaf42ab9aec6cd87f8e2149d4d
[ "MIT" ]
null
null
null
import os import platform import sys from os.path import relpath sys.path.append('/usr/local/bin/dot') sys.path.append('/usr/bin/dot') from graphviz import Digraph # struttura dati # definisce il path def pathfy(filepath): prgpath = os.path.dirname(os.path.abspath(__file__)) pathz = relpath(filepath, prgpa...
43.158333
181
0.448542
1111834ed10ea00b3973a4e7b45b84a2fd41c455
2,466
py
Python
EllucianEthosPythonClient/ChangeNotificationUtils.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2021-02-09T22:05:50.000Z
2021-02-09T22:05:50.000Z
EllucianEthosPythonClient/ChangeNotificationUtils.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2020-07-02T11:44:54.000Z
2020-07-02T11:45:38.000Z
EllucianEthosPythonClient/ChangeNotificationUtils.py
rmetcalf9/EllucainEthosPythonClient
6913322b1e583f655f67399f2baa763833583c27
[ "MIT" ]
1
2021-01-13T21:35:11.000Z
2021-01-13T21:35:11.000Z
from .ChangeNotificationMessage import ChangeNotificationMessage import json
27.098901
103
0.744931
1112b034f98c7dc617526ab156487a42f2db45b6
1,821
py
Python
schafkopf/players/models/evaluate_calssifier.py
Taschee/schafkopf
96c5b9199d9260b4fdd74de8a6e54805b407407b
[ "MIT" ]
10
2018-07-30T14:02:25.000Z
2022-01-19T23:48:31.000Z
schafkopf/players/models/evaluate_calssifier.py
TimiH/schafkopf-1
deafaa28d6cba866d097b4347dd84ce37b3b594d
[ "MIT" ]
1
2018-08-12T07:25:51.000Z
2018-08-27T21:04:04.000Z
schafkopf/players/models/evaluate_calssifier.py
Taschee/schafkopf
96c5b9199d9260b4fdd74de8a6e54805b407407b
[ "MIT" ]
2
2019-01-23T10:02:57.000Z
2019-08-26T22:05:52.000Z
import keras import numpy as np from schafkopf.players.data.load_data import load_data_bidding from schafkopf.players.data.encodings import decode_on_hot_hand import matplotlib.pyplot as plt x_test, y_test = load_data_bidding('../data/test_data.p') x_train, y_train = load_data_bidding('../data/train_data.p') modelpat...
29.852459
88
0.713344
1112cf8fd2ea3b082bd270c70d54466062312420
8,338
py
Python
personnages3d/filtre.py
mxbossard/personnages3d
87c2ab8dc9b502c0074f1dec04b832803dee1462
[ "Apache-2.0" ]
null
null
null
personnages3d/filtre.py
mxbossard/personnages3d
87c2ab8dc9b502c0074f1dec04b832803dee1462
[ "Apache-2.0" ]
null
null
null
personnages3d/filtre.py
mxbossard/personnages3d
87c2ab8dc9b502c0074f1dec04b832803dee1462
[ "Apache-2.0" ]
1
2021-10-01T02:03:42.000Z
2021-10-01T02:03:42.000Z
"""Ce script est un exemple de matplotlib""" import numpy as np def moving_average(x, n, type='simple'): """ compute an n period moving average. type is 'simple' | 'exponential' """ x = np.asarray(x) if type == 'simple': weights = np.ones(n) else: weights = np.exp(np.li...
63.166667
83
0.333173
11149a0fbf72edf9f65a573647189aedcbd0a01f
309
py
Python
tests/test_utils.py
wxy6655/pymycobot
504716257af7b36c9750929ad3b0b7fe96582e14
[ "MIT" ]
37
2021-01-16T13:57:06.000Z
2022-03-27T06:16:37.000Z
tests/test_utils.py
wxy6655/pymycobot
504716257af7b36c9750929ad3b0b7fe96582e14
[ "MIT" ]
27
2021-01-18T08:09:08.000Z
2022-03-08T01:25:33.000Z
tests/test_utils.py
wxy6655/pymycobot
504716257af7b36c9750929ad3b0b7fe96582e14
[ "MIT" ]
19
2021-01-19T01:52:42.000Z
2022-02-10T06:44:06.000Z
import os import sys # Add relevant ranger module to PATH... there surely is a better way to do this... sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) from pymycobot import utils port = utils.get_port_list() print(port) detect_result = utils.detect_port_of_basic() print(detect_result)
22.071429
82
0.754045
1117ea4f825935be2c13190135ae12facb794dea
3,347
py
Python
backend_api/vozila_specials/migrations/0001_initial.py
KoliosterNikolayIliev/vozila_backend
a1c5036a77cb78d7968bbcc6e66e9015c982be8b
[ "MIT" ]
null
null
null
backend_api/vozila_specials/migrations/0001_initial.py
KoliosterNikolayIliev/vozila_backend
a1c5036a77cb78d7968bbcc6e66e9015c982be8b
[ "MIT" ]
4
2021-09-08T09:25:21.000Z
2022-02-20T12:14:04.000Z
backend_api/vozila_specials/migrations/0001_initial.py
KoliosterNikolayIliev/vozila_backend
a1c5036a77cb78d7968bbcc6e66e9015c982be8b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-04 18:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
54.868852
266
0.612788
11185bdb3235153c501d87ad0d59a5aa426df74b
385
py
Python
inhouse/users/migrations/0011_alter_user_username.py
samuelmmorse/In-House
9a6e103c0d53598e0b9028754fbc1fdc830cf9bd
[ "Apache-2.0" ]
1
2022-02-03T18:15:09.000Z
2022-02-03T18:15:09.000Z
inhouse/users/migrations/0011_alter_user_username.py
samuelmmorse/In-House
9a6e103c0d53598e0b9028754fbc1fdc830cf9bd
[ "Apache-2.0" ]
37
2022-02-02T21:30:16.000Z
2022-03-08T16:18:48.000Z
inhouse/users/migrations/0011_alter_user_username.py
samuelmmorse/In-House
9a6e103c0d53598e0b9028754fbc1fdc830cf9bd
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-21 03:56 from django.db import migrations, models
20.263158
51
0.597403
111a060dfd860a5ffaba0f5cb789e1d77010aef4
1,742
py
Python
PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py
AsherVo/depthai-gui
f6d5da7c00f09239d07ff77dd2e4433d40e43633
[ "Apache-2.0" ]
46
2021-01-05T13:41:54.000Z
2022-03-29T09:47:20.000Z
PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py
AsherVo/depthai-gui
f6d5da7c00f09239d07ff77dd2e4433d40e43633
[ "Apache-2.0" ]
7
2021-01-29T22:26:05.000Z
2022-02-24T10:16:35.000Z
PyFlow/Packages/DepthAI_Device/Nodes/NeuralNetwork/NeuralNetworkNode.py
AsherVo/depthai-gui
f6d5da7c00f09239d07ff77dd2e4433d40e43633
[ "Apache-2.0" ]
10
2021-03-11T15:00:40.000Z
2022-03-24T02:28:39.000Z
from pathlib import Path from common import DeviceNode, get_property_value from PyFlow.Core.Common import * from PyFlow.Core.NodeBase import NodePinsSuggestionsHelper
35.55102
85
0.695178
111b82803ba6219820d34735a4253abbca5f8527
1,785
py
Python
tests/test_grizzly/steps/scenario/test_results.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
tests/test_grizzly/steps/scenario/test_results.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
9
2022-01-05T08:53:41.000Z
2022-03-31T07:26:05.000Z
tests/test_grizzly/steps/scenario/test_results.py
boffman/grizzly
eabe7b8f6cd7098914a1473928135c1e05758af7
[ "MIT" ]
null
null
null
from typing import cast from grizzly.context import GrizzlyContext from grizzly.steps import * # pylint: disable=unused-wildcard-import # noqa: F403 from ....fixtures import BehaveFixture
36.428571
93
0.791036
111b8e50cc0607494dfd9e6aee63b1a1cd91a426
419
py
Python
variation/tokenizers/overexpression.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
1
2022-01-19T18:17:49.000Z
2022-01-19T18:17:49.000Z
variation/tokenizers/overexpression.py
cancervariants/variation-normalization
9c8fbab1562591ae9445d82ddd15df29f1ea1f5a
[ "MIT" ]
99
2021-06-07T12:50:34.000Z
2022-03-23T13:38:29.000Z
variation/tokenizers/overexpression.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
null
null
null
"""Module for over expression tokenization.""" from .basic_regex_tokenizer import BasicRegexTokenizer
27.933333
54
0.680191
111c7c6e5f812c559a0501e1a32f5e52d75464e1
465
py
Python
src/hypothesis.py
karlicoss/bleanser
fb0fb8b41769086723cb5b9854ebc93012bce279
[ "MIT" ]
13
2021-01-30T05:50:38.000Z
2022-02-11T09:27:42.000Z
src/hypothesis.py
karlicoss/bleanser
fb0fb8b41769086723cb5b9854ebc93012bce279
[ "MIT" ]
null
null
null
src/hypothesis.py
karlicoss/bleanser
fb0fb8b41769086723cb5b9854ebc93012bce279
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pathlib import Path from jq_normaliser import JqNormaliser, Filter if __name__ == '__main__': main()
21.136364
132
0.675269
111ccb15401d5907b8f70ab856b3fbce11ee3984
8,506
py
Python
src/sniffmypacketsv2/transforms/common/layers/http.py
SneakersInc/sniffmypacketsv2
55d8ff70eedb4dd948351425c25a1e904ea6d50e
[ "Apache-2.0" ]
11
2015-01-01T19:44:04.000Z
2020-03-26T07:30:26.000Z
src/sniffmypacketsv2/transforms/common/layers/http.py
SneakersInc/sniffmypacketsv2
55d8ff70eedb4dd948351425c25a1e904ea6d50e
[ "Apache-2.0" ]
8
2015-01-01T22:45:59.000Z
2015-12-12T10:37:50.000Z
src/sniffmypacketsv2/transforms/common/layers/http.py
SneakersInc/sniffmypacketsv2
55d8ff70eedb4dd948351425c25a1e904ea6d50e
[ "Apache-2.0" ]
3
2017-06-04T05:18:24.000Z
2020-03-26T07:30:27.000Z
#! /usr/bin/env python # -*- coding: UTF-8 -*- # Author : Steeve Barbeau, Luca Invernizzi # This program is published under a GPLv2 license import re from scapy.all import TCP, bind_layers, Packet, StrField def _canonicalize_header(name): ''' Takes a header key (i.e., "Host" in "Host: www.google.com", an...
39.37963
78
0.531507
111d1cfa9500d15ba56748062cc1aaac7850fbbb
1,800
py
Python
tests/unit/test_flask_app/test_boot.py
andersoncontreira/flask-skeleton-python
4a3087cf94f387830850dc438338251da86c3cfb
[ "MIT" ]
1
2021-08-11T21:29:50.000Z
2021-08-11T21:29:50.000Z
tests/unit/test_flask_app/test_boot.py
andersoncontreira/flask-skeleton-python
4a3087cf94f387830850dc438338251da86c3cfb
[ "MIT" ]
null
null
null
tests/unit/test_flask_app/test_boot.py
andersoncontreira/flask-skeleton-python
4a3087cf94f387830850dc438338251da86c3cfb
[ "MIT" ]
null
null
null
import os import unittest from flask_app.boot import load_dot_env, reset, is_loaded, load_env from tests.unit.testutils import BaseUnitTestCase, get_function_name from unittest_data_provider import data_provider if __name__ == '__main__': unittest.main()
34.615385
108
0.632778
111dff9ff8122d79f8e2380fe35f3b04555c5059
805
py
Python
quadratic.py
Varanasi-Software-Junction/Python-repository-for-basics
01128ccb91866cb1abb6d8abf035213f722f5750
[ "MIT" ]
2
2021-07-14T11:01:58.000Z
2021-07-14T11:02:01.000Z
quadratic.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
4
2021-04-09T10:14:06.000Z
2021-04-13T10:25:58.000Z
quadratic.py
Maurya232Abhishek/Python-repository-for-basics
3dcec5c529a0847df07c9dcc1424675754ce6376
[ "MIT" ]
2
2021-07-11T08:17:30.000Z
2021-07-14T11:10:58.000Z
x=[0,1,2,3,4] y=[1,1.8,1.3,2.5,6.3] print(QuadraticRegression(x,y))
25.967742
129
0.468323
111e4289c2fc2ba12c2caeb52c1314824fc19de1
5,591
py
Python
config/atcoder-tools/custom_code_generator.py
ay65535/dotfiles-sei40kr
32a930b0b3f08b15038c28f14e11b5f4ccf367fd
[ "MIT" ]
null
null
null
config/atcoder-tools/custom_code_generator.py
ay65535/dotfiles-sei40kr
32a930b0b3f08b15038c28f14e11b5f4ccf367fd
[ "MIT" ]
null
null
null
config/atcoder-tools/custom_code_generator.py
ay65535/dotfiles-sei40kr
32a930b0b3f08b15038c28f14e11b5f4ccf367fd
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional from atcodertools.codegen.code_style_config import CodeStyleConfig from atcodertools.codegen.models.code_gen_args import CodeGenArgs from atcodertools.codegen.template_engine import render from atcodertools.fmtprediction.models.format import (Format, ParallelPattern, ...
34.94375
117
0.609909
111f8861f8a268462a9c22cdca35e2db764c3102
16,873
py
Python
crypto_futures_py/binance_futures.py
bear2u/CryptoFuturesPy
9cfbf5f3a32b35a8a7cd53c2a3ded55d7b3c78d0
[ "MIT" ]
7
2020-08-23T19:02:33.000Z
2022-03-24T15:48:18.000Z
crypto_futures_py/binance_futures.py
bear2u/CryptoFuturesPy
9cfbf5f3a32b35a8a7cd53c2a3ded55d7b3c78d0
[ "MIT" ]
null
null
null
crypto_futures_py/binance_futures.py
bear2u/CryptoFuturesPy
9cfbf5f3a32b35a8a7cd53c2a3ded55d7b3c78d0
[ "MIT" ]
1
2021-09-15T04:17:04.000Z
2021-09-15T04:17:04.000Z
""" This module contains an implementation for Binance Futures (BinanceFuturesExchangeHandler) """ from __future__ import annotations import pandas as pd import typing import json import logging import pandas as pd from datetime import datetime from dataclasses import dataclass from . import futurespy as fp from...
37.412417
122
0.551295
112006d175386d520393db8a5fbf90e3082f8290
39
py
Python
orbit/__init__.py
CrossNox/orbit
1c803596b3477a91c122093c1f6e34333b6db42e
[ "Apache-2.0" ]
null
null
null
orbit/__init__.py
CrossNox/orbit
1c803596b3477a91c122093c1f6e34333b6db42e
[ "Apache-2.0" ]
null
null
null
orbit/__init__.py
CrossNox/orbit
1c803596b3477a91c122093c1f6e34333b6db42e
[ "Apache-2.0" ]
null
null
null
name = 'orbit' __version__ = '1.0.10'
9.75
22
0.615385
11207abb79cc5820b7575449526dbb965b477f82
1,971
py
Python
repsim/kernels/kernel_base.py
wrongu/representational-similarity
adca614053973def176044437e6a064c04943ce0
[ "MIT" ]
2
2022-03-23T21:24:21.000Z
2022-03-24T04:18:30.000Z
repsim/kernels/kernel_base.py
wrongu/representational-similarity
adca614053973def176044437e6a064c04943ce0
[ "MIT" ]
3
2022-03-23T19:35:58.000Z
2022-03-24T04:20:29.000Z
repsim/kernels/kernel_base.py
wrongu/representational-similarity
adca614053973def176044437e6a064c04943ce0
[ "MIT" ]
1
2022-03-23T19:16:19.000Z
2022-03-23T19:16:19.000Z
import torch from typing import Union, Iterable def center(k: torch.Tensor) -> torch.Tensor: """Center features of a kernel by pre- and post-multiplying by the centering matrix H. In other words, if k_ij is dot(x_i, x_j), the result will be dot(x_i - mu_x, x_j - mu_x). :param k: a n by n Gram matrix of ...
31.790323
93
0.598681
11207edc04bb4169510f36f55f71d608452b5ac2
6,253
py
Python
add_sensors.py
gve-sw/gve_devnet_meraki_sensor_deployment
7add073bf3e2728f811ea8f5da80c138e3067af7
[ "RSA-MD" ]
null
null
null
add_sensors.py
gve-sw/gve_devnet_meraki_sensor_deployment
7add073bf3e2728f811ea8f5da80c138e3067af7
[ "RSA-MD" ]
null
null
null
add_sensors.py
gve-sw/gve_devnet_meraki_sensor_deployment
7add073bf3e2728f811ea8f5da80c138e3067af7
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python3 """Copyright (c) 2020 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 b...
40.869281
277
0.689909
1120e9e47c16ba9929729ce5750b83aea2535437
663
py
Python
BasicOperations/01_01_PyQt4/tableDoubleClicked.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
1
2018-07-02T13:54:49.000Z
2018-07-02T13:54:49.000Z
BasicOperations/01_01_PyQt4/tableDoubleClicked.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
null
null
null
BasicOperations/01_01_PyQt4/tableDoubleClicked.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
3
2016-05-28T15:13:02.000Z
2021-04-10T06:04:25.000Z
from PyQt4.QtGui import * from PyQt4.QtCore import * if __name__ == '__main__': import sys app = QApplication(sys.argv) w = QWidget() w.resize(1024, 768) v = MyTabView(w) w.show() app.exec_()
25.5
70
0.618401
11212e7dd8a44a25b511bd3b53859f4b2622a99f
2,868
py
Python
pyboss/cogs/commands.py
ajayat/pyboss
42615d8b3af1601b3d7572e669d692cf3c537703
[ "MIT" ]
2
2021-07-27T21:46:40.000Z
2021-10-31T20:31:05.000Z
pyboss/cogs/commands.py
ajayat/pyboss
42615d8b3af1601b3d7572e669d692cf3c537703
[ "MIT" ]
1
2021-06-25T12:17:45.000Z
2021-06-25T12:18:54.000Z
pyboss/cogs/commands.py
ajayat/pyboss
42615d8b3af1601b3d7572e669d692cf3c537703
[ "MIT" ]
2
2021-06-24T18:28:25.000Z
2021-06-25T12:20:47.000Z
import logging from itertools import cycle import discord from discord.ext import commands, tasks from pyboss.controllers.guild import GuildController from .utils import youtube from .utils.checkers import is_guild_owner logger = logging.getLogger(__name__)
30.510638
78
0.611576
1121313e46cf1f2e2cb2bc3065f395b37613a84b
19,860
py
Python
legacy/glucose-insulin.py
IllumiNate411/SBINNs
37e68ce97a997090d17a3d487de77aa9059bfc91
[ "Apache-2.0" ]
23
2020-07-15T07:41:15.000Z
2022-02-10T23:09:03.000Z
legacy/glucose-insulin.py
IllumiNate411/SBINNs
37e68ce97a997090d17a3d487de77aa9059bfc91
[ "Apache-2.0" ]
2
2021-06-20T20:41:52.000Z
2022-02-09T19:26:10.000Z
legacy/glucose-insulin.py
IllumiNate411/SBINNs
37e68ce97a997090d17a3d487de77aa9059bfc91
[ "Apache-2.0" ]
21
2020-07-15T07:41:17.000Z
2022-03-03T12:01:37.000Z
import tensorflow as tf import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt from plotting import newfig, savefig import matplotlib.gridspec as gridspec import seaborn as sns import time from utilities import neural_net, fwd_gradients, heaviside, \ tf_session, mea...
42.801724
128
0.533938
112171429cd4a9b17bf8545cbd8d125eb2b1fe8d
775
py
Python
papounet_diet/food_items/migrations/0002_auto_20201112_0653.py
Fabrice-64/OC_Project_8
4776a2fa6edffa5c965340b384083c2618f091d9
[ "BSD-2-Clause" ]
null
null
null
papounet_diet/food_items/migrations/0002_auto_20201112_0653.py
Fabrice-64/OC_Project_8
4776a2fa6edffa5c965340b384083c2618f091d9
[ "BSD-2-Clause" ]
null
null
null
papounet_diet/food_items/migrations/0002_auto_20201112_0653.py
Fabrice-64/OC_Project_8
4776a2fa6edffa5c965340b384083c2618f091d9
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-12 06:53 from django.db import migrations, models
24.21875
67
0.550968
11218cc7070af833cd314550b9c5614c1e90bc7d
511
py
Python
example.py
nils-wisiol/ntru
9e8848c8883ffd61724604a7ad6dc39498331e2d
[ "MIT" ]
1
2020-03-12T15:09:55.000Z
2020-03-12T15:09:55.000Z
example.py
nils-wisiol/ntru
9e8848c8883ffd61724604a7ad6dc39498331e2d
[ "MIT" ]
1
2020-02-06T19:25:46.000Z
2020-02-06T19:25:46.000Z
example.py
nils-wisiol/ntru
9e8848c8883ffd61724604a7ad6dc39498331e2d
[ "MIT" ]
null
null
null
from ciphers import StreamlinedNTRUPrime # choose your parameters p, q, w = 761, 4591, 286 print('Streamlined NTRU Prime Example for', f'p={p}, q={q}, w={w}') print('-' * 50) cipher = StreamlinedNTRUPrime(p, q, w, seed=1337) print('Generating key pair ... ') pk, sk = cipher.generate_keys() print('En/decrypting...')...
28.388889
90
0.712329
1125ca0aabe90d99b7a8c515657de5d0e0420e5b
3,721
py
Python
netease_cloud_music_cache_export.py
simonchen/netease_cloud_music_cache_export
2e5538c13f4bf1af0a1e138010b111462370fa69
[ "MIT" ]
null
null
null
netease_cloud_music_cache_export.py
simonchen/netease_cloud_music_cache_export
2e5538c13f4bf1af0a1e138010b111462370fa69
[ "MIT" ]
null
null
null
netease_cloud_music_cache_export.py
simonchen/netease_cloud_music_cache_export
2e5538c13f4bf1af0a1e138010b111462370fa69
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys, shutil, re # ID3V2, ID3V3 if __name__ == '__main__': if len(sys.argv) < 3: print 'Usage: %s [cache folder] [output_folder]' %sys.argv[0] sys.exit(0) input_dir = sys.argv[1] output_dir = sys.argv[2] if not os.path.isdir(output_dir):...
32.356522
145
0.508465
112717e60382646da056e160e879beb3deb10306
4,123
py
Python
word_ladder/utilities.py
RacingTadpole/boggle
2185da9e204e2d1ed686ccaac76d0d73396408fb
[ "MIT" ]
null
null
null
word_ladder/utilities.py
RacingTadpole/boggle
2185da9e204e2d1ed686ccaac76d0d73396408fb
[ "MIT" ]
null
null
null
word_ladder/utilities.py
RacingTadpole/boggle
2185da9e204e2d1ed686ccaac76d0d73396408fb
[ "MIT" ]
null
null
null
from typing import Dict, Iterable, Iterator, List, Sequence, Optional, Tuple from word_ladder.types import WordDict from word_ladder.rung import Rung def get_word_with_letter_missing(word: str, position: int) -> str: """ >>> get_word_with_letter_missing('dog', 0) '?og' >>> get_word_with_letter_missing...
37.825688
119
0.551298
1127e97d3747a0a490202eaf8f996051a3a32f10
194
py
Python
nawrapper/__init__.py
xzackli/nawrapper
f67c02b48d04ed35ab05a378b9884fefd9d07d7f
[ "MIT" ]
null
null
null
nawrapper/__init__.py
xzackli/nawrapper
f67c02b48d04ed35ab05a378b9884fefd9d07d7f
[ "MIT" ]
9
2019-08-27T11:52:37.000Z
2021-09-21T05:13:25.000Z
nawrapper/__init__.py
xzackli/nawrapper
f67c02b48d04ed35ab05a378b9884fefd9d07d7f
[ "MIT" ]
1
2020-07-07T14:31:43.000Z
2020-07-07T14:31:43.000Z
"""Package init file. We want the user to get everything right away upon `import nawrapper as nw`. """ from .power import * from .maptools import * from .covtools import * from . import planck
21.555556
76
0.731959
11290c9f84712a0ff71c67c6213ef09024350d23
923
py
Python
apps/plea/migrations/0015_datavalidation.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
3
2015-12-22T16:37:14.000Z
2018-01-22T18:44:38.000Z
apps/plea/migrations/0015_datavalidation.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
145
2015-03-04T11:17:50.000Z
2022-03-21T12:10:13.000Z
apps/plea/migrations/0015_datavalidation.py
uk-gov-mirror/ministryofjustice.manchester_traffic_offences_pleas
4c625b13fa2826bdde083a0270dcea1791f6dc18
[ "MIT" ]
3
2015-12-29T14:59:12.000Z
2021-04-11T06:24:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
34.185185
114
0.600217
1129de727312bd65742888ccbd67f3c84eed3c48
498
py
Python
src/test/resources/outputs/blueprints/openstack/lamp/plugins/overrides/openstack/wrapper.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
null
null
null
src/test/resources/outputs/blueprints/openstack/lamp/plugins/overrides/openstack/wrapper.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
3
2015-12-04T15:27:22.000Z
2016-04-08T11:32:43.000Z
src/test/resources/outputs/blueprints/openstack/lamp/plugins/overrides/openstack/wrapper.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
16
2015-01-29T10:05:09.000Z
2019-06-24T19:23:54.000Z
from cloudify import ctx from cloudify.decorators import operation from a4c_common.wrapper_util import (USE_EXTERNAL_RESOURCE_KEY,handle_external_resource,handle_resource_ids) from openstack import with_cinder_client from openstack.volume import create
31.125
108
0.843373
112a43415fecd46be252ae4a4ada95880e19dcdf
571
py
Python
drift_report/domain/model_repository.py
rufusnufus/drift-report-plugin
37019491a82e3478d6bfc718962a477266e1fa26
[ "Apache-2.0" ]
null
null
null
drift_report/domain/model_repository.py
rufusnufus/drift-report-plugin
37019491a82e3478d6bfc718962a477266e1fa26
[ "Apache-2.0" ]
null
null
null
drift_report/domain/model_repository.py
rufusnufus/drift-report-plugin
37019491a82e3478d6bfc718962a477266e1fa26
[ "Apache-2.0" ]
null
null
null
from typing import Iterator, List, Optional from drift_report.domain.model import Model MODEL_REPO = ModelRepository()
24.826087
67
0.628722
112b2b33af67e21e163e5b4e0d7e900b33eee428
1,407
py
Python
day_2/day_2.py
DillonHirth/advent_of_code
3af280134757945958f816c5c1522c8b7178c290
[ "MIT" ]
null
null
null
day_2/day_2.py
DillonHirth/advent_of_code
3af280134757945958f816c5c1522c8b7178c290
[ "MIT" ]
null
null
null
day_2/day_2.py
DillonHirth/advent_of_code
3af280134757945958f816c5c1522c8b7178c290
[ "MIT" ]
null
null
null
# PART 1 with open('input.txt') as input_file: x_pos = 0 y_pos = 0 for line in input_file: direction = line.split(' ')[0] distance = int(line.split(' ')[1]) if direction == "forward": x_pos += distance elif direction == "down": y_pos += distance ...
30.586957
60
0.484009
112cd4d3258cf792afd7adf62c3d6949ad17d6fc
794
py
Python
example.py
macieydev/cosmopy
b039d07dd0cbdd52d1c5aeac79c3bfeccb186284
[ "MIT" ]
null
null
null
example.py
macieydev/cosmopy
b039d07dd0cbdd52d1c5aeac79c3bfeccb186284
[ "MIT" ]
null
null
null
example.py
macieydev/cosmopy
b039d07dd0cbdd52d1c5aeac79c3bfeccb186284
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel from cosmopy.model import CosmosModel if __name__ == "__main__": passat = Car(make="VW", model="Passat") print(f"Car: {passat}") passat.save() passat.model = "Golf" golf = passat.save() print(f"Model changed: {golf}") passat ...
19.365854
79
0.625945
112cd54188922444eead3eae29559f88d75ef846
6,882
py
Python
quadcopter/script/extras/sdre_mavros.py
Bibbidi-Babbidi-Boo/SDRE-based-Cooperative-UAV-Landing-on-High-speed-targets
515fb38120990cb707521da1a5870721b0ee842a
[ "MIT" ]
2
2020-12-30T16:24:27.000Z
2021-05-29T08:06:54.000Z
quadcopter/script/extras/sdre_mavros.py
Bibbidi-Babbidi-Boo/SDRE-based-Cooperative-UAV-Landing-on-High-speed-targets
515fb38120990cb707521da1a5870721b0ee842a
[ "MIT" ]
null
null
null
quadcopter/script/extras/sdre_mavros.py
Bibbidi-Babbidi-Boo/SDRE-based-Cooperative-UAV-Landing-on-High-speed-targets
515fb38120990cb707521da1a5870721b0ee842a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import tf import scipy.linalg as la import numpy as np from math import * import mavros_msgs.srv from mavros_msgs.msg import AttitudeTarget from nav_msgs.msg import Odometry from std_msgs.msg import * from test.msg import * from geometry_msgs.msg import * from mavros_msgs.msg import *...
29.285106
159
0.583406
112cd847b88d905fd3029731c809d6d6df124316
1,233
py
Python
scripts/metwork_topics.py
metwork-framework/ressources
5d88c13b823089c965a5a2204b981da8b652757c
[ "BSD-3-Clause" ]
null
null
null
scripts/metwork_topics.py
metwork-framework/ressources
5d88c13b823089c965a5a2204b981da8b652757c
[ "BSD-3-Clause" ]
47
2018-09-12T14:30:00.000Z
2021-09-09T12:26:10.000Z
scripts/metwork_topics.py
metwork-framework/ressources
5d88c13b823089c965a5a2204b981da8b652757c
[ "BSD-3-Clause" ]
2
2018-10-15T09:15:31.000Z
2019-03-13T14:25:48.000Z
#!/usr/bin/env python3 import argparse import asyncio import json from aiohttp import ClientSession, BasicAuth, ClientTimeout import os import aiohttp_github_helpers as h GITHUB_USER = os.environ.get('GITHUB_USER', None) GITHUB_PASS = os.environ.get('GITHUB_PASS', None) TIMEOUT = ClientTimeout(total=20) AUTH = None i...
30.825
71
0.739659
112f282e3098cdc6a98d1c6bbec33fdd6b4350c1
23,588
py
Python
test2.py
juanmed/singleshot6Dpose
a32d5159d557451ac3ed710ca7d4da6f7c64ff52
[ "MIT" ]
5
2019-03-27T08:40:07.000Z
2021-01-08T05:44:46.000Z
test2.py
juanmed/singleshot6Dpose
a32d5159d557451ac3ed710ca7d4da6f7c64ff52
[ "MIT" ]
null
null
null
test2.py
juanmed/singleshot6Dpose
a32d5159d557451ac3ed710ca7d4da6f7c64ff52
[ "MIT" ]
1
2019-07-11T09:20:25.000Z
2019-07-11T09:20:25.000Z
# import support libraries import os import time import numpy as np # import main working libraries import cv2 import torch from torch.autograd import Variable from torchvision import transforms from PIL import Image # import app libraries from darknet import Darknet from utils import * from MeshPly import MeshPly ...
40.115646
187
0.598186
112fbb6bacb51a637008a37470e77beab2c5a20e
4,028
py
Python
nba/model/utils.py
mattdhart/GBling
ed868dccfcaf7588e7a1297f2294fd62b62e43be
[ "Apache-2.0" ]
null
null
null
nba/model/utils.py
mattdhart/GBling
ed868dccfcaf7588e7a1297f2294fd62b62e43be
[ "Apache-2.0" ]
null
null
null
nba/model/utils.py
mattdhart/GBling
ed868dccfcaf7588e7a1297f2294fd62b62e43be
[ "Apache-2.0" ]
null
null
null
team_abbr_lookup = { "Toronto Raptors": "TOR", "Brooklyn Nets": "BRK", "New York Knicks": "NYK", "Boston Celtics": "BOS", "Philadelphia 76ers": "PHI", "Indiana Pacers": "IND", "Chicago Bulls": "CHI", "Cleveland Cavaliers": "CLE", "Detroit Pistons": "DET", "Milwaukee Bucks": "MIL...
29.188406
45
0.606753
11309186f51ff34a8ed70944cd3fd480bd97b840
335
py
Python
FCMDemo_server/main.py
charsyam/AndroidFCMDemo
67e3bb2fbbdd1bb7ba5e194d064b9f9fc62d5697
[ "MIT" ]
null
null
null
FCMDemo_server/main.py
charsyam/AndroidFCMDemo
67e3bb2fbbdd1bb7ba5e194d064b9f9fc62d5697
[ "MIT" ]
null
null
null
FCMDemo_server/main.py
charsyam/AndroidFCMDemo
67e3bb2fbbdd1bb7ba5e194d064b9f9fc62d5697
[ "MIT" ]
null
null
null
from flask import Flask, request import redis app = Flask(__name__) rconn = redis.StrictRedis()
18.611111
45
0.683582
11317909c862fb2dd860a82e60e0abd38c112ba8
4,832
py
Python
unn/linalg.py
hacksparr0w/unn
8ee8a8a07034fa65d33de1750fb38e93ec8ed60c
[ "MIT" ]
1
2021-07-28T09:15:19.000Z
2021-07-28T09:15:19.000Z
unn/linalg.py
hacksparr0w/unn
8ee8a8a07034fa65d33de1750fb38e93ec8ed60c
[ "MIT" ]
null
null
null
unn/linalg.py
hacksparr0w/unn
8ee8a8a07034fa65d33de1750fb38e93ec8ed60c
[ "MIT" ]
null
null
null
import random from collections import namedtuple MatrixShape = namedtuple("MatrixShape", ["rows", "columns"])
27.611429
79
0.548013
1131872ab4a0cec6debce22fccdd6997732871ab
3,975
py
Python
src/tfx_helper/local.py
dlabsai/tfx-helper
74a05ffeaa14fdc0866d063e36114f7d654a5ae9
[ "MIT" ]
null
null
null
src/tfx_helper/local.py
dlabsai/tfx-helper
74a05ffeaa14fdc0866d063e36114f7d654a5ae9
[ "MIT" ]
null
null
null
src/tfx_helper/local.py
dlabsai/tfx-helper
74a05ffeaa14fdc0866d063e36114f7d654a5ae9
[ "MIT" ]
null
null
null
import os.path from typing import Any, Iterable, Mapping, Optional, Tuple import tfx.v1 as tfx from absl import logging from ml_metadata.proto import metadata_store_pb2 from tfx.dsl.components.base.base_component import BaseComponent from tfx.types.channel import Channel from .base import BasePipelineHelper from .int...
35.176991
84
0.646289
113207da50dd87a4fba010e2037a5449d9f802b7
7,956
py
Python
flash_services/utils.py
textbook/flash_services
9422f48f62dd0cbef4ad5e593513de357496ed72
[ "0BSD" ]
2
2016-05-05T20:09:45.000Z
2017-09-29T08:52:56.000Z
flash_services/utils.py
textbook/flash_services
9422f48f62dd0cbef4ad5e593513de357496ed72
[ "0BSD" ]
27
2016-04-18T08:32:47.000Z
2021-11-25T11:05:15.000Z
flash_services/utils.py
textbook/flash_services
9422f48f62dd0cbef4ad5e593513de357496ed72
[ "0BSD" ]
null
null
null
"""Useful utility functions for services.""" import logging import re from datetime import datetime, timezone from inspect import Parameter, Signature from dateutil.parser import parse from humanize import naturaldelta, naturaltime logger = logging.getLogger(__name__) WORDS = {'1': 'one', '2': 'two', '3': 'three', ...
27.434483
94
0.616013
11327c7421ed7b895a1170478e90b2ac25d66a3a
1,233
py
Python
d16.py
JasperGeurtz/aoc-2020
976b54016364e24fdf827b6e60edae82e9458277
[ "MIT" ]
1
2021-01-03T12:08:39.000Z
2021-01-03T12:08:39.000Z
d16.py
JasperGeurtz/aoc-2020
976b54016364e24fdf827b6e60edae82e9458277
[ "MIT" ]
null
null
null
d16.py
JasperGeurtz/aoc-2020
976b54016364e24fdf827b6e60edae82e9458277
[ "MIT" ]
null
null
null
import utils m = utils.opener.raw("input/16.txt") rm, tm, om = m.split("\n\n") rules = {} for line in rm.split("\n"): name, expr = line.split(": ") rules[name] = [[int(q) for q in x.split("-")] for x in expr.split(" or ")] myticket = [int(x) for x in tm.split("\n")[1].split(",")] tickets = [[int(q) for q in ...
25.6875
97
0.518248
11331886bdb42648eba47c6e484600231ff9a470
4,931
py
Python
run_portfolio.py
drewvolpe/vc_modeling
5ba33e41e3c1ffad212d1a0a1abb585b2c384221
[ "MIT" ]
1
2020-07-12T09:16:37.000Z
2020-07-12T09:16:37.000Z
run_portfolio.py
drewvolpe/vc_modeling
5ba33e41e3c1ffad212d1a0a1abb585b2c384221
[ "MIT" ]
null
null
null
run_portfolio.py
drewvolpe/vc_modeling
5ba33e41e3c1ffad212d1a0a1abb585b2c384221
[ "MIT" ]
null
null
null
from collections import Counter import random import math ### # Parameters of assumptions ### # How many initial investments and avg check size num_seed_rounds = 50 invested_per_seed_round = 0.5 # Probabilities of different outcomes (prob, outcome multiple) outcome_probs_seed = [ [0.01, 100], # N% chance of Mx ret...
28.33908
98
0.589536