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
ccf122ab24b6c118407351673ac8790f51122e47
505
py
Python
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
def fac(n): if n in [0, 1]: return 1 else: return n * fac(n-1) def sum_of_the_factorial_of_their_digits(n): fac_of_the_digits = [fac_dic[int(x)] for x in str(n)] return sum(fac_of_the_digits) def main(): for n in range(10, 2540161): if n == sum_of_the_fac...
21.041667
57
0.584158
0
0
122
0.241584
0
0
0
0
10
0.019802
ccf2d7d2d0ffc342a84d86056b65cf383d097b4c
7,638
py
Python
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import torchaudio import numpy as np from scipy.signal import get_window from librosa.util import pad_center, tiny from librosa.filters import window_sumsquare from librosa.filters import mel as librosa_mel_fn def get_mel_basis(sampling_rate=22050, filter_length=1024, n_m...
40.2
161
0.660775
4,359
0.570699
0
0
0
0
0
0
531
0.069521
ccf38eaa3eb535456d8a6a2a6262774cda8e86a7
13,771
bzl
Python
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
"""This module defines the ndk_cc_toolchain_config rule. This file is based on the `external/androidndk/cc_toolchain_config.bzl` file produced by the built-in `android_ndk_repository` Bazel rule[1], which was used to build the SkCMS repository up until this revision[2]. The paths in this file point to locations insid...
34.002469
188
0.559872
0
0
0
0
0
0
0
0
4,721
0.342822
ccf57840058ae1e39f456a4f292c8353027f974d
7,149
py
Python
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
import re from http import cookiejar from urllib import request, parse from bs4 import BeautifulSoup from VirtualJudgeSpider import Config from VirtualJudgeSpider.Config import Problem, Spider, Result from VirtualJudgeSpider.OJs.BaseClass import Base class HDU(Base): def __init__(self): self.code_type =...
41.807018
120
0.55854
6,893
0.964191
0
0
100
0.013988
0
0
1,375
0.192335
ccf57bf381b881ac46ecdef94c8bf2a01ef756ae
705
py
Python
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
''' 입력 ''' n = int(input()) # 지도의 크기 square_map = [] for i in range(n): square_map.append(list(map(int, input()))) ''' 입력 ''' _house_count = 0 house = [] bundle = 0 def dfx(x, y): global _house_count if x <= -1 or x >= n or y <= -1 or y >= n: return False if square_map[x][y] == 1: ...
16.022727
46
0.486525
0
0
0
0
0
0
0
0
46
0.063624
ccf5cf766e01ecc826d0e351e27a11fbaff7d8c0
3,329
py
Python
openhivenpy/types/attachment.py
FrostbyteBot/hiven.py
1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e
[ "MIT" ]
9
2020-11-13T19:07:54.000Z
2021-01-30T23:12:57.000Z
openhivenpy/types/attachment.py
FrostbyteBot/hiven.py
1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e
[ "MIT" ]
46
2020-11-05T20:32:41.000Z
2021-04-03T22:48:18.000Z
openhivenpy/types/attachment.py
FrostbyteBot/openhiven.py
1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e
[ "MIT" ]
2
2020-12-19T14:27:07.000Z
2021-01-29T10:52:33.000Z
""" Attachment File which implements the Hiven Attachment type and its methods (endpoints) --- Under MIT License Copyright © 2020 - 2021 Luna Klatzer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
34.677083
79
0.714329
1,638
0.491892
0
0
1,406
0.422222
0
0
2,153
0.646547
ccf684f8b04fadc89a621f3af0e959e3165d4fdf
1,530
py
Python
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
null
null
null
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
7
2020-02-11T23:41:11.000Z
2022-01-13T01:04:03.000Z
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Task from rest_framework import serializers from rest_framework.response import Response from rest_framework.decorators import api_view # Create your views here. class TaskSerializer(serializers.ModelSerializer): """ Task serializer class """ class Meta: "...
23.90625
110
0.698693
387
0.252941
0
0
911
0.595425
0
0
385
0.251634
ccf6ab1d7fc1142582573ac98bff25dde4b1d9c1
471
py
Python
test_project/server/settings/environments/development.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
13
2018-10-06T13:04:54.000Z
2020-08-14T13:03:01.000Z
test_project/server/settings/environments/development.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
6
2018-10-09T15:45:43.000Z
2021-06-23T12:31:51.000Z
test_project/server/settings/environments/development.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
2
2018-11-16T02:58:41.000Z
2020-07-18T18:19:15.000Z
# -*- coding: utf-8 -*- """ This file contains all the settings that defines the development server. SECURITY WARNING: don't run with debug turned on in production! """ import logging from typing import List from server.settings.components.common import INSTALLED_APPS, MIDDLEWARE # Setting the development status: ...
19.625
83
0.755839
0
0
0
0
0
0
0
0
299
0.63482
ccf715d5c23093aaf3f22692cfa66ef6452f1f55
605
py
Python
test/sample_robot_api.py
things-factory/vision-client-python
b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d
[ "MIT" ]
null
null
null
test/sample_robot_api.py
things-factory/vision-client-python
b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d
[ "MIT" ]
null
null
null
test/sample_robot_api.py
things-factory/vision-client-python
b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d
[ "MIT" ]
null
null
null
import sys import json from random import choice, random import time from pyaidoop_graphql_client.api import Client def main(argv): workspaceName = argv[1] client = Client("http://localhost:3000", "system") client.signin("[email protected]", "admin") # client.robot_go_home(name='robot01') # cl...
24.2
93
0.661157
0
0
0
0
0
0
0
0
254
0.419835
ccf716c91df18440671ec6222d7ac8edd7636308
6,275
py
Python
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
1
2016-11-12T01:16:32.000Z
2016-11-12T01:16:32.000Z
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
null
null
null
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
2
2016-05-20T21:04:15.000Z
2020-02-02T15:25:40.000Z
#!/bin/env python3 """ Extracts all metro and RER stations from an OSM dump. """ import xml.etree.cElementTree as ET import argparse import csv from math import radians, cos, sin, asin, sqrt class Station(object): """A train station""" def __init__(self, name, osm_id, lat, lon, accessible=False): self...
32.179487
94
0.629163
2,217
0.353194
0
0
885
0.140991
0
0
1,278
0.2036
ccf73deff0cd7b3da75f4fe279624fa28407626b
493
py
Python
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
null
null
null
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
null
null
null
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
1
2019-11-06T21:27:51.000Z
2019-11-06T21:27:51.000Z
# note : this does not create the link between the map and the world. It only spawns the robots. # Please make sure to go back and manually add the path to the bitmap file file_name = 'plots.txt' f = open("../new_results/" + file_name, "w+") counter = 1 for i in range(1, 10): for j in range(1, 6): f.write('...
35.214286
102
0.622718
0
0
0
0
0
0
0
0
284
0.576065
ccf80cabc3a7e5b0b42749bb4a83f5a36f41004c
5,615
py
Python
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2018-2019 Contributor # # 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 #...
37.18543
79
0.655565
3,781
0.673375
0
0
0
0
0
0
1,076
0.19163
ccf83380f75272da17e827a8354142f3491d9b15
1,618
py
Python
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
133
2019-07-24T11:32:34.000Z
2022-03-25T02:43:55.000Z
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
396
2019-07-24T06:30:19.000Z
2022-03-24T07:59:07.000Z
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
159
2019-07-24T11:32:37.000Z
2022-03-28T15:17:05.000Z
from types import SimpleNamespace import pytest import threading from py4web.core import Fixture result = {'seq': []} def run_thread(func, *a): t = threading.Thread(target=func, args=a) return t class Foo(Fixture): def on_request(self): self._safe_local = SimpleNamespace() @property de...
22.164384
64
0.631644
228
0.140915
0
0
457
0.282447
0
0
157
0.097033
ccf92b8e5eba6aedbf6d4f91a3902a09d0c24f3f
13,049
py
Python
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\objects\components\object_inventory_component.py # Compiled at: 2020-10-06 03:00:48 # Size of source...
58.515695
486
0.683884
11,726
0.898613
239
0.018316
1,678
0.128592
0
0
3,809
0.2919
ccf98db2c183a542430a289ff4949ad327d07cde
786
py
Python
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.core.management import BaseCommand, CommandError from sqs_consumer.worker.service import WorkerService class Command(BaseCommand): help = 'Command to process tasks from one or more SQS queues' def add_arguments(self, parser): pars...
34.173913
95
0.667939
609
0.774809
0
0
0
0
0
0
196
0.249364
ccfb0220e26dd4f7df5cf240f68d1efa01669ca5
212
py
Python
helper_functions.py
lindsayad/python
4b63a8b02de6a7c0caa7bb770f3f22366e066a7f
[ "MIT" ]
null
null
null
helper_functions.py
lindsayad/python
4b63a8b02de6a7c0caa7bb770f3f22366e066a7f
[ "MIT" ]
null
null
null
helper_functions.py
lindsayad/python
4b63a8b02de6a7c0caa7bb770f3f22366e066a7f
[ "MIT" ]
null
null
null
import numpy as np def indep_array(start, finish, num_steps): x = np.zeros(num_steps) for i in range(0, num_steps): x[i] = start * ((finish / start) ** (1. / (num_steps - 1.))) ** i return x
26.5
73
0.584906
0
0
0
0
0
0
0
0
0
0
ccfb1aaf66833ea1e34ee0d93d00ff4476230fb8
4,890
py
Python
tests/test_filesystem_paths.py
NinjasCL-archive/masonite-fs
333c11d19927f9cf371d12bb87af88b0ca3dd698
[ "MIT" ]
2
2018-08-18T01:15:33.000Z
2018-08-18T17:28:08.000Z
tests/test_filesystem_paths.py
NinjasCL-archive/masonite-fs
333c11d19927f9cf371d12bb87af88b0ca3dd698
[ "MIT" ]
null
null
null
tests/test_filesystem_paths.py
NinjasCL-archive/masonite-fs
333c11d19927f9cf371d12bb87af88b0ca3dd698
[ "MIT" ]
null
null
null
# coding: utf-8 from the import expect from filesystem import paths from filesystem.paths import root class TestFilesystemPaths: def setup_method(self): pass def test_that_root_exists(self): expect(paths.ROOT).to.be.NOT.empty def test_that_app_is_correct(self): expect(paths.AP...
37.045455
91
0.740082
4,783
0.978119
0
0
0
0
0
0
315
0.064417
ccfb60a5f0e99b7473379c8b27f4c338be01c980
2,222
py
Python
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
2
2021-07-10T05:56:04.000Z
2021-08-04T14:56:47.000Z
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
21
2021-04-27T06:05:05.000Z
2021-11-01T23:19:36.000Z
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
3
2021-06-21T19:09:47.000Z
2021-07-16T01:16:27.000Z
from openpharmacophore.databases.zinc import get_zinc_urls, discretize_values import pytest @pytest.mark.parametrize("subset,mol_weight,logp,format", [ ("Drug-Like", None, None, "smi"), (None, (250, 350), (-1, 1), "smi"), (None, (365, 415), (1.5, 2.25), "smi"), ("Drug-Like", None, None, "sdf"), (No...
35.83871
83
0.564806
0
0
0
0
2,121
0.954545
0
0
370
0.166517
ccfbb57a4333021e3f1feae704010ec46562da66
3,608
py
Python
2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py
APMonitor/arduino
f36e65a70dd7122d1829883899e40e56bf6c4279
[ "Apache-2.0" ]
71
2017-06-09T06:15:09.000Z
2022-01-19T12:02:22.000Z
2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py
rezabbasi/arduino
4d9ea70688427e610228036c44560a11246930e1
[ "Apache-2.0" ]
5
2017-09-14T15:03:39.000Z
2020-04-24T01:05:03.000Z
2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py
rezabbasi/arduino
4d9ea70688427e610228036c44560a11246930e1
[ "Apache-2.0" ]
49
2017-05-11T04:02:25.000Z
2021-11-24T17:56:14.000Z
import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint from scipy.optimize import minimize import pandas as pd # generate data file from TCLab or get sample data file from: # http://apmonitor.com/pdc/index.php/Main/ArduinoEstimation2 # Import data file # Column 1 = time (t) # ...
26.335766
62
0.560421
0
0
0
0
0
0
0
0
1,185
0.328437
ccfbcfc80bfd4176875b1439857777b6f9e25659
4,052
py
Python
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
from math import gcd moons = [(-16, -1, -12), (0, -4, -17), (-11, 11, 0), (2, 2, -6)] velocities = [(0,0,0),(0,0,0),(0,0,0),(0,0,0)] x_positions = set() y_positions = set() z_positions = set() x_positions.add((moons[0][0],moons[1][0],moons[2][0],moons[3][0],velocities[0][0],velocities[1][0],velocities[2][0],velociti...
57.070423
159
0.637957
0
0
0
0
0
0
0
0
96
0.023692
ccfc779a1ced7c9e46cfbe2591e7ace76abaf9a2
643
py
Python
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
1
2021-03-26T05:07:20.000Z
2021-03-26T05:07:20.000Z
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
null
null
null
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
null
null
null
import AutoTicketsBot as tBot configDestination = 'var/config.yml' args = tBot.addArgs() config = tBot.configRead(configDestination) if tBot.configWrite(configDestination, args, config) is True: print("Successfully store new config to {}".format(configDestination)) ticketsBot = tBot.AutoTicketsBot(config) #schedul...
29.227273
71
0.785381
0
0
0
0
0
0
0
0
155
0.241058
ccfc9563a897ecbadd4690eb294f53f692567173
1,834
py
Python
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
def get_map_from_input(input_location): f = open(input_location, 'r') input_map = f.read().split('\n') f.close() lines = len(input_map) columns = len(input_map[0]) print(f"Original map = {lines} x {columns}") extended_map = [] for line in input_map: extended_map.append(line *...
26.970588
136
0.657579
0
0
0
0
0
0
0
0
304
0.165758
ccfca93576d38c7241f634e36cb1fb7366307974
343
py
Python
{{cookiecutter.project_slug}}/sources/conftest.py
AsheKR/cookiecutter-django
d0402aefcc2eeaffa747faa7ef50ad97286bfcca
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/sources/conftest.py
AsheKR/cookiecutter-django
d0402aefcc2eeaffa747faa7ef50ad97286bfcca
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/sources/conftest.py
AsheKR/cookiecutter-django
d0402aefcc2eeaffa747faa7ef50ad97286bfcca
[ "BSD-3-Clause" ]
null
null
null
import os import sys import pytest from django.contrib.auth import get_user_model from users.tests.factories import UserFactory sys.path.append(os.path.join(os.path.dirname(__file__), 'app')) User = get_user_model() @pytest.fixture(autouse=True) def enable_db(db): pass @pytest.fixture def user() -> User: ...
15.590909
63
0.752187
0
0
0
0
117
0.341108
0
0
5
0.014577
ccfd2ea93b839a028809fe07b95b0245dfeb7f66
191
py
Python
src/numba_vectormath.py
arkavo/Maxwell-ecosystem
d956ea892ebe581b8b2c0325df59fa58a6d5db9a
[ "Apache-2.0" ]
null
null
null
src/numba_vectormath.py
arkavo/Maxwell-ecosystem
d956ea892ebe581b8b2c0325df59fa58a6d5db9a
[ "Apache-2.0" ]
null
null
null
src/numba_vectormath.py
arkavo/Maxwell-ecosystem
d956ea892ebe581b8b2c0325df59fa58a6d5db9a
[ "Apache-2.0" ]
null
null
null
import numpy as np import numba from numba import jit @jit(nopython=True) def distance(a,b): d = 0 for i in range(max(len(a),len(b))): d += (a[i] - b[i])**2 return d**0.5
19.1
39
0.581152
0
0
0
0
136
0.712042
0
0
0
0
ccfe49b139702ec62120531b875985143b174591
751
py
Python
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
''' Smallest factor to reach a number composed of digit '1' Status: Accepted ''' ############################################################################### def main(): """Read input and print output""" while True: try: number = int(input()) except EOFError: break...
22.757576
79
0.370173
0
0
0
0
0
0
0
0
285
0.379494
ccfe72e943c07b30fc915317d0d3a67d9c72f9cc
2,190
py
Python
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
4
2018-07-29T10:48:53.000Z
2018-08-23T13:02:15.000Z
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
7
2018-11-15T15:17:45.000Z
2021-05-11T19:58:55.000Z
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
null
null
null
from flask import request, abort from flask_restful_swagger_3 import Resource, swagger from flask_jwt_extended import jwt_required, get_jwt_identity, get_jwt from models.message import Message, MessageCreate from database.manager import db from emails import send_new_message class MessageAPICreate(Resource): @jwt_re...
27.721519
109
0.590411
1,912
0.873059
0
0
1,876
0.856621
0
0
562
0.256621
ccff8fb01ea3f497743ce74c1e9b8975a96ada59
5,544
py
Python
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
346
2015-06-07T19:55:15.000Z
2022-03-18T07:55:10.000Z
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
202
2015-06-16T15:28:05.000Z
2022-01-06T18:26:13.000Z
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
101
2015-06-15T22:06:46.000Z
2022-01-13T02:56:02.000Z
#!/usr/bin/env python3 # # Copyright (c) 2015, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
37.459459
100
0.590729
0
0
0
0
2,094
0.377706
0
0
3,510
0.633117
ccff9565d795674cf4b93f869a86dae2c49d6c9e
1,859
py
Python
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
# coding:utf-8 # example 17: quick_sort.py import random # def quick_sort(array): # if len(array) <= 1: # return array # pivot_idx = 0 # pivot = array[pivot_idx] # less_part = [num for num in array[pivot_idx + 1:] if num <= pivot] # great_part = [num for num in array[pivot_idx + 1:] if nu...
27.338235
72
0.603012
0
0
0
0
0
0
0
0
623
0.335126
ccffcaa195c026f029865dcd87b3fe8d69e0f7e3
3,129
py
Python
xquotient/test/historic/test_undefertask1to2.py
twisted/quotient
95f2515219da99a77905852bc01deeb27e93466e
[ "MIT" ]
6
2016-02-15T07:33:39.000Z
2018-12-03T17:20:58.000Z
xquotient/test/historic/test_undefertask1to2.py
DalavanCloud/quotient
95f2515219da99a77905852bc01deeb27e93466e
[ "MIT" ]
1
2021-02-18T20:01:02.000Z
2021-02-18T20:01:02.000Z
xquotient/test/historic/test_undefertask1to2.py
DalavanCloud/quotient
95f2515219da99a77905852bc01deeb27e93466e
[ "MIT" ]
4
2015-11-15T17:28:20.000Z
2018-12-03T17:20:48.000Z
from zope.interface import implements from epsilon.extime import Time from axiom.iaxiom import IScheduler from axiom.item import Item from axiom.attributes import text from axiom.test.historic.stubloader import StubbedTest from xquotient.exmess import _UndeferTask, Message, INBOX_STATUS, CLEAN_STATUS from xquotient....
33.645161
78
0.683925
2,627
0.839565
0
0
0
0
0
0
1,436
0.458933
69003cd799998d8973cda2d04b1c36351df5836d
2,304
py
Python
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
1
2020-07-31T01:31:52.000Z
2020-07-31T01:31:52.000Z
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
12
2020-07-20T18:55:15.000Z
2021-09-23T05:08:26.000Z
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
null
null
null
""" A test file for testing zestimation The learned file could be downloaded at [learned_zqso_only_model_outdata_full_dr9q_minus_concordance_norm_1176-1256.mat] (https://drive.google.com/file/d/1SqAU_BXwKUx8Zr38KTaA_nvuvbw-WPQM/view?usp=sharing) """ import os import re import time import numpy as np from .test_selec...
29.538462
123
0.69401
0
0
0
0
0
0
0
0
645
0.279948
6901b7acffb34f8f8d84f5944353762bec3fbb2a
2,981
py
Python
tests/test_xml_parser_quart.py
criteo/quart
7d018837d7b2f372da3fa83b1b78e4067d89557a
[ "Apache-2.0" ]
1
2017-12-07T11:37:51.000Z
2017-12-07T11:37:51.000Z
tests/test_xml_parser_quart.py
muneebirfan/quart
7d018837d7b2f372da3fa83b1b78e4067d89557a
[ "Apache-2.0" ]
null
null
null
tests/test_xml_parser_quart.py
muneebirfan/quart
7d018837d7b2f372da3fa83b1b78e4067d89557a
[ "Apache-2.0" ]
2
2018-06-26T15:28:10.000Z
2022-02-21T11:29:35.000Z
import pytest from quart.xml_parser_quart import fusion_vulnerability_dictionaries EXPECTED_1 = \ {u'1': {'category': u'Category 1', 'consequence': u'Consequence 1', 'diagnosis': u'Diagnosis 1', 'hosts': [{'ip': u'1.1.1.1', 'name': 'host1'}, {'ip': u'2.2.2...
36.353659
77
0.495136
0
0
0
0
522
0.175109
0
0
1,444
0.484401
6902524469a111f980df924fbfd0b52b4036a41b
1,651
py
Python
poker/poker_base/test.py
chitty/poker_base
913c13b89a0c4e4c0ec7e3b01495a96309a02f26
[ "MIT" ]
null
null
null
poker/poker_base/test.py
chitty/poker_base
913c13b89a0c4e4c0ec7e3b01495a96309a02f26
[ "MIT" ]
null
null
null
poker/poker_base/test.py
chitty/poker_base
913c13b89a0c4e4c0ec7e3b01495a96309a02f26
[ "MIT" ]
null
null
null
from poker import poker, kind, two_pair, hand_rank, card_ranks, best_hand def test(): "Test cases for the functions in poker program" sf = "6C 7C 8C 9C TC".split() # Straight Flush fk = "9D 9H 9S 9C 7D".split() # Four of a Kind fh = "TD TC TH 7C 7D".split() # Full House tp = "5S 5D AC AS KS".sp...
35.12766
73
0.574197
0
0
0
0
0
0
0
0
434
0.262871
690437062ad9bc153f8073ff84de085091fb62c1
5,249
py
Python
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
303
2016-03-03T00:44:37.000Z
2022-03-14T03:43:38.000Z
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
52
2016-02-26T21:41:31.000Z
2021-06-27T08:33:51.000Z
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
67
2016-03-03T22:38:35.000Z
2022-01-12T08:03:47.000Z
""" base estimator class for megaman """ # Author: James McQueen -- <[email protected]> # LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE import numpy as np from scipy.sparse import isspmatrix from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils.validation impo...
36.451389
81
0.599543
4,764
0.907601
0
0
0
0
0
0
3,350
0.638217
6905dd86176dcedc7d4f61bca47e2cde2c5fae84
8,048
py
Python
pymorsegui.py
mmgrant73/pymorsecode
594c341817598e86a7be766ca591a99cd8db0e94
[ "MIT" ]
1
2021-04-15T03:26:32.000Z
2021-04-15T03:26:32.000Z
pymorsegui.py
mmgrant73/pymorsecode
594c341817598e86a7be766ca591a99cd8db0e94
[ "MIT" ]
null
null
null
pymorsegui.py
mmgrant73/pymorsecode
594c341817598e86a7be766ca591a99cd8db0e94
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # generated by wxGlade 0.9.4 on Sat Feb 1 19:14:54 2020 # import wx from pymorsecode import MorseCode # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade class MyFrame(wx.Frame): def __init__(self, *args, **kwds): # begi...
44.21978
146
0.650596
7,691
0.955641
0
0
0
0
0
0
1,662
0.206511
690613c67cd63310af621f929b186a79abbe5cd8
1,032
py
Python
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
4
2020-01-21T21:46:42.000Z
2021-02-24T18:30:24.000Z
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
1,313
2019-10-18T22:48:16.000Z
2022-03-30T17:42:47.000Z
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
201
2019-10-18T21:34:41.000Z
2022-03-31T20:07:42.000Z
"""update user profile definition Revision ID: d3f96fb8b8e5 Revises: 2b13f89aa1b3 Create Date: 2021-10-18 15:45:33.906745 """ from alembic import op import sqlalchemy as sa from alembic_utils.pg_function import PGFunction from sqlalchemy import text as sql_text # revision identifiers, used by Alembic. revision = 'd3...
30.352941
94
0.738372
0
0
0
0
0
0
0
0
603
0.584302
6906a12f2953d09ffd721ec5d1611ca70e378fb9
2,948
py
Python
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" On an 8 x 8 chessboard, there is one white rook.  There also may be empty squares, white bishops, and black pawns.  These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters represent black pieces. The rook moves as in the rules of Ches...
39.837838
353
0.402307
960
0.324983
0
0
0
0
0
0
2,072
0.701422
6908c59f82b4dce18b0359af8fb11f6688af03cf
3,200
py
Python
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
42.105263
89
0.637813
2,272
0.71
0
0
0
0
0
0
613
0.191563
690958b4739c7c62384b219e19362e11eacddb43
968
py
Python
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- from simmate.website.core_components.filters import ( Structure, Forces, Thermodynamics, Calculation, ) from simmate.database.base_data_types.dynamics import ( DynamicsRun as DynamicsRunTable, DynamicsIonicStep as DynamicsIonicStepTable, ) class DynamicsRun(Structure, ...
25.473684
59
0.599174
673
0.695248
0
0
0
0
0
0
65
0.067149
690b4a69f377b976688d836e3b5ab8c8dc9b6884
3,821
py
Python
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from taller1.models import Userid_Timestamp_Count class Coseno(): def recomendacionUsuario(self,usuario_activo): print("Modelo Coseno Usuario") cant = 10 df_mapreduce = Coseno.cargarDatos(self) print("df_mapreduce.shape",df_mapreduce.shape) df_pivot = df_mapr...
43.420455
108
0.741952
3,727
0.975399
0
0
0
0
0
0
729
0.190788
690bf7914b0e1d6a8fa65445caa5e076e78c0f57
5,646
py
Python
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
66
2018-09-21T22:55:34.000Z
2022-03-22T14:29:57.000Z
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
4
2018-10-04T22:09:01.000Z
2022-03-31T16:18:38.000Z
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
50
2018-09-23T15:50:55.000Z
2022-03-06T06:59:33.000Z
"""Convert Shapefiles to Tecplot plt format usage: > python shapefile_to_plt.py shapefile.shp outfile.plt Necessary modules ----------------- pyshp The Python Shapefile Library (pyshp) reads and writes ESRI Shapefiles in pure Python. https://pypi.python.org/pypi/pyshp https://www.esri.com/library/whi...
33.607143
104
0.669146
0
0
0
0
0
0
0
0
2,314
0.409848
690cf46e3a65cc79fc30a8178dbe551901ad1473
2,746
py
Python
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
"""When creating factory functions, plain functions are good unless you need to inherit from a higher level class. If you don't need to inherit, dont use a class.""" from functools import partial from .suits import * from .cards import * def card(rank, suit): if rank == 1: return AceCard('A', suit) ...
31.563218
89
0.617626
997
0.363074
0
0
0
0
0
0
1,024
0.372906
690dd745221fea2279bf9ae3ddea1cf478e5ead0
2,645
py
Python
tests/test_spider_qidian.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
5
2018-03-05T02:32:53.000Z
2020-10-27T13:13:59.000Z
tests/test_spider_qidian.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
null
null
null
tests/test_spider_qidian.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
1
2019-02-20T03:04:22.000Z
2019-02-20T03:04:22.000Z
# -*- coding: utf-8 -*- import unittest from app.services.spider_qidian import QidianSpider class TestSpider(unittest.TestCase): def test_init(self): spider = QidianSpider() self.assertTrue(isinstance(spider, QidianSpider)) def test_query_book_list(self): spider = QidianSpider() ...
45.603448
135
0.662004
2,653
0.965781
0
0
0
0
0
0
973
0.354205
690eeeccad42026d1f4e91d779a9b52f4b5eb52e
847
py
Python
Python3/1311-Get-Watched-Videos-by-Your-Friends/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1311-Get-Watched-Videos-by-Your-Friends/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1311-Get-Watched-Videos-by-Your-Friends/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def watchedVideosByFriends(self, watchedVideos: List[List[str]], friends: List[List[int]], ID: int, level: int) -> List[str]: n = len(friends) # BFS frontier = [ID] levels = {ID : 0} nsteps = 0 while frontier: if level == 0: ...
33.88
129
0.472255
846
0.998819
0
0
0
0
0
0
5
0.005903
690f42d3fe72fbc49129a7da627897da2c12d466
2,614
py
Python
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
16
2015-11-22T13:12:46.000Z
2020-09-04T06:42:55.000Z
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
8
2016-01-09T23:32:46.000Z
2019-09-30T23:30:49.000Z
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
7
2016-07-19T04:39:31.000Z
2020-09-04T06:43:06.000Z
from __future__ import annotations import logging import socket import pytest from .constants import TEST_HOST, TEST_PORT logger = logging.getLogger("tests.fixtures.client") class BaseClient: """ Blocking test client to connect to an app server """ name: str def __init__(self, name: str): ...
25.627451
87
0.613236
1,644
0.628921
766
0.293037
782
0.299158
0
0
684
0.261668
690f93b1369267fc52a8a48543ba3893e460a7b1
7,768
py
Python
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
1
2017-11-26T22:12:16.000Z
2017-11-26T22:12:16.000Z
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
null
null
null
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
null
null
null
"""Standard raspberry GPIO access layer. It defines abstract layer that extends InOutInterface to access all standard ports on rapsberry pi. It uses RPi.GPIO under the hood. Thanks to that you have a standardized way of accessing these ports, as well as any others implementing InOutInterface. """ import logging fr...
36.469484
80
0.608651
7,263
0.93499
0
0
0
0
0
0
1,835
0.236226
6910edd2d74b03e0e705138a62b8524d93b325d6
4,190
py
Python
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
import discord import os import json from discord.ext import commands, tasks import time import asyncio import random from discord.utils import MAX_ASYNCIO_SECONDS ########################################################################## #generalrole = discord.utils.get(ctx.guild.roles, id=661454256251076613) #logch...
28.310811
100
0.587351
2,409
0.543915
0
0
2,290
0.517047
2,131
0.481147
1,109
0.250395
691177c77ccb4ef9f4c89444502885d55b50a94c
5,007
py
Python
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
#First, we import the relevant libraries import sys import pandas as pd from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): '''This function will load the messages and categories datasets. Then, this function will merge the datasets by left join using the common id...
37.931818
117
0.675654
0
0
0
0
0
0
0
0
3,296
0.658278
6911b43b591ee3e9e1fa26ab8ffa4f05986921b5
7,123
py
Python
ai_challenge/agents/_ignore_Agent.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
72
2017-05-22T18:22:58.000Z
2019-03-11T22:49:00.000Z
ai_challenge/agents/_ignore_Agent.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
1
2017-06-09T05:26:43.000Z
2017-08-22T11:41:41.000Z
ai_challenge/agents/_ignore_Agent.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
3
2017-05-25T08:49:27.000Z
2019-09-09T18:41:54.000Z
import torch from argparse import ArgumentParser, Namespace import logging import os from collections import namedtuple import random import torch Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward', 'done')) class AgentMemory(object): def __init__(self, capaci...
28.378486
80
0.579952
6,850
0.961673
0
0
0
0
0
0
1,080
0.151622
691235d4163755651c608d7db64917c20c45cfde
1,568
py
Python
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
null
null
null
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
1
2021-08-17T12:17:29.000Z
2021-08-17T12:17:29.000Z
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
null
null
null
import pandas as pd from modules import bedtools from modules import intervals def generator(ARGUMENTS): if not ARGUMENTS.input_bed and not ARGUMENTS.gtf_anno: print(f"get random intervals from genome {ARGUMENTS.reference}") RANDOM_BED = bedtools.random_interval( ARGUMENTS.reference, A...
28
73
0.658163
0
0
0
0
0
0
0
0
221
0.140944
6913dde4acd202b7bb00fc51376d6dcff16b4ba7
100
py
Python
q025.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q025.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q025.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 f=1 fprev=1 n=2 while f < 10**999: f,fprev = f + fprev,f n += 1 print(n)
11.111111
23
0.58
0
0
0
0
0
0
0
0
22
0.22
69146b024afb8e8179d7794495072111c92f9cf1
532
py
Python
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
1
2022-03-06T11:37:47.000Z
2022-03-06T11:37:47.000Z
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
null
null
null
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
null
null
null
test = list() test.append('Werberty') test.append(21) galera = list() galera.append(test[:]) test[0] = 'Maria' test[1] = 22 galera.append(test[:]) print(galera) pessoal = [['joão', 19], ['Ana', 33], ['Joaquim', 13], ['Maria', 45]] print(pessoal[1]) print(pessoal[2][1]) for p in pessoal: print(f'{p[0]} tem {p[1]} a...
22.166667
69
0.614662
0
0
0
0
0
0
0
0
97
0.181989
6914bfcaeef4fb7954973326e68cefa7ccd0e8c9
4,667
py
Python
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
5
2019-06-30T14:45:12.000Z
2020-07-26T12:59:36.000Z
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
1
2020-07-11T10:47:57.000Z
2020-09-16T10:53:36.000Z
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
2
2019-12-24T02:10:42.000Z
2020-04-27T05:39:49.000Z
from summariser.ngram_vector.base import Sentence from summariser.utils.data_helpers import * from nltk.stem.porter import PorterStemmer from summariser.ngram_vector.state_type import * import random class Vectoriser: def __init__(self,docs,sum_len=100,no_stop_words=True,stem=True,block=1,base=200,lang='english')...
42.045045
122
0.630812
4,463
0.956289
0
0
0
0
0
0
90
0.019284
69153ffe65a563075cabcea48239e1f649f663fd
320
py
Python
setup.py
onidzelskyi/python_betbright_test
5de60c10857829bc3d326558132fa512776e952d
[ "MIT" ]
null
null
null
setup.py
onidzelskyi/python_betbright_test
5de60c10857829bc3d326558132fa512776e952d
[ "MIT" ]
null
null
null
setup.py
onidzelskyi/python_betbright_test
5de60c10857829bc3d326558132fa512776e952d
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='betbright_test', version='0.1', description='Python product category classification kit', url='', author='Oleksii Nidzelskyi', author_email='[email protected]', license='MIT', packages=['betbright_test'], zip_safe=False)
26.666667
63
0.6625
0
0
0
0
0
0
0
0
136
0.425
69157e91f425c2893ef06beb1c157d48d39855f1
198
py
Python
docsie_universal_importer/providers/google_cloud_storage/urls.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
docsie_universal_importer/providers/google_cloud_storage/urls.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
docsie_universal_importer/providers/google_cloud_storage/urls.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
from docsie_universal_importer.providers.base.urls import default_urlpatterns from .import_provider import GoogleCloudStorageProvider urlpatterns = default_urlpatterns(GoogleCloudStorageProvider)
33
77
0.89899
0
0
0
0
0
0
0
0
0
0
691732087c532907538627537cd1a0c66892dfed
2,182
py
Python
example/multicut/performance/simple_experiments.py
abailoni/elf
e3b459b4dcc1d72a8dd3d38eabbf3b7183285372
[ "MIT" ]
23
2019-09-07T23:02:08.000Z
2022-03-19T09:50:58.000Z
example/multicut/performance/simple_experiments.py
abailoni/elf
e3b459b4dcc1d72a8dd3d38eabbf3b7183285372
[ "MIT" ]
34
2019-08-07T11:54:01.000Z
2022-03-29T09:50:54.000Z
example/multicut/performance/simple_experiments.py
abailoni/elf
e3b459b4dcc1d72a8dd3d38eabbf3b7183285372
[ "MIT" ]
12
2019-08-23T09:01:29.000Z
2021-11-09T01:21:20.000Z
import argparse import json import os import time from elf.segmentation.multicut import get_multicut_solver, _to_objective from elf.segmentation.utils import load_multicut_problem def simple_performance_experiments(problem, solvers): os.makedirs("problems", exist_ok=True) path = f"./problems/{problem}" s...
34.634921
96
0.648029
0
0
0
0
0
0
0
0
585
0.268103
6917abd481963fb432ab3aee8ef82db2c9fb0a45
104
py
Python
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
1
2021-02-18T03:08:21.000Z
2021-02-18T03:08:21.000Z
IMAP_GMAIL = 'imap.gmail.com' IMAP_OUTLOOK = 'outlook.office365.com' IMAP_YAHOO = 'imap.mail.yahoo.com'
26
38
0.759615
0
0
0
0
0
0
0
0
60
0.576923
691961c351775c6d1643e0e7e934a4b430e01308
35
py
Python
tests/__init__.py
anrputina/oadds
f2e058f48a9edfbdd9ee7229b4f303cdd4543190
[ "MIT" ]
5
2020-12-25T19:38:32.000Z
2021-06-12T20:39:05.000Z
tests/__init__.py
anrputina/ods-anomalydetection
f2e058f48a9edfbdd9ee7229b4f303cdd4543190
[ "MIT" ]
63
2020-08-04T12:08:09.000Z
2020-10-09T12:08:09.000Z
tests/__init__.py
anrputina/ods-anomalydetection
f2e058f48a9edfbdd9ee7229b4f303cdd4543190
[ "MIT" ]
null
null
null
"""Unit test package for oadds."""
17.5
34
0.657143
0
0
0
0
0
0
0
0
34
0.971429
69212d7ab58acd86f0a6a7a1366fa6f42c3e9584
1,296
py
Python
src/openprocurement/tender/openua/procedure/models/award.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/openua/procedure/models/award.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/openua/procedure/models/award.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from schematics.types import StringType, BooleanType, MD5Type, BaseType from schematics.exceptions import ValidationError from schematics.types.compound import ModelType from openprocurement.api.models import ListType from openprocurement.tender.core.procedure.models.award import ( Award as BaseAward, PatchAwar...
35.027027
98
0.759259
744
0.574074
0
0
0
0
0
0
82
0.063272
6922080e0ef28e36cb9344b32948cabc43d991c9
4,448
py
Python
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
53
2016-02-27T09:40:21.000Z
2022-01-19T21:37:44.000Z
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
132
2016-02-26T13:18:58.000Z
2021-12-01T21:52:42.000Z
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
32
2016-02-26T13:21:40.000Z
2022-03-08T08:54:51.000Z
from __future__ import print_function import numpy as np from fidimag.atomistic import Sim from fidimag.common import CuboidMesh from fidimag.atomistic import UniformExchange def init_m(pos): x, y, z = pos return (x - 0.5, y - 0.5, z - 0.5) def test_exch_1d(): """ Test the x component of the exchang...
23.046632
77
0.546088
0
0
0
0
0
0
0
0
1,588
0.357014
6922c9f5f58bcc2458ccc430c20fbd3d35a3615f
2,475
py
Python
burin/dxftypes.py
matthewSorensen/plotterstuff
5e694c21d3cc49690f8b20cc9c06b3365612ee12
[ "BSD-2-Clause" ]
1
2020-10-15T04:59:16.000Z
2020-10-15T04:59:16.000Z
burin/dxftypes.py
matthewSorensen/plotterstuff
5e694c21d3cc49690f8b20cc9c06b3365612ee12
[ "BSD-2-Clause" ]
null
null
null
burin/dxftypes.py
matthewSorensen/plotterstuff
5e694c21d3cc49690f8b20cc9c06b3365612ee12
[ "BSD-2-Clause" ]
null
null
null
from geomdl import BSpline import numpy as np import math import ezdxf import burin.types class Spline: def __init__(self,degree, control, knots): self.degree = degree self.control = np.array(control) self.knots = np.array(knots) def length_upper_bound(self): acc = 0 ...
27.197802
84
0.606869
2,368
0.956768
0
0
876
0.353939
0
0
113
0.045657
692480274c65e40eecef76118c129488a11778d0
161
py
Python
backend/microservices/audio-generator/config/routes/authentication.py
MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection
72130ad037b900461af5be6d80b27ab29c81de5e
[ "MIT" ]
3
2021-04-26T00:17:14.000Z
2021-07-04T15:30:09.000Z
backend/microservices/audio-generator/config/routes/authentication.py
MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection
72130ad037b900461af5be6d80b27ab29c81de5e
[ "MIT" ]
null
null
null
backend/microservices/audio-generator/config/routes/authentication.py
MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection
72130ad037b900461af5be6d80b27ab29c81de5e
[ "MIT" ]
null
null
null
API_ROOT = 'http://localhost:6000' #'https://bookbeat.herokuapp.com' TOKEN_VALIDATION_ABS_ENDPOINT = API_ROOT + '/validate-token' REQ_USER_ID_KEY_NAME = 'id'
40.25
69
0.757764
0
0
0
0
0
0
0
0
78
0.484472
6924fcbecc439543091a0747fd24dab3169d855c
238
py
Python
output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.date.schema_instance.nistschema_sv_iv_list_date_min_length_3_xsd.nistschema_sv_iv_list_date_min_length_3 import NistschemaSvIvListDateMinLength3 __all__ = [ "NistschemaSvIvListDateMinLength3", ]
39.666667
182
0.886555
0
0
0
0
0
0
0
0
34
0.142857
6925a6eef582f0d830aa78315162927b6a168d1b
2,717
py
Python
face_follow/src/follower.py
andrewtron3000/hacdc-ros-pkg
f3178ebc5a71889066db102e3b57beb0dcc1a204
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
face_follow/src/follower.py
andrewtron3000/hacdc-ros-pkg
f3178ebc5a71889066db102e3b57beb0dcc1a204
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
face_follow/src/follower.py
andrewtron3000/hacdc-ros-pkg
f3178ebc5a71889066db102e3b57beb0dcc1a204
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python #********************************************************************* # Software License Agreement (BSD License) # # Copyright (c) 2011 andrewtron3000 # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the ...
45.283333
90
0.703717
0
0
0
0
0
0
0
0
1,821
0.670225
69279b7254cd9d2ee23d0e66b83b60fdbe51cae2
4,359
py
Python
fangyu.py
gaogaotiantian/tybuild
f97a1fc5e15c35dd887dbcd8a5018e424ee79e78
[ "MIT" ]
null
null
null
fangyu.py
gaogaotiantian/tybuild
f97a1fc5e15c35dd887dbcd8a5018e424ee79e78
[ "MIT" ]
null
null
null
fangyu.py
gaogaotiantian/tybuild
f97a1fc5e15c35dd887dbcd8a5018e424ee79e78
[ "MIT" ]
null
null
null
# coding:utf-8 import matplotlib.pyplot as plt import matplotlib as mpl # Def def GetDefRate(d): if d/(3360.0+d) > 0.9: return 0.9 return d/(3360.0+d) def GetDamageRate(d): return 1-GetDefRate(d) def GetDefImp(currDef, prevDef, pofang): return 1 - GetDamageRate(currDef*(1-pofang)) / GetDamageRat...
34.054688
96
0.620096
0
0
0
0
0
0
0
0
212
0.048281
692850aadfd57c9c530354c065381240dc631282
759
py
Python
portfolio_app/migrations/0005_auto_20210309_1606.py
ashraffaris42/faris-Personal-Portfolio
ea2a84cdefbefeb703037dd2eb80299ca24c42f4
[ "BSD-3-Clause" ]
2
2021-05-04T20:52:56.000Z
2021-05-05T12:50:05.000Z
portfolio_app/migrations/0005_auto_20210309_1606.py
ashraffaris42/faris-Personal-Portfolio
ea2a84cdefbefeb703037dd2eb80299ca24c42f4
[ "BSD-3-Clause" ]
null
null
null
portfolio_app/migrations/0005_auto_20210309_1606.py
ashraffaris42/faris-Personal-Portfolio
ea2a84cdefbefeb703037dd2eb80299ca24c42f4
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-09 16:06 from django.db import migrations, models import djrichtextfield.models class Migration(migrations.Migration): dependencies = [ ('portfolio_app', '0004_delete_service'), ] operations = [ migrations.AddField( model_name='project'...
25.3
65
0.59025
636
0.837945
0
0
0
0
0
0
139
0.183136
6928610238b2e0cae526f79687ff41ce7a474164
4,882
py
Python
Competing_Algorithm/demo.py
ZhiQiu976/project-Indian-Buffet-Process
a4817550f2ca1778333066fa03ec6bb5b9cb4240
[ "MIT" ]
null
null
null
Competing_Algorithm/demo.py
ZhiQiu976/project-Indian-Buffet-Process
a4817550f2ca1778333066fa03ec6bb5b9cb4240
[ "MIT" ]
null
null
null
Competing_Algorithm/demo.py
ZhiQiu976/project-Indian-Buffet-Process
a4817550f2ca1778333066fa03ec6bb5b9cb4240
[ "MIT" ]
1
2020-04-30T17:26:26.000Z
2020-04-30T17:26:26.000Z
"""Demo for latent factor model""" from __future__ import division import numpy as np import numpy.random as nr import matplotlib.pyplot as plt from IBPFM import IBPFM from utils.tracePlot import trace from utils.scaledimage import scaledimage N = 100 chain = 1000 K_finite = 6 # # read the keyboard input for the num...
30.135802
88
0.599549
0
0
0
0
0
0
0
0
1,460
0.299058
6928d12a9070c21f90e40630002456e946b09b39
1,391
py
Python
ex3_1_dnn_mnist_cl.py
yoongon/keraspp
4950e2e78bfd19095b88fd3a1ca74ffedba819a5
[ "MIT" ]
null
null
null
ex3_1_dnn_mnist_cl.py
yoongon/keraspp
4950e2e78bfd19095b88fd3a1ca74ffedba819a5
[ "MIT" ]
null
null
null
ex3_1_dnn_mnist_cl.py
yoongon/keraspp
4950e2e78bfd19095b88fd3a1ca74ffedba819a5
[ "MIT" ]
null
null
null
# 기본 파라미터 설정 ######################### Nin = 784 Nh_l = [100, 50] number_of_class = 10 Nout = number_of_class # 분류 DNN 모델 구현 ######################## from keras import layers, models class DNN(models.Sequential): def __init__(self, Nin, Nh_l, Nout): super().__init__() self.add(layers.Dense(Nh_l[...
33.119048
95
0.608914
481
0.332872
0
0
0
0
0
0
318
0.220069
69290e1920360e574d9ff10f85dbac38fc7fe420
492
py
Python
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/HackerRank/Data Structures/Dynamic-Array.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/HackerRank/Data Structures/Dynamic-Array.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/HackerRank/Data Structures/Dynamic-Array.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
def dynamicArray(n, queries): Q = len(queries) seqList = [[] for _ in range(n)] lastAnswer = 0 la = [] for i in range(Q): t, x, y = queries[i][0], queries[i][1], queries[i][2] if t == 1: seqList[(x ^ lastAnswer) % n].append(y) else: lastAnswer = seqLis...
28.941176
61
0.477642
0
0
0
0
0
0
0
0
0
0
6929df2927459d70fbbc2605690e202e9fada472
649
py
Python
MLGame/mlgame/crosslang/exceptions.py
Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING
f4a58d0d9f5832a77a4a86352e084065dc7bae50
[ "MIT" ]
null
null
null
MLGame/mlgame/crosslang/exceptions.py
Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING
f4a58d0d9f5832a77a4a86352e084065dc7bae50
[ "MIT" ]
null
null
null
MLGame/mlgame/crosslang/exceptions.py
Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING
f4a58d0d9f5832a77a4a86352e084065dc7bae50
[ "MIT" ]
null
null
null
""" The exceptions for the crosslang module """ class CompilationError(Exception): """ Exception raised when failed to compile the user script """ def __init__(self, file, reason): self.file = file self.reason = reason def __str__(self): return "Failed to compile '{}':\n{}"...
23.178571
78
0.624037
597
0.919877
0
0
0
0
0
0
272
0.419106
692aef8917d87dca4ac44be30bc2c59f6597251b
663
py
Python
meirin/db/metapolicy.py
sinsong/Meirin
ac536b3905d258dbdf5e1013d56d2f906efce58e
[ "BSD-2-Clause" ]
null
null
null
meirin/db/metapolicy.py
sinsong/Meirin
ac536b3905d258dbdf5e1013d56d2f906efce58e
[ "BSD-2-Clause" ]
null
null
null
meirin/db/metapolicy.py
sinsong/Meirin
ac536b3905d258dbdf5e1013d56d2f906efce58e
[ "BSD-2-Clause" ]
null
null
null
from sqlalchemy import Column, Sequence from sqlalchemy import Integer, String, Text from meirin.db.base_class import Base class MetaPolicy(Base): __tablename__ = 'metapolicy' # helper metapolicy_id_seq = Sequence('metapolicy_id_seq', metadata=Base.metadata) # columns id = Column(Integer, met...
27.625
112
0.714932
538
0.811463
0
0
0
0
0
0
174
0.262443
692bcf4ca6a37b28d7cd78b37196366ac2f21606
115
py
Python
lib/extensions/inplace_abn_1/__init__.py
shampooma/openseg.pytorch
d1da408a1e870d52c058c359583bc098f7f3d9e2
[ "MIT" ]
2,671
2019-04-09T16:20:16.000Z
2022-03-31T19:21:29.000Z
lib/extensions/inplace_abn_1/__init__.py
shampooma/openseg.pytorch
d1da408a1e870d52c058c359583bc098f7f3d9e2
[ "MIT" ]
245
2019-05-02T05:10:55.000Z
2022-03-31T07:14:44.000Z
lib/extensions/inplace_abn_1/__init__.py
shampooma/openseg.pytorch
d1da408a1e870d52c058c359583bc098f7f3d9e2
[ "MIT" ]
730
2019-04-16T14:45:56.000Z
2022-03-31T08:59:22.000Z
from .bn import ABN, InPlaceABN, InPlaceABNSync from .functions import ACT_RELU, ACT_LEAKY_RELU, ACT_ELU, ACT_NONE
38.333333
66
0.826087
0
0
0
0
0
0
0
0
0
0
692ec0bb7422b9bf134882c71709eab791047862
779
py
Python
infinisdk/core/utils/environment.py
Infinidat/infinisdk
a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4
[ "BSD-3-Clause" ]
5
2019-02-26T20:11:43.000Z
2021-03-10T08:45:38.000Z
infinisdk/core/utils/environment.py
Infinidat/infinisdk
a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4
[ "BSD-3-Clause" ]
11
2017-11-15T19:20:23.000Z
2021-09-14T18:17:47.000Z
infinisdk/core/utils/environment.py
Infinidat/infinisdk
a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4
[ "BSD-3-Clause" ]
2
2017-11-16T11:59:05.000Z
2019-02-25T20:44:23.000Z
import os import pkg_resources from mitba import cached_function @cached_function def get_logged_in_username(): try: import pwd user_id = os.getuid() os_info = pwd.getpwuid(user_id) return os_info.pw_name except (ImportError, KeyError): # ImportError: For windows users...
25.966667
94
0.703466
0
0
0
0
706
0.90629
0
0
167
0.214377
69301dd6f35763c4b558452e2a75490a7e95b5cb
1,176
py
Python
ChestnutPatcher/inject-lib.py
chestnut-sandbox/Chestnut
b42b9eb902e0928e8b549339788f83bb009290c1
[ "Zlib" ]
7
2020-12-08T02:00:14.000Z
2021-05-10T13:12:35.000Z
ChestnutPatcher/inject-lib.py
cc0x1f/Chestnut
b42b9eb902e0928e8b549339788f83bb009290c1
[ "Zlib" ]
2
2022-01-03T13:51:48.000Z
2022-01-26T15:42:44.000Z
ChestnutPatcher/inject-lib.py
cc0x1f/Chestnut
b42b9eb902e0928e8b549339788f83bb009290c1
[ "Zlib" ]
2
2021-05-15T03:06:07.000Z
2021-08-06T18:11:35.000Z
import sys import lief import json import struct import os def filter_file(fname): f = fname.replace("/", "_") + ".json" if f[0] == ".": f = f[1:] return f def main(fname): # load filter ffname = "policy_%s" % filter_file(fname) filters = None try: filters = json.loads(ope...
25.021277
64
0.590986
0
0
0
0
0
0
0
0
327
0.278061
69331d5c6bc354bd17e9f9d5696da9f4cbff069b
5,826
py
Python
scoff/parsers/generic.py
brunosmmm/scoff
e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138
[ "MIT" ]
null
null
null
scoff/parsers/generic.py
brunosmmm/scoff
e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138
[ "MIT" ]
1
2020-03-20T13:57:52.000Z
2021-03-11T17:25:25.000Z
scoff/parsers/generic.py
brunosmmm/scoff
e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138
[ "MIT" ]
null
null
null
"""Generic regex-based parser.""" import re from collections import deque from typing import Union, Any, List, Deque, Tuple, Dict, Callable from scoff.parsers.linematch import MatcherError, LineMatcher EMPTY_LINE = re.compile(b"\s*$") class ParserError(Exception): """Parser error.""" class DataParser: """...
31.15508
76
0.583934
5,583
0.95829
0
0
517
0.08874
0
0
1,311
0.225026
6933f6dc14a4268b062d6716b8b6fce13e8b8ff9
34,279
py
Python
cfg/model/CfgModel.py
sdnellen/ordt-config-tool
30cc7342c5bc0f574b2a4a8d207230e1fa527615
[ "Apache-2.0" ]
1
2019-12-06T19:11:28.000Z
2019-12-06T19:11:28.000Z
utils/cfgtool/cfg/model/CfgModel.py
mytoys/open-register-design-tool
5d6dea268f77546a9a786a16603f50e974d87050
[ "Apache-2.0" ]
null
null
null
utils/cfgtool/cfg/model/CfgModel.py
mytoys/open-register-design-tool
5d6dea268f77546a9a786a16603f50e974d87050
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 ''' @author: snellenbach Config sequence model ''' from enum import Enum, unique import re from cfg.model.RegModelWrapper import RegModelWrapper from cfg.model.Utils import MsgUtils from cfg.output.OutBuilder import OutBuilder as ob # ------- config model node classes class BaseCfgNode: _nodeS...
47.675939
210
0.632603
33,548
0.978675
0
0
5,703
0.16637
0
0
10,945
0.319292
693467a0acaed0c7690c50885524596a1996895e
922
py
Python
TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py
MatheusKlebson/Python-Course
c1c5404095601733057bd91a96b5b4c45f0b5b9a
[ "MIT" ]
null
null
null
TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py
MatheusKlebson/Python-Course
c1c5404095601733057bd91a96b5b4c45f0b5b9a
[ "MIT" ]
1
2020-11-25T15:47:38.000Z
2020-11-25T15:47:38.000Z
TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py
MatheusKlebson/Python-Course
c1c5404095601733057bd91a96b5b4c45f0b5b9a
[ "MIT" ]
null
null
null
# Exercício Python 097: Faça um programa que tenha uma função chamada escreva(), # que receba um texto qualquer como parâmetro e mostre uma mensagem com tamanho adaptável. # Ex: # escreva(‘Olá, Mundo!’) Saída: ...
61.466667
167
0.273319
0
0
0
0
0
0
0
0
824
0.881283
69357d4b61dce4eb42c2cf196abf2f132d27de5f
2,061
py
Python
tests/test_dict_qtable.py
fgka/reinforcement-learning-py
e4c582d192b36a270efce5e1512596b72466c8f7
[ "MIT" ]
null
null
null
tests/test_dict_qtable.py
fgka/reinforcement-learning-py
e4c582d192b36a270efce5e1512596b72466c8f7
[ "MIT" ]
null
null
null
tests/test_dict_qtable.py
fgka/reinforcement-learning-py
e4c582d192b36a270efce5e1512596b72466c8f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim: ai:sw=4:ts=4:sta:et:fo=croql # coding=utf-8 import pytest # Uncomment to run test in debug mode # import pudb; pudb.set_trace() from reinforcement_learning.dict_qtable import DictQTable from test_qaction import QActionTest from test_qstate import QStateTest """ DictQTable """ @pytest.m...
33.786885
73
0.654051
1,724
0.836487
0
0
1,749
0.848617
0
0
315
0.152838
693580d8911168f775041c87c4274d3d07d8d2de
2,851
py
Python
handlers/acceptmember.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
1
2015-12-14T08:31:30.000Z
2015-12-14T08:31:30.000Z
handlers/acceptmember.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
null
null
null
handlers/acceptmember.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
null
null
null
import tornado.web import tornado.gen import json import io import logging import motor from bson.objectid import ObjectId import mickey.userfetcher from mickey.basehandler import BaseHandler class AcceptMemberHandler(BaseHandler): @tornado.web.asynchronous @tornado.gen.coroutine def post(self): ...
33.541176
105
0.54437
2,654
0.930901
2,553
0.895475
2,610
0.915468
0
0
478
0.16766
6938f0e86ee3f8439ad8093f9adb38fd142480f6
1,366
py
Python
ois_api_client/v2_0/dto/AdditionalQueryParams.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v3_0/dto/AdditionalQueryParams.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v3_0/dto/AdditionalQueryParams.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import Optional from dataclasses import dataclass from .InvoiceAppearance import InvoiceAppearance from .InvoiceCategory import InvoiceCategory from .PaymentMethod import PaymentMethod from .Source import Source @dataclass class AdditionalQueryParams: """Additional params of the invoice query :pa...
44.064516
180
0.786237
1,128
0.825769
0
0
1,139
0.833821
0
0
796
0.582723
6939aa03ac383f4a97a326eec7719fca0c79b4b8
1,213
py
Python
ingestion/testdir/testperf.py
jaysisodiya/relevare
b4e7b547b7372cee132e84bbd5d92cd69cdbdb63
[ "Apache-2.0" ]
null
null
null
ingestion/testdir/testperf.py
jaysisodiya/relevare
b4e7b547b7372cee132e84bbd5d92cd69cdbdb63
[ "Apache-2.0" ]
null
null
null
ingestion/testdir/testperf.py
jaysisodiya/relevare
b4e7b547b7372cee132e84bbd5d92cd69cdbdb63
[ "Apache-2.0" ]
null
null
null
# # GDELT data will be published to Kafka # Topics will be created - one topic per country using the Alpha-2 country codes # from kafka import KafkaProducer from datetime import datetime import pickle # # Initialize the producer # brokerlist='ec2-54-186-208-110.us-west-2.compute.amazonaws.com:9092,ec2-52-11-172-126.u...
34.657143
233
0.746908
0
0
0
0
0
0
0
0
600
0.494641
693a26318273b86a08a21c3e6ee0d27d5cef1837
529
py
Python
ope-backend/create_db.py
clauddio-silva/ope-1
8be8a10c0db3d2f17e8e90a594abdf5770d53fa3
[ "CC0-1.0" ]
null
null
null
ope-backend/create_db.py
clauddio-silva/ope-1
8be8a10c0db3d2f17e8e90a594abdf5770d53fa3
[ "CC0-1.0" ]
null
null
null
ope-backend/create_db.py
clauddio-silva/ope-1
8be8a10c0db3d2f17e8e90a594abdf5770d53fa3
[ "CC0-1.0" ]
null
null
null
from src.infra.config import * from src.infra.db_entities import * from src.main.utils import hash_password db_conn = DBConnectionHandler() engine = db_conn.get_engine() Base.metadata.create_all(engine) with DBConnectionHandler() as db: try: new_user = Users(name='admin', role=1, email='[email protected]', p...
27.842105
103
0.688091
0
0
0
0
0
0
0
0
30
0.056711
693bf1abd077feaa155858e8c51deee32624b50d
14,767
py
Python
example/hermes_bot.py
azalio/python-icq-bot
b5ab8306d2abf8c259da71db1a3195c842d51110
[ "MIT" ]
null
null
null
example/hermes_bot.py
azalio/python-icq-bot
b5ab8306d2abf8c259da71db1a3195c842d51110
[ "MIT" ]
null
null
null
example/hermes_bot.py
azalio/python-icq-bot
b5ab8306d2abf8c259da71db1a3195c842d51110
[ "MIT" ]
null
null
null
import logging.config import random import re from collections import defaultdict from datetime import datetime from enum import Enum import requests from example.util import log_call from icq.bot import ICQBot, FileNotFoundException from icq.constant import TypingStatus from icq.filter import MessageFilter from icq....
36.825436
120
0.590709
7,709
0.522042
1,787
0.121013
5,428
0.367576
0
0
4,434
0.300264
693d787b8fc4cb803c97288d52b6f488a6db0a75
2,920
py
Python
qstat_live.py
romeromig/qstat_live
dde8ceb956dc0689a1c40c06ff20d58990488765
[ "MIT" ]
null
null
null
qstat_live.py
romeromig/qstat_live
dde8ceb956dc0689a1c40c06ff20d58990488765
[ "MIT" ]
null
null
null
qstat_live.py
romeromig/qstat_live
dde8ceb956dc0689a1c40c06ff20d58990488765
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import curses import sys import subprocess def main_menu(stdscr): k = 0 cursor_x = 0 cursor_y = 0 # Start colors in curses curses.start_color() curses.init_pair(1, curses.COLOR_CYAN, curses.COLOR_BLACK) curses.init_pair(2, curses.COLOR_RED, curses.COLOR_BLACK) cur...
28.627451
90
0.564726
0
0
0
0
0
0
0
0
597
0.204452
693fc462e0aaf1cceaf2297cb92e001c5129520c
2,458
py
Python
nwbwidgets/utils/plotly.py
NeurodataWithoutBorders/nwb-jupyter-widgets
0d11e5d7b193c53d744b13c6404186ac84f4a5c1
[ "BSD-3-Clause-LBNL" ]
35
2019-03-10T23:39:17.000Z
2021-11-16T11:50:33.000Z
nwbwidgets/utils/plotly.py
catalystneuro/nwb-jupyter-widgets
0d11e5d7b193c53d744b13c6404186ac84f4a5c1
[ "BSD-3-Clause-LBNL" ]
158
2019-03-12T21:40:24.000Z
2022-03-16T14:35:55.000Z
nwbwidgets/utils/plotly.py
catalystneuro/nwb-jupyter-widgets
0d11e5d7b193c53d744b13c6404186ac84f4a5c1
[ "BSD-3-Clause-LBNL" ]
20
2019-03-08T14:30:27.000Z
2021-11-08T16:31:26.000Z
import plotly.graph_objects as go import numpy as np def multi_trace(x, y, color, label=None, fig=None, insert_nans=False): """Create multiple traces that are associated with a single legend label Parameters ---------- x: array-like y: array-like color: str label: str, optional fig: g...
22.345455
87
0.513832
0
0
0
0
0
0
0
0
641
0.260781
69417b7d7a3a4bf350d3fdf5bf9bebda6e608488
5,997
py
Python
django_python3_saml/saml_settings.py
IronCountySchoolDistrict/django-python3-saml
06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8
[ "BSD-3-Clause" ]
6
2018-04-16T16:38:59.000Z
2022-02-10T09:02:11.000Z
django_python3_saml/saml_settings.py
IronCountySchoolDistrict/django-python3-saml
06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8
[ "BSD-3-Clause" ]
1
2018-10-18T20:59:11.000Z
2018-10-19T13:42:43.000Z
django_python3_saml/saml_settings.py
IronCountySchoolDistrict/django-python3-saml
06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8
[ "BSD-3-Clause" ]
6
2018-04-16T17:06:12.000Z
2020-05-06T11:32:39.000Z
from django.conf import settings class SAMLServiceProviderSettings(object): contact_info = { # Contact information template, it is recommended to suply a # technical and support contacts. "technical": { "givenName": settings.SAML['CONTACT_INFO']['TECHNICAL']['GIVEN_NAME'], ...
51.698276
167
0.571786
5,962
0.994164
0
0
0
0
0
0
3,411
0.568784
6943f352d6732b6ea4e8c626dd8012e42b34ad09
25,972
py
Python
heat/engine/parser.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
heat/engine/parser.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
heat/engine/parser.py
citrix-openstack-build/heat
fa31873529481472e037e3ce157b87f8057fe622
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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...
37.262554
79
0.578354
22,647
0.871978
4,076
0.156938
6,253
0.240759
0
0
7,283
0.280417
69453942628ce1c37639781c43bed0432a313dc3
1,547
py
Python
src/puzzle_1_you_will_all_conform/my/please_conform_squared.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
src/puzzle_1_you_will_all_conform/my/please_conform_squared.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
src/puzzle_1_you_will_all_conform/my/please_conform_squared.py
foryourselfand/mit_6_S095_programming_for_the_puzzled
88371bd8461709011acbed6066ac4f40c5cde29e
[ "MIT" ]
null
null
null
from typing import List from please_conform import PleaseConform from structures import Interval class PleaseConformSquared(PleaseConform): def please_conform(self, caps: List[str]) -> List[Interval]: if len(caps) == 0: return list() caps: List[str] = caps.copy() caps.append...
30.333333
64
0.564318
1,446
0.934712
0
0
0
0
0
0
14
0.00905
694611c01663b1d27e4ebc26f84bb2603c45ff7c
5,784
py
Python
apps/almoxarifado/apps/cont/forms.py
mequetrefe-do-subtroco/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
1
2020-06-18T09:03:53.000Z
2020-06-18T09:03:53.000Z
apps/almoxarifado/apps/cont/forms.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
33
2020-06-16T18:59:33.000Z
2021-08-12T21:33:17.000Z
apps/almoxarifado/apps/cont/forms.py
gabrielhjs/web_constel
57b5626fb17b4fefc740cbe1ac95fd4ab90147bc
[ "MIT" ]
null
null
null
from django import forms from .models import * class FormCadastraModelo(forms.ModelForm): class Meta: model = Modelo fields = ['nome', 'descricao', ] def __init__(self, *args, **kwargs): super(FormCadastraModelo, self).__init__(*args, **kwargs) for key in self.fields.keys()...
28.492611
115
0.602006
5,717
0.98654
0
0
0
0
0
0
1,089
0.187921
69469bc9f4f19c9f16e8cc58a6b94958c3abce9d
1,980
py
Python
DMD/pyDMD.py
yusovm/GEMSEC
d9abd43d27e05607e7b1ea8c99fcc736abd204fd
[ "MIT" ]
null
null
null
DMD/pyDMD.py
yusovm/GEMSEC
d9abd43d27e05607e7b1ea8c99fcc736abd204fd
[ "MIT" ]
null
null
null
DMD/pyDMD.py
yusovm/GEMSEC
d9abd43d27e05607e7b1ea8c99fcc736abd204fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 2 16:43:45 2020 @author: micha """ import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from MD_Analysis import Angle_Calc from pydmd import DMD pdb="pdbs/WT_295K_200ns_50ps_0_run.pdb" #Extract phi, psi angles A...
21.758242
69
0.663636
0
0
0
0
0
0
0
0
357
0.180303
69473144068a69e9d819b7ace65fa14ac4780508
2,629
py
Python
litreview/apps/accounts/migrations/0001_initial.py
josayko/litreview
7bbc08eb635897a763f3882f0f42c76b76a5f127
[ "MIT" ]
null
null
null
litreview/apps/accounts/migrations/0001_initial.py
josayko/litreview
7bbc08eb635897a763f3882f0f42c76b76a5f127
[ "MIT" ]
null
null
null
litreview/apps/accounts/migrations/0001_initial.py
josayko/litreview
7bbc08eb635897a763f3882f0f42c76b76a5f127
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-18 10:26 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
43.098361
164
0.613922
2,440
0.92811
0
0
0
0
0
0
327
0.124382
6948cabfaee34f9d09b3487a9f8788c36f0c90c4
24,914
py
Python
bot.py
StickBrush/RecommenderBot
a9e9ad5900e016cfeb1cba144cac5faa84607522
[ "WTFPL" ]
null
null
null
bot.py
StickBrush/RecommenderBot
a9e9ad5900e016cfeb1cba144cac5faa84607522
[ "WTFPL" ]
null
null
null
bot.py
StickBrush/RecommenderBot
a9e9ad5900e016cfeb1cba144cac5faa84607522
[ "WTFPL" ]
null
null
null
from telegram.ext import Updater, CommandHandler import re import os import logging from model import Anime from gateway import * def recommend_anime(bot, update): logging.debug('Received recommendation request') anime = get_best_anime().to_prettified_dict() logging.debug('Answer: '.format(anime)) cha...
44.017668
90
0.702537
0
0
0
0
0
0
0
0
3,429
0.137633
69496f7144482f3f124f969247fa77f335fc5db1
695
py
Python
models/t_compensate_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_compensate_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
models/t_compensate_event_definition.py
THM-MA/XSDATA-waypoint
dd94442f9d6677c525bf3ebb03c15fec52fa1079
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from xml.etree.ElementTree import QName from .t_event_definition import TEventDefinition __NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL" @dataclass class TCompensateEventDefinition(TEventDefinition): class Meta: name = "tC...
24.821429
61
0.640288
460
0.661871
0
0
471
0.677698
0
0
151
0.217266
694980cd79dd13058b0c41b67c32eb322a3674e4
822
py
Python
plugins.py
ddfabbro/translatorbot
a14a442ec840d81e3d8bbc6faa15e52f68145655
[ "Unlicense" ]
null
null
null
plugins.py
ddfabbro/translatorbot
a14a442ec840d81e3d8bbc6faa15e52f68145655
[ "Unlicense" ]
null
null
null
plugins.py
ddfabbro/translatorbot
a14a442ec840d81e3d8bbc6faa15e52f68145655
[ "Unlicense" ]
null
null
null
import html from googletrans import Translator from slackbot.bot import default_reply, respond_to, listen_to translator = Translator() def translate(message): msg_in = html.unescape(message.body["text"]) if msg_in != "": if translator.detect(msg_in).lang == "en": text = translator.transla...
24.176471
65
0.647202
0
0
0
0
202
0.245742
0
0
48
0.058394
6949c8d294973b9c15f0cdaf6df462ee0fe3f120
22
py
Python
utils/db_api/__init__.py
zotov-vs/tg_shop
e640e7cfaeac0af1de33a62fb5e6da28d8843651
[ "MIT" ]
1
2021-12-16T10:41:16.000Z
2021-12-16T10:41:16.000Z
utils/db_api/__init__.py
zotov-vs/tg_shop
e640e7cfaeac0af1de33a62fb5e6da28d8843651
[ "MIT" ]
6
2021-10-11T06:03:48.000Z
2021-10-17T09:42:05.000Z
App(BE)/main/models/__init__.py
osamhack2021/AI_APP_handylib_devlib
62cf67e6df280217e3715e2aa425636cefa7dd6f
[ "MIT" ]
null
null
null
from . import database
22
22
0.818182
0
0
0
0
0
0
0
0
0
0
694a62087121f0e7a903137a5cded3d86b3d17e4
1,324
py
Python
app.py
muelletm/search
3087dcfd26861b1386c38575b53cb026cb1045f8
[ "Apache-2.0" ]
1
2022-03-25T19:14:53.000Z
2022-03-25T19:14:53.000Z
app.py
muelletm/search
3087dcfd26861b1386c38575b53cb026cb1045f8
[ "Apache-2.0" ]
null
null
null
app.py
muelletm/search
3087dcfd26861b1386c38575b53cb026cb1045f8
[ "Apache-2.0" ]
4
2022-03-10T18:40:44.000Z
2022-03-10T19:20:30.000Z
import collections import os from pathlib import Path from typing import List import streamlit as st from sentence_transformers import SentenceTransformer from search.engine import Engine, Result from search.model import load_minilm_model from search.utils import get_memory_usage os.environ["TOKENIZERS_PARALLELISM"]...
21.354839
67
0.728852
0
0
0
0
254
0.191843
0
0
489
0.369335
694b3b51b65fa886685be715d3c914e309e0c1fe
1,596
py
Python
interface/exemplos1/04.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
interface/exemplos1/04.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
interface/exemplos1/04.py
ell3a/estudos-python
09808a462aa3e73ad433501acb11f62217548af8
[ "MIT" ]
null
null
null
from tkinter import * class EditBoxWindow: def __init__(self, parent = None): if parent == None: parent = Tk() self.myParent = parent self.top_frame = Frame(parent) # Criando a barra de rolagem scrollbar = Scrollbar(self.top_frame) self.editbox = Text(...
32.571429
85
0.58396
1,494
0.934919
0
0
0
0
0
0
135
0.084481
694cb06a76643cd64ded70df62959d8318b7af93
426
py
Python
app/app.py
cagriozkurt/EksiSansur
071f5e136d58f7fdd5ba32c8387904b2710d04a5
[ "MIT" ]
null
null
null
app/app.py
cagriozkurt/EksiSansur
071f5e136d58f7fdd5ba32c8387904b2710d04a5
[ "MIT" ]
null
null
null
app/app.py
cagriozkurt/EksiSansur
071f5e136d58f7fdd5ba32c8387904b2710d04a5
[ "MIT" ]
1
2022-03-22T13:50:41.000Z
2022-03-22T13:50:41.000Z
import psycopg from flask import Flask, render_template from flask_compress import Compress app = Flask(__name__) DATABASE_URL = "" Compress(app) @app.route("/") def index(): with psycopg.connect(DATABASE_URL, sslmode="require") as conn: with conn.cursor() as cur: cur.execute("SELECT * FROM t...
25.058824
66
0.671362
0
0
0
0
276
0.647887
0
0
49
0.115023
69512ed9252aea21d648e173c9d6e12c14061403
1,404
py
Python
2020/07/ape.py
notxenonbox/adventofcode
82cd8fafdf21c988bd7383f2b6d71cec04282e65
[ "Unlicense" ]
null
null
null
2020/07/ape.py
notxenonbox/adventofcode
82cd8fafdf21c988bd7383f2b6d71cec04282e65
[ "Unlicense" ]
null
null
null
2020/07/ape.py
notxenonbox/adventofcode
82cd8fafdf21c988bd7383f2b6d71cec04282e65
[ "Unlicense" ]
null
null
null
import re class Bag: def __init__(self, _name, _contents): self.name = _name self.contents = _contents self.c_cache = None self.has_cache = {} def hasBagType(self, _name, bags): try: return self.has_cache[_name] except: if _name != self.name: for i in self.contents: if bags[i[1]].hasBagTyp...
22.285714
90
0.623219
624
0.444444
0
0
0
0
0
0
187
0.133191
69517bd1fdcbc759ae3114b27d1f3038e73dc9c5
3,209
py
Python
src/drive.py
Matej-Chmel/pydrive-chat
551504335bcebbeed239f1961b7bffa3f45d220d
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/drive.py
Matej-Chmel/pydrive-chat
551504335bcebbeed239f1961b7bffa3f45d220d
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/drive.py
Matej-Chmel/pydrive-chat
551504335bcebbeed239f1961b7bffa3f45d220d
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
from datetime import datetime, timedelta from io import BytesIO from pathlib import Path from time import altzone, daylight, localtime, timezone from pydrive.auth import GoogleAuth, AuthenticationRejected from pydrive.drive import GoogleDrive as Drive, GoogleDriveFile as File from requests import patch from .auth impor...
26.966387
113
0.727641
0
0
0
0
0
0
0
0
697
0.217202
69550175d4982933c72091480c87edac34bffafc
1,967
py
Python
tests/test_yaml_files.py
graeme-winter/data
6e359b169c35d1a6569fd316f7b7ab19fa5812b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_yaml_files.py
graeme-winter/data
6e359b169c35d1a6569fd316f7b7ab19fa5812b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_yaml_files.py
graeme-winter/data
6e359b169c35d1a6569fd316f7b7ab19fa5812b8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import pkg_resources import pytest import string import yaml definition_yamls = { fn for fn in pkg_resources.resource_listdir("dials_data", "definitions") if fn.endswith(".yml") } hashinfo_yamls = { fn for fn...
31.222222
86
0.68785
0
0
0
0
1,297
0.65938
0
0
411
0.208948