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
bc0a0fa5f18fcd52ed6c80228bbe0f8823a9bdad
2,688
py
Python
rev/desmos-pro/solve-maze.py
nanzggits/sdctf-2021
fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c
[ "MIT" ]
6
2021-05-17T21:04:31.000Z
2022-01-01T23:28:18.000Z
rev/desmos-pro/solve-maze.py
nanzggits/sdctf-2021
fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c
[ "MIT" ]
null
null
null
rev/desmos-pro/solve-maze.py
nanzggits/sdctf-2021
fcddb506f5f798a264fc17e5588c0f5b7d5fbb2c
[ "MIT" ]
1
2021-06-01T17:03:06.000Z
2021-06-01T17:03:06.000Z
from typing import List, Optional, Tuple import mazegen from mazegen import M, WALL # In desmos coordinates (x,y), with y=0 being the bottom row # CARDINAL_DELTAS = [(0, 1), (1, 0), (0, -1), (-1, 0)] # In array coordinates (y,x), with y=0 being the top row CARDINAL_DELTAS = [(-1, 0), (0, 1), (1, 0), (0, -1)] S = Tupl...
34.909091
106
0.603051
184
0.068452
0
0
0
0
0
0
594
0.220982
bc0a8cdfe027330a24bc7a38c3790b5c1221893d
361
py
Python
solvent/run.py
shlomimatichin/solvent
c8bdba9aed1372060d167b27366cbe7afaacc470
[ "Apache-2.0" ]
null
null
null
solvent/run.py
shlomimatichin/solvent
c8bdba9aed1372060d167b27366cbe7afaacc470
[ "Apache-2.0" ]
null
null
null
solvent/run.py
shlomimatichin/solvent
c8bdba9aed1372060d167b27366cbe7afaacc470
[ "Apache-2.0" ]
null
null
null
import subprocess import logging def run(command, cwd=None): try: return subprocess.check_output( command, cwd=cwd, stderr=subprocess.STDOUT, stdin=open("/dev/null"), close_fds=True) except subprocess.CalledProcessError as e: logging.error("Failed command '%s' output:\n...
27.769231
78
0.648199
0
0
0
0
0
0
0
0
44
0.121884
bc0cf17e742ee5f0e9c7dd32d45b474ef9bbc8ae
15,924
py
Python
util/approximate/embedding_interpolator/old/v1_numpy.py
tchlux/util
eff37464c7e913377398025adf76b057f9630b35
[ "MIT" ]
4
2021-04-22T20:19:40.000Z
2022-01-30T18:57:23.000Z
util/approximate/embedding_interpolator/old/v1_numpy.py
tchlux/util
eff37464c7e913377398025adf76b057f9630b35
[ "MIT" ]
1
2022-01-24T14:10:27.000Z
2022-01-30T16:42:53.000Z
util/approximate/embedding_interpolator/old/v1_numpy.py
tchlux/util
eff37464c7e913377398025adf76b057f9630b35
[ "MIT" ]
2
2019-05-19T07:44:28.000Z
2021-04-22T20:20:40.000Z
from numpy import zeros, ones, dot, sum, abs, max, argmax, clip, \ random, prod, asarray, set_printoptions, unravel_index # Generate a random uniform number (array) in range [0,1]. def zero(*shape): return zeros(shape) def randnorm(*shape): return random.normal(size=shape) def randuni(*shape): return random.ran...
41.46875
129
0.543582
3,254
0.204346
0
0
0
0
0
0
4,202
0.263878
bc101f9477ced02fc73e4aa485f705e9bede840d
1,429
py
Python
sample-apps/data-loader/app.py
jkylling/fdb-kubernetes-operator
b6c2d18d7841e789bd33bc1e05ed449e7468fabd
[ "Apache-2.0" ]
null
null
null
sample-apps/data-loader/app.py
jkylling/fdb-kubernetes-operator
b6c2d18d7841e789bd33bc1e05ed449e7468fabd
[ "Apache-2.0" ]
null
null
null
sample-apps/data-loader/app.py
jkylling/fdb-kubernetes-operator
b6c2d18d7841e789bd33bc1e05ed449e7468fabd
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python ''' This file provides a sample app for loading data into FDB. To use it to load data into one of the sample clusters in this repo, you can build the image by running `docker build -t fdb-data-loader sample-apps/data-loader`, and then run the data loader by running `kubectl apply -f sample-apps/dat...
30.404255
110
0.73478
0
0
0
0
281
0.196641
0
0
546
0.382085
bc10b3a754b1e07f5391ee346cb0afda2918b4d2
1,580
py
Python
data_files/PROGRAMS/MEDIUM/0018_4Sum.py
sudhirrd007/LeetCode-scraper
de87ff17fff2c73e67392321df1107cce7cbf883
[ "MIT" ]
null
null
null
data_files/PROGRAMS/MEDIUM/0018_4Sum.py
sudhirrd007/LeetCode-scraper
de87ff17fff2c73e67392321df1107cce7cbf883
[ "MIT" ]
null
null
null
data_files/PROGRAMS/MEDIUM/0018_4Sum.py
sudhirrd007/LeetCode-scraper
de87ff17fff2c73e67392321df1107cce7cbf883
[ "MIT" ]
null
null
null
# ID : 18 # Title : 4Sum # Difficulty : MEDIUM # Acceptance_rate : 35.2% # Runtime : 72 ms # Memory : 12.7 MB # Tags : Array , Hash Table , Two Pointers # Language : python3 # Problem_link : https://leetcode.com/problems/4sum # Premium : 0 # Notes : - ### def fourSum(self, nums: List[int], target: int) -> List[Lis...
31.6
86
0.401899
0
0
0
0
0
0
0
0
244
0.15443
bc10d6ea7391b5e3c732ffbac5c5266d74feef0e
1,916
py
Python
dentalvision/asm/fit.py
DreamSki/dentalvision
dd7ca6f7ccefb294dab5b37c37f195df5aadfaab
[ "MIT" ]
7
2018-01-22T01:03:25.000Z
2022-01-05T08:47:29.000Z
dentalvision/asm/fit.py
tdekeyser/dentalvision
dd7ca6f7ccefb294dab5b37c37f195df5aadfaab
[ "MIT" ]
null
null
null
dentalvision/asm/fit.py
tdekeyser/dentalvision
dd7ca6f7ccefb294dab5b37c37f195df5aadfaab
[ "MIT" ]
8
2017-03-03T14:26:34.000Z
2020-07-16T12:15:41.000Z
''' Algorithm for matching the model to image points. Based on (Cootes et al. 2000, p.9) and (Blanz et al., p.4). ''' import numpy as np from utils.structure import Shape from utils.align import Aligner class Fitter(object): def __init__(self, pdmodel): self.pdmodel = pdmodel self.aligner = Align...
34.214286
86
0.616388
1,709
0.891962
0
0
0
0
0
0
672
0.350731
bc1384f21ce9e92bbb5a1b5230fae5b32226449c
578
py
Python
bank_ddd_es_cqrs/accounts/app.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
8
2020-10-27T09:46:20.000Z
2022-01-27T12:16:48.000Z
bank_ddd_es_cqrs/accounts/app.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
null
null
null
bank_ddd_es_cqrs/accounts/app.py
Hyaxia/Bank-DDD-CQRS-ES
116e3eb3e93d549c1da53e6d506ab47667d77445
[ "MIT" ]
2
2021-05-29T08:11:48.000Z
2021-07-26T04:44:53.000Z
from flask import Flask from flask_cors import CORS # type: ignore from .api import account_blueprint from .event_handlers import register_event_handlers from .infrastructure import event_store_db from .composition_root import event_manager def account_app_factory(db_string: str): app = Flask(__name__) CORS(...
25.130435
56
0.792388
0
0
0
0
0
0
0
0
71
0.122837
bc13edd4a944944871cf4bb67afafb4e4e45becb
41,794
py
Python
Fase II/team04/storageManager.py
estrada-usac/EDD20DIC-PROYECTO
843347de97af5e432d97c99ef490024d6f3ff49e
[ "MIT" ]
null
null
null
Fase II/team04/storageManager.py
estrada-usac/EDD20DIC-PROYECTO
843347de97af5e432d97c99ef490024d6f3ff49e
[ "MIT" ]
3
2020-12-22T15:17:16.000Z
2021-01-08T17:37:22.000Z
Fase II/team04/storageManager.py
estrada-usac/EDD20DIC-PROYECTO
843347de97af5e432d97c99ef490024d6f3ff49e
[ "MIT" ]
null
null
null
# Package: Storage Manager # License: Released under MIT License # Notice: Copyright (c) 2020 TytusDB Team # Developers: Alexis Peralta from storage.avl import avlMode from storage.b import BMode from storage.bplus import BPlusMode from storage.hash import HashMode from storage.isam import I...
39.502836
131
0.568933
0
0
0
0
0
0
0
0
11,656
0.278272
bc14cc074618702fe004846062d87461a64782e7
1,015
py
Python
pdf_downloader.py
mniac810/RPA_Challenge
3f203bf33c9643ab77e22e109520bf748c866e46
[ "Apache-2.0" ]
1
2022-01-10T04:49:38.000Z
2022-01-10T04:49:38.000Z
pdf_downloader.py
mniac810/RPA_Challenge
3f203bf33c9643ab77e22e109520bf748c866e46
[ "Apache-2.0" ]
null
null
null
pdf_downloader.py
mniac810/RPA_Challenge
3f203bf33c9643ab77e22e109520bf748c866e46
[ "Apache-2.0" ]
null
null
null
from RPA.Browser.Selenium import Selenium from RPA.FileSystem import FileSystem import datetime import os class PDFDownloader: def __init__(self, page_urls, names): self.browser = Selenium() self.files = FileSystem() self._dir = f'{os.getcwd()}/output' self._urls = page_urls ...
31.71875
77
0.605911
905
0.891626
0
0
0
0
0
0
115
0.1133
bc1654338e8c6eee8c72f671de285bccc11be562
1,352
py
Python
tests/TestFiles/fodder.py
ComposableAnalytics/ComposaPy
6d82f8f953c709dde55e7f055e2f8b4e6765caba
[ "MIT" ]
null
null
null
tests/TestFiles/fodder.py
ComposableAnalytics/ComposaPy
6d82f8f953c709dde55e7f055e2f8b4e6765caba
[ "MIT" ]
null
null
null
tests/TestFiles/fodder.py
ComposableAnalytics/ComposaPy
6d82f8f953c709dde55e7f055e2f8b4e6765caba
[ "MIT" ]
null
null
null
# Add this test back later, unfortunately casting errors and no time to deal with them. # @pytest.mark.parametrize("dataflow_object", ["external_input_int.json"], indirect=True) # def test_external_input_int(dataflow_object: DataFlowObject, dataflow: DataFlow): # dataflow_rs = dataflow_object.run(external_inputs={"...
38.628571
89
0.727071
0
0
0
0
0
0
0
0
1,318
0.974852
bc16f12ef99fb925404a57659bcb97a3596fb611
886
py
Python
django/store/views.py
brickfaced/django-ecommerce
e06c69f4cc1f57ac2acffa0baf1c48fa99fede13
[ "MIT" ]
24
2021-03-10T17:04:46.000Z
2022-02-28T20:09:52.000Z
nextdrf/django/store/views.py
RJ-0605/YT_NextJS_DRF_Ecommerce_2021_Part1
4416c2168143aa71ba863d61efb71c5712dbd215
[ "MIT" ]
1
2021-04-07T19:57:10.000Z
2021-04-07T20:37:03.000Z
nextdrf/django/store/views.py
RJ-0605/YT_NextJS_DRF_Ecommerce_2021_Part1
4416c2168143aa71ba863d61efb71c5712dbd215
[ "MIT" ]
18
2021-03-21T09:03:40.000Z
2022-01-31T10:08:24.000Z
from django.shortcuts import render from rest_framework import generics from . import models from .models import Category, Product from .serializers import CategorySerializer, ProductSerializer class ProductListView(generics.ListAPIView): queryset = Product.objects.all() serializer_class = ProductSerializer ...
27.6875
106
0.772009
679
0.766366
0
0
0
0
0
0
12
0.013544
bc1a89242c0c01e6a959ddfab279551c0ad333eb
831
py
Python
6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py
PacktPublishing/Data-Structures-and-Algorithms-The-Complete-Masterclass
a4f34ecaa23682df62763e3b6b54709383f45c0b
[ "MIT" ]
25
2021-01-20T19:09:05.000Z
2022-02-02T01:29:46.000Z
6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py
EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass
a4f34ecaa23682df62763e3b6b54709383f45c0b
[ "MIT" ]
null
null
null
6. Algorithms - Graph Traversal/3 - GraphTraversal-DFS.py
EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass
a4f34ecaa23682df62763e3b6b54709383f45c0b
[ "MIT" ]
23
2021-01-20T19:09:12.000Z
2022-03-23T02:50:05.000Z
class Node(): def __init__(self, value): self.value = value self.adjacentlist = [] self.visited = False class Graph(): def DFS(self, node, traversal): node.visited = True traversal.append(node.value) for element in node.adjacentlist: if element...
21.868421
44
0.649819
407
0.489771
0
0
0
0
0
0
24
0.028881
bc1b2d2d655b2df2c4a3a6c3fd0b4a26677171d9
613
py
Python
blender/arm/logicnode/array/LN_array_loop_node.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/array/LN_array_loop_node.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/array/LN_array_loop_node.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class ArrayLoopNode(ArmLogicTreeNode): """Loops through each item of the given array.""" bl_idname = 'LNArrayLoopNode' bl_label = 'Array Loop' arm_version = 1 def init(self, context): super(ArrayLoopNode, self).init(context) self.add_input('Ar...
34.055556
54
0.676998
572
0.933116
0
0
0
0
0
0
231
0.376835
bc1b8a063d015af41a39f93f00886505f7a7b958
2,592
py
Python
streamalert_cli/terraform/cloudwatch_events.py
Meliairon/streamalert
3b774a59d260b2822cd156e837781bd34f3625f7
[ "Apache-2.0" ]
1
2020-07-28T09:54:07.000Z
2020-07-28T09:54:07.000Z
streamalert_cli/terraform/cloudwatch_events.py
Meliairon/streamalert
3b774a59d260b2822cd156e837781bd34f3625f7
[ "Apache-2.0" ]
null
null
null
streamalert_cli/terraform/cloudwatch_events.py
Meliairon/streamalert
3b774a59d260b2822cd156e837781bd34f3625f7
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-present Airbnb, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
34.56
98
0.699846
0
0
0
0
0
0
0
0
1,594
0.614969
bc1bb420dc30704ccfcc14f1b5e2b0fb34f290c1
2,416
py
Python
EvolutionaryAlgorithm/evolution.py
stepan-krivanek/evolutionary-algorithm
d8bafdb0caad2d66cc8138090c046244bd7779e8
[ "MIT" ]
null
null
null
EvolutionaryAlgorithm/evolution.py
stepan-krivanek/evolutionary-algorithm
d8bafdb0caad2d66cc8138090c046244bd7779e8
[ "MIT" ]
null
null
null
EvolutionaryAlgorithm/evolution.py
stepan-krivanek/evolutionary-algorithm
d8bafdb0caad2d66cc8138090c046244bd7779e8
[ "MIT" ]
null
null
null
import numpy as np from LocalSearch.local_search import * from EvolutionAlgorithm import EvolutionAlgorithm as EA def init_real_chromosome(size, variation=2): return np.random.normal(0, variation, size) def init_bin_chromosome(size): return np.random.binomial(1, 0.5, size) def initialization(population_...
30.974359
94
0.722268
0
0
0
0
0
0
0
0
17
0.007036
bc1bb7a3ffc94e487eae34a752e77501805ef163
31
py
Python
tests/tests/dummy.py
cjhall1283/pylint_runner
64dae35dd07886524278c90c62270ae7a7d3a7a7
[ "MIT" ]
16
2016-01-14T17:38:39.000Z
2020-10-30T13:41:33.000Z
tests/tests/dummy.py
cjhall1283/pylint_runner
64dae35dd07886524278c90c62270ae7a7d3a7a7
[ "MIT" ]
12
2015-03-19T13:56:18.000Z
2020-09-11T12:09:16.000Z
tests/tests/dummy.py
cjhall1283/pylint_runner
64dae35dd07886524278c90c62270ae7a7d3a7a7
[ "MIT" ]
7
2017-02-14T01:03:22.000Z
2021-08-25T16:34:17.000Z
""" Dummy file for testing """
7.75
22
0.612903
0
0
0
0
0
0
0
0
30
0.967742
bc1e77fd96c476fc9f6f17e8e53fde1e2ccef6c7
1,545
py
Python
src/kids/test/__init__.py
0k/kids.test
51554726caea29a5e690c76981c6035dc5c7cfee
[ "BSD-2-Clause" ]
null
null
null
src/kids/test/__init__.py
0k/kids.test
51554726caea29a5e690c76981c6035dc5c7cfee
[ "BSD-2-Clause" ]
null
null
null
src/kids/test/__init__.py
0k/kids.test
51554726caea29a5e690c76981c6035dc5c7cfee
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function import os import tempfile import unittest import re import shutil class Test(unittest.TestCase): ## XXXvlab: it seems it's already there in PY3 and maybe PY2, ## so why keep it ? def assertContains(s...
26.637931
78
0.641424
1,048
0.678317
0
0
0
0
0
0
247
0.159871
bc1e78e2d936299d31ed164ae95b1d514a32eb51
221
py
Python
homeassistant/components/ridwell/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/ridwell/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/ridwell/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the Ridwell integration.""" import logging DOMAIN = "ridwell" LOGGER = logging.getLogger(__package__) DATA_ACCOUNT = "account" DATA_COORDINATOR = "coordinator" SENSOR_TYPE_NEXT_PICKUP = "next_pickup"
18.416667
44
0.778281
0
0
0
0
0
0
0
0
88
0.39819
bc1e7e433a435fea0e74defa83e3a8743bf77c68
6,143
py
Python
src/py/test/IntegrationTest/Main.py
AdamPesci/diveR
ae7fe415bbdbb008fadd2b96a0a3a5092b04fdc7
[ "MIT" ]
null
null
null
src/py/test/IntegrationTest/Main.py
AdamPesci/diveR
ae7fe415bbdbb008fadd2b96a0a3a5092b04fdc7
[ "MIT" ]
null
null
null
src/py/test/IntegrationTest/Main.py
AdamPesci/diveR
ae7fe415bbdbb008fadd2b96a0a3a5092b04fdc7
[ "MIT" ]
null
null
null
""" Authors: Augustine Italiano, Ryan Forster, Adam Camer-Pesci This class will act as the control centre for the backend components: Calculations.py FileLoader.py """ import os import sys import csv from datetime import datetime import json import rpy2.robjects.packages as rpackages from rpy2.robjects.vector...
38.879747
225
0.629497
0
0
0
0
0
0
0
0
1,647
0.26811
bc1e9e83d6c06a1ae9645a6b283f62c80e387eab
1,328
py
Python
exussum/fs.py
exussum/exussum
54fc2388364ab8a3a2cc8e6fb838a7b748d7c889
[ "BSD-2-Clause" ]
null
null
null
exussum/fs.py
exussum/exussum
54fc2388364ab8a3a2cc8e6fb838a7b748d7c889
[ "BSD-2-Clause" ]
null
null
null
exussum/fs.py
exussum/exussum
54fc2388364ab8a3a2cc8e6fb838a7b748d7c889
[ "BSD-2-Clause" ]
null
null
null
import subprocess import fnmatch from pathlib import Path import os import re def all_files(src): regex_include = re.compile("|".join((fnmatch.translate(e) for e in src.included_files))) regex_exclude = re.compile("|".join((fnmatch.translate(e) for e in src.excluded_files))) for root, dirs, files in os.w...
27.102041
100
0.611446
0
0
825
0.621235
0
0
0
0
36
0.027108
bc1ebe2ab303cdc8d8d9f7d8408efd5e477ec4b6
1,917
py
Python
click_example/utils.py
captainCapitalism/typer-oo-example
00b94948f52a582591c93b7b50c782a71dc744af
[ "MIT" ]
2
2021-09-15T18:04:39.000Z
2022-01-06T03:45:54.000Z
click_example/utils.py
captainCapitalism/typer-oo-example
00b94948f52a582591c93b7b50c782a71dc744af
[ "MIT" ]
null
null
null
click_example/utils.py
captainCapitalism/typer-oo-example
00b94948f52a582591c93b7b50c782a71dc744af
[ "MIT" ]
null
null
null
import click class command: def __init__(self, name=None, cls=click.Command, **attrs): self.name = name self.cls = cls self.attrs = attrs def __call__(self, method): def __command__(this): def wrapper(*args, **kwargs): return method(this, *args, **k...
28.61194
86
0.574335
1,896
0.989045
0
0
0
0
0
0
196
0.102243
bc1fee8e7b2dd05b18c6fd6cd75205806000b3bf
4,716
py
Python
neuron_simulator_service/SAC_network/stimulus.py
jpm343/RetinaX
63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3
[ "MIT" ]
2
2020-12-06T23:04:39.000Z
2020-12-29T18:28:20.000Z
neuron_simulator_service/SAC_network/stimulus.py
jpm343/RetinaX
63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3
[ "MIT" ]
null
null
null
neuron_simulator_service/SAC_network/stimulus.py
jpm343/RetinaX
63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3
[ "MIT" ]
1
2020-10-23T19:40:59.000Z
2020-10-23T19:40:59.000Z
from __future__ import division import numpy as np # Set bar stimuli speed def update_bar_speed(BPsyn, delay, width, speed, d_init, synapse_type="alphaCSyn", angle=0): print "Updating bar speed to: %f mm/s" % speed angrad = angle * np.pi / 180.0 angcos = np.cos(angrad) angsin = np...
38.975207
79
0.599237
0
0
0
0
0
0
0
0
852
0.180662
bc21fb987995424da0c4a8da3583644d72bd8f6a
3,326
py
Python
test_prime_numbers.py
zekedran/python_tdd_ci_tutorial
6a318ce5f26953dd44ca49da73815de4a2634fe5
[ "MIT" ]
null
null
null
test_prime_numbers.py
zekedran/python_tdd_ci_tutorial
6a318ce5f26953dd44ca49da73815de4a2634fe5
[ "MIT" ]
null
null
null
test_prime_numbers.py
zekedran/python_tdd_ci_tutorial
6a318ce5f26953dd44ca49da73815de4a2634fe5
[ "MIT" ]
null
null
null
from prime_numbers import is_prime def test_is_prime(): assert is_prime(-1) is False assert is_prime(0) is False assert is_prime(4) is False assert is_prime(6) is False assert is_prime(8) is False assert is_prime(9) is False assert is_prime(10) is False assert is_prime(12) is False ...
31.084112
34
0.695129
0
0
0
0
0
0
0
0
0
0
bc220e54ff06969c5a581e943797eaee68f0f203
14,914
py
Python
main.py
white-undo/scientific-calc
46c24f289446f247a26946b855494458b92bd806
[ "MIT" ]
null
null
null
main.py
white-undo/scientific-calc
46c24f289446f247a26946b855494458b92bd806
[ "MIT" ]
null
null
null
main.py
white-undo/scientific-calc
46c24f289446f247a26946b855494458b92bd806
[ "MIT" ]
null
null
null
#====================== # # Scientific Plotting Calculator # #---------------------- # # Preetam Sharma # # Artificial Intelligence, ICL # #====================== # # Usefull modules and tools from tkinter import BOTTOM, BOTH, TOP, Label, DISABLED, NORMAL, INSERT, E...
40.972527
138
0.593
14,378
0.964061
0
0
0
0
0
0
2,907
0.194918
bc22939116e8ef6b4d13b61eab3aac762d3ff398
7,386
py
Python
client/tests/test_up_args.py
gefyrahq/gefyra
0bc205b4b01100c640081ead671bdb195761299b
[ "Apache-2.0" ]
41
2022-03-24T15:45:56.000Z
2022-03-31T08:07:19.000Z
client/tests/test_up_args.py
Schille/gefyra
43abd17b8ed5867a26266b5e7a5d6f9edfebab4a
[ "Apache-2.0" ]
23
2021-12-02T10:29:09.000Z
2022-03-17T18:10:57.000Z
client/tests/test_up_args.py
Schille/gefyra
43abd17b8ed5867a26266b5e7a5d6f9edfebab4a
[ "Apache-2.0" ]
3
2022-02-18T21:16:10.000Z
2022-03-09T22:46:28.000Z
from gefyra.__main__ import up_parser, up_command from gefyra.configuration import ClientConfiguration, __VERSION__ REGISTRY_URL = "my-reg.io/gefyra" QUAY_REGISTRY_URL = "quay.io/gefyra" STOWAWAY_LATEST = "my-reg.io/gefyra/stowaway:latest" CARGO_LATEST = "my-reg.io/gefyra/cargo:latest" OPERATOR_LATEST = "my-reg.io/ge...
37.876923
85
0.753859
0
0
0
0
0
0
0
0
819
0.110885
bc22db5abfbd89d0661acf1f13af1e246c8ff360
6,476
py
Python
Experiments/Fully Assembled Actutor Module/RASH_example_trajectory.py
kevinAlfsen/RASH-Bachelor-Thesis
143a2a3a6997fd00caa420666a0a5c5570ce82ab
[ "BSD-3-Clause" ]
null
null
null
Experiments/Fully Assembled Actutor Module/RASH_example_trajectory.py
kevinAlfsen/RASH-Bachelor-Thesis
143a2a3a6997fd00caa420666a0a5c5570ce82ab
[ "BSD-3-Clause" ]
null
null
null
Experiments/Fully Assembled Actutor Module/RASH_example_trajectory.py
kevinAlfsen/RASH-Bachelor-Thesis
143a2a3a6997fd00caa420666a0a5c5570ce82ab
[ "BSD-3-Clause" ]
null
null
null
# coding: utf8 import argparse import math import os import sys from time import clock import libmaster_board_sdk_pywrap as mbs from Trajectory import trajectory from Plotter import overlay_plot def example_script(name_interface): N_SLAVES = 6 #  Maximum number of controled drivers N_SLAVES_CONTROLED = 1 ...
36.382022
140
0.553737
0
0
0
0
0
0
0
0
1,856
0.286243
bc2355c41df28e3cbb07b0fa1bf6a887e83f0856
8,074
py
Python
main_mini.py
idosharon/Leechy-Prototype-Spectrum-Analyzer
7708ee9ae538b8f7db5e0596299ac40fb48d75d3
[ "Unlicense" ]
null
null
null
main_mini.py
idosharon/Leechy-Prototype-Spectrum-Analyzer
7708ee9ae538b8f7db5e0596299ac40fb48d75d3
[ "Unlicense" ]
null
null
null
main_mini.py
idosharon/Leechy-Prototype-Spectrum-Analyzer
7708ee9ae538b8f7db5e0596299ac40fb48d75d3
[ "Unlicense" ]
3
2022-01-02T08:46:49.000Z
2022-01-15T16:02:50.000Z
# Leechy Prototype Spectrum Analyzer. # Important: MAKE SURE KEYBOARD IS ON ENGLISH AND CAPSLOCK IS NOT ON! import cv2,pickle,xlsxwriter,time,datetime,os, os.path from imutils import rotate_bound import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Button from PIL import Image, Im...
30.126866
227
0.628685
0
0
0
0
0
0
0
0
1,323
0.163859
bc2367f7ad3d249653384c57887795fc9732fb47
136
py
Python
models/__init__.py
dudtjakdl/OpenNMT-Korean-To-English
32fcdb860906f40f84375ec17a23ae32cb90baa0
[ "Apache-2.0" ]
1,491
2017-06-30T16:15:40.000Z
2022-03-22T02:05:16.000Z
models/__init__.py
dudtjakdl/OpenNMT-Korean-To-English
32fcdb860906f40f84375ec17a23ae32cb90baa0
[ "Apache-2.0" ]
128
2017-07-07T21:41:03.000Z
2021-06-30T13:18:23.000Z
models/__init__.py
dudtjakdl/OpenNMT-Korean-To-English
32fcdb860906f40f84375ec17a23ae32cb90baa0
[ "Apache-2.0" ]
434
2017-07-08T12:35:15.000Z
2022-03-25T06:28:13.000Z
from .EncoderRNN import EncoderRNN from .DecoderRNN import DecoderRNN from .TopKDecoder import TopKDecoder from .seq2seq import Seq2seq
27.2
36
0.852941
0
0
0
0
0
0
0
0
0
0
bc24a0ca761d939b80b88836c40772f1d9ffb66b
3,055
py
Python
panel/layout/spacer.py
sthagen/holoviz-panel
9abae5ac78e55857ed209de06feae3439f2f533b
[ "BSD-3-Clause" ]
601
2018-08-25T20:01:22.000Z
2019-11-19T19:37:08.000Z
panel/layout/spacer.py
sthagen/holoviz-panel
9abae5ac78e55857ed209de06feae3439f2f533b
[ "BSD-3-Clause" ]
626
2018-08-27T16:30:33.000Z
2019-11-20T17:02:00.000Z
panel/layout/spacer.py
sthagen/holoviz-panel
9abae5ac78e55857ed209de06feae3439f2f533b
[ "BSD-3-Clause" ]
73
2018-09-28T07:46:05.000Z
2019-11-18T22:45:36.000Z
""" Spacer components to add horizontal or vertical space to a layout. """ import param from bokeh.models import Div as BkDiv, Spacer as BkSpacer from ..reactive import Reactive class Spacer(Reactive): """ The `Spacer` layout is a very versatile component which makes it easy to put fixed or responsive ...
27.035398
80
0.636661
2,862
0.936825
0
0
0
0
0
0
1,933
0.632733
bc24deaeae5652bf63e557de1533a49cda47444a
432
py
Python
reddit2telegram/channels/r_gentlemanboners/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/r_gentlemanboners/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/r_gentlemanboners/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 from utils import weighted_random_subreddit subreddit = weighted_random_subreddit({ 'BeautifulFemales': 0.25, 'cutegirlgifs': 0.25, 'gentlemanboners': 0.25, 'gentlemanbonersgifs': 0.25 }) t_channel = '@r_gentlemanboners' def send_post(submission, r2t): return r2t.send_simple(sub...
18.782609
43
0.657407
0
0
0
0
0
0
0
0
105
0.243056
bc2766b525e97b803d5443c5f873e693460a5edd
5,334
py
Python
efficientEigensolvers/Page_Rank_Application.py
ICERM-Efficient-Eigensolvers-2020/Implimentation
c5856afaeaa234946fb5151226e4f3f5a60a1018
[ "MIT" ]
null
null
null
efficientEigensolvers/Page_Rank_Application.py
ICERM-Efficient-Eigensolvers-2020/Implimentation
c5856afaeaa234946fb5151226e4f3f5a60a1018
[ "MIT" ]
null
null
null
efficientEigensolvers/Page_Rank_Application.py
ICERM-Efficient-Eigensolvers-2020/Implimentation
c5856afaeaa234946fb5151226e4f3f5a60a1018
[ "MIT" ]
2
2020-07-15T15:09:36.000Z
2020-10-11T11:30:09.000Z
import sys, os import Page_Rank_Utils as pru from Power_Iteration import PowerMethod from QR_Algorithm import qr_Algorithm_HH, qr_Algorithm_GS, shiftedQR_Algorithm from Inverse_Iteration import InverseMethod from Inverse_Iteration_w_shift import InverseShift import matplotlib.pyplot as plt THIS_FOLDER = os.path.dirname...
37.829787
117
0.650919
0
0
0
0
0
0
0
0
1,256
0.235471
bc29e1bc3e6578fac96ebc8b4d22ae86f30e35fb
188
py
Python
04-ClassMembers/member.py
bakhshalipour/boost-python3-mac
dd86f2a1d2460118878282b794a87c821cd38a3a
[ "BSL-1.0" ]
null
null
null
04-ClassMembers/member.py
bakhshalipour/boost-python3-mac
dd86f2a1d2460118878282b794a87c821cd38a3a
[ "BSL-1.0" ]
null
null
null
04-ClassMembers/member.py
bakhshalipour/boost-python3-mac
dd86f2a1d2460118878282b794a87c821cd38a3a
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python3 import member m1 = member.SomeClass("Pavel") print ("name =",m1.name) m1.name = "Gunther" print ("name =",m1.name) m1.number = 7.3 print ("number =",m1.number)
13.428571
30
0.648936
0
0
0
0
0
0
0
0
64
0.340426
bc2ad22aede45c1a13a1677de0ef725433124657
26,946
py
Python
valispace/__init__.py
singleit-tech/ValispacePythonAPI
a5681779b3ee898188270a7973e0222875f93b8c
[ "MIT" ]
9
2018-04-28T10:38:31.000Z
2022-02-18T12:41:47.000Z
valispace/__init__.py
singleit-tech/ValispacePythonAPI
a5681779b3ee898188270a7973e0222875f93b8c
[ "MIT" ]
7
2017-10-26T13:10:30.000Z
2020-08-08T13:46:19.000Z
valispace/__init__.py
singleit-tech/ValispacePythonAPI
a5681779b3ee898188270a7973e0222875f93b8c
[ "MIT" ]
13
2017-10-06T08:23:06.000Z
2022-02-09T10:55:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import getpass import json import requests import sys import six import re class API: """ Defines REST API endpoints for Valispace. """ _writable_vali_fields = [ 'reference', 'margin_plus', 'margin_minus', 'unit', 'formula', 'description...
36.861833
165
0.572627
26,820
0.995324
0
0
0
0
0
0
11,318
0.420025
bc2ade7603e85b28fb608daaa69727e893191a3a
194
py
Python
setup.py
khuong507/bluemix-cloudbase-init
10628014687c5f0cfb183f5e8f182856078fa5fa
[ "Apache-2.0" ]
3
2019-05-30T02:41:17.000Z
2019-11-11T09:59:07.000Z
setup.py
khuong507/bluemix-cloudbase-init
10628014687c5f0cfb183f5e8f182856078fa5fa
[ "Apache-2.0" ]
1
2021-02-05T14:51:01.000Z
2021-02-11T08:37:31.000Z
setup.py
khuong507/bluemix-cloudbase-init
10628014687c5f0cfb183f5e8f182856078fa5fa
[ "Apache-2.0" ]
2
2017-08-10T13:44:23.000Z
2019-12-19T15:08:52.000Z
from distutils.core import setup setup(name='Bluemix', version='0.1', description='A bluemix datasource to be used with cloudbase-init', packages=['bluemix', 'bluemix.conf'])
27.714286
72
0.685567
0
0
0
0
0
0
0
0
90
0.463918
bc2c36f82b74e08da6f7b10aee3d76392a0e0a37
49,575
py
Python
giant/relative_opnav/estimators/ellipse_matching.py
nasa/giant
1e939272d9a0ca533b4da400d132f854520f3adc
[ "NASA-1.3" ]
5
2021-09-10T14:29:19.000Z
2022-01-13T20:15:01.000Z
giant/relative_opnav/estimators/ellipse_matching.py
nasa/giant
1e939272d9a0ca533b4da400d132f854520f3adc
[ "NASA-1.3" ]
null
null
null
giant/relative_opnav/estimators/ellipse_matching.py
nasa/giant
1e939272d9a0ca533b4da400d132f854520f3adc
[ "NASA-1.3" ]
2
2021-10-01T18:39:13.000Z
2021-12-30T08:53:08.000Z
# Copyright 2021 United States Government as represented by the Administrator of the National Aeronautics and Space # Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All Other Rights Reserved. r""" This module provides the capability to locate the relative position of a regula...
56.657143
120
0.655915
41,023
0.827494
0
0
0
0
0
0
31,251
0.630378
bc2cee5c5a4a0949cd5f8bd23a23aa640050ca78
5,071
py
Python
pytorch/probability/distributions_.py
NunoEdgarGFlowHub/autoregressive-energy-machines
eb5517a513cf4e99db674fa41170f018e212f1e2
[ "MIT" ]
83
2019-04-12T10:23:23.000Z
2022-03-30T12:40:43.000Z
pytorch/probability/distributions_.py
sten2lu/autoregressive-energy-machines
eb5517a513cf4e99db674fa41170f018e212f1e2
[ "MIT" ]
null
null
null
pytorch/probability/distributions_.py
sten2lu/autoregressive-energy-machines
eb5517a513cf4e99db674fa41170f018e212f1e2
[ "MIT" ]
11
2019-04-12T11:26:00.000Z
2020-05-12T01:14:21.000Z
import math import sys import torch from numbers import Number from torch import distributions from torch.distributions import constraints from torch.distributions.exp_family import ExponentialFamily from torch.distributions.utils import _standard_normal, broadcast_all q = sys.exit class Normal_(ExponentialFamily):...
36.482014
90
0.634589
4,717
0.930191
0
0
302
0.059554
0
0
693
0.136659
bc2e49c13ad370198ee4d1ae34071ef594b3447a
376
py
Python
basicplot.py
sirgogo/docker-meep
4c41cec929ce829662fe7b2484aa8e8bf490a0a5
[ "MIT" ]
2
2020-02-22T05:50:14.000Z
2022-02-26T20:39:34.000Z
basicplot.py
sirgogo/docker-meep
4c41cec929ce829662fe7b2484aa8e8bf490a0a5
[ "MIT" ]
null
null
null
basicplot.py
sirgogo/docker-meep
4c41cec929ce829662fe7b2484aa8e8bf490a0a5
[ "MIT" ]
7
2017-09-05T11:08:31.000Z
2021-11-16T00:56:30.000Z
import matplotlib matplotlib.use('Agg') # this lets us do some headless stuff import matplotlib.pylab as plt import numpy as np x = np.asarray([0,5,2]) y = np.asarray([0,1,3]) f = plt.figure() ax = f.add_subplot(111) ax.plot(x,y) #plt.show() # we have a headless display, can't do this! f.savefig('basicplot.eps',format...
28.923077
87
0.720745
0
0
0
0
0
0
0
0
128
0.340426
bc2e6b8739ca8dec99ed92907eb1665877d1fd33
659
py
Python
py-practice/py-practice-hackerrank/Algorithms/Implementation/utopian_tree.py
beenorgone-notebook/python-notebook
48e42b5be70e7ca06e8440a75516c055c961371c
[ "MIT" ]
null
null
null
py-practice/py-practice-hackerrank/Algorithms/Implementation/utopian_tree.py
beenorgone-notebook/python-notebook
48e42b5be70e7ca06e8440a75516c055c961371c
[ "MIT" ]
null
null
null
py-practice/py-practice-hackerrank/Algorithms/Implementation/utopian_tree.py
beenorgone-notebook/python-notebook
48e42b5be70e7ca06e8440a75516c055c961371c
[ "MIT" ]
1
2018-04-08T13:24:39.000Z
2018-04-08T13:24:39.000Z
# https://www.hackerrank.com/challenges/utopian-tree def tree_height(tree, N, start): if not N: return tree if start == 'spring': for i in range(N // 2): tree = tree * 2 + 1 if N % 2: return tree * 2 else: return tree elif start == 'summer...
24.407407
65
0.502276
0
0
0
0
0
0
0
0
115
0.174507
bc2f04c16bdbecd969f22b63a971bad1b03dcc0a
56
py
Python
piodispatch/__init__.py
Kiruse/PioDispatch
ae4b6199795d2cc0ad8451cc17b57a4b517fdbda
[ "MIT" ]
null
null
null
piodispatch/__init__.py
Kiruse/PioDispatch
ae4b6199795d2cc0ad8451cc17b57a4b517fdbda
[ "MIT" ]
null
null
null
piodispatch/__init__.py
Kiruse/PioDispatch
ae4b6199795d2cc0ad8451cc17b57a4b517fdbda
[ "MIT" ]
null
null
null
from .piodispatch import dispatch, ascoroutine, shutdown
56
56
0.857143
0
0
0
0
0
0
0
0
0
0
bc30514100a65cd97885d46696267a630becc87d
266
py
Python
Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py
ugurcan-sonmez-95/LeetCode
e463a424c2d781f67be31ae42bc3c5c896db6017
[ "MIT" ]
1
2020-10-01T09:12:09.000Z
2020-10-01T09:12:09.000Z
Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py
ugurcan-sonmez-95/LeetCode
e463a424c2d781f67be31ae42bc3c5c896db6017
[ "MIT" ]
null
null
null
Algorithms/Maximum_Number_of_Coins_You_Can_Get/main.py
ugurcan-sonmez-95/LeetCode
e463a424c2d781f67be31ae42bc3c5c896db6017
[ "MIT" ]
null
null
null
### Maximum Number of Coins You Can Get - Solution class Solution: def maxCoins(self, piles: List[int]) -> int: piles.sort() max_coin, n = 0, len(piles) for i in range(n//3, n, 2): max_coin += piles[i] return max_coin
29.555556
50
0.56391
214
0.804511
0
0
0
0
0
0
50
0.18797
bc3126c570e95df36a490d3edfbfb2c0283d8529
986
py
Python
learner2/pupil/migrations/0012_sessiondata.py
Arunkumar99/learners
744006a805fb65087e8c41333bd697ec24b7a392
[ "BSD-3-Clause" ]
3
2020-05-30T17:08:51.000Z
2021-12-14T02:55:19.000Z
learner2/pupil/migrations/0012_sessiondata.py
Arunkumar99/learners
744006a805fb65087e8c41333bd697ec24b7a392
[ "BSD-3-Clause" ]
null
null
null
learner2/pupil/migrations/0012_sessiondata.py
Arunkumar99/learners
744006a805fb65087e8c41333bd697ec24b7a392
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pupil', '0011_questions_set_id'), ] operations = [ migrations.CreateModel( name='SessionData', field...
34
114
0.56998
877
0.889452
0
0
0
0
0
0
177
0.179513
bc328c1d04ee6b4b30d02e5e2fb637b331521485
23,497
py
Python
mediapipe_utils.py
brightereyeslynxes/corpusLabe_prototype
806af365d1256d0fadd7ab1f4f54a1233278fee5
[ "MIT" ]
null
null
null
mediapipe_utils.py
brightereyeslynxes/corpusLabe_prototype
806af365d1256d0fadd7ab1f4f54a1233278fee5
[ "MIT" ]
null
null
null
mediapipe_utils.py
brightereyeslynxes/corpusLabe_prototype
806af365d1256d0fadd7ab1f4f54a1233278fee5
[ "MIT" ]
null
null
null
import cv2 import numpy as np from collections import namedtuple from math import ceil, sqrt, exp, pi, floor, sin, cos, atan2, gcd import time from collections import deque, namedtuple # Dictionary that maps from joint names to keypoint indices. KEYPOINT_DICT = { "nose": 0, "left_eye_inner": 1, "left_eye":...
40.303602
153
0.621101
5,421
0.23071
0
0
0
0
0
0
10,563
0.449547
bc32a3234dd90ad352aba5adb527d79b901adc29
303
py
Python
examples/fixture.no_background/features/steps/use_steplib_behave4cmd.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
13
2019-10-03T19:15:14.000Z
2019-10-16T02:01:57.000Z
examples/fixture.no_background/features/steps/use_steplib_behave4cmd.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
2
2020-03-21T22:37:54.000Z
2021-10-04T17:14:14.000Z
examples/fixture.no_background/features/steps/use_steplib_behave4cmd.py
fluendo/behave
eeffde083456dcf1a0ea9b6139b32091970118c0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Use behave4cmd0 step library (predecessor of behave4cmd). """ from __future__ import absolute_import # -- REGISTER-STEPS FROM STEP-LIBRARY: # import behave4cmd0.__all_steps__ # import behave4cmd0.failing_steps import behave4cmd0.passing_steps import behave4cmd0.note_steps
23.307692
57
0.785479
0
0
0
0
0
0
0
0
194
0.640264
bc3318ee93392f473d8dec2ba7ec5b3d52f0589d
4,524
py
Python
build/python/modules/assembly/package_manifest.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
5
2022-01-10T20:22:17.000Z
2022-01-21T20:14:17.000Z
build/python/modules/assembly/package_manifest.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
build/python/modules/assembly/package_manifest.py
fabio-d/fuchsia-stardock
e57f5d1cf015fe2294fc2a5aea704842294318d2
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2022 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from dataclasses import dataclass from typing import Dict, List, Optional from serialization import serialize_fields_as __all__ = ['PackageManifest', 'Packag...
34.8
111
0.641689
4,061
0.897657
0
0
4,140
0.915119
0
0
1,753
0.387489
bc33b82e9c92fada4f9a24afcaa8e16bbc692cff
6,025
py
Python
annotation/black_action/test/move_ry.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
annotation/black_action/test/move_ry.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
annotation/black_action/test/move_ry.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from itertools import product from pathlib import Path import numpy as np import tensorflow as tf from dotenv import load_dotenv from annotation.direction import (Direction, get_diagonal_directions, get_cross_directions) from ...
38.870968
78
0.446473
5,790
0.93012
0
0
247
0.039679
0
0
474
0.076145
bc33e1a164ea02a1949fb5d46cf3c8b6e16f624c
747
py
Python
assignments/assignment2/solutions/Nkarnaud/devhub-0.1.0/src/account/forms.py
Nkarnaud/python-mentorship
a00735fc8b63e244b91575540c54d0eea942381f
[ "Apache-2.0" ]
1
2019-04-22T18:42:51.000Z
2019-04-22T18:42:51.000Z
assignments/assignment2/solutions/Nkarnaud/devhub-0.1.0/src/account/forms.py
Nkarnaud/python-mentorship
a00735fc8b63e244b91575540c54d0eea942381f
[ "Apache-2.0" ]
null
null
null
assignments/assignment2/solutions/Nkarnaud/devhub-0.1.0/src/account/forms.py
Nkarnaud/python-mentorship
a00735fc8b63e244b91575540c54d0eea942381f
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.models import User from account.models import Account class AccountCreateForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=False, help_text='Optional.') last_name...
41.5
97
0.745649
568
0.760375
0
0
0
0
0
0
125
0.167336
bc3513cb203b5eb746d7ca1948d927c26402a7f1
390
py
Python
palsbet/migrations/0003_auto_20180323_0018.py
denis254/palsbetc
d70d0fadaa661ff36c046a4f0a87a88d890c0dc4
[ "BSD-3-Clause" ]
null
null
null
palsbet/migrations/0003_auto_20180323_0018.py
denis254/palsbetc
d70d0fadaa661ff36c046a4f0a87a88d890c0dc4
[ "BSD-3-Clause" ]
11
2020-03-24T16:11:23.000Z
2021-12-13T19:47:29.000Z
palsbet/migrations/0003_auto_20180323_0018.py
denis254/overtimebet
063af2fc263580d96e396e953ef8658a75ac38a5
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-22 21:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('palsbet', '0002_viptipsgames'), ] operations = [ migrations.AlterField( model_name='viptipsgames', name='cathegory',...
20.526316
51
0.602564
297
0.761538
0
0
0
0
0
0
100
0.25641
bc3c7092993eb4e13af6dd3b1e0b4b31e2777061
18,700
py
Python
Environment.py
mxrcfdez/TrafficLightsAutomation
fe5b3c1cebe585e4f9a3fb2d2a7653f4ac2edb8a
[ "Apache-2.0" ]
null
null
null
Environment.py
mxrcfdez/TrafficLightsAutomation
fe5b3c1cebe585e4f9a3fb2d2a7653f4ac2edb8a
[ "Apache-2.0" ]
null
null
null
Environment.py
mxrcfdez/TrafficLightsAutomation
fe5b3c1cebe585e4f9a3fb2d2a7653f4ac2edb8a
[ "Apache-2.0" ]
null
null
null
import gym from gym import spaces import numpy as np import learning_data from Simulation import Simulation def get_value_or_delimiter(value, delimiter): return min(delimiter[1], max(delimiter[0], value)) class Environment(gym.Env): def __init__(self, simulation, training): super(Environment, self)...
53.276353
190
0.634439
18,485
0.988503
0
0
0
0
0
0
4,745
0.253743
bc3d021b03a2c4dec39faa861c772e80b36950d7
1,311
py
Python
test.py
nerdingitout/STT--
4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15
[ "Apache-2.0" ]
null
null
null
test.py
nerdingitout/STT--
4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15
[ "Apache-2.0" ]
null
null
null
test.py
nerdingitout/STT--
4544f89abd6c2a8c11c1cf3e309ceb6f5d9b6b15
[ "Apache-2.0" ]
null
null
null
import pandas as pd import json import csv # importing the module import json # Opening JSON file with open('response.json') as json_file: data = json.load(json_file) # for reading nested data [0] represents # the index value of the list print(data['results'][0]['alternatives']['transcri...
29.133333
91
0.650648
0
0
0
0
0
0
0
0
983
0.749809
70ad458eac22677ad1d19a761c4bf2d78f497f97
6,407
py
Python
loldib/getratings/models/NA/na_sivir/na_sivir_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_sivir/na_sivir_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_sivir/na_sivir_bot.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Sivir_Bot_Aatrox(Ratings): pass class NA_Sivir_Bot_Ahri(Ratings): pass class NA_Sivir_Bot_Akali(Ratings): pass class NA_Sivir_Bot_Alistar(Ratings): pass class NA_Sivir_Bot_Amumu(Ratings): pass class NA_Sivir_Bot_Anivia(Ratings): pass ...
15.364508
46
0.761667
5,806
0.906196
0
0
0
0
0
0
0
0
70adc0ef41a2821b404e088ae1c817c6c3515597
1,711
py
Python
policy2tosca/build/lib.linux-x86_64-2.7/policy2tosca/del_type.py
Tosca-Projects/parser
04dabfa15db432b24656d38628a846b73b658339
[ "Apache-2.0" ]
1
2018-05-14T09:59:51.000Z
2018-05-14T09:59:51.000Z
policy2tosca/build/lib.linux-x86_64-2.7/policy2tosca/del_type.py
Tosca-Projects/parser
04dabfa15db432b24656d38628a846b73b658339
[ "Apache-2.0" ]
null
null
null
policy2tosca/build/lib.linux-x86_64-2.7/policy2tosca/del_type.py
Tosca-Projects/parser
04dabfa15db432b24656d38628a846b73b658339
[ "Apache-2.0" ]
2
2019-04-20T15:00:58.000Z
2020-06-16T14:42:35.000Z
# 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 the...
35.645833
84
0.680304
1,048
0.612507
0
0
0
0
0
0
749
0.437756
70ae466b7e7db5a0d09e04c20a68c88f305a4aac
77
py
Python
build_start.py
sanman00/SpongeSkills
7a54e424071a21a55a84479e0177ed7ebacc9c31
[ "MIT" ]
null
null
null
build_start.py
sanman00/SpongeSkills
7a54e424071a21a55a84479e0177ed7ebacc9c31
[ "MIT" ]
4
2017-05-05T15:51:09.000Z
2017-05-08T17:18:27.000Z
build_start.py
sanman00/SpongeSkills
7a54e424071a21a55a84479e0177ed7ebacc9c31
[ "MIT" ]
null
null
null
from build import replace_text, version replace_text("@{version}", version)
19.25
39
0.779221
0
0
0
0
0
0
0
0
12
0.155844
70b064cf7bb27004817810b3d9823f1d22968297
17,748
py
Python
cuppa/cpp/create_version_file_cpp.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
25
2015-09-24T07:04:45.000Z
2022-02-19T03:31:03.000Z
cuppa/cpp/create_version_file_cpp.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
46
2015-05-20T12:48:12.000Z
2022-01-10T10:38:55.000Z
cuppa/cpp/create_version_file_cpp.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
13
2015-07-12T09:55:03.000Z
2021-07-02T15:32:12.000Z
# Copyright Jamie Allsop 2011-2017 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # CreateVersionFileCpp #--...
44.259352
133
0.46963
11,369
0.640579
0
0
0
0
0
0
7,409
0.417455
70b086468733c1b6ce77c49c47bc0d4d8412c1dd
101
py
Python
enthought/mayavi/components/implicit_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/mayavi/components/implicit_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/mayavi/components/implicit_plane.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from mayavi.components.implicit_plane import *
25.25
46
0.851485
0
0
0
0
0
0
0
0
14
0.138614
70b0ec3b0f20b624360319ad2024474c4a16cdca
928
py
Python
Learning/python_data_analysis11.py
VictoriaGuXY/MCO-Menu-Checker-Online
706e2e1bf7395cc344f382ea2ac53d964d459f86
[ "MIT" ]
null
null
null
Learning/python_data_analysis11.py
VictoriaGuXY/MCO-Menu-Checker-Online
706e2e1bf7395cc344f382ea2ac53d964d459f86
[ "MIT" ]
null
null
null
Learning/python_data_analysis11.py
VictoriaGuXY/MCO-Menu-Checker-Online
706e2e1bf7395cc344f382ea2ac53d964d459f86
[ "MIT" ]
null
null
null
import pandas as pd from scipy.stats import ttest_rel """ output """ # Note: some output is shortened to save spaces. # This file discusses statistical analysis (Part II). # ------------------------------------------------------------------------------ # Data stored in form of xlsx with contents: """ group data...
21.090909
80
0.516164
0
0
0
0
0
0
0
0
717
0.772629
70b1ab24a4c3db1cf759b4299c57523f7d5eee15
6,640
py
Python
pytorch_ares/third_party/free_adv_train/multi_restart_pgd_attack.py
thu-ml/realsafe
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
107
2020-06-15T09:55:11.000Z
2020-12-20T11:27:11.000Z
pytorch_ares/third_party/free_adv_train/multi_restart_pgd_attack.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
7
2020-06-14T03:00:18.000Z
2020-12-07T07:10:10.000Z
pytorch_ares/third_party/free_adv_train/multi_restart_pgd_attack.py
haichen-ber/ares
474d549aa402b4cdd5e3629d23d035c31b60a360
[ "MIT" ]
19
2020-06-14T08:35:33.000Z
2020-12-19T13:43:41.000Z
""" Implementation of attack methods. Running this file as a program will evaluate the model and get the validation accuracy and then apply the attack to the model specified by the config file and store the examples in an .npy file. """ from __future__ import absolute_import from __future__ import division from...
40.242424
116
0.573795
1,916
0.288554
0
0
0
0
0
0
968
0.145783
70b214dd70a108da0b34f14109cdc980a1bad769
166
py
Python
run.py
envy7/project-dream-team-three
ebadf13ee0d76bd924bd1ba639d448f8e28ac01c
[ "Unlicense" ]
null
null
null
run.py
envy7/project-dream-team-three
ebadf13ee0d76bd924bd1ba639d448f8e28ac01c
[ "Unlicense" ]
null
null
null
run.py
envy7/project-dream-team-three
ebadf13ee0d76bd924bd1ba639d448f8e28ac01c
[ "Unlicense" ]
null
null
null
import os from app import create_app config_name = os.getenv('FLASK_CONFIG') app = create_app('development') if __name__ == '__main__': app.run(host='0.0.0.0')
18.444444
39
0.710843
0
0
0
0
0
0
0
0
46
0.277108
70b25fd80453311c6bb986cd2ea2ef428837a8d3
30,392
py
Python
tests/test_utils.py
jbradberry/universe
109261f75c49435d118cf9c5238124466a03d2d3
[ "MIT" ]
null
null
null
tests/test_utils.py
jbradberry/universe
109261f75c49435d118cf9c5238124466a03d2d3
[ "MIT" ]
24
2020-04-14T20:32:21.000Z
2021-08-03T13:29:45.000Z
tests/test_utils.py
jbradberry/universe
109261f75c49435d118cf9c5238124466a03d2d3
[ "MIT" ]
3
2016-10-28T19:20:30.000Z
2021-02-28T03:19:49.000Z
import unittest from universe import components, engine, utils class PlanetProductionTestCase(unittest.TestCase): def test_values(self): manager = engine.Manager() manager.register_entity_type('species', [ components.SpeciesProductionComponent(), ]) manager.register_en...
30.240796
75
0.274184
30,322
0.997697
0
0
0
0
0
0
473
0.015563
70b42808fd3e5b69884acc32783742c4f3b80d18
12,044
py
Python
models/model_search.py
WZzhaoyi/TF-NAS
f63e9fd3a5ca0d8c6400891baa19c2168b203513
[ "MIT" ]
62
2020-07-05T11:59:47.000Z
2022-01-18T08:09:53.000Z
models/model_search.py
WZzhaoyi/TF-NAS
f63e9fd3a5ca0d8c6400891baa19c2168b203513
[ "MIT" ]
4
2020-08-17T09:13:47.000Z
2021-10-01T03:21:28.000Z
models/model_search.py
WZzhaoyi/TF-NAS
f63e9fd3a5ca0d8c6400891baa19c2168b203513
[ "MIT" ]
11
2020-07-23T06:21:28.000Z
2021-06-13T20:19:24.000Z
import random import torch import torch.nn as nn import torch.nn.functional as F from .layers import * PRIMITIVES = [ 'MBI_k3_e3', 'MBI_k3_e6', 'MBI_k5_e3', 'MBI_k5_e6', 'MBI_k3_e3_se', 'MBI_k3_e6_se', 'MBI_k5_e3_se', 'MBI_k5_e6_se', # 'skip', ] OPS = { 'MBI_k3_e3' : lambda ic, mc, oc, s, aff, act: MBInvert...
32.907104
119
0.650614
10,759
0.893308
0
0
0
0
0
0
925
0.076802
70b8bfd3bed877715148c6075360f5dc2f1f654e
6,001
py
Python
code/decision.py
preethi2205/RND_SearchAndSampleReturn
a29ccfe62c74bac1dd2d387d018543a17b87d362
[ "MIT" ]
null
null
null
code/decision.py
preethi2205/RND_SearchAndSampleReturn
a29ccfe62c74bac1dd2d387d018543a17b87d362
[ "MIT" ]
null
null
null
code/decision.py
preethi2205/RND_SearchAndSampleReturn
a29ccfe62c74bac1dd2d387d018543a17b87d362
[ "MIT" ]
null
null
null
import numpy as np import random as random def move_to_sample(Rover): delX = 0; delY = 0; if len(Rover.rock_angles) > 0: dist_to_rock = np.mean(np.abs(Rover.rock_dist)) angle_to_rock = np.mean(Rover.rock_angles); Rover.steer = np.clip(angle_to_rock* 180/np.pi, -15, 15) if Rove...
40.275168
106
0.585902
0
0
0
0
0
0
0
0
1,796
0.299283
70b8e8b51a58773bba3751b1c3d887e592c99dd0
869
py
Python
ch17/yunqiCrawl/yunqiCrawl/scrapy_redis/connection.py
AaronZhengkk/SpiderBook
48f82e4627f88f366bbaff71f01bac6412f78eca
[ "MIT" ]
990
2017-04-20T07:58:39.000Z
2022-03-28T08:52:46.000Z
base/bloom_redis/connection.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
119
2017-06-20T12:57:11.000Z
2021-04-27T04:58:34.000Z
base/bloom_redis/connection.py
Deep-Heart/Spider
33fd548c025bd52571f52e4b53d8e7cb8570be6f
[ "Apache-2.0" ]
583
2017-05-12T04:05:45.000Z
2022-03-18T02:40:13.000Z
import redis # Default values. REDIS_URL = None REDIS_HOST = 'localhost' REDIS_PORT = 6379 FILTER_URL = None FILTER_HOST = 'localhost' FILTER_PORT = 6379 FILTER_DB = 0 def from_settings(settings): url = settings.get('REDIS_URL', REDIS_URL) host = settings.get('REDIS_HOST', REDIS_HOST) port = settings.ge...
24.138889
62
0.695052
0
0
0
0
0
0
0
0
181
0.208285
70b9709e5bc187bf4a8b2990ce0f982cea60bcb9
13,444
py
Python
odoo-14.0/addons/hr_holidays/tests/test_automatic_leave_dates.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/hr_holidays/tests/test_automatic_leave_dates.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/hr_holidays/tests/test_automatic_leave_dates.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import date, datetime from odoo.tests.common import Form from odoo.addons.hr_holidays.tests.common import TestHrHolidaysCommon from odoo.exceptions import ValidationError class TestAutomaticLeaveDates(TestHrHolidaysCommon): def setUp(self): super(TestAutomaticLeaveD...
46.041096
100
0.507885
13,230
0.984082
0
0
0
0
0
0
1,973
0.146757
70ba13d0c276d8e93931e5d84090ba6194a1d012
445
py
Python
oface/model/base.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
2
2021-06-01T01:33:32.000Z
2021-11-23T10:39:35.000Z
oface/model/base.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
null
null
null
oface/model/base.py
007gzs/oface
9e4ca8ee572783cff4417c58217cdcb8c7af07f4
[ "MIT" ]
1
2021-07-16T22:42:55.000Z
2021-07-16T22:42:55.000Z
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import onnxruntime class ONNXModel: def __init__(self, model_file=None, session=None, task_name=''): self.model_file = model_file self.session = session self.task_name = task_name if self.session is None: ...
29.666667
78
0.698876
347
0.779775
0
0
0
0
0
0
19
0.042697
70bcf6e650bbb3a26c3ae8d0c7700d683160246d
3,881
py
Python
fabrun/views.py
agepoly/azimut-gestion
76da15a55086fdfacf605c139a1a64884ab0de40
[ "MIT" ]
null
null
null
fabrun/views.py
agepoly/azimut-gestion
76da15a55086fdfacf605c139a1a64884ab0de40
[ "MIT" ]
null
null
null
fabrun/views.py
agepoly/azimut-gestion
76da15a55086fdfacf605c139a1a64884ab0de40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import get_object_or_404, render_to_response, redirect from django.template import RequestContext from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.http import Http404, HttpResponse, HttpResponseForbidden, Http...
31.552846
155
0.707034
0
0
0
0
2,737
0.705231
0
0
899
0.231641
70be7dcca787cb83953f057618abd33581e4ef7e
1,687
py
Python
psets/set1/perceptron_helper.py
ichakraborty/CS155-iniproject
e149d82586a7c6b79a71a2e56213daa7dfacbff0
[ "BSD-2-Clause" ]
14
2021-01-05T06:54:16.000Z
2022-01-24T23:49:01.000Z
psets/set1/perceptron_helper.py
ichakraborty/CS155-iniproject
e149d82586a7c6b79a71a2e56213daa7dfacbff0
[ "BSD-2-Clause" ]
null
null
null
psets/set1/perceptron_helper.py
ichakraborty/CS155-iniproject
e149d82586a7c6b79a71a2e56213daa7dfacbff0
[ "BSD-2-Clause" ]
25
2021-01-06T19:15:00.000Z
2022-01-10T14:31:15.000Z
######################################## # CS/CNS/EE 155 2018 # Problem Set 1 # # Author: Joey Hong # Description: Set 1 Perceptron helper ######################################## import numpy as np import matplotlib.pyplot as plt def predict(x, w, b): ''' The method takes the weight vector and bias o...
29.086207
86
0.566686
0
0
0
0
0
0
0
0
886
0.525193
70c12af7d29c0b551f062c5e568d21efaf3953fe
5,894
py
Python
1D_2D_arrays/1D_2D_arrays.py
Speedy905/ICS4U-Scripts
4867410658f1ddc8e509edfc725058996019ab5d
[ "MIT" ]
null
null
null
1D_2D_arrays/1D_2D_arrays.py
Speedy905/ICS4U-Scripts
4867410658f1ddc8e509edfc725058996019ab5d
[ "MIT" ]
null
null
null
1D_2D_arrays/1D_2D_arrays.py
Speedy905/ICS4U-Scripts
4867410658f1ddc8e509edfc725058996019ab5d
[ "MIT" ]
null
null
null
#Antonio Karlo Mijares #ICS4U-01 #November 24 2016 #1D_2D_arrays.py #Creates 1D arrays, for the variables to be placed in characteristics = [] num = [] #Creates a percentage value for the numbers to be calculated with base = 20 percentage = 100 #2d Arrays #Ugly Arrays ugly_one_D = [] ugly_one_D_two = [] ugly_two_D ...
30.225641
65
0.610282
0
0
0
0
0
0
0
0
2,401
0.407363
70c55b64383890933df21310cef6c32194158ea0
407
py
Python
gym_viewshed/envs/__init__.py
baimukashev/gym-viewshed
802b613433c15f6f8582aa42c8af9b1d2b2c591d
[ "Apache-2.0" ]
null
null
null
gym_viewshed/envs/__init__.py
baimukashev/gym-viewshed
802b613433c15f6f8582aa42c8af9b1d2b2c591d
[ "Apache-2.0" ]
null
null
null
gym_viewshed/envs/__init__.py
baimukashev/gym-viewshed
802b613433c15f6f8582aa42c8af9b1d2b2c591d
[ "Apache-2.0" ]
null
null
null
# from gym_viewshed.envs.viewshed_env import ViewshedEnv # from gym_viewshed.envs.viewshed_basic_env import ViewshedBasicEnv # from gym_viewshed.envs.viewshed_random_env import ViewshedRandomEnv # from gym_viewshed.envs.viewshed_greedy_env import ViewshedGreedyEnv # from gym_viewshed.envs.viewshed_coverage_env import V...
58.142857
73
0.886978
0
0
0
0
0
0
0
0
334
0.820639
70c5e600c8b44bccf3f53b8bb4d07e06e41833dc
4,081
py
Python
syn/base/b/tests/test_wrapper.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
1
2021-07-15T08:55:12.000Z
2021-07-15T08:55:12.000Z
syn/base/b/tests/test_wrapper.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
7
2021-01-07T23:51:57.000Z
2021-12-13T19:50:57.000Z
syn/base/b/tests/test_wrapper.py
mbodenhamer/syn
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
[ "MIT" ]
2
2016-07-11T08:46:31.000Z
2017-12-13T13:30:51.000Z
import collections from copy import deepcopy from nose.tools import assert_raises from syn.base.b import ListWrapper, Attr from syn.base.b.tests.test_base import check_idempotence from syn.types.a import generate from syn.type.a import Schema from syn.schema.b.sequence import Sequence from syn.base_utils import assert_...
27.02649
80
0.559667
779
0.190885
0
0
0
0
0
0
535
0.131095
70c72d20e3d2306963f8dc57ddf61ae7eaf753fe
21,974
py
Python
code_dense_hmm/experiment.py
fraunhofer-iais/dense-hmm
28a93fe987e3c4ec2876221a90ba93ac304e1e09
[ "MIT" ]
null
null
null
code_dense_hmm/experiment.py
fraunhofer-iais/dense-hmm
28a93fe987e3c4ec2876221a90ba93ac304e1e09
[ "MIT" ]
null
null
null
code_dense_hmm/experiment.py
fraunhofer-iais/dense-hmm
28a93fe987e3c4ec2876221a90ba93ac304e1e09
[ "MIT" ]
null
null
null
from models import StandardHMM, DenseHMM, HMMLoggingMonitor from utils import prepare_data, check_random_state, create_directories, dict_get, Timer, timestamp_msg, check_dir, is_multinomial, compute_stationary, check_sequences from data import penntreebank_tag_sequences, protein_sequences, train_test_split from datet...
47.562771
166
0.705834
0
0
0
0
0
0
0
0
4,889
0.22249
70c846852061594e0e9914e39b2035cd28c6dd88
2,167
py
Python
jetson/ballrunner.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
1
2018-02-21T03:49:54.000Z
2018-02-21T03:49:54.000Z
jetson/ballrunner.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
null
null
null
jetson/ballrunner.py
Reslix/Lohbot
4920c0d0fcda64ec7b6438dd848c789e4fd15cc4
[ "MIT" ]
null
null
null
from newcamera import TrackingCameraRunner from serial_io import SerialIO from show import imshow import cv2 import math print("Initializing serial connection with Arduino") ard = SerialIO() ard.start() print("Initializing camera") c = TrackingCameraRunner(0) print("Tracking Ball...") tcenterx = 640 tradius = 40 spee...
30.957143
97
0.513152
0
0
0
0
0
0
0
0
492
0.227042
70c959da6388e937e02687ad9571d92c479badd1
8,247
py
Python
simple_rl/tasks/taxi/TaxiOOMDPClass.py
KorlaMarch/simple_rl
30086b5cf4fd3e9dee76ddfb5ae4f565593ce191
[ "Apache-2.0" ]
10
2021-11-22T12:29:30.000Z
2022-03-28T10:23:16.000Z
simple_rl/tasks/taxi/TaxiOOMDPClass.py
samlobel/simple_rl_mbrl
ed868916d06dbf68f4af23bea83b0e852e88df6e
[ "Apache-2.0" ]
null
null
null
simple_rl/tasks/taxi/TaxiOOMDPClass.py
samlobel/simple_rl_mbrl
ed868916d06dbf68f4af23bea83b0e852e88df6e
[ "Apache-2.0" ]
2
2022-03-19T07:42:56.000Z
2022-03-28T10:36:33.000Z
''' TaxiMDPClass.py: Contains the TaxiMDP class. From: Dietterich, Thomas G. "Hierarchical reinforcement learning with the MAXQ value function decomposition." J. Artif. Intell. Res.(JAIR) 13 (2000): 227-303. Author: David Abel (cs.brown.edu/~dabel/) ''' # Python imports. from __future__ import print_func...
31.477099
137
0.587486
6,937
0.841154
0
0
0
0
0
0
2,625
0.318298
70c96909cdb1ba2109525248284a595c630feada
2,176
py
Python
tests/bugs/core_2923_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_2923_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_2923_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_2923 # title: Problem with dependencies between a procedure and a view using that procedure # decription: # tracker_id: CORE-2923 # min_versions: ['2.5.0'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action ...
19.428571
93
0.529412
0
0
0
0
183
0.084099
0
0
1,717
0.789063
70c98f390066819db18b2eabe5323591400b47e2
5,582
py
Python
day_09.py
bob-white/advent_2018
4139359b322eb42ac6cfef9e574e43bc91caa62d
[ "MIT" ]
1
2018-12-02T05:41:56.000Z
2018-12-02T05:41:56.000Z
day_09.py
bob-white/advent_2018
4139359b322eb42ac6cfef9e574e43bc91caa62d
[ "MIT" ]
null
null
null
day_09.py
bob-white/advent_2018
4139359b322eb42ac6cfef9e574e43bc91caa62d
[ "MIT" ]
null
null
null
""" --- Day 9: Marble Mania --- You talk to the Elves while you wait for your navigation system to initialize. To pass the time, they introduce you to their favorite marble game. The Elves play this game by taking turns arranging the marbles in a circle according to very particular rules. The marbles are numbered sta...
52.168224
473
0.67431
0
0
0
0
0
0
0
0
4,752
0.851308
70cae01a3bbf35c083ab9e6723658c85595554ce
983
py
Python
problems/test_ic_1_stock_prices.py
gregdferrell/algo
974ae25b028d49bcb7ded6655a7e11dcf6aa221d
[ "MIT" ]
null
null
null
problems/test_ic_1_stock_prices.py
gregdferrell/algo
974ae25b028d49bcb7ded6655a7e11dcf6aa221d
[ "MIT" ]
null
null
null
problems/test_ic_1_stock_prices.py
gregdferrell/algo
974ae25b028d49bcb7ded6655a7e11dcf6aa221d
[ "MIT" ]
null
null
null
from .ic_1_stock_prices import stock_prices_1_brute_force, stock_prices_2_greedy def test_stock_price_algorithms_lose(): stock_prices = [10, 9, 7] assert stock_prices_1_brute_force(stock_prices) == -1 assert stock_prices_2_greedy(stock_prices) == -1 def test_stock_price_algorithms_no_gain(): stock_prices = [2, ...
30.71875
80
0.787386
0
0
0
0
0
0
0
0
0
0
70cd06f1a4e2360da81c2eda5df37352f1b549eb
762
py
Python
qctrl_api/control_api/models.py
bibek-Neupane/back-end-challenge
d5a7b33adaa59e5ad566ac7435132c990f80a740
[ "Apache-2.0" ]
null
null
null
qctrl_api/control_api/models.py
bibek-Neupane/back-end-challenge
d5a7b33adaa59e5ad566ac7435132c990f80a740
[ "Apache-2.0" ]
null
null
null
qctrl_api/control_api/models.py
bibek-Neupane/back-end-challenge
d5a7b33adaa59e5ad566ac7435132c990f80a740
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator class Control(models.Model): objects=models.Manager() TYPE_CHOICES=( ('Primitive','Primitive'), ('Corpse','CORPSE'), ('Gaussian','Gaussian'), ('CinBB','CinBB'), ) #pk i....
34.636364
102
0.692913
659
0.864829
0
0
0
0
0
0
151
0.198163
70cf5a0e46bf75e6b641daf22edae36bebfe4306
1,542
py
Python
pyNastran/bdf/mesh_utils/mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/mesh_utils/mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/mesh_utils/mesh.py
numenic/pyNastran
fd5d3f0bf18db6595d85b9ac152f611e23122a68
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from pyNastran.bdf.cards.aero.utils import ( points_elements_from_quad_points, create_axisymmetric_body) def create_structured_cquad4s(model, pid, p1, p2, p3, p4, nx, ny, nid=1, eid=1, theta_mcid=0.): """ Parameters ---------- p1 / p2 / p3 / p4 : (3,...
27.052632
92
0.56096
0
0
0
0
0
0
0
0
787
0.510376
70cf7afe354a978de44df2e05db5b47dec3c12de
19,755
py
Python
trtools/dumpSTR/tests/test_filters.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
14
2020-04-20T15:38:52.000Z
2022-02-07T11:45:23.000Z
trtools/dumpSTR/tests/test_filters.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
74
2020-03-02T23:34:53.000Z
2022-03-21T18:32:10.000Z
trtools/dumpSTR/tests/test_filters.py
Kulivox/TRTools
ea05f9126f5145405cced8fd85821ce929657b3a
[ "MIT" ]
15
2018-10-29T19:41:33.000Z
2020-02-21T18:41:51.000Z
import argparse import os,sys import pytest from ..dumpSTR import * from ..filters import * def base_argparse(tmpdir): args = argparse.ArgumentParser() args.vcf = None args.vcftype = "auto" args.out = str(tmpdir / "test") args.min_locus_callrate = None args.min_locus_hwep = None args.min_l...
33.711604
90
0.631891
5,315
0.269046
0
0
0
0
0
0
7,157
0.362288
70d0af6ad9af6dd93cea341a74bb165569785d3c
1,749
py
Python
src/tower.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
null
null
null
src/tower.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
2
2022-02-01T04:41:55.000Z
2022-02-01T06:39:08.000Z
src/tower.py
stove41/screeps
d3756785403757aa2cb7b2831c1ddbfb3b0026cd
[ "MIT" ]
null
null
null
from defs import * __pragma__('noalias', 'name') __pragma__('noalias', 'undefined') __pragma__('noalias', 'Infinity') __pragma__('noalias', 'keys') __pragma__('noalias', 'get') __pragma__('noalias', 'set') __pragma__('noalias', 'type') __pragma__('noalias', 'update') class Tower: def __init__(self, tower): ...
36.4375
114
0.520869
1,476
0.843911
0
0
0
0
0
0
145
0.082905
70d17a8fc5d57f5a8b35aadcc5b4ae250e597c06
6,081
py
Python
code/crawling/glowpick.py
DataNetworkAnalysis/OliveYoung_for_Man
bdd2c432746309d71437855186a6aa0c12a60f7e
[ "MIT" ]
6
2020-01-28T08:23:55.000Z
2021-11-12T11:19:56.000Z
code/crawling/glowpick.py
DataNetworkAnalysis/OliveYoung_for_Man
bdd2c432746309d71437855186a6aa0c12a60f7e
[ "MIT" ]
null
null
null
code/crawling/glowpick.py
DataNetworkAnalysis/OliveYoung_for_Man
bdd2c432746309d71437855186a6aa0c12a60f7e
[ "MIT" ]
1
2020-01-26T18:28:30.000Z
2020-01-26T18:28:30.000Z
''' 실행 방법 : 아나콘다 프롬프트에서 main.py가 있는 폴더 경로에 아래 명령어 입력 python glowpick.py 데이터 목록 1. Category 2. Brand_Name 3. Product_Name 4. volume 5. price 6. Sales Rank 7. rate 8. nb_reviews 7. product_number ''' from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdrive...
33.229508
153
0.535274
5,641
0.911161
0
0
0
0
0
0
1,727
0.278953
70d1f8b647267479a9bcde7a989424cc5e099952
3,651
py
Python
engine/engine.py
farouqzaib/Personify
ae7c837b5539ccc1f0d4a8f327783814228fe4d7
[ "MIT" ]
1
2018-05-09T21:56:08.000Z
2018-05-09T21:56:08.000Z
engine/engine.py
farouqzaib/Personify
ae7c837b5539ccc1f0d4a8f327783814228fe4d7
[ "MIT" ]
null
null
null
engine/engine.py
farouqzaib/Personify
ae7c837b5539ccc1f0d4a8f327783814228fe4d7
[ "MIT" ]
1
2018-05-09T21:56:46.000Z
2018-05-09T21:56:46.000Z
from algorithms.factorization_machine import FactorizationMachine from algorithms.latent_dirichlet_allocation import LatentDirichletAllocation from app.config import db from app.config.config import engine import datetime import numpy as np import pandas as pd import pickle class Engine: def __init__(self): ...
36.148515
143
0.599836
3,375
0.924404
0
0
0
0
0
0
941
0.257738
70d273f42e3df714bfd7e79274d26f4a44433731
3,179
py
Python
tests/test_parse_string.py
zalmane/copybook
1afe405ee8466ca87706c6067b227a62ecd61203
[ "MIT" ]
12
2020-10-27T11:54:51.000Z
2022-03-06T18:38:05.000Z
tests/test_parse_string.py
zalmane/copybook
1afe405ee8466ca87706c6067b227a62ecd61203
[ "MIT" ]
5
2021-01-11T16:01:04.000Z
2022-03-10T06:37:36.000Z
tests/test_parse_string.py
zalmane/copybook
1afe405ee8466ca87706c6067b227a62ecd61203
[ "MIT" ]
1
2021-11-27T03:34:30.000Z
2021-11-27T03:34:30.000Z
import pytest # Reader imports import copybook # # Tests # tests = { "extra header text":""" 10 IDENTIFICATION DIVISION. PROGRAM-ID. 8-REPORT. AUTHOR. DDT. MODIFIED BY OREN. DATE WRITTEN. 10/13/2010. DATE COMPILED. 10/13/2010. 01 WORK-BOOK. ...
36.125
82
0.35766
0
0
0
0
0
0
0
0
2,761
0.868512
70d28b57c47afe1c70e1683910f82209fac17a5b
451
py
Python
decorators.py
ir0nfelix/async_fileserver
84d5f329982923855e0e0dc0b12fedcaaf26f1f7
[ "MIT" ]
1
2020-09-07T22:38:47.000Z
2020-09-07T22:38:47.000Z
decorators.py
ir0nfelix/minio-async-fileserver
84d5f329982923855e0e0dc0b12fedcaaf26f1f7
[ "MIT" ]
null
null
null
decorators.py
ir0nfelix/minio-async-fileserver
84d5f329982923855e0e0dc0b12fedcaaf26f1f7
[ "MIT" ]
null
null
null
from werkzeug import exceptions import settings from utils import get_class_by_path def authenticate(f): def decorator(request): try: authentication_backend = get_class_by_path(settings.AUTHENTICATION_BACKEND) authenticator = authentication_backend() except Exception: ...
26.529412
87
0.707317
0
0
0
0
0
0
0
0
0
0
70d40f732da818242831ed4b95c44dbd678d72f8
1,189
py
Python
quadboost/data_preprocessing/mean_haar.py
jsleb333/quadboost
b4b980ff4af727d5cec0348484a34f34e82168cd
[ "MIT" ]
1
2018-08-27T22:56:30.000Z
2018-08-27T22:56:30.000Z
quadboost/data_preprocessing/mean_haar.py
jsleb333/quadboost
b4b980ff4af727d5cec0348484a34f34e82168cd
[ "MIT" ]
null
null
null
quadboost/data_preprocessing/mean_haar.py
jsleb333/quadboost
b4b980ff4af727d5cec0348484a34f34e82168cd
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import skimage.transform as skit import sys, os sys.path.append(os.getcwd()) from quadboost.datasets import MNISTDataset from quadboost.utils import * from haar_preprocessing import * def plot_images(images, titles): fig, axes = make_fig_axes(len(images)) f...
31.289474
101
0.70143
0
0
0
0
0
0
0
0
68
0.057191
70d4dd142230f9c4175d163a6058e4aebffb4747
1,233
py
Python
gpgraph/pyplot/utils.py
lperezmo/gpgraph
7c62a8181734be8a6bc46a434839a06808736a2c
[ "Unlicense" ]
null
null
null
gpgraph/pyplot/utils.py
lperezmo/gpgraph
7c62a8181734be8a6bc46a434839a06808736a2c
[ "Unlicense" ]
1
2020-07-02T21:55:17.000Z
2020-07-02T21:55:17.000Z
gpgraph/pyplot/utils.py
lperezmo/gpgraph
7c62a8181734be8a6bc46a434839a06808736a2c
[ "Unlicense" ]
3
2019-04-24T20:42:43.000Z
2020-06-25T04:12:37.000Z
import numpy as np import matplotlib.colors as colors import matplotlib.pyplot as plt def despine(ax=None): """Despine axes.""" ax.spines['right'].set_visible(False) ax.spines['left'].set_visible(False) ax.spines['top'].set_visible(False) ax.spines['bottom'].set_visible(False) ax.set_xticks([]...
28.022727
77
0.638281
0
0
0
0
0
0
0
0
361
0.292782
70d587780f92ec710f858bf4bc668d0621a5b699
4,034
py
Python
plugin.video.saltsrd.lite/scrapers/rlssource_scraper.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:37:15.000Z
2019-03-05T09:37:15.000Z
plugin.video.saltsrd.lite/scrapers/rlssource_scraper.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.video.saltsrd.lite/scrapers/rlssource_scraper.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
""" SALTS XBMC Addon Copyright (C) 2014 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
42.020833
206
0.636093
3,054
0.757065
0
0
767
0.190134
0
0
1,498
0.371344
70d5a45e4ad316255e38a153523ae1f59fe462d2
3,940
py
Python
visualization/experiments/plot_calibration_curves.py
silasbrack/special-course
47dc396f97b2027d366e90add115d4ed2bc0f1de
[ "MIT" ]
null
null
null
visualization/experiments/plot_calibration_curves.py
silasbrack/special-course
47dc396f97b2027d366e90add115d4ed2bc0f1de
[ "MIT" ]
null
null
null
visualization/experiments/plot_calibration_curves.py
silasbrack/special-course
47dc396f97b2027d366e90add115d4ed2bc0f1de
[ "MIT" ]
null
null
null
from typing import List import numpy as np import pandas as pd from matplotlib import pyplot as plt from visualization.helper_functions import ( FIGURE_FOLDER, TYPE_DICT, calibration_curves, ) from visualization.load_results import load_results, save_results_to_table def plot_calibration_curves( res...
29.62406
77
0.515228
0
0
0
0
0
0
0
0
614
0.155838
70d80cd9fad27c72a8556e30ec8f23dd7965d36e
11,794
py
Python
project/exact_distributions_covariance/exact_distributions_covariance_tools.py
juanhenao21/exact_distributions_financial
02eb058e5f963fbccb9029aae3fb6e15def7a93a
[ "MIT" ]
2
2021-03-20T18:24:22.000Z
2021-04-15T07:25:50.000Z
project/exact_distributions_covariance/exact_distributions_covariance_tools.py
juanhenao21/exact_distributions_financial
02eb058e5f963fbccb9029aae3fb6e15def7a93a
[ "MIT" ]
null
null
null
project/exact_distributions_covariance/exact_distributions_covariance_tools.py
juanhenao21/exact_distributions_financial
02eb058e5f963fbccb9029aae3fb6e15def7a93a
[ "MIT" ]
null
null
null
"""Exact distributions covariance tools module. The functions in the module do small repetitive tasks, that are used along the whole implementation. These tools improve the way the tasks are standardized in the modules that use them. This script requires the following modules: * os * pickle * typing *...
30.475452
87
0.567916
0
0
0
0
0
0
0
0
7,652
0.648804
70d8fcb9af98e95db88cc389a427fda9e1bc42e5
3,272
py
Python
Mission_to_Mars/Flask Application/scrape_mars.py
bigoshunane/Web-Scraping-Challenge-HM-10
98ae94b5db9246082fbb600e02b91064e5d3513e
[ "ADSL" ]
null
null
null
Mission_to_Mars/Flask Application/scrape_mars.py
bigoshunane/Web-Scraping-Challenge-HM-10
98ae94b5db9246082fbb600e02b91064e5d3513e
[ "ADSL" ]
null
null
null
Mission_to_Mars/Flask Application/scrape_mars.py
bigoshunane/Web-Scraping-Challenge-HM-10
98ae94b5db9246082fbb600e02b91064e5d3513e
[ "ADSL" ]
null
null
null
# Import Dependencies import pandas as pd from splinter import Browser from bs4 import BeautifulSoup as bs from webdriver_manager.chrome import ChromeDriverManager def scrape(): # Featured Image scrape executable_path = {'executable_path': ChromeDriverManager().install()} browser = Browser('chrome', **exe...
31.161905
74
0.645171
0
0
0
0
0
0
0
0
831
0.253973
70d940d807d775cf236b4b2decb10d2c5a7f64f8
15,391
py
Python
Snake.py
RodneyTheProgrammer/snkgame
4fdeb1a1c2c871f307ce0984949693506292ec1c
[ "BSD-2-Clause" ]
null
null
null
Snake.py
RodneyTheProgrammer/snkgame
4fdeb1a1c2c871f307ce0984949693506292ec1c
[ "BSD-2-Clause" ]
null
null
null
Snake.py
RodneyTheProgrammer/snkgame
4fdeb1a1c2c871f307ce0984949693506292ec1c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import curses import time import random from operator import getitem,attrgetter stdscr = curses.initscr() L,W= stdscr.getmaxyx() curses.start_color() curses.noecho() curses.cbreak() curses.curs_set(0) stdscr.keypad(1) L,W = stdscr.getmaxyx() normal,infiltrate,get2goal,runaway=0,1,2,3 def start_pag...
27.681655
84
0.523553
5,367
0.34871
0
0
0
0
0
0
544
0.035345
70d993efbc1f1e5a1f92a001568acf76b80283cd
266
py
Python
Jawaban/4.py
Rakhid16/pibiti-himatifa-2020
734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870
[ "Apache-2.0" ]
null
null
null
Jawaban/4.py
Rakhid16/pibiti-himatifa-2020
734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870
[ "Apache-2.0" ]
null
null
null
Jawaban/4.py
Rakhid16/pibiti-himatifa-2020
734ae59d0ffb3cf41d14fe4fbcaba7b317f5c870
[ "Apache-2.0" ]
null
null
null
kamus = {"elephant" : "gajah", "zebra" : "zebra", "dog" : "anjing", "camel" : "unta"} kata = input("Masukan kata berbahasa inggris : ") if kata in kamus: print("Terjemahan dari " + kata + " adalah " + kamus[kata]) else: print("Kata tersebt belum ada di kamus")
33.25
85
0.631579
0
0
0
0
0
0
0
0
153
0.575188
70d9fd3c3648f0a4459448b9661eee37f5884a7a
2,521
py
Python
pureskillgg_dsdk/tome/reader_fs.py
pureskillgg/dsdk
2e91a815dc06cc37ac8272d87014301c64c1b46e
[ "MIT" ]
null
null
null
pureskillgg_dsdk/tome/reader_fs.py
pureskillgg/dsdk
2e91a815dc06cc37ac8272d87014301c64c1b46e
[ "MIT" ]
1
2022-03-31T15:16:17.000Z
2022-03-31T19:38:05.000Z
pureskillgg_dsdk/tome/reader_fs.py
pureskillgg/dsdk
2e91a815dc06cc37ac8272d87014301c64c1b46e
[ "MIT" ]
null
null
null
import pandas as pd import structlog import rapidjson from .constants import ( get_page_key_fs, get_tome_manifest_key_fs, get_tome_path_fs, ) class TomeReaderFs: def __init__(self, *, root_path, prefix=None, tome_name, log=None, has_header=True): self._log = log if log is not None else structl...
30.373494
88
0.611265
2,364
0.937723
0
0
298
0.118207
0
0
377
0.149544
70da002befd824161b1b4d3ae29fa75a282470f6
7,713
py
Python
scripts/google_client.py
hypothe/dialogflow_ros
9e804acf31c384286ebf15e666a952740e2341d9
[ "MIT" ]
null
null
null
scripts/google_client.py
hypothe/dialogflow_ros
9e804acf31c384286ebf15e666a952740e2341d9
[ "MIT" ]
null
null
null
scripts/google_client.py
hypothe/dialogflow_ros
9e804acf31c384286ebf15e666a952740e2341d9
[ "MIT" ]
2
2021-09-09T07:33:27.000Z
2021-09-09T07:37:28.000Z
#!/usr/bin/env python # from google.cloud import speech from google.cloud import speech_v1p1beta1 as speech from google.cloud.speech_v1p1beta1 import enums from google.cloud.speech_v1p1beta1 import types from google.api_core.exceptions import InvalidArgument, OutOfRange import pyaudio import Queue import rospy import ...
40.594737
107
0.615714
6,984
0.905484
751
0.097368
0
0
0
0
2,763
0.358226
70de539c35a70303d9276df027cc058eb5448bce
6,158
py
Python
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/callback_life_cycle_hook_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/callback_life_cycle_hook_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-as/huaweicloudsdkas/v1/model/callback_life_cycle_hook_option.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class CallbackLifeCycleHookOption: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and ...
32.240838
124
0.650698
6,783
0.991377
0
0
3,714
0.542824
0
0
3,631
0.530693
70dec0077e310c765f9ecb7dbeebc0c662a8b197
9,621
py
Python
gui.py
TheAlienBee/Search_and_Apply
a62dcad45df09a38ab41c2f450a3202f3def6b3b
[ "MIT" ]
null
null
null
gui.py
TheAlienBee/Search_and_Apply
a62dcad45df09a38ab41c2f450a3202f3def6b3b
[ "MIT" ]
null
null
null
gui.py
TheAlienBee/Search_and_Apply
a62dcad45df09a38ab41c2f450a3202f3def6b3b
[ "MIT" ]
null
null
null
import tkinter as tk #tkinter is our gui lib. import webbrowser #webbrowser allows us to open user's default web browser. good for clicking on links. import jsonlines import io import genCoverLetter as gcl from Search_and_Apply.Search_and_Apply.spiders.IndeedSpider import searchFor from Search_and_Apply.Search_...
41.291845
122
0.624571
0
0
0
0
0
0
0
0
2,279
0.236878
70e03d9e1b93f27a85964cb57647f8629b96f070
3,900
py
Python
followthemoney/model.py
dschulz-pnnl/followthemoney
0b28240f156bfef0efa2ab636b95fb1bf62cd919
[ "MIT" ]
null
null
null
followthemoney/model.py
dschulz-pnnl/followthemoney
0b28240f156bfef0efa2ab636b95fb1bf62cd919
[ "MIT" ]
null
null
null
followthemoney/model.py
dschulz-pnnl/followthemoney
0b28240f156bfef0efa2ab636b95fb1bf62cd919
[ "MIT" ]
null
null
null
import os import yaml from followthemoney.types import registry from followthemoney.schema import Schema from followthemoney.mapping import QueryMapping from followthemoney.proxy import EntityProxy from followthemoney.exc import InvalidModel, InvalidData class Model(object): """A collection of schemata.""" ...
35.454545
79
0.610769
3,641
0.93359
328
0.084103
0
0
0
0
816
0.209231
70e0a6a13cc5a05c0b7485409fd0055a7d8eb46a
93
py
Python
constants.py
supro200/sdwan-auto-upgrade
3339d56203c678398da98ac2a6398f2edd66c245
[ "MIT" ]
2
2021-01-18T18:42:24.000Z
2021-02-01T01:21:18.000Z
constants.py
supro200/sdwan-auto-upgrade
3339d56203c678398da98ac2a6398f2edd66c245
[ "MIT" ]
null
null
null
constants.py
supro200/sdwan-auto-upgrade
3339d56203c678398da98ac2a6398f2edd66c245
[ "MIT" ]
null
null
null
JUMPHOST = "jumphost" VMANAGE = "10.121.6.35" AZURE_STORAGE_ACCOUNT = "azure-storage-account"
31
47
0.763441
0
0
0
0
0
0
0
0
46
0.494624
70e1500de54114c53300f7cf878cd9e1343b3276
1,423
py
Python
api_v1/urls.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
api_v1/urls.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
api_v1/urls.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, ) from .views import ( RegisterView, UserDetail, LocationList, LocationDetail, FavoritePlaceList, FavoritePlaceDetail, ObstacleList, ObstacleDetail, UserObstacleC...
35.575
83
0.683767
0
0
0
0
0
0
0
0
420
0.295151
70e3213acde89557a8953f051282e36ffe6c2163
5,868
py
Python
vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py
AIS-Bonn/vp-suite
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
[ "MIT" ]
3
2022-03-05T15:27:25.000Z
2022-03-25T18:47:35.000Z
vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py
Flunzmas/vp-suite
391570121b5bd9e3fd23aca9a0945a63c4173a24
[ "MIT" ]
16
2022-01-06T08:38:26.000Z
2022-02-23T19:19:28.000Z
vp_suite/models/precipitation_nowcasting/ef_conv_lstm.py
AIS-Bonn/vp-suite
479bd48185b9a93a6bc6bff2dfe226e9c65800d8
[ "MIT" ]
3
2022-02-07T22:34:45.000Z
2022-02-22T11:14:37.000Z
from collections import OrderedDict from vp_suite.model_blocks import ConvLSTM from vp_suite.models.precipitation_nowcasting.ef_blocks import Encoder_Forecaster class EF_ConvLSTM(Encoder_Forecaster): r""" This is a reimplementation of the Encoder-Forecaster model based on ConvLSTMs, as introduced in "Con...
53.834862
143
0.644853
5,703
0.971881
0
0
0
0
0
0
2,441
0.415985
70e3447c4bcf181b14f0d6dcbb687ab8db72f47b
560
py
Python
dataPreparation/src/so_helper.py
boneyag/msr-2022
624267325bdfc97bb93c89f205b3df1c3db279ac
[ "CC0-1.0" ]
null
null
null
dataPreparation/src/so_helper.py
boneyag/msr-2022
624267325bdfc97bb93c89f205b3df1c3db279ac
[ "CC0-1.0" ]
null
null
null
dataPreparation/src/so_helper.py
boneyag/msr-2022
624267325bdfc97bb93c89f205b3df1c3db279ac
[ "CC0-1.0" ]
null
null
null
from bs4 import BeautifulSoup from bs4 import SoupStrainer import sys def get_paragraphs(post_content): paragraphs = list() only_p_tags = SoupStrainer(["p", "h1", "h2", "h3", "h4", "h5", "h6", "li", ]) soup = BeautifulSoup(post_content, "lxml", parse_only=only_p_tags) for paragraph in soup: #replace all link...
21.538462
78
0.680357
0
0
0
0
0
0
0
0
208
0.371429
70e49ef3673c84333e4a25074d53220adfed4c79
23,920
py
Python
src/xiyanghong.py
1332927388/-
a470c92d489dd31f580dd9ad9e54783089034219
[ "Apache-2.0" ]
null
null
null
src/xiyanghong.py
1332927388/-
a470c92d489dd31f580dd9ad9e54783089034219
[ "Apache-2.0" ]
null
null
null
src/xiyanghong.py
1332927388/-
a470c92d489dd31f580dd9ad9e54783089034219
[ "Apache-2.0" ]
1
2020-06-08T12:14:01.000Z
2020-06-08T12:14:01.000Z
from iFinDPy import * import datetime as dt import time import datetime import pandas as pd import statsmodels.api as sm import numpy as np import talib def initialize(account): account.a_periods=10 # 持有日期上限 account.b_periods=3 # 持有日期上限 account.hold={} # 记录持有天数情况 account.holdSl=[] # 记录短期波段...
32.902338
181
0.552341
0
0
0
0
0
0
0
0
6,051
0.235429