hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
488892bb03ecb663538dd964ad7c41d6e64946b1
363
py
Python
phi.py
filiptronicek/constants
404b6dbff33cff006d8f38ff08f6a4c2eaa19cdf
[ "MIT" ]
null
null
null
phi.py
filiptronicek/constants
404b6dbff33cff006d8f38ff08f6a4c2eaa19cdf
[ "MIT" ]
null
null
null
phi.py
filiptronicek/constants
404b6dbff33cff006d8f38ff08f6a4c2eaa19cdf
[ "MIT" ]
null
null
null
nums = [0,1] def calcFi(): n1 = nums[-2] n2 = nums[-1] sM = n1 + n2 phi = sM/n2 nums.append(sM) return (phi) for i in range(45): if i % 15 == 0 or i == 44: phi = calcFi() print(phi) if i == 44: with open("outputs/phi.txt", "w") as f: f...
17.285714
51
0.429752
55
363
2.836364
0.581818
0.076923
0
0
0
0
0
0
0
0
0
0.083721
0.407714
363
21
52
17.285714
0.64186
0
0
0
0
0
0.043956
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
48891373f826c5ea6da77e9ee603e89703e2f555
3,657
py
Python
var_gp/datasets.py
uber-research/var-gp
1fc3935a84ff58ac529361c53c98e01338244062
[ "Apache-2.0" ]
11
2020-07-07T12:31:46.000Z
2021-04-15T13:38:35.000Z
var_gp/datasets.py
thangbui/var-gp
c445bb5f3b961d179c6741227200329a89517d91
[ "Apache-2.0" ]
1
2021-02-27T20:46:27.000Z
2021-04-22T16:48:10.000Z
var_gp/datasets.py
uber-research/var-gp
1fc3935a84ff58ac529361c53c98e01338244062
[ "Apache-2.0" ]
4
2020-07-06T20:25:34.000Z
2020-08-19T15:23:40.000Z
import os import glob import torch import numpy as np # from PIL import Image, UnidentifiedImageError from torch.utils.data import Dataset from torchvision.datasets import MNIST class ToyDataset(Dataset): def __init__(self, N_K=50, K=4, X=None, Y=None): super().__init__() if X is not None: self.data,...
26.309353
95
0.618266
569
3,657
3.810193
0.191564
0.101476
0.055812
0.03321
0.626384
0.626384
0.625461
0.578413
0.578413
0.578413
0
0.036128
0.220399
3,657
138
96
26.5
0.724307
0.07219
0
0.505495
0
0
0.011384
0
0
0
0
0
0.010989
1
0.164835
false
0
0.065934
0.043956
0.340659
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
488967f137108794225619fe7bf8270b7eb07b12
6,834
py
Python
apps/ouvertime_record/views.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
null
null
null
apps/ouvertime_record/views.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
3
2021-01-22T06:05:42.000Z
2021-02-16T10:06:36.000Z
apps/ouvertime_record/views.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponse from django.views.generic.list import ListView from django.views.generic.edit import UpdateView, DeleteView, CreateView from . models import OuverTimeRecord from django.contrib.auth.models import User from django.urls import reverse_lazy from django.views import View im...
29.205128
87
0.655692
803
6,834
5.510585
0.305106
0.022373
0.038644
0.025989
0.35774
0.285198
0.246102
0.246102
0.246102
0.231638
0
0.007276
0.235733
6,834
233
88
29.330472
0.839939
0.123354
0
0.258503
0
0
0.102405
0.023541
0
0
0
0.004292
0
1
0.068027
false
0
0.102041
0.006803
0.353742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
488992b28e85b2d366e7bc829af9dec94065afc7
1,256
py
Python
second_HW/second_hw_2.py
alex123012/Bioinf_HW
c2689715a8579b2ddccbf5dd1f4aed7dd4a52baa
[ "MIT" ]
null
null
null
second_HW/second_hw_2.py
alex123012/Bioinf_HW
c2689715a8579b2ddccbf5dd1f4aed7dd4a52baa
[ "MIT" ]
null
null
null
second_HW/second_hw_2.py
alex123012/Bioinf_HW
c2689715a8579b2ddccbf5dd1f4aed7dd4a52baa
[ "MIT" ]
1
2021-04-12T11:29:27.000Z
2021-04-12T11:29:27.000Z
import unittest as ut import time class test_magick(ut.TestCase): def test_us(self): list_r = list(range(0, 100)) for i in list_r: with self.subTest(case=i): self.assertEqual(magick(i), i) def magick(x=None, start=0, stop=100): yes = ['да', 'д', 'yes', 'y', 'ye']...
20.933333
90
0.535032
161
1,256
4.055901
0.397516
0.128637
0.079632
0.087289
0.353752
0.324655
0.275651
0.275651
0.275651
0.156202
0
0.078454
0.320064
1,256
59
91
21.288136
0.686183
0.004777
0
0.3
0
0
0.085737
0
0
0
0
0
0.025
1
0.1
false
0
0.05
0
0.2
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f7d0aa4d2bf1ce8c8c464a58fa65d15faebfee4
4,593
py
Python
research/vrgripper/episode_to_transitions.py
Xtuden-com/tensor2robot
a3674958a046de711e37445d39afd4e529d8dd09
[ "Apache-2.0" ]
1
2021-10-18T01:27:04.000Z
2021-10-18T01:27:04.000Z
research/vrgripper/episode_to_transitions.py
Xtuden-com/tensor2robot
a3674958a046de711e37445d39afd4e529d8dd09
[ "Apache-2.0" ]
null
null
null
research/vrgripper/episode_to_transitions.py
Xtuden-com/tensor2robot
a3674958a046de711e37445d39afd4e529d8dd09
[ "Apache-2.0" ]
1
2020-09-21T08:29:02.000Z
2020-09-21T08:29:02.000Z
# coding=utf-8 # Copyright 2020 The Tensor2Robot Authors. # # 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 ...
34.533835
80
0.735249
644
4,593
5.037267
0.28882
0.025894
0.018496
0.014797
0.218866
0.126387
0.077065
0.077065
0.059186
0.034525
0
0.013024
0.164163
4,593
132
81
34.795455
0.831988
0.31548
0
0.166667
0
0
0.034382
0
0
0
0
0
0
1
0.038462
false
0
0.089744
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f7dbf265364f7b257659f2bfab6a7eebd22f8b8
44,533
py
Python
flopy/plot/map.py
mwtoews/flopy
e566845172380e3eae06981ca180923d2362ee56
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/plot/map.py
mwtoews/flopy
e566845172380e3eae06981ca180923d2362ee56
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/plot/map.py
mwtoews/flopy
e566845172380e3eae06981ca180923d2362ee56
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
import numpy as np from ..discretization import StructuredGrid, UnstructuredGrid from ..utils import geometry try: import matplotlib.pyplot as plt import matplotlib.colors from matplotlib.collections import PathCollection, LineCollection from matplotlib.path import Path except (ImportError, ModuleNotFo...
33.110037
79
0.545663
5,080
44,533
4.729921
0.129134
0.011986
0.010113
0.008116
0.473406
0.434119
0.40561
0.392376
0.376269
0.358582
0
0.008265
0.369681
44,533
1,344
80
33.134673
0.847738
0.355871
0
0.335329
0
0
0.063273
0.004946
0
0
0
0
0.005988
1
0.031437
false
0.001497
0.026946
0
0.095808
0.001497
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f7e5bc7a0c9e42e5042391f78e81e9e318258c0
9,342
py
Python
pacu/modules/rds__explore_snapshots/main.py
damienjburks/pacu
5853f9668a7d78945c40d403bf88a47101ba2b3d
[ "BSD-3-Clause" ]
1
2021-12-22T22:39:49.000Z
2021-12-22T22:39:49.000Z
pacu/modules/rds__explore_snapshots/main.py
damienjburks/pacu
5853f9668a7d78945c40d403bf88a47101ba2b3d
[ "BSD-3-Clause" ]
null
null
null
pacu/modules/rds__explore_snapshots/main.py
damienjburks/pacu
5853f9668a7d78945c40d403bf88a47101ba2b3d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse from pathlib import Path import json import random import string from botocore.exceptions import ClientError module_info = { "name": "rds__explore_snapshots", "author": "Alexander Morgenstern alexander.morgenstern@rhinosecuritylabs.com", "category": "EXFIL", "one...
34.988764
515
0.650717
976
9,342
6.092213
0.23668
0.034813
0.064581
0.021191
0.413219
0.35032
0.289606
0.265389
0.249243
0.249243
0
0.001972
0.239991
9,342
266
516
35.120301
0.835493
0.006423
0
0.377193
0
0.008772
0.264015
0.02555
0
0
0
0
0
1
0.061404
false
0.035088
0.026316
0
0.162281
0.153509
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f7fca20b708629aa57b407552bb18e0a01540bc
9,846
py
Python
mechroutines/trans/_routines/lj.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
mechroutines/trans/_routines/lj.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
mechroutines/trans/_routines/lj.py
sjklipp/mechdriver
17c3d9bc82116954b331955e87a60e9adc5e1de9
[ "Apache-2.0" ]
null
null
null
""" Executes the automation part of 1DMin """ import statistics import autofile from autorun import run_script from mechroutines.trans._routines import _geom as geom from mechroutines.trans._routines import _gather as gather from mechroutines.trans.runner import lj as lj_runner from mechlib import filesys from mechlib...
36.065934
79
0.683628
1,405
9,846
4.439858
0.165125
0.025008
0.043604
0.022924
0.319654
0.241584
0.213209
0.189965
0.141712
0.131132
0
0.004635
0.23309
9,846
272
80
36.198529
0.821481
0.165245
0
0.19186
0
0
0.091879
0.004661
0
0
0
0
0.005814
1
0.023256
false
0
0.052326
0
0.081395
0.075581
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f812a049e2bbe774645e522bf2bfebedf410de7
451
py
Python
flaskerize/schematics/flask-api/files/{{ name }}.template/commands/seed_command.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
1
2020-11-29T13:00:48.000Z
2020-11-29T13:00:48.000Z
flaskerize/schematics/flask-api/files/{{ name }}.template/commands/seed_command.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
null
null
null
flaskerize/schematics/flask-api/files/{{ name }}.template/commands/seed_command.py
darkguinito/myflaskerize
e76e3e4b6c91e2859b974aabf82e0ea5539bcf1b
[ "BSD-3-Clause" ]
null
null
null
from flask_script import Command from app import db class SeedCommand(Command): """ Seed the DB.""" def run(self): if ( input( "Are you sure you want to drop all tables and recreate? (y/N)\n" ).lower() == "y" ): print("Dropping tables...") ...
22.55
80
0.501109
52
451
4.288462
0.692308
0.06278
0
0
0
0
0
0
0
0
0
0
0.379157
451
19
81
23.736842
0.796429
0.026608
0
0
0
0
0.240741
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f8670b2eab9bbcfcba5a2bac0b023bbc676fc76
8,724
py
Python
plivo/rest/client.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
null
null
null
plivo/rest/client.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
10
2020-10-19T06:47:45.000Z
2021-06-25T15:41:34.000Z
plivo/rest/client.py
vaibhav-plivo/plivo-python
e4ae7559ba4647ac0e1af523c94d49a3fd6a24ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Core client, used for all API requests. """ import os import platform from collections import namedtuple from plivo.base import ResponseObject from plivo.exceptions import (AuthenticationError, InvalidRequestError, PlivoRestError, PlivoServerError, ...
38.09607
79
0.568432
895
8,724
5.364246
0.211173
0.059988
0.029994
0.018746
0.211831
0.200583
0.181212
0.15351
0.12185
0.059988
0
0.005579
0.342503
8,724
228
80
38.263158
0.831416
0.032669
0
0.160221
0
0
0.095187
0.002986
0
0
0
0
0
1
0.055249
false
0
0.060773
0.01105
0.165746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f86c0ab72e5425a1aa9524504a9484391892c01
4,301
py
Python
Project2/part3/part3controller.py
tyrenyabe/CSE461
8a0ae4b4a3f41d659ff784488037583c638d8c43
[ "MIT" ]
null
null
null
Project2/part3/part3controller.py
tyrenyabe/CSE461
8a0ae4b4a3f41d659ff784488037583c638d8c43
[ "MIT" ]
null
null
null
Project2/part3/part3controller.py
tyrenyabe/CSE461
8a0ae4b4a3f41d659ff784488037583c638d8c43
[ "MIT" ]
null
null
null
# Part 3 of UWCSE's Project 3 # # based on Lab Final from UCSC's Networking Class # which is based on of_tutorial by James McCauley from pox.core import core import pox.openflow.libopenflow_01 as of from pox.lib.addresses import IPAddr, IPAddr6, EthAddr log = core.getLogger() #statically allocate a routing table for...
29.662069
86
0.670077
672
4,301
4.151786
0.260417
0.028674
0.032258
0.028674
0.401075
0.374552
0.36595
0.36595
0.357706
0.297133
0
0.053851
0.196931
4,301
144
87
29.868056
0.753909
0.231342
0
0.333333
0
0
0.08642
0
0
0
0.003704
0
0
1
0.111111
false
0
0.033333
0
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f8acfd21a05c8bfceaaf10a028a424c71fb2404
201
py
Python
Python/ex_semanal.py
ArikBartzadok/beecrowd-challenges
ddb0453d1caa75c87c4b3ed6a40309ab99da77f2
[ "MIT" ]
null
null
null
Python/ex_semanal.py
ArikBartzadok/beecrowd-challenges
ddb0453d1caa75c87c4b3ed6a40309ab99da77f2
[ "MIT" ]
null
null
null
Python/ex_semanal.py
ArikBartzadok/beecrowd-challenges
ddb0453d1caa75c87c4b3ed6a40309ab99da77f2
[ "MIT" ]
null
null
null
n = int(input()) l = [] c = 0 for i in range(0,n): p = input() print('c -> ', c) if p in l: c += 1 l.append(p) print("Falta(m) {} pomekon(s).".format(151 - (n-c)))
12.5625
52
0.41791
35
201
2.4
0.6
0.047619
0
0
0
0
0
0
0
0
0
0.045802
0.348259
201
16
52
12.5625
0.59542
0
0
0
0
0
0.138614
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f8c3e1625cd1f82b18d5c123f61e8f119682b0c
507
py
Python
Day1/day1.py
leblancpj/AoC21
12ceb0fa56245ca803708c042dc72bdefb38e298
[ "MIT" ]
null
null
null
Day1/day1.py
leblancpj/AoC21
12ceb0fa56245ca803708c042dc72bdefb38e298
[ "MIT" ]
null
null
null
Day1/day1.py
leblancpj/AoC21
12ceb0fa56245ca803708c042dc72bdefb38e298
[ "MIT" ]
null
null
null
# Given a series of input numbers, count the number of times # the values increase from one to the next. import pandas as pd # Part 1 sample = pd.read_csv(".\Day1\sample.txt", header=None, squeeze=True) input = pd.read_csv(".\Day1\input.txt", header=None, squeeze=True) #print(type(input)) ans = input.diff(1).apply(l...
28.166667
69
0.706114
88
507
4.034091
0.545455
0.033803
0.050704
0.073239
0.259155
0.123944
0.123944
0.123944
0
0
0
0.022573
0.126233
507
17
70
29.823529
0.778781
0.30572
0
0
0
0
0.09593
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f8f1cd00d467ef37a750fa1bf46d98ba2fd1d86
988
py
Python
901-1000/971.flip-binary-tree-to-match-preorder-traversal.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
901-1000/971.flip-binary-tree-to-match-preorder-traversal.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
901-1000/971.flip-binary-tree-to-match-preorder-traversal.py
guangxu-li/leetcode-in-python
8a5a373b32351500342705c141591a1a8f5f1cb1
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=971 lang=python3 # # [971] Flip Binary Tree To Match Preorder Traversal # # @lc code=start # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right from collect...
25.333333
78
0.526316
116
988
4.448276
0.456897
0.096899
0.116279
0.073643
0
0
0
0
0
0
0
0.017516
0.364372
988
38
79
26
0.80414
0.285425
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f8f8270104be3d27614c913a1c738aa92c207d4
5,799
py
Python
hydraulics/ifcb/classifier.py
axiom-data-science/hydraulics
15031d9694cfe1e552c260079ff60a9faa101ba2
[ "MIT" ]
1
2021-09-14T23:07:24.000Z
2021-09-14T23:07:24.000Z
hydraulics/ifcb/classifier.py
axiom-data-science/hydraulics
15031d9694cfe1e552c260079ff60a9faa101ba2
[ "MIT" ]
null
null
null
hydraulics/ifcb/classifier.py
axiom-data-science/hydraulics
15031d9694cfe1e552c260079ff60a9faa101ba2
[ "MIT" ]
null
null
null
import base64 import datetime import io import json import os import requests from collections import namedtuple from urllib.parse import urlparse import faust import numpy as np import keras_preprocessing.image as keras_img from avro import schema from confluent_kafka import avro from confluent_kafka.avro import Avr...
31.862637
113
0.682876
734
5,799
5.186649
0.294278
0.051221
0.023641
0.010244
0.098765
0.03047
0.026793
0.026793
0.026793
0.026793
0
0.014042
0.201759
5,799
181
114
32.038674
0.808382
0.116572
0
0
0
0.007463
0.129914
0.024175
0
0
0
0
0
1
0.022388
false
0
0.141791
0
0.179104
0.007463
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f8fb26b38bd837cc1990577bdd9ed4c340e3f51
1,296
py
Python
upcfcardsearch/c260.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c260.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
upcfcardsearch/c260.py
ProfessorSean/Kasutamaiza
7a69a69258f67bbb88bebbac6da4e6e1434947e6
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.utils import get class c260(commands.Cog, name="c260"): def __init__(self, bot: commands.Bot): self.bot = bot @commands.command(name='Yikilth_Lair_of_the_Abyssals', aliases=['c260', 'Abyssal_11']) async def example_embed(self, ctx): ...
56.347826
442
0.706019
193
1,296
4.658031
0.533679
0.036707
0.043382
0.053393
0.080089
0
0
0
0
0
0
0.035815
0.181327
1,296
23
443
56.347826
0.811499
0
0
0
0
0.055556
0.466461
0.037779
0
0
0.006168
0
0
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f960fdd0b967c14a7efcefaab212681557a8931
3,290
py
Python
hiburn/config.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
8
2020-04-06T08:47:26.000Z
2021-02-23T17:10:12.000Z
hiburn/config.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
2
2020-05-14T16:59:33.000Z
2021-06-19T23:48:35.000Z
hiburn/config.py
OpenHisiIpCam/hiburn
71d8ab3c5a87401a60cf125d441e25f8b7d3282c
[ "MIT" ]
2
2020-05-02T22:49:01.000Z
2020-05-12T02:39:26.000Z
import copy import json import logging from . import utils # ------------------------------------------------------------------------------------------------- def _update_config_by_args(config, args, prefix=""): for k, v in config.items(): arg_name = prefix + k.replace("-", "_") if isinstance(v,...
38.255814
99
0.50152
368
3,290
4.214674
0.217391
0.096712
0.036106
0.05158
0.31528
0.252095
0.140554
0.107028
0.059317
0
0
0.002713
0.215805
3,290
85
100
38.705882
0.59845
0.204863
0
0.166667
0
0
0.051823
0
0
0
0
0
0
1
0.1
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f9664a20f8e76c49fc5cef19c2bbf5957b352e2
746
py
Python
examples/4_randomized_timing.py
jonikula/pyosmo
ab2ec1d97dd3e0faf5e2b62ac7bcfc1042e60575
[ "MIT" ]
null
null
null
examples/4_randomized_timing.py
jonikula/pyosmo
ab2ec1d97dd3e0faf5e2b62ac7bcfc1042e60575
[ "MIT" ]
null
null
null
examples/4_randomized_timing.py
jonikula/pyosmo
ab2ec1d97dd3e0faf5e2b62ac7bcfc1042e60575
[ "MIT" ]
null
null
null
from osmo import Osmo import random import time class PositiveCalculator: @staticmethod def guard_something(): return True @staticmethod def step_something(): print("1. inside step") # Random wait can be added inside test step wait_ms = random.randint(200, 1000) ...
22.606061
64
0.630027
92
746
5.021739
0.402174
0.077922
0.056277
0.064935
0.337662
0.155844
0.155844
0.155844
0.155844
0
0
0.044118
0.270777
746
32
65
23.3125
0.805147
0.120643
0
0.227273
0
0
0.12098
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0.045455
0.363636
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f9e12faf187ffa4348ad42a554949db236c4d07
2,393
py
Python
tests/utils/test_utils.py
OpenLMIS-Angola/superset-patchup
b20a56b274fb4b2f5f765e5d91c290a28bccf635
[ "Apache-2.0" ]
null
null
null
tests/utils/test_utils.py
OpenLMIS-Angola/superset-patchup
b20a56b274fb4b2f5f765e5d91c290a28bccf635
[ "Apache-2.0" ]
null
null
null
tests/utils/test_utils.py
OpenLMIS-Angola/superset-patchup
b20a56b274fb4b2f5f765e5d91c290a28bccf635
[ "Apache-2.0" ]
null
null
null
""" This module tests utils """ from unittest.mock import patch, MagicMock from superset_patchup.utils import get_complex_env_var, is_safe_url, is_valid_provider from superset_patchup.oauth import CustomSecurityManager class TestUtils: """ Class to test the utils module """ @patch("superset_patchup....
34.681159
86
0.662766
304
2,393
4.976974
0.299342
0.052875
0.068738
0.0846
0.324521
0.270324
0.237277
0.237277
0.237277
0.206213
0
0
0.252403
2,393
68
87
35.191176
0.845724
0.236523
0
0.242424
0
0
0.150865
0.056052
0
0
0
0
0.363636
1
0.121212
false
0
0.090909
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f9e8adaed53c25080171ad9a2dca161824d3a7c
14,215
py
Python
xitorch/_tests/test_integrate.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_tests/test_integrate.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
xitorch/_tests/test_integrate.py
Jaikinator/xitorch
053db8d27a7777baa7f572c2d37004e788ff4cb8
[ "MIT" ]
null
null
null
import random import torch import numpy as np from torch.autograd import gradcheck, gradgradcheck import xitorch as xt from xitorch.integrate import quad, solve_ivp, mcquad, SQuad from xitorch._tests.utils import device_dtype_float_test ################################## quadrature ############################...
35.987342
116
0.578825
1,924
14,215
4.141892
0.12474
0.052453
0.062241
0.085582
0.543356
0.511858
0.461789
0.446731
0.394278
0.332539
0
0.040405
0.249596
14,215
394
117
36.07868
0.706665
0.047204
0
0.478964
0
0
0.026682
0
0
0
0
0
0.067961
1
0.116505
false
0
0.022654
0.045307
0.239482
0.019417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa2447d022693958e9639f974d13fb89a57e078
3,201
py
Python
custom/logistics/api.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
custom/logistics/api.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
custom/logistics/api.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
import requests from custom.api.utils import EndpointMixin class MigrationException(Exception): pass class LogisticsEndpoint(EndpointMixin): models_map = {} def __init__(self, base_uri, username, password): self.base_uri = base_uri.rstrip('/') self.username = username self.passw...
41.038462
108
0.650109
367
3,201
5.47139
0.215259
0.031375
0.043825
0.062749
0.248008
0.224104
0.140438
0.036853
0
0
0
0.004453
0.228366
3,201
77
109
41.571429
0.808502
0
0
0
0
0
0.084036
0
0
0
0
0
0
1
0.15
false
0.05
0.033333
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa38b8004759e97015cce47bf001559adb56f2e
3,426
py
Python
functionaltests/api/v2/test_pool.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
functionaltests/api/v2/test_pool.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
functionaltests/api/v2/test_pool.py
kiall/designate-py3
2b135d64bb0ced77327a563e037b270d1e5ca308
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # 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/lice...
36.83871
75
0.700525
458
3,426
4.995633
0.283843
0.047203
0.076923
0.091783
0.488636
0.424388
0.31993
0.31993
0.301136
0.301136
0
0.017838
0.19819
3,426
92
76
37.23913
0.815071
0.182137
0
0.293103
0
0
0.040919
0
0
0
0
0
0.241379
1
0.189655
false
0
0.086207
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa61d901e4c25cb458862fd5a69f1d44a079c88
3,864
py
Python
molsysmt/tools/items.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
molsysmt/tools/items.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
molsysmt/tools/items.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
import numpy as np import re as re from molsysmt._private_tools.lists_and_tuples import is_list_or_tuple def compatibles_for_a_single_molecular_system(items): from molsysmt.basic.get_form import get_form from molsysmt.basic.get import get from molsysmt.forms import dict_has output = True if not ...
26.465753
93
0.626812
521
3,864
4.355086
0.138196
0.070956
0.074923
0.081093
0.547818
0.460115
0.446893
0.356985
0.308506
0.308506
0
0.001804
0.282867
3,864
145
94
26.648276
0.817034
0
0
0.457143
0
0
0.042195
0
0
0
0
0
0
1
0.066667
false
0
0.161905
0
0.304762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa63eda0afd91d2591e9bd285c10c6a046d2252
5,021
py
Python
runner/monitor.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
null
null
null
runner/monitor.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
null
null
null
runner/monitor.py
wynterl/federated-learning-lib
5d6cc0a5f4a45d97525ff2dec328b3901b71b7a3
[ "IBM-pibs" ]
1
2021-05-11T05:09:30.000Z
2021-05-11T05:09:30.000Z
#!/usr/bin/env python3 import argparse import subprocess as sp import select import sys import time import yaml if __name__ == '__main__': """ We can daemonize our connections to our remote machines, list the FL processes on remote machines, or kill FL processes on remote machines. We can either pass a s...
44.04386
146
0.54292
665
5,021
4.004511
0.237594
0.018776
0.038303
0.054074
0.407811
0.37101
0.335712
0.326699
0.289148
0.254976
0
0.001682
0.289584
5,021
113
147
44.433628
0.744884
0.040829
0
0.228261
0
0.076087
0.298316
0.085771
0
0
0
0
0
1
0
false
0
0.065217
0
0.065217
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa73ff97a0db35ad4fb506ba2a01779a69e92b2
5,984
py
Python
crawling/data_crawler_set.py
CLUG-kr/cau_hashkeyword
f2b747ce8c5705ea58fd94d2a1d10110d6f4f511
[ "MIT" ]
5
2019-01-20T06:12:47.000Z
2019-06-27T13:29:26.000Z
crawling/data_crawler_set.py
AllyHyeseongKim/cau_hashkeyword
1050dbc74d28765aec6e5870d6f3dae325f5caad
[ "MIT" ]
4
2019-01-10T14:58:45.000Z
2019-05-16T05:02:53.000Z
crawling/data_crawler_set.py
AllyHyeseongKim/cau_hashkeyword
1050dbc74d28765aec6e5870d6f3dae325f5caad
[ "MIT" ]
1
2019-02-20T09:11:54.000Z
2019-02-20T09:11:54.000Z
# coding: utf-8 # In[2]: import firebase_admin from firebase_admin import credentials from firebase_admin import db # Fetch the service account key JSON file contents cred = credentials.Certificate('/Users/Solomon/Desktop/cau-hashkeyword-serviceAccountKey.json') # Initialize the app with a service account, granti...
30.070352
156
0.723429
943
5,984
4.321315
0.281018
0.033129
0.01546
0.039755
0.240982
0.193865
0.193865
0.156564
0.099877
0.081718
0
0.0225
0.116143
5,984
198
157
30.222222
0.747967
0.127005
0
0.149533
0
0.046729
0.221623
0.037001
0
0
0
0
0
1
0
false
0.009346
0.084112
0
0.084112
0.037383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa87cb16c669518081acc3c339dbfde1687dc05
8,754
py
Python
tests/test_input_output.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
1
2020-11-20T17:17:50.000Z
2020-11-20T17:17:50.000Z
tests/test_input_output.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
12
2020-11-19T05:22:13.000Z
2020-12-15T03:50:33.000Z
tests/test_input_output.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
null
null
null
import unittest import os import pathlib import h5py from desc.input_reader import InputReader from desc.equilibrium_io import hdf5Writer, hdf5Reader from desc.configuration import Configuration, Equilibrium #from desc.input_output import read_input #class TestIO(unittest.TestCase): # """tests for input/output fun...
37.09322
79
0.629312
1,051
8,754
5.09039
0.157945
0.04486
0.026916
0.033645
0.511028
0.371589
0.28785
0.215327
0.104299
0.104299
0
0.008564
0.253027
8,754
235
80
37.251064
0.809604
0.120288
0
0.348315
0
0
0.098149
0.002868
0
0
0
0
0.252809
1
0.117978
false
0.016854
0.039326
0
0.179775
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fa98703634598fbfefb544679b794421049f04d
880
py
Python
backend/vcdat/test_end_to_end.py
CDAT/vcdat
0d257da607bd2ed064917922af29247c6c0aaae1
[ "BSD-3-Clause" ]
4
2018-03-29T01:51:37.000Z
2019-09-11T14:07:34.000Z
backend/vcdat/test_end_to_end.py
CDAT/vcdat
0d257da607bd2ed064917922af29247c6c0aaae1
[ "BSD-3-Clause" ]
101
2018-03-20T16:58:20.000Z
2019-11-25T19:26:52.000Z
backend/vcdat/test_end_to_end.py
CDAT/vcdat
0d257da607bd2ed064917922af29247c6c0aaae1
[ "BSD-3-Clause" ]
1
2018-10-22T20:50:25.000Z
2018-10-22T20:50:25.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC import pytest # Declare Fixtures # -------------------------------------------------------------------- @pytest.fixture() def driver(): driver = webdriver.Chrome() d...
26.666667
78
0.621591
101
880
5.277228
0.504951
0.067542
0.078799
0.078799
0.213884
0.120075
0.120075
0.120075
0
0
0
0.006519
0.128409
880
32
79
27.5
0.688396
0.2125
0
0.1
0
0
0.152616
0.037791
0
0
0
0
0.05
1
0.15
false
0
0.2
0
0.35
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fad4b2d42f41ae40846094b93b5343afe778c0f
2,359
py
Python
charmcraft/manifest.py
aznashwan/charmcraft
9310ddaf800307b7ff96438173766309f7cb616f
[ "Apache-2.0" ]
32
2020-05-21T09:19:52.000Z
2022-03-31T17:05:59.000Z
charmcraft/manifest.py
aznashwan/charmcraft
9310ddaf800307b7ff96438173766309f7cb616f
[ "Apache-2.0" ]
417
2020-05-11T14:06:02.000Z
2022-03-31T16:15:59.000Z
charmcraft/manifest.py
aznashwan/charmcraft
9310ddaf800307b7ff96438173766309f7cb616f
[ "Apache-2.0" ]
44
2020-05-27T09:33:42.000Z
2022-03-30T14:34:03.000Z
# Copyright 2020-2021 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
31.039474
75
0.693514
294
2,359
5.462585
0.486395
0.047945
0.024284
0.019925
0.027397
0.027397
0
0
0
0
0
0.006532
0.22128
2,359
75
76
31.453333
0.867719
0.481136
0
0
0
0
0.094178
0.017979
0
0
0
0
0
1
0.027778
false
0
0.166667
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fae14b3638b39a8b273b347bee6855c94403d97
5,034
py
Python
ricnn/RICNN.py
jiangruoqiao/RICNN_RepeatGongCheng-sPaper
6e8ee6955f6c1c60aa5c32e341664fe350902482
[ "Apache-2.0" ]
33
2018-12-02T12:15:39.000Z
2021-12-06T14:10:32.000Z
ricnn/RICNN.py
jiangruoqiao/RICNN_RepeatGongCheng-sPaper
6e8ee6955f6c1c60aa5c32e341664fe350902482
[ "Apache-2.0" ]
5
2019-02-10T20:04:00.000Z
2021-07-03T12:52:20.000Z
ricnn/RICNN.py
jiangruoqiao/RICNN_RepeatGongCheng-sPaper
6e8ee6955f6c1c60aa5c32e341664fe350902482
[ "Apache-2.0" ]
9
2018-12-02T12:39:51.000Z
2020-05-07T08:30:38.000Z
#ecoding:utf-8 import DatasetLoader import RICNNModel import tensorflow as tf import sys import numpy as np import regularization as re import os import trainLoader os.environ["CUDA_VISIBLE_DEVICES"] = "1" TRAIN_FILENAME = '/media/liuqi/Files/dataset/test_mnist_ricnn_raw_100.h5' TEST_FILENAME = '/media/liuqi/Files/da...
43.025641
106
0.585419
599
5,034
4.57429
0.260434
0.046715
0.032847
0.021898
0.292336
0.24708
0.171898
0.171898
0.171898
0.137591
0
0.023564
0.325586
5,034
116
107
43.396552
0.783505
0.01768
0
0.235849
0
0
0.086842
0.047571
0
0
0
0
0.009434
1
0
false
0
0.075472
0
0.075472
0.066038
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fae2120fe92d529be7069156c9a883d0d04d5b4
820
py
Python
mcot/core/_scripts/gcoord/split.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
mcot/core/_scripts/gcoord/split.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
mcot/core/_scripts/gcoord/split.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Extract radial, sulcal, and gyral orientations from gyral coordinate NIFTI file""" def main(): import argparse parser = argparse.ArgumentParser("Extract radial, sulcal, and gyral dyads from a coord NIFTI file") parser.add_argument('coord', help='name of the coord file') parse...
45.555556
110
0.704878
113
820
5.053097
0.433628
0.078809
0.148862
0.094571
0.301226
0.157618
0.157618
0.157618
0
0
0
0
0.156098
820
17
111
48.235294
0.825145
0.121951
0
0
0
0
0.467787
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6faffdb266238fb5626bfa67ef31c69f49889449
1,264
py
Python
tasks/swipe_card.py
devBezel/among_us_tasker
dd13c13a7d2d776143522ccfa27696d69524707b
[ "MIT" ]
null
null
null
tasks/swipe_card.py
devBezel/among_us_tasker
dd13c13a7d2d776143522ccfa27696d69524707b
[ "MIT" ]
null
null
null
tasks/swipe_card.py
devBezel/among_us_tasker
dd13c13a7d2d776143522ccfa27696d69524707b
[ "MIT" ]
null
null
null
import pyautogui import time import datetime class SwipeCard: def __init__(self): self.resolution = pyautogui.size() def resolve_task(self): try: hide_card_position = pyautogui.center( pyautogui.locateOnScreen(f"assets/tasks/swipe_card/main.png", ...
29.395349
79
0.557753
136
1,264
4.985294
0.433824
0.141593
0.053097
0.079646
0.271386
0.20944
0.20944
0.20944
0.20944
0.20944
0
0.020606
0.34731
1,264
43
80
29.395349
0.801212
0
0
0
0
0
0.104348
0.079051
0
0
0
0
0
1
0.121212
false
0
0.090909
0.030303
0.30303
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fb43ce461d11d32148db76a6319e68f78bca70e
3,499
py
Python
MBTA/step1_group.py
404nofound/MBTA_Python
eb5c1bb3fe5f2640dc42949402955c0f73e1c8b1
[ "Apache-2.0" ]
1
2019-04-15T04:39:13.000Z
2019-04-15T04:39:13.000Z
MBTA/step1_group.py
404nofound/MBTA_Python
eb5c1bb3fe5f2640dc42949402955c0f73e1c8b1
[ "Apache-2.0" ]
null
null
null
MBTA/step1_group.py
404nofound/MBTA_Python
eb5c1bb3fe5f2640dc42949402955c0f73e1c8b1
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import os # Function, divided all data into groups by time period, like [1AM-3AM; 3AM-5Am ...] def binning(column, points, labels=None, month=0, stop=0): ''' Notes: The Row Data from MBTA webiste The Time format is from 3:00 to 27:00, means 3:00 AM today to ne...
38.877778
121
0.656759
531
3,499
4.27307
0.363465
0.035258
0.017629
0.029088
0.07933
0.07933
0.065227
0.065227
0
0
0
0.04513
0.240069
3,499
90
122
38.877778
0.808199
0.452701
0
0.054054
0
0
0.176375
0.072276
0
0
0
0
0
1
0.054054
false
0
0.081081
0
0.162162
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fb582e0d7d4fa8f242a226b9d6f0299b62ae75d
1,574
py
Python
tests/dags/test_job_operator_jinja.py
Fahadsaadullahkhan/KubernetesJobOperator
d96f9498667f937503d1e45142060904674f823f
[ "MIT" ]
null
null
null
tests/dags/test_job_operator_jinja.py
Fahadsaadullahkhan/KubernetesJobOperator
d96f9498667f937503d1e45142060904674f823f
[ "MIT" ]
null
null
null
tests/dags/test_job_operator_jinja.py
Fahadsaadullahkhan/KubernetesJobOperator
d96f9498667f937503d1e45142060904674f823f
[ "MIT" ]
null
null
null
from utils import default_args from datetime import timedelta from airflow import DAG from airflow_kubernetes_job_operator import ( KubernetesJobOperator, JobRunnerDeletePolicy, KubernetesLegacyJobOperator, ) dag = DAG( "kub-job-op-test-jinja", default_args=default_args, description="Test base ...
22.169014
60
0.653113
190
1,574
5.136842
0.484211
0.061475
0.058402
0.05123
0.063525
0
0
0
0
0
0
0.003185
0.202033
1,574
70
61
22.485714
0.773885
0.325921
0
0
0
0
0.198842
0.057915
0
0
0
0
0
1
0
false
0.025641
0.102564
0
0.102564
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fb591a1133b9da158581aa46d45eeabf6264943
6,458
py
Python
spacecapsule/executor.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
7
2022-02-18T03:14:43.000Z
2022-03-16T08:38:55.000Z
spacecapsule/executor.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
6
2022-03-10T12:16:59.000Z
2022-03-18T01:19:00.000Z
spacecapsule/executor.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
3
2022-02-17T08:40:33.000Z
2022-03-29T01:38:46.000Z
import json import jsonpath import paramiko from spacecapsule.history import store_experiment, rollback_command from subprocess import Popen, PIPE from spacecapsule.k8s import prepare_api, copy_tar_file_to_namespaced_pod, executor_command_inside_namespaced_pod from spacecapsule.template import chaosblade_prepare_scr...
48.19403
120
0.722979
803
6,458
5.524284
0.156912
0.040577
0.045086
0.051849
0.645401
0.580703
0.499324
0.449955
0.422227
0.36835
0
0.003743
0.172499
6,458
133
121
48.556391
0.826347
0.024156
0
0.287037
0
0
0.084657
0.033196
0
0
0
0.007519
0
1
0.074074
false
0
0.064815
0
0.166667
0.101852
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fb8b2f2709c0ffde62b6fe00c0e82cc6d0aeb7e
6,599
py
Python
faculty_xval/bin/jobs_cross_validation_executor.py
facultyai/faculty-xval
73468b6c7b2be1a21728ac01f0fe16e7c20110a0
[ "Apache-2.0" ]
4
2019-04-10T17:57:29.000Z
2019-04-17T16:13:49.000Z
faculty_xval/bin/jobs_cross_validation_executor.py
facultyai/faculty-xval
73468b6c7b2be1a21728ac01f0fe16e7c20110a0
[ "Apache-2.0" ]
4
2019-04-12T08:26:24.000Z
2019-04-20T06:21:09.000Z
faculty_xval/bin/jobs_cross_validation_executor.py
facultyai/faculty-xval
73468b6c7b2be1a21728ac01f0fe16e7c20110a0
[ "Apache-2.0" ]
1
2021-04-04T10:48:14.000Z
2021-04-04T10:48:14.000Z
import json import logging import os import click import numpy as np from keras import backend as K from keras.models import load_model as keras_load from sklearn.base import clone as sklearn_clone from sklearn.externals import joblib from faculty_xval.utilities import keras_clone_and_compile LOGGER = logging.getLo...
29.859729
86
0.641612
834
6,599
4.953237
0.22542
0.025176
0.009683
0.012588
0.218349
0.191237
0.162672
0.112806
0.112806
0.112806
0
0.00145
0.268526
6,599
220
87
29.995455
0.854361
0.363691
0
0.084211
0
0
0.141216
0
0
0
0
0
0
1
0.042105
false
0
0.105263
0
0.178947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fb91a03150c13b0761acd74d5215ec8826d01b1
2,262
py
Python
Solution.py
TheMLGuy/Simple-Web-Scraper
4b4a27e7af3c0cf7bbe5aea4036f52487666dd85
[ "Apache-2.0" ]
null
null
null
Solution.py
TheMLGuy/Simple-Web-Scraper
4b4a27e7af3c0cf7bbe5aea4036f52487666dd85
[ "Apache-2.0" ]
null
null
null
Solution.py
TheMLGuy/Simple-Web-Scraper
4b4a27e7af3c0cf7bbe5aea4036f52487666dd85
[ "Apache-2.0" ]
1
2021-02-06T15:47:04.000Z
2021-02-06T15:47:04.000Z
from bs4 import BeautifulSoup import requests import math import time start_url='https://www.macys.com' domain='https://www.macys.com' ''' get soup ''' def get_soup(url): # get contents from url content='' while content=='': try: content = requests.get(url, ...
29.763158
188
0.59107
309
2,262
4.249191
0.398058
0.026657
0.025133
0.024372
0.041889
0
0
0
0
0
0
0.02346
0.246242
2,262
75
189
30.16
0.746628
0.017683
0
0.135593
0
0.016949
0.176826
0.011532
0
0
0
0
0
1
0.118644
false
0.016949
0.067797
0
0.254237
0.067797
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fb98dc934dbec999a997933b56e8bd368d485a6
1,243
py
Python
contactnetwork/urls.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
21
2016-01-20T09:33:14.000Z
2021-12-20T19:19:45.000Z
contactnetwork/urls.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
75
2016-02-26T16:29:58.000Z
2022-03-21T12:35:13.000Z
contactnetwork/urls.py
pszgaspar/protwis
4989a67175ef3c95047d795c843cf6b9cf4141fa
[ "Apache-2.0" ]
77
2016-01-22T08:44:26.000Z
2022-02-01T15:54:56.000Z
from django.conf.urls import url from contactnetwork import views # from django.views.generic import TemplateView urlpatterns = [ url(r'^clusteringdata$', views.ClusteringData, name='clusteringdata'), url(r'^clustering$', views.Clustering, name='clustering'), url(r'^structure_clustering$', views.Clusterin...
51.791667
87
0.722446
129
1,243
6.930233
0.317829
0.067114
0.055928
0.064877
0.178971
0.178971
0.096197
0
0
0
0
0
0.100563
1,243
23
88
54.043478
0.799642
0.036203
0
0
0
0
0.370401
0.077759
0
0
0
0
0
1
0
false
0
0.105263
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fc12a48d65fbf13cb0aa456154ff1b694f2a2ec
3,142
py
Python
flink/test_flink.py
chekanskiy/bi-dataproc-initialization-actions
8682ca537153f50ab58dc081a9d222ec61f8aa8e
[ "Apache-2.0" ]
1
2020-10-28T01:19:16.000Z
2020-10-28T01:19:16.000Z
flink/test_flink.py
chekanskiy/bi-dataproc-initialization-actions
8682ca537153f50ab58dc081a9d222ec61f8aa8e
[ "Apache-2.0" ]
null
null
null
flink/test_flink.py
chekanskiy/bi-dataproc-initialization-actions
8682ca537153f50ab58dc081a9d222ec61f8aa8e
[ "Apache-2.0" ]
null
null
null
import unittest from parameterized import parameterized import os from integration_tests.dataproc_test_case import DataprocTestCase METADATA = 'flink-start-yarn-session=false' class FlinkTestCase(DataprocTestCase): COMPONENT = 'flink' INIT_ACTION = 'gs://dataproc-initialization-actions/flink/flink.sh' T...
37.404762
109
0.559198
356
3,142
4.699438
0.238764
0.01315
0.010759
0.014345
0.552899
0.534967
0.503885
0.494322
0.494322
0.461447
0
0.022457
0.277212
3,142
83
110
37.855422
0.714223
0
0
0.388889
0
0
0.1324
0.02578
0
0
0
0
0.013889
1
0.055556
false
0
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fc1e91d9ee7bd81df3b499400e72d6a896fdb9d
4,017
py
Python
regression/testplan/firmware_small.py
sld-columbia/nvdla-sw
79538ba1b52b040a4a4645f630e457fa01839e90
[ "Apache-2.0" ]
407
2017-10-25T14:24:25.000Z
2022-03-31T08:02:01.000Z
regression/testplan/firmware_small.py
sld-columbia/nvdla-sw
79538ba1b52b040a4a4645f630e457fa01839e90
[ "Apache-2.0" ]
227
2017-11-02T07:15:38.000Z
2022-01-19T02:29:51.000Z
regression/testplan/firmware_small.py
sld-columbia/nvdla-sw
79538ba1b52b040a4a4645f630e457fa01839e90
[ "Apache-2.0" ]
199
2017-10-26T07:26:40.000Z
2022-03-27T20:02:13.000Z
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # 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 conditions a...
42.284211
179
0.707742
557
4,017
5.041293
0.43447
0.024929
0.026709
0.039174
0.127137
0.048433
0.048433
0.048433
0.048433
0.048433
0
0.023467
0.204381
4,017
94
180
42.734043
0.855131
0.373911
0
0.090909
0
0.054545
0.407556
0
0
0
0
0
0
1
0.072727
false
0.018182
0.036364
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fc2f27600b643c88618b8d387f08bcf982ed303
790
py
Python
peaksql/datasets/narrowpeak.py
vanheeringen-lab/PeakSQL
b9290394605273b3a92815a8662fe22406254bfc
[ "MIT" ]
null
null
null
peaksql/datasets/narrowpeak.py
vanheeringen-lab/PeakSQL
b9290394605273b3a92815a8662fe22406254bfc
[ "MIT" ]
17
2020-02-22T19:05:00.000Z
2020-05-20T10:15:01.000Z
peaksql/datasets/narrowpeak.py
vanheeringen-lab/PeakSQL
b9290394605273b3a92815a8662fe22406254bfc
[ "MIT" ]
4
2020-02-28T12:47:18.000Z
2020-03-06T13:00:20.000Z
import numpy as np from typing import List, Tuple from .base import _DataSet class NarrowPeakDataSet(_DataSet): """ The NarrowPeakDataSet expects that narrowPeak files have been added to the DataBase. """ SELECT_LABEL = ( " Bed.ChromosomeId, Bed.ConditionId, BedVirtual_{assembly}.ChromStart,...
29.259259
88
0.653165
96
790
5.239583
0.614583
0.04175
0
0
0
0
0
0
0
0
0
0.003373
0.249367
790
26
89
30.384615
0.844857
0.106329
0
0
0
0
0.113043
0.047826
0
0
0
0
0
1
0.0625
false
0
0.1875
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fc517dc6f5fe11349e844166e7ed87944abff49
2,654
py
Python
strip_ansi_escape_codes.py
neilrjones/DevOps-Python-tools
12646de550ba296cf26e4a058e9a1cc1cc723c8f
[ "MIT" ]
1
2022-02-22T00:20:00.000Z
2022-02-22T00:20:00.000Z
strip_ansi_escape_codes.py
neilrjones/DevOps-Python-tools
12646de550ba296cf26e4a058e9a1cc1cc723c8f
[ "MIT" ]
null
null
null
strip_ansi_escape_codes.py
neilrjones/DevOps-Python-tools
12646de550ba296cf26e4a058e9a1cc1cc723c8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2018-09-09 23:06:06 +0100 (Sun, 09 Sep 2018) # # https://github.com/harisekhon/devops-python-tools # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and opt...
31.223529
119
0.637905
354
2,654
4.59887
0.483051
0.022113
0.036855
0.04914
0.068796
0.039312
0.039312
0
0
0
0
0.016227
0.256971
2,654
84
120
31.595238
0.809331
0.313866
0
0.090909
0
0
0.165733
0
0
0
0
0
0
1
0.022727
false
0
0.227273
0
0.272727
0.159091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fc9a185be50739efc8e58ecf9750c6070063f42
1,525
py
Python
5_AIOps/Mlflow.py
stormsinbrewing/Covid-19-Predictor
36bd768be8ac4aa81de86fe7f6bb592a7a711856
[ "MIT" ]
3
2021-05-22T02:03:57.000Z
2021-05-23T07:45:01.000Z
5_AIOps/Mlflow.py
stormsinbrewing/Covid-19-Predictor
36bd768be8ac4aa81de86fe7f6bb592a7a711856
[ "MIT" ]
null
null
null
5_AIOps/Mlflow.py
stormsinbrewing/Covid-19-Predictor
36bd768be8ac4aa81de86fe7f6bb592a7a711856
[ "MIT" ]
null
null
null
from verta import Client import pickle import mlflow import mlflow.sklearn from mlflow.tracking import MlflowClient import os def downloadArtifact(proj,exp_name,exp_run, serialization): client = Client("http://localhost:3000") proj = client.set_project(proj) expt = client.set_experiment(exp_name) run ...
36.309524
182
0.72459
185
1,525
5.794595
0.427027
0.025187
0.035448
0.04291
0.046642
0
0
0
0
0
0
0.00834
0.135082
1,525
41
183
37.195122
0.804397
0.188852
0
0
0
0
0.24
0.026939
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.272727
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fc9dcd451ff1e384504442cc9b3cb27f7b5e6af
3,832
py
Python
src/arclink/apps/misc/dump_db.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
94
2015-02-04T13:57:34.000Z
2021-11-01T15:10:06.000Z
src/arclink/apps/misc/dump_db.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
233
2015-01-28T15:16:46.000Z
2021-08-23T11:31:37.000Z
src/arclink/apps/misc/dump_db.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
95
2015-02-13T15:53:30.000Z
2021-11-02T14:54:54.000Z
#!/usr/bin/env python #***************************************************************************** # dump_db.py # # Dump inventory database in XML format # # (c) 2006 Andres Heinloo, GFZ Potsdam # (c) 2007 Mathias Hoffmann, GFZ Potsdam # # This program is free software; you can redistribute it and/or modify it # und...
33.034483
111
0.592119
393
3,832
5.687023
0.396947
0.021924
0.024609
0.034004
0.100671
0.081879
0.081879
0.081879
0.081879
0.038926
0
0.011429
0.269311
3,832
115
112
33.321739
0.786786
0.161795
0
0.2
0
0
0.066333
0
0
0
0
0
0
1
0.066667
false
0
0.08
0
0.253333
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fcab68471b1398dafce699d3dbe1a96583efdf6
4,248
py
Python
zerver/tests/test_realm_playgrounds.py
moazzammoriani/zulip
ca506f71dc8b733827a6bf532b107291b4839e55
[ "Apache-2.0" ]
3
2021-09-12T05:05:28.000Z
2021-12-30T09:45:20.000Z
zerver/tests/test_realm_playgrounds.py
moazzammoriani/zulip
ca506f71dc8b733827a6bf532b107291b4839e55
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_realm_playgrounds.py
moazzammoriani/zulip
ca506f71dc8b733827a6bf532b107291b4839e55
[ "Apache-2.0" ]
null
null
null
from zerver.lib.actions import do_add_realm_playground from zerver.lib.test_classes import ZulipTestCase from zerver.models import RealmPlayground, get_realm class RealmPlaygroundTests(ZulipTestCase): def test_create_one_playground_entry(self) -> None: iago = self.example_user("iago") payload = {...
38.27027
96
0.62194
468
4,248
5.452991
0.200855
0.039185
0.07837
0.041144
0.617947
0.574451
0.534483
0.522335
0.502351
0.465517
0
0.002221
0.258004
4,248
110
97
38.618182
0.807424
0.018362
0
0.397727
0
0
0.267819
0.063115
0
0
0
0
0.170455
1
0.068182
false
0
0.034091
0
0.113636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fcb558a97ebc6e7f0af8053d4b5eef0ee0f741f
2,733
py
Python
seisflows/plugins/optimize/NLCG.py
niyiyu2316/seisflows
f861f1bf59b24854e7ca6a0dfc383f2dcd396969
[ "BSD-2-Clause" ]
1
2021-12-01T07:37:57.000Z
2021-12-01T07:37:57.000Z
seisflows/plugins/optimize/NLCG.py
niyiyu/seisflows
f861f1bf59b24854e7ca6a0dfc383f2dcd396969
[ "BSD-2-Clause" ]
null
null
null
seisflows/plugins/optimize/NLCG.py
niyiyu/seisflows
f861f1bf59b24854e7ca6a0dfc383f2dcd396969
[ "BSD-2-Clause" ]
null
null
null
# # This is Seisflows # # See LICENCE file # # ############################################################################### # Import system modules import os # Import Numpy import numpy as np # Local imports from seisflows.tools import unix from seisflows.tools.math import dot from seisflows.tools.tools import lo...
24.621622
79
0.559458
362
2,733
4.041436
0.243094
0.071087
0.041012
0.043746
0.345865
0.308954
0.198223
0.165414
0.165414
0.165414
0
0.005732
0.297841
2,733
110
80
24.845455
0.756644
0.095134
0
0.246154
0
0
0.071912
0
0
0
0
0
0
1
0.107692
false
0
0.076923
0.030769
0.338462
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fcc2a2fdacd2a22f891e4c2ee4f20a75d5a6130
1,398
py
Python
sa/profiles/Cisco/SCOS/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Cisco/SCOS/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Cisco/SCOS/profile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Vendor: Cisco # OS: SCOS # --------------------------------------------------------------------- # Copyright (C) 2007-2012 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NO...
38.833333
89
0.537196
138
1,398
5.275362
0.630435
0.078297
0.049451
0.076923
0
0
0
0
0
0
0
0.014873
0.182403
1,398
35
90
39.942857
0.622047
0.256795
0
0
0
0
0.231293
0.059281
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fccd64c6d5968278f8f06dd0c3bc69ffe2d9072
4,825
py
Python
airflow/providers/amazon/aws/example_dags/example_hive_to_dynamodb.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
airflow/providers/amazon/aws/example_dags/example_hive_to_dynamodb.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
airflow/providers/amazon/aws/example_dags/example_hive_to_dynamodb.py
npodewitz/airflow
511ea702d5f732582d018dad79754b54d5e53f9d
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.278195
96
0.732228
650
4,825
5.256923
0.4
0.068481
0.029851
0.023412
0.143401
0.023998
0.023998
0
0
0
0
0.00942
0.185907
4,825
132
97
36.55303
0.860489
0.41285
0
0.069444
0
0
0.177384
0.034321
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.166667
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fcf8180fcc5543d1eb052a5cecb72e8028c0a9e
4,125
py
Python
bmi203_hw3/methods.py
cjmathy/bmi203_hw3
7d785e12be048a2870b90d704f18d2391f210aec
[ "Apache-2.0" ]
null
null
null
bmi203_hw3/methods.py
cjmathy/bmi203_hw3
7d785e12be048a2870b90d704f18d2391f210aec
[ "Apache-2.0" ]
null
null
null
bmi203_hw3/methods.py
cjmathy/bmi203_hw3
7d785e12be048a2870b90d704f18d2391f210aec
[ "Apache-2.0" ]
null
null
null
import numpy as np import random def align(pair,sequences,scoring_matrix,penalties,aa_dict): seq1, seq2 = sequences[pair[0]], sequences[pair[1]] #Create matrix F (containing maximum scores up to cell F(i,j)) and tracking matrix P (containing the tracking flag describing whether the step into the cell was a match or...
28.061224
270
0.667394
753
4,125
3.547145
0.205843
0.012729
0.026956
0.007488
0.311119
0.220517
0.179708
0.142269
0.119057
0.119057
0
0.035305
0.217212
4,125
146
271
28.253425
0.791886
0.319758
0
0.22549
0
0
0.007546
0
0
0
0
0
0
1
0.058824
false
0
0.019608
0
0.137255
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fcfd483955455d5e0edc10b34fa44d33f3eefa6
4,346
py
Python
custom_components/netatmo/select.py
mauriziosacca/netatmo_custom
149a211d7cd6b87db012c5dabd12f34db302f066
[ "MIT" ]
5
2020-08-07T11:35:49.000Z
2020-09-19T03:27:47.000Z
custom_components/netatmo/select.py
mauriziosacca/netatmo_custom
149a211d7cd6b87db012c5dabd12f34db302f066
[ "MIT" ]
4
2020-06-14T06:11:05.000Z
2020-07-22T10:15:39.000Z
custom_components/netatmo/select.py
mauriziosacca/netatmo_custom
149a211d7cd6b87db012c5dabd12f34db302f066
[ "MIT" ]
2
2020-06-13T23:04:41.000Z
2020-07-05T14:13:49.000Z
"""Support for the Netatmo climate schedule selector.""" from __future__ import annotations import logging from homeassistant.components.select import SelectEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import a...
32.192593
87
0.631615
470
4,346
5.493617
0.240426
0.052672
0.027111
0.016266
0.221146
0.201007
0.173122
0.142138
0.142138
0.09605
0
0.000317
0.274965
4,346
134
88
32.432836
0.819105
0.042568
0
0.107843
0
0
0.070363
0.024117
0
0
0
0
0
1
0.039216
false
0
0.098039
0
0.156863
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd077e82e7625e41bd526705fa44002dd980b86
21,889
py
Python
skbot/ignition/sdformat/bindings/v15/physics.py
FirefoxMetzger/ropy
c1bcebda223f3af0b6d35e3f4c26d8fd9d26577a
[ "Apache-2.0" ]
6
2021-03-24T05:54:45.000Z
2021-07-20T21:03:21.000Z
skbot/ignition/sdformat/bindings/v15/physics.py
FirefoxMetzger/scikit-bot
ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9
[ "Apache-2.0" ]
31
2021-08-12T08:12:58.000Z
2022-03-21T23:16:36.000Z
skbot/ignition/sdformat/bindings/v15/physics.py
FirefoxMetzger/scikit-bot
ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9
[ "Apache-2.0" ]
1
2021-07-20T20:13:49.000Z
2021-07-20T20:13:49.000Z
from dataclasses import dataclass, field from typing import Optional __NAMESPACE__ = "sdformat/v1.5/physics.xsd" @dataclass class Physics: """ The physics tag specifies the type and properties of the dynamics engine. Parameters ---------- max_step_size: Maximum time step size at which every syst...
35.707993
822
0.457673
1,951
21,889
5.056894
0.17837
0.058382
0.086661
0.127711
0.668863
0.632577
0.608656
0.56943
0.554429
0.545307
0
0.018412
0.444196
21,889
612
823
35.76634
0.792537
0.387455
0
0.62
0
0.005
0.15316
0.030358
0
0
0
0
0
1
0
false
0
0.005
0
0.06
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd0b30bf860cf4cb13764228ffc837786f5279e
4,826
py
Python
lib/surface/help.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/help.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/help.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
33.513889
80
0.715292
668
4,826
5.083832
0.362275
0.021201
0.012956
0.009423
0.05477
0.05477
0.05477
0.05477
0
0
0
0.003661
0.207625
4,826
143
81
33.748252
0.884414
0.46436
0
0.106061
0
0
0.34012
0.028743
0
0
0
0
0
1
0.045455
false
0.015152
0.121212
0
0.242424
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd19f63f1a65c7260c9a3e5a8928272b7a43f33
2,013
py
Python
tools/ideabuck/scripts/generate_grammar_kit.py
thelvis4/buck
dd55ad3373c1dc01d83bc3780dfc205a923c8088
[ "Apache-2.0" ]
1
2021-06-14T22:35:29.000Z
2021-06-14T22:35:29.000Z
tools/ideabuck/scripts/generate_grammar_kit.py
thelvis4/buck
dd55ad3373c1dc01d83bc3780dfc205a923c8088
[ "Apache-2.0" ]
null
null
null
tools/ideabuck/scripts/generate_grammar_kit.py
thelvis4/buck
dd55ad3373c1dc01d83bc3780dfc205a923c8088
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018-present Facebook, 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 applica...
29.602941
82
0.718331
295
2,013
4.742373
0.413559
0.051465
0.064332
0.045747
0.29664
0.233738
0.131523
0.094353
0.094353
0.094353
0
0.004731
0.15996
2,013
67
83
30.044776
0.82259
0.351217
0
0
0
0
0.226532
0.165244
0
0
0
0
0
1
0.026316
false
0
0.105263
0
0.131579
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd2040d5d7a06ef6b0a4c0bd8f53d00185458f8
5,639
py
Python
d_parser/d_spider_24int.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
d_parser/d_spider_24int.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
2
2018-03-28T19:47:46.000Z
2021-12-13T20:56:31.000Z
d_parser/d_spider_24int.py
Holovin/D_GrabDemo
6adb03fb42ae03e7896eb2eacb342cf9660feb92
[ "MIT" ]
null
null
null
from lxml import html from d_parser.d_spider_common import DSpiderCommon from d_parser.helpers.re_set import Ree from helpers.url_generator import UrlGenerator from d_parser.helpers.stat_counter import StatCounter as SC VERSION = 29 # Warn: Don't remove task argument even if not use it (it's break grab and spider ...
36.380645
144
0.563575
629
5,639
4.845787
0.298887
0.070866
0.050197
0.045932
0.316601
0.289042
0.263451
0.160761
0.160761
0.160761
0
0.003624
0.314949
5,639
154
145
36.616883
0.7854
0.093456
0
0.263736
0
0.021978
0.160047
0.107157
0
0
0
0
0
1
0.043956
false
0
0.054945
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd40b146434a9e17e7620f9be3907c90f0f31db
2,007
py
Python
agents/displays/mcts_display.py
johink/willsmith
a6bdfff2e3b12770100811002867bf3ed64ad6d3
[ "MIT" ]
null
null
null
agents/displays/mcts_display.py
johink/willsmith
a6bdfff2e3b12770100811002867bf3ed64ad6d3
[ "MIT" ]
null
null
null
agents/displays/mcts_display.py
johink/willsmith
a6bdfff2e3b12770100811002867bf3ed64ad6d3
[ "MIT" ]
null
null
null
from tkinter import Label, GROOVE from willsmith.gui_display_controller import GUIDisplayController class MCTSDisplay(GUIDisplayController): """ The display controller for MCTSAgent. Creates a Tkinter GUI that displays some stats about the agent's latest moves. """ WINDOW_TITLE = "MCTS Age...
33.45
93
0.652217
261
2,007
4.720307
0.302682
0.065747
0.055195
0.048701
0.148539
0.048701
0
0
0
0
0
0.009868
0.242651
2,007
59
94
34.016949
0.800658
0.058794
0
0
0
0
0.06756
0
0
0
0
0
0
1
0.175
false
0
0.05
0.025
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd4802c9f5de417a2846d954a84224c9c4296eb
9,461
py
Python
mrgcn.py
bretthannigan/relational-gcn
61219cdee2c244682680ac0d7371758dcb9cea96
[ "MIT" ]
null
null
null
mrgcn.py
bretthannigan/relational-gcn
61219cdee2c244682680ac0d7371758dcb9cea96
[ "MIT" ]
null
null
null
mrgcn.py
bretthannigan/relational-gcn
61219cdee2c244682680ac0d7371758dcb9cea96
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import logging import argparse from time import time import toml from data.io.knowledge_graph import KnowledgeGraph from data.io.tarball import Tarball from data.io.tsv import TSV from data.utils import is_readable, is_writable from embeddings import graph_structure from tasks.node_classification ...
38.45935
105
0.51559
1,053
9,461
4.458689
0.197531
0.00639
0.017039
0.015335
0.444515
0.408946
0.34803
0.326944
0.27689
0.256017
0
0.01359
0.346686
9,461
245
106
38.616327
0.745996
0.048832
0
0.280702
0
0.005848
0.123816
0.002563
0
0
0
0
0.017544
1
0.035088
false
0
0.070175
0
0.122807
0.005848
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd6455ab81b55e483148e73eb93742490544d5f
9,343
py
Python
core.py
aminPial/Overwatch-Streaming-Automation
5d382e979980e99cebadd802eef999601833dc48
[ "MIT" ]
1
2020-03-21T04:32:14.000Z
2020-03-21T04:32:14.000Z
core.py
aminPial/Overwatch-Streaming-Automation
5d382e979980e99cebadd802eef999601833dc48
[ "MIT" ]
null
null
null
core.py
aminPial/Overwatch-Streaming-Automation
5d382e979980e99cebadd802eef999601833dc48
[ "MIT" ]
null
null
null
import argparse, time, os, cv2, shutil, datetime, math, subprocess, pickle, multiprocessing from actn import * ap = argparse.ArgumentParser() # for help -> python alpha.py --help ap.add_argument("-f", "--file", required=True, help="name of the file") ap.add_argument("-o", "--output", required=True, ...
33.851449
146
0.558172
1,212
9,343
4.110561
0.235974
0.038137
0.019269
0.014051
0.204737
0.140707
0.117222
0.085106
0.071457
0.071457
0
0.01554
0.311249
9,343
275
147
33.974545
0.758664
0.071069
0
0.04908
0
0.01227
0.147597
0.017702
0
0
0
0
0.02454
1
0.079755
false
0
0.01227
0
0.153374
0.08589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd71b1757e46f6f90fe0e76c1023674c1eb24fe
2,168
py
Python
reports/ipam-reports/ip-primary-missing.py
ryanmerolle/reports
9f69eb088884033c4cc85ce43c528e964b5a8b41
[ "MIT" ]
null
null
null
reports/ipam-reports/ip-primary-missing.py
ryanmerolle/reports
9f69eb088884033c4cc85ce43c528e964b5a8b41
[ "MIT" ]
3
2022-01-30T17:51:00.000Z
2022-01-30T17:52:16.000Z
reports/ipam-reports/ip-primary-missing.py
ryanmerolle/reports
9f69eb088884033c4cc85ce43c528e964b5a8b41
[ "MIT" ]
null
null
null
from dcim.choices import DeviceStatusChoices from dcim.models import Device from extras.reports import Report class DeviceIPReport(Report): description = ( "Check that every device has either an IPv4 or IPv6 primary address assigned" ) def test_primary_ip4(self): for device in Device.obje...
41.692308
90
0.497694
217
2,168
4.83871
0.341014
0.06
0.057143
0.07619
0.528571
0.380952
0.179048
0.179048
0.179048
0.179048
0
0.015216
0.454336
2,168
51
91
42.509804
0.872358
0.034133
0
0.446809
0
0
0.15153
0
0
0
0
0
0
1
0.021277
false
0
0.06383
0
0.12766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd82d73cc91d48c575559a3f1137c753ea8bb0d
3,940
py
Python
runtime/bots/irc/main.py
AKhilRaghav0/dovenetwork
accf19fc4942d5e177d1f4d1302c40c9f979c391
[ "MIT" ]
null
null
null
runtime/bots/irc/main.py
AKhilRaghav0/dovenetwork
accf19fc4942d5e177d1f4d1302c40c9f979c391
[ "MIT" ]
null
null
null
runtime/bots/irc/main.py
AKhilRaghav0/dovenetwork
accf19fc4942d5e177d1f4d1302c40c9f979c391
[ "MIT" ]
null
null
null
import socket import random import os import requests import re import github import minecraft import string import sys HOST = "xeroxirc.net" PORT = 6667 NICK = "ak_sus" #PASSWORD = os.getenv("PASSWORD") CHANNEL = "#BlockySurvival" SERVER = "" readbuffer = "" def send(message): s.send(message) print(message) s ...
60.615385
190
0.612437
561
3,940
4.290553
0.203209
0.041545
0.069796
0.105941
0.432489
0.408808
0.321978
0.250935
0.238471
0.196926
0
0.019946
0.160152
3,940
64
191
61.5625
0.707464
0.219797
0
0.178571
0
0.053571
0.304305
0
0
0
0
0
0
1
0.017857
false
0
0.160714
0
0.178571
0.053571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd8ba3787eb3badc7089b8d33f9dd05d0100188
3,456
py
Python
evaluate.py
PhilippMarquardt/Amazing-Semantic-Segmentation
9ca17b71a7bd9e4f4d433fe3bb50105bad564df4
[ "Apache-2.0" ]
null
null
null
evaluate.py
PhilippMarquardt/Amazing-Semantic-Segmentation
9ca17b71a7bd9e4f4d433fe3bb50105bad564df4
[ "Apache-2.0" ]
null
null
null
evaluate.py
PhilippMarquardt/Amazing-Semantic-Segmentation
9ca17b71a7bd9e4f4d433fe3bb50105bad564df4
[ "Apache-2.0" ]
null
null
null
""" The file defines the evaluate process on target dataset. @Author: Yang Lu @Github: https://github.com/luyanger1799 @Project: https://github.com/luyanger1799/amazing-semantic-segmentation """ from sklearn.metrics import multilabel_confusion_matrix from amazingutils.helpers import * from amazingutils.utils import l...
36
116
0.672743
475
3,456
4.72
0.332632
0.024978
0.03033
0.026762
0.195361
0.143622
0.096343
0.096343
0.096343
0.096343
0
0.010173
0.146701
3,456
95
117
36.378947
0.750085
0.100984
0
0.066667
0
0
0.196896
0.063692
0
0
0
0
0.016667
1
0.016667
false
0
0.133333
0
0.183333
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fd965866bb7ccf36c6dbb4a056de13696d6bd75
6,524
py
Python
examples/pso_trail/demo_gpso.py
gmjustforfun/code
7551909edf61bddfeafdff223c2a3390661dc62f
[ "MIT" ]
null
null
null
examples/pso_trail/demo_gpso.py
gmjustforfun/code
7551909edf61bddfeafdff223c2a3390661dc62f
[ "MIT" ]
null
null
null
examples/pso_trail/demo_gpso.py
gmjustforfun/code
7551909edf61bddfeafdff223c2a3390661dc62f
[ "MIT" ]
null
null
null
from pso.GPSO import GPSO import numpy as np import time import pandas as pd np.random.seed(42) # f1 完成 def Sphere(p): # Sphere函数 out_put = 0 for i in p: out_put += i ** 2 return out_put # f2 完成 def Sch222(x): out_put = 0 out_put01 = 1 for i in x: out_put += abs(i) ...
28.995556
113
0.566524
1,061
6,524
3.427898
0.151744
0.11548
0.123728
0.11548
0.519659
0.368161
0.350564
0.268903
0.258455
0.224636
0
0.088811
0.256131
6,524
225
114
28.995556
0.660622
0.077713
0
0.323353
0
0
0.035829
0
0
0
0
0
0
1
0.065868
false
0
0.023952
0.005988
0.155689
0.077844
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe133c49876165e512b3f8ef38f50888917b203
475
py
Python
vcsver/tests/test_util.py
janneronkko/vcsver
77020e296a8239ee142213642504c03b9064653f
[ "MIT" ]
1
2020-12-23T19:22:51.000Z
2020-12-23T19:22:51.000Z
vcsver/tests/test_util.py
janneronkko/vcsver
77020e296a8239ee142213642504c03b9064653f
[ "MIT" ]
null
null
null
vcsver/tests/test_util.py
janneronkko/vcsver
77020e296a8239ee142213642504c03b9064653f
[ "MIT" ]
null
null
null
import io from .. import util def test_parsing_pkg_info_file(mocker): open_mock = mocker.patch('vcsver.util.open') open_mock.return_value = io.StringIO( 'Name: name\n' 'Version: 1.0\n' ) pkg_info_data = util.parse_pkg_info_file(mocker.sentinel.path) open_mock = open_mock.assert_...
19.791667
66
0.614737
64
475
4.265625
0.5
0.102564
0.080586
0.124542
0
0
0
0
0
0
0
0.011364
0.258947
475
23
67
20.652174
0.764205
0
0
0
0
0
0.130526
0
0
0
0
0
0.117647
1
0.058824
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe228d5ef8bd389e1153721d4a2bf62938a548d
820
py
Python
matrixFuncs/determinant.py
AmaarMarfatia/MatrixFunctions
c115dd58c273dc791dfd56316c855e601b0d94cc
[ "MIT" ]
null
null
null
matrixFuncs/determinant.py
AmaarMarfatia/MatrixFunctions
c115dd58c273dc791dfd56316c855e601b0d94cc
[ "MIT" ]
null
null
null
matrixFuncs/determinant.py
AmaarMarfatia/MatrixFunctions
c115dd58c273dc791dfd56316c855e601b0d94cc
[ "MIT" ]
null
null
null
def determinant(matA): dimA = [] # find dimensions of arrA a = matA while type(a) == list: dimA.append(len(a)) a = a[0] #is it square if dimA[0] != dimA[1]: raise Exception("Matrix is not square") #find determinant total = 0 if dimA[0] == 2: total = ma...
28.275862
65
0.486585
122
820
3.270492
0.409836
0.050125
0.035088
0.06015
0
0
0
0
0
0
0
0.062619
0.357317
820
29
66
28.275862
0.694497
0.117073
0
0.083333
0
0
0.027778
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe276f59396e1213dd3856def48f978483f24dc
2,184
py
Python
priv/flatex/flatex.py
w495/survey-cbvr
861db7b9020a4c5809af5c147cfd7387a3a856ed
[ "MIT" ]
1
2016-08-15T22:37:03.000Z
2016-08-15T22:37:03.000Z
priv/flatex/flatex.py
w495/survey-cbvr
861db7b9020a4c5809af5c147cfd7387a3a856ed
[ "MIT" ]
null
null
null
priv/flatex/flatex.py
w495/survey-cbvr
861db7b9020a4c5809af5c147cfd7387a3a856ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This "flattens" a LaTeX document by replacing all # \input{X} lines w/ the text actually contained in X. See # associated README.md for details. # Use as a python module in a python script by saying import flatex then flatex.main(in file, out file) import os import re import sys de...
31.2
106
0.641026
315
2,184
4.266667
0.396825
0.053571
0.041667
0.040179
0.049107
0
0
0
0
0
0
0.001786
0.230769
2,184
69
107
31.652174
0.798214
0.434066
0
0
0
0
0.059865
0.041315
0
0
0
0
0
1
0.142857
false
0
0.085714
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe4383a2b514d6df56ab04d2ab236c4e1f75e15
1,600
py
Python
pull_1m/pull_v2.py
tlh45342/polygon-pull
1fc59d07d37ea56be5db4856f25ac1d9eca7e810
[ "Apache-2.0" ]
null
null
null
pull_1m/pull_v2.py
tlh45342/polygon-pull
1fc59d07d37ea56be5db4856f25ac1d9eca7e810
[ "Apache-2.0" ]
null
null
null
pull_1m/pull_v2.py
tlh45342/polygon-pull
1fc59d07d37ea56be5db4856f25ac1d9eca7e810
[ "Apache-2.0" ]
null
null
null
import datetime import os import pandas from polygon.rest.client import RESTClient def ts_to_datetime(ts) -> str: return datetime.datetime.fromtimestamp(ts / 1000.0).strftime('%Y-%m-%d %H:%M') def pull_day(Symbol, from_): POLYGON_API_KEY = os.environ.get('POLYGON_API_KEY') enddate = dateti...
34.042553
113
0.56
200
1,600
4.38
0.445
0.034247
0.044521
0.03653
0
0
0
0
0
0
0
0.014876
0.24375
1,600
47
114
34.042553
0.709091
0.145
0
0
0
0
0.11069
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0.033333
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe47402ae7ebb99a7865e69f0ddb0204cb01079
1,595
py
Python
pwython/__main__.py
Adwaith-Rajesh/Pwython
f734066e251373c7b1634c27617089f9fe0ac79a
[ "Unlicense" ]
null
null
null
pwython/__main__.py
Adwaith-Rajesh/Pwython
f734066e251373c7b1634c27617089f9fe0ac79a
[ "Unlicense" ]
null
null
null
pwython/__main__.py
Adwaith-Rajesh/Pwython
f734066e251373c7b1634c27617089f9fe0ac79a
[ "Unlicense" ]
null
null
null
from random import choice, randint from re import sub, split, findall from string import ascii_letters from subprocess import PIPE, Popen from sys import argv, executable, stderr from .responses import pronouns, reactions, remarks def owoify(text): if type(text) == bytes: text = str(text)[2:-1].replace("...
29.537037
112
0.573041
209
1,595
4.325359
0.430622
0.022124
0.022124
0.024336
0.155973
0.127212
0.127212
0
0
0
0
0.015544
0.273981
1,595
53
113
30.09434
0.765112
0.063323
0
0.057143
0
0
0.15302
0.028188
0
0
0
0
0
1
0.057143
false
0
0.171429
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe5fbc85c69cdd93c1fbe4aaa0233fcbcd08383
10,398
py
Python
appengine/cr-buildbucket/legacy/api_common.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/cr-buildbucket/legacy/api_common.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
appengine/cr-buildbucket/legacy/api_common.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json from google.appengine.ext import ndb from google.protobuf import json_format from google.protobuf import struct_pb2 from protorpc import message...
31.413897
79
0.726486
1,439
10,398
5.061849
0.251564
0.026359
0.021142
0.012356
0.09514
0.055739
0.034047
0.018396
0
0
0
0.009099
0.175611
10,398
330
80
31.509091
0.840644
0.231294
0
0.047619
0
0
0.050794
0.018032
0
0
0
0.00303
0.02381
1
0.047619
false
0
0.052381
0
0.304762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe83234101021db05245c3a1a51c329dc0916b4
6,147
py
Python
test/acceptance/features/steps/generic_testapp.py
multi-arch/service-binding-operator
a92b303d45a06e8c4396ae80721e1cc5b9019e4a
[ "Apache-2.0" ]
null
null
null
test/acceptance/features/steps/generic_testapp.py
multi-arch/service-binding-operator
a92b303d45a06e8c4396ae80721e1cc5b9019e4a
[ "Apache-2.0" ]
null
null
null
test/acceptance/features/steps/generic_testapp.py
multi-arch/service-binding-operator
a92b303d45a06e8c4396ae80721e1cc5b9019e4a
[ "Apache-2.0" ]
null
null
null
from app import App import requests import json import polling2 from behave import step from openshift import Openshift from util import substitute_scenario_id from string import Template class GenericTestApp(App): deployment_name_pattern = "{name}" def __init__(self, name, namespace, app_image="ghcr.io/mul...
45.198529
160
0.738572
827
6,147
5.302297
0.165659
0.017104
0.036944
0.030787
0.478449
0.407298
0.3813
0.268415
0.249259
0.211403
0
0.015727
0.151781
6,147
135
161
45.533333
0.825278
0.00423
0
0.019802
0
0
0.238765
0.007518
0
0
0
0
0.049505
1
0.168317
false
0
0.108911
0.009901
0.336634
0.049505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe90908102c482823f4162b72dbc1d35bfe2cbb
8,033
py
Python
SKY130_PDK/gen_param.py
ALIGN-analoglayout/ALIGN-pdk-sky130
ffddd848656f09cc03f210d7b44b5ffbd1ab228f
[ "BSD-3-Clause" ]
null
null
null
SKY130_PDK/gen_param.py
ALIGN-analoglayout/ALIGN-pdk-sky130
ffddd848656f09cc03f210d7b44b5ffbd1ab228f
[ "BSD-3-Clause" ]
null
null
null
SKY130_PDK/gen_param.py
ALIGN-analoglayout/ALIGN-pdk-sky130
ffddd848656f09cc03f210d7b44b5ffbd1ab228f
[ "BSD-3-Clause" ]
null
null
null
import json import logging from math import sqrt, floor, ceil, log10 from copy import deepcopy logger = logging.getLogger(__name__) def limit_pairs(pairs): # Hack to limit aspect ratios when there are a lot of choices if len(pairs) > 12: new_pairs = [] log10_aspect_ratios = [-0.3, 0, 0.3] ...
45.642045
142
0.563675
1,026
8,033
4.237817
0.17154
0.053818
0.058648
0.050598
0.425943
0.305658
0.229301
0.155474
0.155474
0.113615
0
0.011264
0.303747
8,033
175
143
45.902857
0.766136
0.021661
0
0.235669
0
0.006369
0.159537
0.036287
0
0
0
0.005714
0.063694
1
0.019108
false
0
0.025478
0
0.063694
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fe94897b6016b8d63c8281d624fe928a95dab1f
1,804
py
Python
forcephot/throttles.py
lukeshingles/atlasserver
87c8e437891a1516ac1fadb84d1d9b796dc5a367
[ "MIT" ]
5
2020-11-06T11:55:07.000Z
2021-09-28T22:27:28.000Z
forcephot/throttles.py
lukeshingles/atlasserver
87c8e437891a1516ac1fadb84d1d9b796dc5a367
[ "MIT" ]
21
2020-11-03T13:26:30.000Z
2022-02-18T10:50:52.000Z
forcephot/throttles.py
lukeshingles/atlasserver
87c8e437891a1516ac1fadb84d1d9b796dc5a367
[ "MIT" ]
null
null
null
from rest_framework.throttling import SimpleRateThrottle class ForcedPhotRateThrottle(SimpleRateThrottle): """ Limits the rate of API calls by different amounts for various parts of the API. Any view that has the `throttle_scope` property set will be throttled. The unique cache key will be generated...
34.037736
77
0.644678
237
1,804
4.797468
0.413502
0.057168
0.028144
0.042216
0.042216
0
0
0
0
0
0
0
0.28714
1,804
52
78
34.692308
0.884137
0.447894
0
0.086957
0
0
0.029252
0
0
0
0
0
0
1
0.130435
false
0.043478
0.043478
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fef2e1b0042f7afa10afa7bd70caee5d7662859
3,119
py
Python
Solver.py
kazemisoroush/JCL
a752e8b445e270dab7597d96956c2c52d53665dc
[ "MIT" ]
null
null
null
Solver.py
kazemisoroush/JCL
a752e8b445e270dab7597d96956c2c52d53665dc
[ "MIT" ]
null
null
null
Solver.py
kazemisoroush/JCL
a752e8b445e270dab7597d96956c2c52d53665dc
[ "MIT" ]
null
null
null
from scipy.optimize import minimize class Solver(object): # initialize the object def __init__(self, servers, alpha, teta, lambda_s): self.c_prime = 0 self.teta = teta self.alpha = alpha self.lambda_s = lambda_s # fill servers specification in arrays for solver use ...
29.149533
113
0.588971
367
3,119
4.920981
0.247956
0.053156
0.033223
0.031008
0.233666
0.131783
0.131783
0.06423
0.06423
0.06423
0
0.002776
0.30715
3,119
106
114
29.424528
0.832948
0.155499
0
0.212121
0
0
0.037023
0
0
0
0
0
0
1
0.121212
false
0
0.015152
0
0.257576
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff10fab31eb05859eb44845cd805cd024038463
9,444
py
Python
scope/device/spectra.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
null
null
null
scope/device/spectra.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
null
null
null
scope/device/spectra.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
null
null
null
# This code is licensed under the MIT License (see LICENSE file for details) import threading import time from ..util import smart_serial from ..util import property_device from ..util import state_stack from ..config import scope_configuration from . import iotool def _make_dac_bytes(IIC_Addr, bit): dac_bytes =...
42.927273
159
0.66529
1,239
9,444
4.815174
0.246973
0.020114
0.01408
0.016762
0.222595
0.165102
0.107945
0.058331
0.044586
0.044586
0
0.02148
0.235917
9,444
219
160
43.123288
0.805294
0.24587
0
0.066667
0
0
0.063652
0.004032
0
0
0.005184
0
0.006667
1
0.146667
false
0
0.046667
0.02
0.306667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff20bebb27acf09aac86317bb08657cf322d1a8
1,951
py
Python
LinkPrediction/pruning.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
29
2021-02-17T02:46:54.000Z
2022-03-18T02:09:03.000Z
LinkPrediction/pruning.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
1
2021-09-03T13:30:50.000Z
2021-09-03T13:30:50.000Z
LinkPrediction/pruning.py
x-zho14/Unified-LTH-GNN
edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55
[ "MIT" ]
10
2021-04-01T16:27:03.000Z
2022-03-07T09:20:38.000Z
import numpy as np import torch from sklearn.metrics import roc_auc_score from sklearn.metrics import average_precision_score def test(model, features, adj, sparse, adj_sparse, test_edges, test_edges_false): eps = 1e-4 embeds, _,_, S= model.embed(features, adj, sparse, None, 100) embs = embeds[0, :] ...
34.839286
104
0.672476
301
1,951
4.109635
0.305648
0.05093
0.029103
0.032336
0.281326
0.135812
0.135812
0.135812
0.135812
0.077607
0
0.016015
0.199897
1,951
56
105
34.839286
0.776425
0.13634
0
0
0
0
0.019276
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0.026316
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff5a9c769828d3ebb1466ef2f609d93dfafa30f
2,527
py
Python
genie/seg.py
karawoo/Genie
d39451655ec3632df6002c1d73b17dacba2a8720
[ "MIT" ]
null
null
null
genie/seg.py
karawoo/Genie
d39451655ec3632df6002c1d73b17dacba2a8720
[ "MIT" ]
null
null
null
genie/seg.py
karawoo/Genie
d39451655ec3632df6002c1d73b17dacba2a8720
[ "MIT" ]
1
2022-01-20T16:33:19.000Z
2022-01-20T16:33:19.000Z
import logging import os import pandas as pd from .example_filetype_format import FileTypeFormat from . import process_functions logger = logging.getLogger(__name__) class seg(FileTypeFormat): _fileType = "seg" _process_kwargs = ["newPath", "databaseSynId"] def _validateFilename(self, filePath): ...
40.111111
143
0.61852
322
2,527
4.748447
0.363354
0.039241
0.015697
0.023545
0.122956
0.082407
0
0
0
0
0
0.003077
0.228334
2,527
62
144
40.758065
0.781026
0
0
0
0
0
0.17966
0.009893
0
0
0
0
0.021277
1
0.085106
false
0
0.106383
0
0.255319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff6a8b26ae79b9bbc49d8449424fa04eace814f
1,086
py
Python
tests/test_user.py
meisnate12/trakt.py
37da6f64a4f82c6600a61e388458190590f86f29
[ "MIT" ]
147
2015-01-07T11:27:26.000Z
2022-02-21T19:57:44.000Z
tests/test_user.py
meisnate12/trakt.py
37da6f64a4f82c6600a61e388458190590f86f29
[ "MIT" ]
90
2015-01-11T14:38:22.000Z
2021-10-03T12:18:13.000Z
tests/test_user.py
meisnate12/trakt.py
37da6f64a4f82c6600a61e388458190590f86f29
[ "MIT" ]
61
2015-01-09T12:32:09.000Z
2022-02-03T00:50:36.000Z
from __future__ import absolute_import, division, print_function from tests.core import mock from trakt import Trakt from httmock import HTTMock import pytest def test_likes(): with HTTMock(mock.fixtures, mock.unknown): with Trakt.configuration.auth('mock', 'mock'): likes = Trakt['users'].li...
22.163265
64
0.601289
127
1,086
5.03937
0.362205
0.103125
0.05625
0.107813
0.360938
0.360938
0.307813
0.10625
0
0
0
0.026482
0.269797
1,086
48
65
22.625
0.78058
0
0
0.272727
0
0
0.093002
0
0
0
0
0
0.212121
1
0.090909
false
0
0.151515
0
0.242424
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff6e195cda0b39ff8fca0cbb3168fe50f6be0ec
12,983
py
Python
main.py
mohamed-seyam/Image-Mixer-
f2a2c3d5808e1c8485c851f3a27cbed7249ad073
[ "MIT" ]
null
null
null
main.py
mohamed-seyam/Image-Mixer-
f2a2c3d5808e1c8485c851f3a27cbed7249ad073
[ "MIT" ]
null
null
null
main.py
mohamed-seyam/Image-Mixer-
f2a2c3d5808e1c8485c851f3a27cbed7249ad073
[ "MIT" ]
null
null
null
import sys import PyQt5.QtWidgets as qtw import PyQt5.QtCore as qtc from Image import Image from main_layout import Ui_MainWindow import logging import os logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) formatter = logging.Formatter('%(levelname)s:%(name)s:%(asctime)s - %(message)s') file_handler ...
47.907749
303
0.632828
1,473
12,983
5.3537
0.121521
0.066954
0.114126
0.060867
0.685011
0.562896
0.511032
0.452955
0.401091
0.315115
0
0.021752
0.235154
12,983
271
304
47.907749
0.772407
0
0
0.286957
0
0
0.109827
0.002619
0
0
0
0
0
1
0.052174
false
0.013043
0.030435
0
0.108696
0.004348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff8202663f6030215b86bce2a40c9dd2290ed53
1,029
py
Python
main_project/tienda_lissa_app/forms.py
NahuelA/TiendaLissa_Django
72599e7cb20e1ebe346b484836e2200b69389281
[ "MIT" ]
null
null
null
main_project/tienda_lissa_app/forms.py
NahuelA/TiendaLissa_Django
72599e7cb20e1ebe346b484836e2200b69389281
[ "MIT" ]
null
null
null
main_project/tienda_lissa_app/forms.py
NahuelA/TiendaLissa_Django
72599e7cb20e1ebe346b484836e2200b69389281
[ "MIT" ]
null
null
null
from django import forms # Form for create sales class FormSales(forms.Form): # Atributes for form # NOTE: date_creation and total fields, it will be created dynamically name = forms.CharField(label="Nombre", max_length=50, required=True, ...
42.875
85
0.543246
102
1,029
5.392157
0.627451
0.065455
0.069091
0.061818
0.076364
0
0
0
0
0
0
0.010886
0.375121
1,029
24
86
42.875
0.844479
0.126336
0
0
0
0
0.134078
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff8a222216fa1ac81945884dc109adff1cb0094
2,159
py
Python
src/vargenpath/pipeline.py
AldisiRana/VarGenPath
ff7285f5165855f8427de9ec30ade2a8fb1f0ca3
[ "MIT" ]
null
null
null
src/vargenpath/pipeline.py
AldisiRana/VarGenPath
ff7285f5165855f8427de9ec30ade2a8fb1f0ca3
[ "MIT" ]
3
2019-11-11T12:34:03.000Z
2019-11-13T13:37:40.000Z
src/vargenpath/pipeline.py
AldisiRana/VarGenPath
ff7285f5165855f8427de9ec30ade2a8fb1f0ca3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Pipeline for VarGenPath""" from typing import Optional from .constants import LINKSET_PATH, FILE_TYPES from .utils import ( get_cytoscape_connection, get_associated_genes, var_genes_network, extend_vargen_network, save_session, save_image, save_network ) def get_vargenpath_network...
39.981481
119
0.727652
307
2,159
4.882736
0.23127
0.051368
0.050033
0.038025
0.143429
0.097398
0.061374
0.044029
0
0
0
0.000574
0.193608
2,159
53
120
40.735849
0.860425
0.326077
0
0
0
0
0.057389
0
0
0
0
0
0
1
0.030303
false
0
0.090909
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff8f022a6fe57527d82ea4903beacbf84f7acb1
1,485
py
Python
ott/examples/fairness/models.py
MUCDK/ott
f6c79d964d275aed12a7f9b66aa2b118423dff71
[ "Apache-2.0" ]
232
2021-01-18T15:05:20.000Z
2022-03-26T01:22:01.000Z
ott/examples/fairness/models.py
RamonYeung/ott
800de80d6b2a0faf4fc7977b0673674468c70e3f
[ "Apache-2.0" ]
20
2021-02-25T04:38:34.000Z
2022-01-24T16:21:25.000Z
ott/examples/fairness/models.py
RamonYeung/ott
800de80d6b2a0faf4fc7977b0673674468c70e3f
[ "Apache-2.0" ]
29
2021-02-25T04:40:25.000Z
2022-01-29T18:31:17.000Z
# coding=utf-8 # Copyright 2021 Google LLC. # # 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 ...
27.5
74
0.676768
235
1,485
4.217021
0.523404
0.060545
0.012109
0.032291
0.042381
0.042381
0
0
0
0
0
0.018707
0.208081
1,485
53
75
28.018868
0.82398
0.468687
0
0.074074
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0.111111
0
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ff9bf08b760f07cf353cf2bb85e608d4d99b8bc
699
py
Python
src/create_hbjsons.py
karim-daw/pollination-app
ed87f3dbc2d93d25568707d6a6ad0ee35c5109b8
[ "MIT" ]
null
null
null
src/create_hbjsons.py
karim-daw/pollination-app
ed87f3dbc2d93d25568707d6a6ad0ee35c5109b8
[ "MIT" ]
null
null
null
src/create_hbjsons.py
karim-daw/pollination-app
ed87f3dbc2d93d25568707d6a6ad0ee35c5109b8
[ "MIT" ]
null
null
null
from models import shoe_box def createHBjsons() -> None: for i in range(4): # increment on shoebox dimensions _width = 4.0 + i*0.5 _height = 3.5 + i*0.1 _depth = 4.0 + i*0.5 # init shoe_box sb = shoe_box.Shoebox(width=_width , height=_height , depth=_...
19.416667
76
0.53505
90
699
3.966667
0.566667
0.058824
0.016807
0.022409
0.028011
0
0
0
0
0
0
0.045455
0.370529
699
35
77
19.971429
0.765909
0.220315
0
0
0
0
0.014953
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ffbf82ddb4fd7b31865d27adb16c802d9e91417
1,234
py
Python
docs/setup/mysite/models/__init__.py
pauleveritt/pyramid_sqltraversal
1853b3b30fc9bdd453ce5c74b6a67668b21c5321
[ "MIT" ]
6
2015-10-21T20:39:42.000Z
2016-09-03T15:37:28.000Z
docs/setup/mysite/models/__init__.py
pauleveritt/pyramid_sqltraversal
1853b3b30fc9bdd453ce5c74b6a67668b21c5321
[ "MIT" ]
1
2015-11-30T19:18:29.000Z
2015-12-01T08:23:08.000Z
docs/setup/mysite/models/__init__.py
pauleveritt/pyramid_sqltraversal
1853b3b30fc9bdd453ce5c74b6a67668b21c5321
[ "MIT" ]
null
null
null
from sqlalchemy import engine_from_config from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.schema import MetaData import zope.sqlalchemy from .node import Node NAMING_CONVENTION = { "ix": 'ix_%(column_0_label)s', "uq": "uq_%(table_name)s_%(column_0...
27.422222
72
0.723663
153
1,234
5.555556
0.333333
0.047059
0.058824
0.037647
0.051765
0.051765
0.051765
0
0
0
0
0.002927
0.169368
1,234
44
73
28.045455
0.826341
0
0
0
0
0
0.161264
0.123177
0
0
0
0
0
1
0.117647
false
0
0.176471
0.029412
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6fff99cc890883af4358d405c2662b44fb123105
17,072
py
Python
nales/NDS/interfaces.py
Jojain/Nales
dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9
[ "MIT" ]
5
2022-03-07T23:21:42.000Z
2022-03-29T17:40:36.000Z
nales/NDS/interfaces.py
Jojain/Nales
dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9
[ "MIT" ]
3
2022-03-29T17:33:27.000Z
2022-03-29T17:40:10.000Z
nales/NDS/interfaces.py
Jojain/Nales
dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9
[ "MIT" ]
null
null
null
import typing from typing import ( Any, Callable, Dict, Iterable, List, Literal, Optional, Set, Tuple, Union, ) from ncadquery import Workplane from OCP.Quantity import Quantity_NameOfColor from OCP.TCollection import TCollection_ExtendedString from OCP.TDataStd import TDataStd_...
30.594982
126
0.606666
2,081
17,072
4.74964
0.152811
0.022258
0.014164
0.012748
0.298563
0.226224
0.204978
0.182922
0.164104
0.139822
0
0.003906
0.310157
17,072
557
127
30.64991
0.835357
0.118205
0
0.345088
0
0
0.025121
0
0
0
0
0
0
1
0.138539
false
0
0.035264
0.032746
0.312343
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b501613aec75d3cca56c1a86620e64aefbb4d375
5,134
py
Python
plane_1.0/plane/hero.py
misaka46/Aircraft-war
f83cdc5237c01889d109c32b1e27aaaf2c118b94
[ "MIT" ]
null
null
null
plane_1.0/plane/hero.py
misaka46/Aircraft-war
f83cdc5237c01889d109c32b1e27aaaf2c118b94
[ "MIT" ]
null
null
null
plane_1.0/plane/hero.py
misaka46/Aircraft-war
f83cdc5237c01889d109c32b1e27aaaf2c118b94
[ "MIT" ]
null
null
null
from flyingObject import FlyingObject from bullet import Bullet import random class Hero(FlyingObject): """英雄机""" index = 2 # 标志位 def __init__(self, screen, images): # self.screen = screen self.images = images # 英雄级图片数组,为Surface实例 # image = pygame.image.load(images[0]) i...
31.304878
110
0.494351
603
5,134
4.144279
0.174129
0.034014
0.076831
0.10084
0.442177
0.393758
0.372949
0.347339
0.347339
0.340936
0
0.031181
0.381574
5,134
163
111
31.496933
0.755906
0.067004
0
0.336207
0
0
0
0
0
0
0
0
0
1
0.155172
false
0
0.025862
0.008621
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5017203cb6c1ccd2ec216b379d968a6634173ea
21,118
py
Python
chip9-emulator/emulator.py
Quphoria/CHIP9
1ead51ea717e30e927f9b2b811fadd0b0571d354
[ "MIT" ]
1
2021-12-12T21:52:27.000Z
2021-12-12T21:52:27.000Z
chip9-emulator/emulator.py
Quphoria/CHIP9
1ead51ea717e30e927f9b2b811fadd0b0571d354
[ "MIT" ]
null
null
null
chip9-emulator/emulator.py
Quphoria/CHIP9
1ead51ea717e30e927f9b2b811fadd0b0571d354
[ "MIT" ]
null
null
null
import sys import pygame as pg import numpy as np import random import time pic = np.zeros(shape=(128,64)) width = 128 height = 64 refresh_rate = 60 interval = 1 / refresh_rate bootrom_file = "bootrom0" rom_file = "rom" # rom_file = "hello_world" debug = False pg.display.init() display = pg.display.set_mode((width*4...
23.997727
134
0.516479
3,112
21,118
3.375643
0.149422
0.070443
0.115754
0.029129
0.401523
0.328225
0.287292
0.258258
0.226749
0.198953
0
0.07246
0.347145
21,118
879
135
24.025028
0.68949
0.041576
0
0.348158
0
0
0.007088
0
0
0
0.056307
0
0
1
0.068615
false
0.010165
0.006353
0.002541
0.092757
0.013977
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b501d27bf56c98bbd366b6f8bf399a623a2e87f1
1,423
py
Python
Burp/lib/data.py
wisdark/HUNT
9b128913f62e01ed9e82db1e1eee79e4b88385fb
[ "Apache-2.0" ]
1,628
2017-08-07T17:27:17.000Z
2022-03-28T18:43:34.000Z
Burp/lib/data.py
wisdark/HUNT
9b128913f62e01ed9e82db1e1eee79e4b88385fb
[ "Apache-2.0" ]
48
2017-08-08T11:56:48.000Z
2021-04-08T18:01:31.000Z
Burp/lib/data.py
wisdark/HUNT
9b128913f62e01ed9e82db1e1eee79e4b88385fb
[ "Apache-2.0" ]
328
2017-08-08T05:12:48.000Z
2022-03-31T15:15:20.000Z
from __future__ import print_function import json import os class Data(): shared_state = {} def __init__(self): self.__dict__ = self.shared_state self.set_checklist(None) self.set_issues() def set_checklist(self, file_name): is_empty = file_name is None if is_empt...
26.849057
99
0.595924
171
1,423
4.707602
0.269006
0.059627
0.029814
0.037267
0.442236
0.370186
0.370186
0.370186
0.156522
0
0
0
0.295151
1,423
52
100
27.365385
0.802592
0
0
0.210526
0
0
0.07178
0
0
0
0
0
0
1
0.184211
false
0
0.078947
0.052632
0.368421
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b504bcac5479aa4c47a0573d3779bba648bf5ec4
4,133
py
Python
pyweb/overload.py
DrDaveD/wlcg-wpad
9947173b770c385376e02763b1462911b0af6d7c
[ "BSD-3-Clause" ]
null
null
null
pyweb/overload.py
DrDaveD/wlcg-wpad
9947173b770c385376e02763b1462911b0af6d7c
[ "BSD-3-Clause" ]
2
2016-06-24T17:24:19.000Z
2020-10-23T12:33:03.000Z
pyweb/overload.py
DrDaveD/wlcg-wpad
9947173b770c385376e02763b1462911b0af6d7c
[ "BSD-3-Clause" ]
1
2020-09-07T11:21:53.000Z
2020-09-07T11:21:53.000Z
# calculate the load on each org import threading # cannot use from wpad_dispatch here, have to import whole module, # because of circular dependency import wpad_dispatch from wpad_utils import * from wlcg_wpad import getiporg orgcleanminutes = 5 orgcleantime = 0 # Minute records keep track of the number of requ...
37.917431
127
0.605129
507
4,133
4.907298
0.331361
0.020096
0.019293
0.009646
0
0
0
0
0
0
0
0.008957
0.324704
4,133
108
128
38.268519
0.882479
0.322768
0
0.105263
0
0
0.03073
0
0
0
0
0
0
1
0.039474
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b50625d78235e9ce3f4c2da0638ea06afe91b30f
865
py
Python
test/bulk_insert.py
jfcarter2358/Ceres
cdfd92f9b1a71345a0b634722bc6c2be7f78cd91
[ "MIT" ]
null
null
null
test/bulk_insert.py
jfcarter2358/Ceres
cdfd92f9b1a71345a0b634722bc6c2be7f78cd91
[ "MIT" ]
null
null
null
test/bulk_insert.py
jfcarter2358/Ceres
cdfd92f9b1a71345a0b634722bc6c2be7f78cd91
[ "MIT" ]
null
null
null
import requests from datetime import datetime import time headers = { 'Content-Type': 'application/json' } with open('test/logs.txt', 'r') as f: logs = f.read().split('\n') levels = ['INFO', 'WARN', 'DEBUG', 'ERROR', 'TRACE'] messages = [] for i in range(0, len(logs)): if i % 100 == 0: print('{...
22.763158
81
0.528324
102
865
4.480392
0.588235
0.061269
0
0
0
0
0
0
0
0
0
0.022727
0.287861
865
38
82
22.763158
0.719156
0
0
0.0625
0
0
0.189376
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b50682e6cffc6dbeabe21d64aa2a3d1319871a0b
1,282
py
Python
tests/test_jsons.py
jrinks/greater-chicago-food-despository
67255aec807a1bb026d8ae2172b2bf353bb2cc46
[ "MIT" ]
null
null
null
tests/test_jsons.py
jrinks/greater-chicago-food-despository
67255aec807a1bb026d8ae2172b2bf353bb2cc46
[ "MIT" ]
null
null
null
tests/test_jsons.py
jrinks/greater-chicago-food-despository
67255aec807a1bb026d8ae2172b2bf353bb2cc46
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.abspath('')) # Raises linting error because not at top of file # Not sure how to resolve this with the pathing from src import uploadJson # noqa: E402 import src.config as config # noqa: E402 # Taking out of commission until new geojson format requested developed # def te...
28.488889
71
0.670047
173
1,282
4.820809
0.468208
0.033573
0.046763
0.040767
0
0
0
0
0
0
0
0.011134
0.229329
1,282
44
72
29.136364
0.832996
0.375195
0
0
0
0
0.075351
0
0
0
0
0
0.227273
1
0.136364
false
0
0.227273
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5068529d2a14e7fea802599be5ae03e8acda2e9
12,939
py
Python
tetris.py
AkshayRaul/Python-Scripts
52f1f9d329634830507fa7eeb885cb8d9c8afd88
[ "MIT" ]
null
null
null
tetris.py
AkshayRaul/Python-Scripts
52f1f9d329634830507fa7eeb885cb8d9c8afd88
[ "MIT" ]
null
null
null
tetris.py
AkshayRaul/Python-Scripts
52f1f9d329634830507fa7eeb885cb8d9c8afd88
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Code is personal property of the owner.Rights reserved by the user only. Codes on https://github.com/kt97679/tetris Attempt to spread the open source knowledge :) """ import sys import select import tty import termios import random import os import time import fcntl if (sys.hexversion >> 16) ...
28.626106
102
0.558312
1,641
12,939
4.210847
0.163315
0.062229
0.032417
0.014761
0.292475
0.173517
0.133575
0.100145
0.089436
0.07178
0
0.02901
0.325991
12,939
451
103
28.689579
0.76333
0.029059
0
0.186992
0
0
0.030069
0
0
0
0.009491
0
0
1
0.140921
false
0.00271
0.0271
0.00271
0.227642
0.03252
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b508d14c18fba6ec3f26029dc4d010c75e52591f
11,471
py
Python
cucm.py
PresidioCode/cucm-exporter
8771042afcb2f007477f7b47c1516092c621da2e
[ "MIT" ]
10
2020-10-06T01:12:41.000Z
2022-02-14T03:03:25.000Z
cucm.py
bradh11/cucm-exporter
8771042afcb2f007477f7b47c1516092c621da2e
[ "MIT" ]
1
2020-10-14T13:47:36.000Z
2020-10-17T03:06:25.000Z
cucm.py
PresidioCode/cucm-exporter
8771042afcb2f007477f7b47c1516092c621da2e
[ "MIT" ]
4
2020-10-13T16:19:46.000Z
2022-03-08T19:29:34.000Z
import time import json def export_users(ucm_axl): """ retrieve users from ucm """ try: user_list = ucm_axl.get_users( tagfilter={ "userid": "", "firstName": "", "lastName": "", "directoryUri": "", "tel...
40.677305
154
0.555488
861
11,471
7.219512
0.193961
0.024131
0.010135
0.010457
0.068855
0.068855
0.029118
0.018822
0.018822
0
0
0.00712
0.326563
11,471
281
155
40.822064
0.79754
0.032953
0
0.179916
0
0.008368
0.257635
0.10358
0
0
0
0.003559
0
1
0.025105
false
0
0.008368
0.004184
0.07113
0.083682
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b50d91bfd6f0c80409d4587612832b09f44bae48
829
py
Python
ml_train.py
ElvinOuyang/LearningFlask
eb94355c971897dc06943b8cfdbcdd0f0da44f51
[ "MIT" ]
null
null
null
ml_train.py
ElvinOuyang/LearningFlask
eb94355c971897dc06943b8cfdbcdd0f0da44f51
[ "MIT" ]
null
null
null
ml_train.py
ElvinOuyang/LearningFlask
eb94355c971897dc06943b8cfdbcdd0f0da44f51
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.datasets import load_iris from sklearn.naive_bayes import GaussianNB import pickle def train_iris_nb(): """Train a GaussianNB model on iris dataset.""" X, y_train = load_iris(return_X_y=True, as_frame=True) colnames = X.columns X_train = X.values ...
25.90625
58
0.683957
125
829
4.304
0.376
0.066915
0.040892
0.063197
0
0
0
0
0
0
0
0
0.207479
829
32
59
25.90625
0.818874
0.135103
0
0.083333
0
0
0.034188
0
0
0
0
0
0
1
0.166667
false
0
0.208333
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b51221f86b651bcc587032cb289ea216ea969861
6,612
py
Python
Code/pytorchFwdModel.py
mChataign/smileCompletion
1bde2dd9fada2194c79cb3599bc9e9139cde6ee5
[ "BSD-3-Clause" ]
4
2021-01-06T13:53:39.000Z
2021-12-16T21:23:13.000Z
Code/pytorchFwdModel.py
mChataign/smileCompletion
1bde2dd9fada2194c79cb3599bc9e9139cde6ee5
[ "BSD-3-Clause" ]
null
null
null
Code/pytorchFwdModel.py
mChataign/smileCompletion
1bde2dd9fada2194c79cb3599bc9e9139cde6ee5
[ "BSD-3-Clause" ]
2
2021-01-06T20:53:15.000Z
2021-12-29T08:59:31.000Z
#Import modules import os import pandas as pd import numpy as np from pandas import DatetimeIndex import dask import scipy import time import glob import torch import torch.nn as nn from live_plotter import live_plotter import matplotlib.pyplot as plt from mpl_toolkits import mplot3d from functools impo...
43.788079
141
0.57078
533
6,612
7.043152
0.288931
0.020511
0.020778
0.030368
0.359616
0.302078
0.302078
0.302078
0.302078
0.302078
0
0.009294
0.284029
6,612
150
142
44.08
0.783692
0.133243
0
0.152941
0
0
0.004086
0.004086
0
0
0
0
0
1
0.047059
false
0
0.211765
0
0.305882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5122d95a7d1bf2036d53b90080cc31fd62623ab
911
py
Python
quickstart.py
s-samarth/Learning-Tensorflow
a46d8be1a741de5a0f366af83b8534cefcf0b615
[ "MIT" ]
null
null
null
quickstart.py
s-samarth/Learning-Tensorflow
a46d8be1a741de5a0f366af83b8534cefcf0b615
[ "MIT" ]
null
null
null
quickstart.py
s-samarth/Learning-Tensorflow
a46d8be1a741de5a0f366af83b8534cefcf0b615
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras import warnings warnings.filterwarnings('ignore') mnist = tf.keras.datasets.mnist (X_train, y_train), (X_test, y_test) = mnist.load_data() X_train, X_test = X_train / 255.0, X_test / 255.0 X_train.shape = (60000, 28, 28) model = tf.keras.Sequen...
27.606061
70
0.728869
143
911
4.503497
0.447552
0.065217
0.080745
0.037267
0
0
0
0
0
0
0
0.044081
0.12843
911
32
71
28.46875
0.767003
0.084523
0
0.083333
0
0
0.026474
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b513b3e8cf7e95cf1452eb5dac904886fb0f42d5
1,546
py
Python
equation_solution.py
free-free/Algorithm
174b6bc7a73f5ec1393149d238fc4496b2baedaa
[ "Apache-2.0" ]
7
2015-11-15T05:34:33.000Z
2021-04-29T00:39:08.000Z
equation_solution.py
free-free/Algorithm
174b6bc7a73f5ec1393149d238fc4496b2baedaa
[ "Apache-2.0" ]
null
null
null
equation_solution.py
free-free/Algorithm
174b6bc7a73f5ec1393149d238fc4496b2baedaa
[ "Apache-2.0" ]
null
null
null
#!/bin/env python3.5 import math def test_func(x): return x*x*x+1.1*x*x+0.9*x-1.4 def df_test_func(x): return 3*x*x+2.2*x+0.9 # binary seperation def binary_seperation(func, x, ap=0.001): list(x).sort() x2 = x.pop() x1 = x.pop() y1 = func(x1) y2 = func(x2) if y1 == 0: re...
20.342105
57
0.467012
241
1,546
2.829876
0.20332
0.070381
0.035191
0.043988
0.258065
0.222874
0.222874
0.222874
0.222874
0.222874
0
0.094668
0.405563
1,546
75
58
20.613333
0.647443
0.034282
0
0.466667
0
0
0.005405
0
0
0
0
0
0
1
0.066667
false
0
0.016667
0.033333
0.283333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5141515336b431125ee2d8bfb2d41e31fd83729
3,428
py
Python
test/test_sparql/test_sparql_parser.py
trishnaguha/rdfextras
c66b30de4a3b9cb67090add06cb8a9cf05d2c545
[ "BSD-3-Clause" ]
3
2015-05-15T02:18:21.000Z
2019-02-12T03:14:46.000Z
test/test_sparql/test_sparql_parser.py
trishnaguha/rdfextras
c66b30de4a3b9cb67090add06cb8a9cf05d2c545
[ "BSD-3-Clause" ]
1
2015-11-05T15:18:36.000Z
2015-11-05T16:44:04.000Z
test/test_sparql/test_sparql_parser.py
trishnaguha/rdfextras
c66b30de4a3b9cb67090add06cb8a9cf05d2c545
[ "BSD-3-Clause" ]
4
2015-11-05T07:24:41.000Z
2022-01-18T07:54:43.000Z
import unittest from rdflib import Graph def buildQueryArgs(q): return dict(select="", where="", optional="") class SPARQLParserTest(unittest.TestCase): known_issue = True def setUp(self): self.graph = Graph() pass def tearDown(self): pass tests = [ ("basic", """\ ...
25.774436
66
0.540548
429
3,428
4.212121
0.237762
0.059768
0.07969
0.106253
0.462092
0.448257
0.390703
0.387382
0.315993
0.248478
0
0.023482
0.279463
3,428
132
67
25.969697
0.708097
0.027421
0
0.297872
0
0
0.306141
0.174152
0
0
0
0
0.06383
1
0.085106
false
0.042553
0.042553
0.021277
0.191489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b514465b893f2b24e5e74f092847f939b1d7ff56
1,228
py
Python
day1.py
derek-elliott/aoc2018
b7fed374e94665cb70eff413297b2e3865f835c4
[ "MIT" ]
null
null
null
day1.py
derek-elliott/aoc2018
b7fed374e94665cb70eff413297b2e3865f835c4
[ "MIT" ]
null
null
null
day1.py
derek-elliott/aoc2018
b7fed374e94665cb70eff413297b2e3865f835c4
[ "MIT" ]
null
null
null
class Frequency: def __init__(self): self.frequency = 0 def increment(self, i): self.frequency = self.frequency + i def decrement(self, i): self.frequency = self.frequency - i def __str__(self): return str(self.frequency) def __repr__(self): return str(self.fr...
25.583333
56
0.566775
164
1,228
4.042683
0.286585
0.137255
0.027149
0.054299
0.404223
0.383107
0.295626
0.295626
0.190045
0.190045
0
0.016
0.287459
1,228
47
57
26.12766
0.741714
0
0
0.341463
0
0
0.07329
0
0
0
0
0
0
1
0.195122
false
0
0
0.04878
0.341463
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b5155fe82e40d2b63e9f83d54603790af7163224
5,122
py
Python
file_sync_tool/transfer/process.py
jackd248/file-sync-tool
68fbca562f232c2bc064f546d9eade20a2ae456f
[ "MIT" ]
null
null
null
file_sync_tool/transfer/process.py
jackd248/file-sync-tool
68fbca562f232c2bc064f546d9eade20a2ae456f
[ "MIT" ]
null
null
null
file_sync_tool/transfer/process.py
jackd248/file-sync-tool
68fbca562f232c2bc064f546d9eade20a2ae456f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: future_fstrings -*- from db_sync_tool.utility import mode, system, output, helper from db_sync_tool.remote import client as remote_client from file_sync_tool.transfer import utility def transfer_files(): """ Transfering configured files between clients :return: ""...
44.53913
117
0.639594
591
5,122
5.309645
0.174281
0.086042
0.066284
0.053537
0.524538
0.473231
0.445825
0.370618
0.323454
0.274697
0
0.000262
0.253417
5,122
114
118
44.929825
0.820345
0.092932
0
0.297619
0
0.095238
0.2631
0.219432
0
0
0
0
0
1
0.02381
false
0.011905
0.035714
0
0.059524
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82ef5f165b2867c26c9995bbb6a7009f9e7374ac
3,623
py
Python
src/utility_lib/collection_utilities/collection_utilities.py
DonalChilde/utility_lib
9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545
[ "MIT" ]
null
null
null
src/utility_lib/collection_utilities/collection_utilities.py
DonalChilde/utility_lib
9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545
[ "MIT" ]
null
null
null
src/utility_lib/collection_utilities/collection_utilities.py
DonalChilde/utility_lib
9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545
[ "MIT" ]
null
null
null
from operator import attrgetter, itemgetter from typing import ( Sequence, Any, Tuple, Union, List, Iterable, Dict, Callable, NamedTuple, ) SortSpec = NamedTuple("SortSpec", [("sort_key", Union[str, int]), ("reversed", bool)]) def optional_collection(argument, collection_factory)...
27.44697
95
0.629865
458
3,623
4.78821
0.194323
0.076607
0.065207
0.03192
0.591883
0.509804
0.479708
0.479708
0.425901
0.392157
0
0.000755
0.268838
3,623
131
96
27.656489
0.827105
0.12117
0
0.547368
0
0
0.029383
0
0
0
0
0.007634
0
1
0.063158
false
0
0.021053
0
0.178947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82f09047154f2ff625d401ca2b201a78ede23eab
8,773
py
Python
venv/Lib/site-packages/direct/particles/ParticleEffect.py
ferris77/pacman
9d793146189630b4305af0bc7af65ce822b3998f
[ "MIT" ]
null
null
null
venv/Lib/site-packages/direct/particles/ParticleEffect.py
ferris77/pacman
9d793146189630b4305af0bc7af65ce822b3998f
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/direct/particles/ParticleEffect.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
1
2021-04-09T00:02:59.000Z
2021-04-09T00:02:59.000Z
from panda3d.core import * # Leave these imports in, they may be used by ptf files. from panda3d.physics import * from . import Particles from . import ForceGroup from direct.directnotify import DirectNotifyGlobal class ParticleEffect(NodePath): notify = DirectNotifyGlobal.directNotify.newCategory('ParticleEff...
33.484733
94
0.596831
939
8,773
5.518637
0.216187
0.059051
0.044384
0.03242
0.212466
0.199923
0.180818
0.107294
0.067541
0.052103
0
0.007039
0.303659
8,773
261
95
33.613027
0.841218
0.084578
0
0.193878
0
0
0.053831
0.011392
0
0
0
0
0.005102
1
0.147959
false
0
0.02551
0.040816
0.341837
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82f6b63b42d651692733eea279e00b78a2b3c076
1,264
py
Python
src/visualisation/draw_map.py
Aluriak/24hducode2016
629a3225c5a426d3deb472d67f0e0091904d1547
[ "Unlicense" ]
null
null
null
src/visualisation/draw_map.py
Aluriak/24hducode2016
629a3225c5a426d3deb472d67f0e0091904d1547
[ "Unlicense" ]
null
null
null
src/visualisation/draw_map.py
Aluriak/24hducode2016
629a3225c5a426d3deb472d67f0e0091904d1547
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- ########## # IMPORT # ########## import plotly.offline as py import plotly.tools as tls tls.set_credentials_file(username='ducktypers', api_key='fd81wnx3lh') ######## # MAIN # ######## def draw_map(lon, lat, text, titre='NO TITLE'): """ Take 3 list as input, and the title of the ma...
25.28
90
0.476266
131
1,264
4.557252
0.641221
0.040201
0.030151
0.040201
0
0
0
0
0
0
0
0.057669
0.355222
1,264
49
91
25.795918
0.674847
0.151899
0
0
0
0
0.206318
0
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
82f79bc5bf128b18eacd7d7a60bb82df70b8c973
5,632
py
Python
src/promnesia/sources/reddit.py
seanbreckenridge/promnesia-fork
92ac664176c8101672cbab90ea6964c360ff287e
[ "MIT" ]
2
2018-06-04T05:59:02.000Z
2019-08-25T21:45:07.000Z
src/promnesia/sources/reddit.py
seanbreckenridge/promnesia-fork
92ac664176c8101672cbab90ea6964c360ff287e
[ "MIT" ]
1
2019-07-14T13:23:45.000Z
2019-07-14T13:23:45.000Z
src/promnesia/sources/reddit.py
seanbreckenridge/promnesia-fork
92ac664176c8101672cbab90ea6964c360ff287e
[ "MIT" ]
null
null
null
''' Uses HPI [[https://github.com/karlicoss/HPI/blob/master/doc/MODULES.org#myreddit][reddit]] module ''' from itertools import chain from typing import Set, Optional from ..common import Visit, Loc, extract_urls, Results, logger def index(*, render_markdown: bool = False, renderer: Optional['RedditRenderer'] = Non...
32.182857
133
0.588956
690
5,632
4.694203
0.288406
0.05619
0.013893
0.016054
0.267058
0.223217
0.196048
0.155295
0.155295
0.094782
0
0.000265
0.329723
5,632
174
134
32.367816
0.857748
0.155895
0
0.357724
0
0
0.097695
0
0
0
0
0.005747
0.00813
1
0.065041
false
0
0.105691
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0