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
3eb895e821fb22d4a50a89f3135556f8f2e16071
1,258
py
Python
kern_sym_test.py
rlluo1/SET
20625a3fa528b75a1ffe8794ecb9b9d0557d363f
[ "NASA-1.3" ]
10
2018-01-08T22:09:24.000Z
2020-12-16T00:57:06.000Z
kern_sym_test.py
rlluo1/SET
20625a3fa528b75a1ffe8794ecb9b9d0557d363f
[ "NASA-1.3" ]
7
2018-01-09T20:05:51.000Z
2019-09-05T19:12:49.000Z
kern_sym_test.py
rlluo1/SET
20625a3fa528b75a1ffe8794ecb9b9d0557d363f
[ "NASA-1.3" ]
5
2018-08-07T15:18:09.000Z
2021-05-12T19:33:52.000Z
from osgeo import gdal #from osgeo import gdal_array import numpy as np from PIL import Image #from matplotlib import pyplot as plt #tests whether north, south kernels match (they should) fp000 = "kernel_30.23151_1.0_80.0_0.0.tif" fp180 = "kernel_30.23151_1.0_80.0_-180.0.tif" ds_k000 = gdal.Open(fp000) ds_k180 = gdal...
26.765957
55
0.754372
189
1,258
4.89418
0.391534
0.025946
0.032432
0.041081
0.086486
0.038919
0.038919
0
0
0
0
0.151596
0.103339
1,258
46
56
27.347826
0.66844
0.228935
0
0
0
0
0.167534
0.069719
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
0.451613
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
1
0
1
3ebcc19d7ed76090665b8bac58610e8eada91164
1,766
py
Python
echo_client.py
3x3x3/websocket_study
fe979e5055117945342f8ff118470fd424e34ceb
[ "MIT" ]
null
null
null
echo_client.py
3x3x3/websocket_study
fe979e5055117945342f8ff118470fd424e34ceb
[ "MIT" ]
null
null
null
echo_client.py
3x3x3/websocket_study
fe979e5055117945342f8ff118470fd424e34ceb
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import socket import random import base64 import hashlib import re MAGIC_NUMBER = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" HOST = "localhost" PORT = 5858 def main(): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) ########################...
27.169231
98
0.515289
223
1,766
3.896861
0.44843
0.025316
0.06214
0.055236
0.025316
0
0
0
0
0
0
0.037945
0.283692
1,766
64
99
27.59375
0.649012
0.053228
0
0
0
0
0.21124
0.051034
0
0
0
0.015625
0
1
0.025641
false
0
0.128205
0
0.205128
0.051282
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
1
0
0
0
0
0
0
0
0
0
0
1
3ec08ea05b869bcf2c3330196c674af2f46cefac
521
py
Python
mainmenu.py
Terebo/Three-in-a-row
aed72a5ff88d1a639cc7e2e035e2eee35e00cf06
[ "Unlicense" ]
1
2020-05-21T18:13:52.000Z
2020-05-21T18:13:52.000Z
mainmenu.py
Terebo/Thre-in-a-row
aed72a5ff88d1a639cc7e2e035e2eee35e00cf06
[ "Unlicense" ]
null
null
null
mainmenu.py
Terebo/Thre-in-a-row
aed72a5ff88d1a639cc7e2e035e2eee35e00cf06
[ "Unlicense" ]
null
null
null
import sys import colorama def mainmenu(): print("choose:\n \033[1;33;40msingleplayer\n \033[1;30;40mmultiplayer\n \033[1;31;40mexit\33[0m") inputd = input("->") eval(inputd + "()") def exit(): sys.exit() def multiplayer(): import multiplayer def singleplayer(): print("choose:\n \033[1;32;40m...
21.708333
101
0.62572
68
521
4.794118
0.455882
0.06135
0.076687
0.092025
0.09816
0
0
0
0
0
0
0.109264
0.191939
521
23
102
22.652174
0.665083
0
0
0
0
0.105263
0.309021
0.193858
0
0
0
0
0
1
0.210526
false
0
0.263158
0
0.473684
0.105263
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
1
0
0
0
0
0
0
0
1
3ecdb69d19deee0a287271777ba6aac21d27f9a1
376
py
Python
search_pokemon/views.py
JuanJTorres11/pokemon
cbd6230e4937215f9e56eb3eed2f7e6c8af54b38
[ "MIT" ]
1
2020-08-19T17:53:37.000Z
2020-08-19T17:53:37.000Z
search_pokemon/views.py
JuanJTorres11/pokemon
cbd6230e4937215f9e56eb3eed2f7e6c8af54b38
[ "MIT" ]
null
null
null
search_pokemon/views.py
JuanJTorres11/pokemon
cbd6230e4937215f9e56eb3eed2f7e6c8af54b38
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import JsonResponse from .services import logic def about(request): return render(request, 'service/about.html') def info_pokemon(request, name): pokemon = logic.get_pokemon(name) if pokemon: return JsonResponse(pokemon) else: retu...
23.5
67
0.726064
45
376
6.022222
0.555556
0.073801
0
0
0
0
0
0
0
0
0
0
0.183511
376
15
68
25.066667
0.882736
0
0
0
0
0
0.12766
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.727273
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
1
0
0
1
3ed4ec843e44579d3689ab984664f4ce90546b88
519
py
Python
Lists as Stacks and Queues/03. Fast Food.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
Lists as Stacks and Queues/03. Fast Food.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
Lists as Stacks and Queues/03. Fast Food.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
from collections import deque total_food_quantity = int(input()) order_queue = deque() for order in input().split(): order_queue.append(int(order)) print(max(order_queue)) for i in range(len(order_queue)): order = order_queue.popleft() if order <= total_food_quantity: total_food_quantity -= order...
25.95
75
0.684008
73
519
4.671233
0.438356
0.234604
0.14956
0
0
0
0
0
0
0
0
0.002375
0.188825
519
20
75
25.95
0.807601
0
0
0.117647
0
0
0.053846
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.176471
0
0
0
null
1
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
0
1
3edb9d0286acb8012202dd05d05dfcfd721b4494
1,855
py
Python
ignis/entities/vent.py
insertdead/ignis
40258161092e3c98ed96f6ce121690f5f7dab15b
[ "Apache-2.0" ]
null
null
null
ignis/entities/vent.py
insertdead/ignis
40258161092e3c98ed96f6ce121690f5f7dab15b
[ "Apache-2.0" ]
1
2022-01-30T03:22:38.000Z
2022-03-18T22:56:35.000Z
ignis/entities/vent.py
insertdead/ignis
40258161092e3c98ed96f6ce121690f5f7dab15b
[ "Apache-2.0" ]
null
null
null
"""Manage vent entities""" from dataclasses import dataclass from .common import Entity, EntityStore class Vent(Entity): """Entity for all flair vents""" def __init__(self, token): entity_type = "vents" self.vents: list[VentStore] = [] super().__init__(token, entity_type) async ...
31.982759
124
0.591375
228
1,855
4.653509
0.385965
0.04524
0.0377
0.02262
0
0
0
0
0
0
0
0.002327
0.305121
1,855
57
125
32.54386
0.820791
0.148248
0
0
0
0
0.091644
0
0
0
0
0.017544
0.025
1
0.05
false
0
0.05
0
0.275
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
1
0
0
0
0
0
0
0
0
0
0
1
3edbdbd9ff3e8310ac9def926c36a2a07d420f84
2,820
py
Python
tests/test_printouts.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
12
2022-03-18T11:47:26.000Z
2022-03-25T13:57:08.000Z
tests/test_printouts.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
7
2022-03-18T11:40:36.000Z
2022-03-29T22:15:01.000Z
tests/test_printouts.py
amangoel185/uproot-browser
8181913ac04d0318b05256923d8980d6d3acaa7f
[ "BSD-3-Clause" ]
1
2022-03-21T14:37:07.000Z
2022-03-21T14:37:07.000Z
from __future__ import annotations import sys import pytest import rich.console from skhep_testdata import data_path from uproot_browser.tree import print_tree OUT1 = """\ 📁 uproot-Event.root ┣━━ ❓ <unnamed> TProcessID ┣━━ 🌴 T (1000) ┃ ┣━━ 🍁 event Event ┃ ┣━━ 🍁 TObject (group of fUniqueID:uint32_t, fBits:ui...
30.322581
102
0.621277
501
2,820
4.025948
0.261477
0.117005
0.089241
0.154685
0.439266
0.323252
0.133366
0.034705
0
0
0
0.049561
0.191489
2,820
92
103
30.652174
0.696053
0
0
0
0
0.011905
0.833688
0.08617
0
0
0
0
0.02381
1
0.011905
false
0
0.071429
0
0.083333
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ee7112c9d2f7216f1032d821b04c15eda730ba7
837
py
Python
lang/py/pylib/code/random/random_state.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
1
2022-01-29T08:32:11.000Z
2022-01-29T08:32:11.000Z
lang/py/pylib/code/random/random_state.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/code/random/random_state.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
1
2022-01-29T08:32:12.000Z
2022-01-29T08:32:12.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Save and restore state """ #end_pymotw_header import random import os import cPickle as pickle if os.path.exists('state.dat'): # Restore the previously saved state print 'Found state.dat, initializing rand...
20.925
57
0.67503
127
837
4.433071
0.566929
0.071048
0.046181
0.056838
0.138544
0.138544
0.138544
0.138544
0.138544
0.138544
0
0.020802
0.195938
837
39
58
21.461538
0.81575
0.295102
0
0.3
0
0
0.233151
0
0
0
0
0
0
0
null
null
0
0.15
null
null
0.35
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
1
0
0
0
0
0
0
0
0
1
3ee82f8ee14e907c075ada5943fbcc262c3ee8e6
1,521
py
Python
mminterconcept/analysis/mdtraj_density.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
mminterconcept/analysis/mdtraj_density.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
mminterconcept/analysis/mdtraj_density.py
Lnaden/mminterconcept
83c5bc75f93113443d2126551e4df3940637536d
[ "MIT" ]
null
null
null
''' This module provides access to the MDTraj density function using a MDTraj Trajectory. ''' from .models import Component import mdtraj import numpy from typing import Tuple # def mdtraj_density(trajectory_file: str) -> numpy.ndarray: # ''' # This method provides easy access to MDTraj's densi...
33.065217
104
0.631164
178
1,521
5.325843
0.320225
0.067511
0.082278
0.091772
0.187764
0.187764
0.187764
0.187764
0.187764
0.139241
0
0
0.26693
1,521
45
105
33.8
0.850224
0.219592
0
0
0
0
0.008108
0
0
0
0
0
0
1
0.173913
false
0
0.173913
0
0.565217
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
1
0
0
1
3ee993a1bf39ace09f9d9430779abd7e13988fa8
2,854
py
Python
src/old/mimic_ts.py
rathp/time_series_prediction
c776f988c633868c7106041ac91ab56ca9fd7968
[ "MIT" ]
1
2020-09-17T20:59:46.000Z
2020-09-17T20:59:46.000Z
src/old/mimic_ts.py
rathp/time_series_prediction
c776f988c633868c7106041ac91ab56ca9fd7968
[ "MIT" ]
null
null
null
src/old/mimic_ts.py
rathp/time_series_prediction
c776f988c633868c7106041ac91ab56ca9fd7968
[ "MIT" ]
null
null
null
# mimic_ts.py # NOTE: will not be used # Converts raw MIMIC time-series data to the standardized format # Input: the MIMIC-III database in CSV format (pointed to by INPUT_PATH) # Output: ts.csv # TODO: cohort selection # TODO: urine output import pandas as pd # TODO: change to actual (non-demo) data path INPUT_PAT...
37.552632
76
0.695515
390
2,854
4.933333
0.358974
0.072765
0.018711
0.029106
0.230769
0.162162
0.056133
0.056133
0.056133
0.056133
0
0.005027
0.16363
2,854
75
77
38.053333
0.801005
0.262439
0
0.044444
0
0
0.321514
0.012937
0
0
0
0.013333
0.044444
1
0
false
0
0.022222
0
0.022222
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
1
0
0
0
0
0
0
0
0
0
0
1
3ef09518c37ff238fbdb8457ba28c65bb6e40ed8
2,747
py
Python
SOS/migrations/0004_auto_20181225_0056.py
hellen6654/DataBase_CGHP
d4e393d3994c3a7b576c651ad2ac7ef919a3f386
[ "MIT" ]
null
null
null
SOS/migrations/0004_auto_20181225_0056.py
hellen6654/DataBase_CGHP
d4e393d3994c3a7b576c651ad2ac7ef919a3f386
[ "MIT" ]
null
null
null
SOS/migrations/0004_auto_20181225_0056.py
hellen6654/DataBase_CGHP
d4e393d3994c3a7b576c651ad2ac7ef919a3f386
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-12-24 16:56 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('SOS', '0003_remove_order_discount'), ] operations = [ migrations.CreateModel(...
44.306452
236
0.600655
270
2,747
5.985185
0.362963
0.074876
0.043317
0.068069
0.347772
0.347772
0.294554
0.246287
0.246287
0.246287
0
0.015557
0.251183
2,747
61
237
45.032787
0.770053
0.016382
0
0.472727
1
0
0.137037
0.00963
0
0
0
0
0
1
0
false
0
0.054545
0
0.109091
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ef3d150b4a766ef1c19595b10d6de961035953c
1,294
py
Python
globals.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
null
null
null
globals.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
null
null
null
globals.py
mdprewitt/sigmund_droid
aa33df7285f2ab468016c08c98505bc2f8436734
[ "MIT" ]
1
2017-05-31T16:34:36.000Z
2017-05-31T16:34:36.000Z
from math import pi from ev3dev.ev3 import ( LargeMotor, OUTPUT_C, OUTPUT_B, OUTPUT_A, MediumMotor, TouchSensor, InfraredSensor, Screen, Leds, ) X_POSITION = 0 Y_POSITION = 0 RED_DESK = tuple([30, 20]) BLUE_DESK = tuple([30, -20]) WHEEL_DIAMETER = 4.3 # centimeters WHEEL_CIRCUMF...
19.606061
73
0.674652
175
1,294
4.685714
0.451429
0.073171
0.065854
0.036585
0.05122
0
0
0
0
0
0
0.050645
0.221793
1,294
65
74
19.907692
0.763654
0.098145
0
0
0
0
0.07428
0
0
0
0
0.015385
0
1
0.068182
false
0
0.045455
0
0.113636
0.022727
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
1
0
0
0
0
0
0
0
0
0
0
1
41023d1f0a29b0e6ff5e7f6150dd562ca13ad038
1,352
py
Python
chrome/test/mini_installer/verifier_runner.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
chrome/test/mini_installer/verifier_runner.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/test/mini_installer/verifier_runner.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2013 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 file_verifier import process_verifier import registry_verifier class VerifierRunner: """Runs all Verifiers.""" def __init__(self): """Const...
35.578947
78
0.70932
163
1,352
5.748466
0.546012
0.051227
0.040555
0
0
0
0
0
0
0
0
0.006616
0.217456
1,352
37
79
36.540541
0.879017
0.454142
0
0
0
0
0.069565
0
0
0
0
0.027027
0
1
0.125
false
0
0.1875
0
0.375
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
1
0
0
0
0
0
0
0
0
0
0
1
412069ad25738e05fb56127b225a22a97988144a
4,767
py
Python
pipeline.py
ooominds/ndltenses
19d38510158e9a8c9e5b2f262587da0875d11c43
[ "MIT" ]
null
null
null
pipeline.py
ooominds/ndltenses
19d38510158e9a8c9e5b2f262587da0875d11c43
[ "MIT" ]
1
2021-11-01T09:51:30.000Z
2021-11-01T09:51:30.000Z
pipeline.py
ooominds/ndltenses
19d38510158e9a8c9e5b2f262587da0875d11c43
[ "MIT" ]
null
null
null
from ndl_tense.data_preparation import create_sentence_file,annotate_tenses, prepare_data, prepare_ndl_events, extract_infinitive, extract_ngrams, prepare_ngrams, prepare_cues #below import commented out for now, uncomment if you want to run step 6 from ndl_tense.simulations import ndl_model #from ndl_tense.post_proce...
44.971698
175
0.746591
704
4,767
4.81108
0.242898
0.042516
0.06643
0.115146
0.503691
0.408916
0.358725
0.358725
0.336286
0.320047
0
0.00463
0.184393
4,767
106
176
44.971698
0.866512
0.475351
0
0.039216
0
0
0.020681
0.009327
0
0
0
0
0
1
0.156863
true
0
0.117647
0
0.27451
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
1
0
0
0
0
0
0
1
412076cf3f992409cb64b40ff04481c82726d347
2,612
py
Python
server/server.py
msanzn/Operacion_C.A.F.E
2b561f3730e2234b6af636faaa5eae2525f0d371
[ "MIT" ]
null
null
null
server/server.py
msanzn/Operacion_C.A.F.E
2b561f3730e2234b6af636faaa5eae2525f0d371
[ "MIT" ]
null
null
null
server/server.py
msanzn/Operacion_C.A.F.E
2b561f3730e2234b6af636faaa5eae2525f0d371
[ "MIT" ]
null
null
null
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import SocketServer import json import cgi class Server(BaseHTTPRequestHandler): def _set_headers(self): self.send_response(200) self.send_header('Content-type', 'application/json') self.send_header('Access-Control-Allow-Origin...
34.826667
78
0.627106
323
2,612
4.910217
0.272446
0.090794
0.123581
0.163934
0.610971
0.610971
0.610971
0.610971
0.58512
0.518285
0
0.009553
0.238515
2,612
74
79
35.297297
0.787833
0.054364
0
0.465517
0
0
0.263286
0.146045
0
0
0
0
0
1
0.103448
false
0
0.086207
0
0.241379
0.068966
0
0
0
null
0
0
1
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
0
1
4122a4a7a07c3939594f1742e279d99798eee4db
1,161
py
Python
setup.py
phille97/python-fortnox
480551f321703a0c1ac24949318e8dd4d52acb13
[ "MIT" ]
null
null
null
setup.py
phille97/python-fortnox
480551f321703a0c1ac24949318e8dd4d52acb13
[ "MIT" ]
null
null
null
setup.py
phille97/python-fortnox
480551f321703a0c1ac24949318e8dd4d52acb13
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="fortnox", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[], tests_require=[], entry_points={ 'console_scripts':[] }, license='MIT', description='Pyth...
30.552632
82
0.658053
126
1,161
5.960317
0.642857
0.079893
0.055925
0.087883
0.225033
0.147803
0.101198
0
0
0
0
0.010718
0.196382
1,161
37
83
31.378378
0.794212
0.017227
0
0
0
0
0.499123
0.047368
0
0
0
0
0
1
0
true
0
0.03125
0
0.03125
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
1
0
0
0
0
0
0
1
41233e24b192cc46344f7c0d95ac75c064fd199f
4,348
py
Python
tests/core/test_limit.py
perillaroc/takler
607a64ff22b33d507f90acca4640963e69626879
[ "Apache-2.0" ]
null
null
null
tests/core/test_limit.py
perillaroc/takler
607a64ff22b33d507f90acca4640963e69626879
[ "Apache-2.0" ]
null
null
null
tests/core/test_limit.py
perillaroc/takler
607a64ff22b33d507f90acca4640963e69626879
[ "Apache-2.0" ]
null
null
null
import sys import pytest from takler.core import Limit, Flow, Task from takler.visitor import pre_order_travel, PrintVisitor def test_create_limit(): limit_count = 20 limit_name = "post_limit" limit = Limit(limit_name, limit_count) assert limit.name == limit_name assert limit.limit == limit_coun...
24.155556
69
0.634085
574
4,348
4.627178
0.118467
0.050075
0.05384
0.04744
0.484563
0.429217
0.403614
0.403614
0.285768
0.252636
0
0.060094
0.265179
4,348
179
70
24.290503
0.771205
0.076357
0
0.394737
0
0
0.05658
0
0
0
0
0
0.421053
1
0.061404
false
0.008772
0.035088
0
0.114035
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
1
0
0
0
0
0
0
0
0
0
1
412cd7555c080a2b7f7ec70eb5c9d94a7f6ce6c2
532
py
Python
parser/fase2/team10/InstruccionesPL/ObtenerSql/ObtenerSql.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team10/InstruccionesPL/ObtenerSql/ObtenerSql.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team10/InstruccionesPL/ObtenerSql/ObtenerSql.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from InstruccionesPL.TablaSimbolosPL.InstruccionPL import InstruccionPL class ObtenerSql(InstruccionPL): def __init__(self, cadena , tipo, linea, columna, strGram): InstruccionPL.__init__(self, tipo, linea, columna, strGram) self.cadena = cadena def ejecutar(self, tabla, arb...
31.294118
75
0.671053
56
532
6.232143
0.517857
0.114613
0.091691
0.131805
0
0
0
0
0
0
0
0
0.234962
532
16
76
33.25
0.857494
0.045113
0
0
0
0
0.078895
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.5
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
1
0
0
0
0
0
0
0
1
f5b5fa913da039d69eca8673ecd203270a1b41ce
972
py
Python
hoover/contrib/twofactor/migrations/0001_initial.py
Spiderpig86/search
74daa985e7d8ddefc323100c2cbf2a279f5c9254
[ "MIT" ]
null
null
null
hoover/contrib/twofactor/migrations/0001_initial.py
Spiderpig86/search
74daa985e7d8ddefc323100c2cbf2a279f5c9254
[ "MIT" ]
null
null
null
hoover/contrib/twofactor/migrations/0001_initial.py
Spiderpig86/search
74daa985e7d8ddefc323100c2cbf2a279f5c9254
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-15 19:21 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import hoover.contrib.twofactor.models class Migration(migrations.Migration): initial = True ...
32.4
121
0.666667
109
972
5.779817
0.605505
0.038095
0.044444
0.069841
0
0
0
0
0
0
0
0.025
0.218107
972
29
122
33.517241
0.803947
0.067901
0
0
1
0
0.03433
0
0
0
0
0
0
1
0
false
0
0.238095
0
0.428571
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f5c04c8e5db163c48a6deadf53077228f85c9d46
319
py
Python
ftoc.py
courtney-rosenthal/python-examples
24112a351aadbbb8b881668807950534eb8e728a
[ "Unlicense" ]
null
null
null
ftoc.py
courtney-rosenthal/python-examples
24112a351aadbbb8b881668807950534eb8e728a
[ "Unlicense" ]
null
null
null
ftoc.py
courtney-rosenthal/python-examples
24112a351aadbbb8b881668807950534eb8e728a
[ "Unlicense" ]
null
null
null
'''ftoc.py - Fahrenheit to Celsius temperature converter''' def f_to_c(f): c = (f - 32) * (5/9) return c def input_float(prompt): ans = input(prompt) return float(ans) f = input_float("What is the temperature (in degrees Fahrenheit)? ") c = f_to_c(f) print("That is", round(c, 1), "degrees Celsius")
22.785714
68
0.648903
52
319
3.865385
0.519231
0.039801
0.039801
0.049751
0
0
0
0
0
0
0
0.019531
0.197492
319
14
69
22.785714
0.765625
0.166144
0
0
0
0
0.272031
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.444444
0.111111
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
1
0
0
0
0
0
0
0
1
f5c08c7fcc24e48bf53f0b2ea0fb439ac860aa73
677
py
Python
sols/1913.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1913.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1913.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
class Solution: # Sort (Accepted), O(n log n) time, O(n) space def maxProductDifference(self, nums: List[int]) -> int: nums.sort() return (nums[-1] * nums[-2]) - (nums[0] * nums[1]) # One Pass (Top Voted), O(n) time, O(1) space def maxProductDifference(self, nums: List[int]) -> int: ...
32.238095
59
0.469719
88
677
3.613636
0.375
0.018868
0.037736
0.201258
0.289308
0.289308
0.289308
0.289308
0
0
0
0.060827
0.39291
677
20
60
33.85
0.712895
0.129985
0
0.117647
0
0
0.011945
0
0
0
0
0
0
1
0.117647
false
0
0
0
0.294118
0
0
0
0
null
0
0
1
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
0
1
f5cd779245f58eb02897ff2b5c3774f6f37e3b54
6,520
py
Python
silk/tests/openthread/ot_test_channel_manager_properties.py
tzm41/silk
7f047547afa847714bb0a57c96a9f387d5f0b1c7
[ "Apache-2.0" ]
1
2020-03-06T04:02:19.000Z
2020-03-06T04:02:19.000Z
silk/tests/openthread/ot_test_channel_manager_properties.py
tzm41/silk
7f047547afa847714bb0a57c96a9f387d5f0b1c7
[ "Apache-2.0" ]
52
2019-08-15T18:20:05.000Z
2021-11-05T23:02:02.000Z
silk/tests/openthread/ot_test_channel_manager_properties.py
tzm41/silk
7f047547afa847714bb0a57c96a9f387d5f0b1c7
[ "Apache-2.0" ]
8
2019-07-01T18:57:11.000Z
2022-03-16T14:41:00.000Z
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.337662
119
0.736656
886
6,520
5.113995
0.235892
0.063562
0.139042
0.165085
0.555727
0.514897
0.491282
0.404326
0.403443
0.394394
0
0.025589
0.172853
6,520
153
120
42.614379
0.814574
0.132975
0
0.282828
0
0
0.031416
0.006212
0
0
0.0071
0
0.191919
1
0.090909
false
0.020202
0.090909
0
0.191919
0.010101
0
0
0
null
0
0
1
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
0
1
f5cdcd2c3c9552e4f0367422e786fa50c6d1a7d3
934
py
Python
data/hashtag_counter.py
kaustubhhiware/Savitr
d28c29210fc39fd4f999d6512b0dd66168fb4bfb
[ "CC-BY-4.0" ]
2
2018-06-18T17:01:26.000Z
2018-10-22T04:01:29.000Z
data/hashtag_counter.py
kaustubhhiware/Savitr
d28c29210fc39fd4f999d6512b0dd66168fb4bfb
[ "CC-BY-4.0" ]
null
null
null
data/hashtag_counter.py
kaustubhhiware/Savitr
d28c29210fc39fd4f999d6512b0dd66168fb4bfb
[ "CC-BY-4.0" ]
null
null
null
from collections import OrderedDict with open('tweets_Jan22.txt','r') as f: txt = f.readlines() print 'Read the file, now processing tweets' hashtags = {} print 'Total tweets', len(txt) for i in range(len(txt)): # sample line # {"_id":"907538177992339456","t":"@RRTIndustries @brianmcarey They werent stealing shoe...
30.129032
136
0.692719
139
934
4.640288
0.546763
0.018605
0.018605
0.034109
0
0
0
0
0
0
0
0.041931
0.157388
934
30
137
31.133333
0.777637
0.205567
0
0
0
0
0.134328
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.238095
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
1
0
0
0
0
0
0
0
0
1
f5d17483f5f20ed41975022913a2be436f15e6ad
2,192
py
Python
example/server.py
Jaymon/endpoints
f3864d4a8e915686fdefac34142a40245fdf2f35
[ "MIT" ]
18
2018-09-28T23:13:09.000Z
2021-06-23T20:15:58.000Z
example/server.py
firstopinion/endpoints
f3864d4a8e915686fdefac34142a40245fdf2f35
[ "MIT" ]
60
2015-01-22T01:10:28.000Z
2018-02-20T23:54:50.000Z
example/server.py
Jaymon/endpoints
f3864d4a8e915686fdefac34142a40245fdf2f35
[ "MIT" ]
8
2018-04-22T03:54:56.000Z
2021-12-02T09:53:42.000Z
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler import os import sys import socket import logging #logging.basicConfig() # configure root logger logger = logging.getLogger() logger.setLevel(logging.DEBUG) log_handler = logging.StreamHandler(stream=sys.stderr) log_formatter = logging.Formatter('[%(levelna...
27.061728
64
0.584854
240
2,192
5.220833
0.433333
0.023943
0.031125
0.023943
0.081405
0.081405
0
0
0
0
0
0.007859
0.303376
2,192
80
65
27.4
0.812705
0.069343
0
0.087719
0
0
0.057522
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
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
1
0
0
0
0
0
0
0
0
1
f5d86b3dd947b5a6a16f0327d913490ebec5313a
738
py
Python
test_sample_app.py
santiagoalvarez68/RHDevOps
e198a15636529664124492c3faa1cb3dd30bd015
[ "MIT" ]
null
null
null
test_sample_app.py
santiagoalvarez68/RHDevOps
e198a15636529664124492c3faa1cb3dd30bd015
[ "MIT" ]
null
null
null
test_sample_app.py
santiagoalvarez68/RHDevOps
e198a15636529664124492c3faa1cb3dd30bd015
[ "MIT" ]
null
null
null
import pytest import docker import requests name = "ctomcatapp" @pytest.fixture def error_fixture(): assert 0 def test_container(): client = docker.from_env() container = client.containers.get(name) assert container.status == "running" def test_app(): response = requests.get('http://localhost:8...
21.085714
61
0.632791
82
738
5.54878
0.463415
0.046154
0.083516
0.105495
0.118681
0
0
0
0
0
0
0.027642
0.166667
738
34
62
21.705882
0.712195
0.45664
0
0
0
0
0.116279
0
0
0
0
0
0.214286
1
0.214286
false
0
0.214286
0
0.428571
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
1
0
0
0
0
0
0
0
1
f5dee65ccf311754146fa8678f37bb23173f2328
2,075
py
Python
app/eventFrameAttributeTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
27
2017-11-27T05:01:05.000Z
2020-11-14T19:52:26.000Z
app/eventFrameAttributeTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
259
2017-11-23T00:43:26.000Z
2020-11-03T01:07:30.000Z
app/eventFrameAttributeTemplates/forms.py
DeschutesBrewery/brewerypi
5459dfc6b1ed415920c13a8a7c9a2d3d3c82099f
[ "MIT" ]
8
2018-10-29T04:39:29.000Z
2020-10-01T22:18:12.000Z
from flask_wtf import FlaskForm from wtforms import HiddenField, FloatField, SelectField, StringField, SubmitField, ValidationError from wtforms.ext.sqlalchemy.fields import QuerySelectField from wtforms.validators import Length, Optional, Required from .. models import EventFrameAttributeTemplate, Lookup, LookupValue,...
56.081081
130
0.78506
192
2,075
8.447917
0.4375
0.036991
0.05672
0.033292
0.147965
0.050555
0.050555
0
0
0
0
0.003834
0.12
2,075
36
131
57.638889
0.884447
0.082892
0
0.064516
0
0
0.076842
0
0
0
0
0
0
1
0.032258
false
0
0.16129
0
0.612903
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
1
0
0
1
f5e263e7cb65596b7632fe2f009f71664b074b80
923
py
Python
MxOnline/apps/users/adminx.py
764420453/MxOnline
3d08962f3bd51bc763e66972e7b56968915b0182
[ "MIT" ]
null
null
null
MxOnline/apps/users/adminx.py
764420453/MxOnline
3d08962f3bd51bc763e66972e7b56968915b0182
[ "MIT" ]
null
null
null
MxOnline/apps/users/adminx.py
764420453/MxOnline
3d08962f3bd51bc763e66972e7b56968915b0182
[ "MIT" ]
null
null
null
import xadmin from apps.users.models import EmailVerifyRecord, Banner from xadmin import views class BaseSetting(object): enable_themes = True # 开启主题功能 use_bootswatch = True xadmin.site.register(views.BaseAdminView, BaseSetting) class GlobalSettings(object): site_title = "慕学后台管理系统" site_footer = "...
24.945946
62
0.736728
107
923
6.186916
0.429907
0.060423
0.108761
0.077039
0.151057
0.151057
0
0
0
0
0
0
0.115926
923
37
62
24.945946
0.811275
0.006501
0
0
0
0
0.179039
0
0
0
0
0
0
1
0
false
0
0.136364
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
1
0
0
1
f5f23922da45ddf7c18c77a1b92c50299d9433aa
363
py
Python
src/genie/libs/parser/iosxe/tests/ShowPlatformHardwareQfpStatisticsDrop/cli/equal/golden_output_active_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowPlatformHardwareQfpStatisticsDrop/cli/equal/golden_output_active_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowPlatformHardwareQfpStatisticsDrop/cli/equal/golden_output_active_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "global_drop_stats": { "Ipv4NoAdj": {"octets": 296, "packets": 7}, "Ipv4NoRoute": {"octets": 7964, "packets": 181}, "PuntPerCausePolicerDrops": {"octets": 184230, "packets": 2003}, "UidbNotCfgd": {"octets": 29312827, "packets": 466391}, "UnconfiguredIpv4Fi...
36.3
72
0.578512
30
363
6.9
0.733333
0
0
0
0
0
0
0
0
0
0
0.14841
0.220386
363
9
73
40.333333
0.583039
0
0
0
0
0
0.429752
0.066116
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f5f49f0e8678450770b94476e7d598f54ae21387
295
py
Python
utils/downloadData.py
makennedy626/Destiny2AutoTagger
07167536f1aa6a184c6c42585fd68a87b420a755
[ "MIT" ]
null
null
null
utils/downloadData.py
makennedy626/Destiny2AutoTagger
07167536f1aa6a184c6c42585fd68a87b420a755
[ "MIT" ]
null
null
null
utils/downloadData.py
makennedy626/Destiny2AutoTagger
07167536f1aa6a184c6c42585fd68a87b420a755
[ "MIT" ]
null
null
null
import urllib.request def downloadFilesFromURL(url, path, filename): print('Beginning file download for {}'.format(filename)) fp = '{}/data/{}'.format(path, filename) urllib.request.urlretrieve(url, fp) print('Completed download of {}'.format(filename)) return True
32.777778
61
0.681356
33
295
6.090909
0.636364
0.129353
0
0
0
0
0
0
0
0
0
0
0.176271
295
8
62
36.875
0.82716
0
0
0
0
0
0.222997
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f5fb8654e8d11dd9c39448f5d8f504ea932d3c88
4,152
py
Python
lists_function.py
d-stephenson/python
284f72a70e7eeff9e16aa48b0d1dd49ad5e0c1a1
[ "MIT" ]
null
null
null
lists_function.py
d-stephenson/python
284f72a70e7eeff9e16aa48b0d1dd49ad5e0c1a1
[ "MIT" ]
null
null
null
lists_function.py
d-stephenson/python
284f72a70e7eeff9e16aa48b0d1dd49ad5e0c1a1
[ "MIT" ]
null
null
null
# List accessing n = [1, 3, 5] n[1] = n[1] * 5 print n n.append(4) print n m = [1, 3, 5] m.pop(1) # Returns 3 (the item at index 1) print "m" + str(m) o = [1, 3, 5] o.remove(5) # Removes 1 from the list, # NOT the item at index 1 print "o" + str(o) p = [1, 3, 5] del(p[1]) # Doesn't return anything print "p" + str...
18.702703
185
0.585742
712
4,152
3.367978
0.214888
0.010842
0.010008
0.011676
0.170976
0.13553
0.058799
0.046289
0.02794
0.017515
0
0.035973
0.236753
4,152
222
186
18.702703
0.720732
0.468931
0
0.262136
0
0
0.025534
0
0
0
0
0
0
0
null
null
0
0
null
null
0.242718
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
1
0
0
0
0
0
0
0
0
1
eb0bedc58d3e0dc02aeef73ed83bf952fb24d987
438
py
Python
linear_classification/basic_logistic_unit.py
AndreiRoibu/LogisticRegression
8262e35b48069c3a3c2bcdb9711ba1f7c2ddc2c6
[ "BSD-3-Clause" ]
null
null
null
linear_classification/basic_logistic_unit.py
AndreiRoibu/LogisticRegression
8262e35b48069c3a3c2bcdb9711ba1f7c2ddc2c6
[ "BSD-3-Clause" ]
null
null
null
linear_classification/basic_logistic_unit.py
AndreiRoibu/LogisticRegression
8262e35b48069c3a3c2bcdb9711ba1f7c2ddc2c6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def sigmoid(z): return 1 / (1 + np.exp(-z) ) if __name__ == '__main__': number_of_data_points = 100 data_dimensionality = 2 X = np.random.randn(number_of_data_points, data_dimensionality) bias = np.ones((number_of_data_points, 1)) X = np.concatenate((bias, X), axis=1) ...
19.909091
67
0.655251
67
438
3.955224
0.477612
0.090566
0.135849
0.203774
0
0
0
0
0
0
0
0.026316
0.219178
438
22
68
19.909091
0.748538
0
0
0
0
0
0.018223
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.076923
0.230769
0.076923
0
0
0
null
0
0
1
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
0
1
eb0f022f0705447046a151008964a381bc81ae0b
3,028
py
Python
ceph/ceph_admin/bootstrap.py
veera-raghava-reddy/cephci
29fa3eb286c28d9f73e0b9a6fb4672cf7c976d05
[ "MIT" ]
null
null
null
ceph/ceph_admin/bootstrap.py
veera-raghava-reddy/cephci
29fa3eb286c28d9f73e0b9a6fb4672cf7c976d05
[ "MIT" ]
null
null
null
ceph/ceph_admin/bootstrap.py
veera-raghava-reddy/cephci
29fa3eb286c28d9f73e0b9a6fb4672cf7c976d05
[ "MIT" ]
null
null
null
"""Module that allows QE to interface with cephadm bootstrap CLI.""" import logging from typing import Dict from ceph.ceph import ResourceNotFoundError from utility.utils import get_cephci_config from .common import config_dict_to_string from .typing_ import CephAdmProtocol logger = logging.getLogger(__name__) cla...
31.873684
87
0.581902
346
3,028
4.933526
0.404624
0.038664
0.02109
0.031634
0.024605
0
0
0
0
0
0
0.001964
0.327279
3,028
94
88
32.212766
0.836033
0.300198
0
0
0
0
0.166411
0.016385
0
0
0
0.010638
0
1
0.020833
false
0.041667
0.125
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
1
0
0
0
0
0
0
0
0
0
0
1
eb0f30a563a943e29dd1f401c52b9c466f8e8443
1,199
py
Python
src/task.py
banansson/cask
e8d6aa12f65d6a9e9458e8d3818a9081b1c85a7e
[ "MIT" ]
null
null
null
src/task.py
banansson/cask
e8d6aa12f65d6a9e9458e8d3818a9081b1c85a7e
[ "MIT" ]
null
null
null
src/task.py
banansson/cask
e8d6aa12f65d6a9e9458e8d3818a9081b1c85a7e
[ "MIT" ]
null
null
null
from subprocess import call from os import path class Task: def __init__(self, data, pkg_dir): self.action = data["action"] self.source = data["source"] self.target = data["target"] self.pkg_dir = pkg_dir def run(self, command, test_mode=False): if test_mode: return False result = ...
27.25
86
0.663053
163
1,199
4.766871
0.288344
0.09009
0.03861
0.036036
0.221364
0.151866
0.084942
0.084942
0
0
0
0.001027
0.187656
1,199
43
87
27.883721
0.796715
0
0
0.0625
0
0
0.043406
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0.03125
0.5625
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
1
0
0
1
eb13a403fd06ffac2db566a548f712779f2932fa
1,071
py
Python
Exercicios/068-ParouImparV2.py
LuisDjay/Python-Curso-em-Video
4527187b37f84848404f2414b2291d866ab1e7b7
[ "MIT" ]
null
null
null
Exercicios/068-ParouImparV2.py
LuisDjay/Python-Curso-em-Video
4527187b37f84848404f2414b2291d866ab1e7b7
[ "MIT" ]
null
null
null
Exercicios/068-ParouImparV2.py
LuisDjay/Python-Curso-em-Video
4527187b37f84848404f2414b2291d866ab1e7b7
[ "MIT" ]
null
null
null
print('=====Desafio 068=====') from random import randint cont = 0 while True: jog = int(input('Diga Um valor: ')) resp = str(input('Par ou Ímpar? [P/I] ').upper()) comp = randint(0, 10) result = jog + comp result2 = result % 2 if result2 == 0 and resp == 'P': print(f'Voce Jogou {jog} e...
35.7
92
0.576097
162
1,071
3.808642
0.320988
0.106969
0.081037
0.097245
0.706645
0.664506
0.664506
0.664506
0.664506
0.564019
0
0.024548
0.277311
1,071
29
93
36.931034
0.77261
0
0
0.5
0
0
0.436041
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.428571
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
1
0
1
eb1b1f770dc42916a3b54264bc665eaf443043a5
2,746
py
Python
djl10n/views.py
ralkan/django-l10n
510de1bed5402bc2929b1610b3a401b17ea961d3
[ "MIT" ]
1
2018-05-25T10:36:26.000Z
2018-05-25T10:36:26.000Z
djl10n/views.py
ralkan/django-l10n
510de1bed5402bc2929b1610b3a401b17ea961d3
[ "MIT" ]
3
2020-02-11T21:34:27.000Z
2021-06-10T17:24:47.000Z
djl10n/views.py
ralkan/django-l10n
510de1bed5402bc2929b1610b3a401b17ea961d3
[ "MIT" ]
1
2018-04-06T07:43:50.000Z
2018-04-06T07:43:50.000Z
import json from django.conf import settings from django.template import Context, Template from django.http import HttpResponse from .helpers import get_translations js_catalog_template = r""" {% autoescape off %} (function (globals) { String.prototype.toTitleCase = function() { return this.replace( /([...
26.403846
77
0.627822
272
2,746
6.264706
0.316176
0.035211
0.052817
0.038732
0
0
0
0
0
0
0
0.004664
0.219228
2,746
103
78
26.660194
0.790112
0
0
0.061728
0
0
0.714858
0.151493
0
0
0
0
0
1
0.037037
false
0
0.061728
0.012346
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eb208b8324b7583ca8ec01aac0690cc30128fc90
2,985
py
Python
djangocms_charts/admin.py
l1f7/djangocms-charts
6de3d35758da39bda175406817ddbd1b0b0d5c59
[ "MIT" ]
5
2019-04-14T01:28:22.000Z
2020-11-09T10:48:13.000Z
djangocms_charts/admin.py
mcldev/djangocms-charts
3c10286612af5b2f6179af8e7dc7e10407fe6f6e
[ "MIT" ]
1
2017-07-11T19:08:01.000Z
2018-12-22T15:38:39.000Z
djangocms_charts/admin.py
mcldev/djangocms-charts
3c10286612af5b2f6179af8e7dc7e10407fe6f6e
[ "MIT" ]
4
2019-07-05T05:36:53.000Z
2021-01-08T17:04:59.000Z
from adminsortable2.admin import SortableInlineAdminMixin from django.contrib import admin from .forms import GlobalOptionsInlineForm, ChartOptionsInlineForm, DatasetOptionsInlineForm, AxisOptionsInlineForm, \ ColorInputForm from .models import GlobalOptionsGroupModel, GlobalOptionsModel, \ ChartOptionsGroupMo...
28.428571
118
0.701843
211
2,985
9.886256
0.331754
0.036913
0.050336
0.059923
0.067593
0.067593
0.067593
0.067593
0
0
0
0.001197
0.160469
2,985
104
119
28.701923
0.831205
0.090117
0
0.219178
0
0
0.057322
0
0
0
0
0
0
1
0
false
0
0.068493
0
0.739726
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
1
0
0
1
eb239676ab3191f6dd71b07df64ba4772e10046a
1,137
py
Python
v1/category/migrations/0003_auto_20210302_2055.py
hussu010/Backend-1
f5d9a057d6ff947f6574b45f825d7987e2ac2730
[ "MIT" ]
1
2021-01-28T15:16:39.000Z
2021-01-28T15:16:39.000Z
v1/category/migrations/0003_auto_20210302_2055.py
hussu010/Backend-1
f5d9a057d6ff947f6574b45f825d7987e2ac2730
[ "MIT" ]
77
2021-02-01T04:53:10.000Z
2021-12-07T15:45:43.000Z
v1/category/migrations/0003_auto_20210302_2055.py
hussu010/Backend-1
f5d9a057d6ff947f6574b45f825d7987e2ac2730
[ "MIT" ]
3
2021-01-28T15:05:56.000Z
2021-02-22T17:12:08.000Z
# Generated by Django 3.1.7 on 2021-03-02 15:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('shop', '0001_initial'), migrations.swappable_dependency(setting...
29.921053
133
0.619173
114
1,137
6.035088
0.5
0.046512
0.061047
0.09593
0.226744
0.226744
0.113372
0.113372
0
0
0
0.041568
0.259455
1,137
37
134
30.72973
0.775534
0.039578
0
0.333333
1
0
0.12844
0.021101
0
0
0
0
0
1
0
false
0
0.1
0
0.233333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eb27224910a8165d204c5e73b830955c18521666
3,842
py
Python
src/backend/partaj/core/migrations/0013_add_assignments_on_referral.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
2
2020-10-15T11:28:26.000Z
2021-06-25T15:24:33.000Z
src/backend/partaj/core/migrations/0013_add_assignments_on_referral.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
7
2020-10-01T14:49:51.000Z
2022-01-24T09:44:10.000Z
src/backend/partaj/core/migrations/0013_add_assignments_on_referral.py
MTES-MCT/partaj
0025c17a96d9212430d18ec36f6a2474c4609738
[ "MIT" ]
3
2020-03-18T15:53:26.000Z
2021-09-16T14:39:27.000Z
# Generated by Django 2.2.7 on 2020-04-22 13:16 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("core", "0012_remove_subj...
35.906542
90
0.439355
295
3,842
5.528814
0.315254
0.060699
0.051502
0.080932
0.315757
0.315757
0.295524
0.214592
0.166769
0.166769
0
0.009443
0.476314
3,842
106
91
36.245283
0.801193
0.011713
0
0.39
1
0
0.167062
0.022925
0
0
0
0
0
1
0
false
0
0.03
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eb2a1467c4234db8a4875a5a94aa28520f59d682
1,113
py
Python
Cinema/migrations/0011_auto_20210614_1505.py
jmv21/oficial_project
1098dde46a80cff312a25f30ed0e560ce2c21e2b
[ "MIT" ]
null
null
null
Cinema/migrations/0011_auto_20210614_1505.py
jmv21/oficial_project
1098dde46a80cff312a25f30ed0e560ce2c21e2b
[ "MIT" ]
null
null
null
Cinema/migrations/0011_auto_20210614_1505.py
jmv21/oficial_project
1098dde46a80cff312a25f30ed0e560ce2c21e2b
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-14 21:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Cinema', '0010_merge_0009_auto_20210611_1256_0009_auto_20210611_1549'), ] operations = [ migrations.RemoveField( model_name='purch...
29.289474
121
0.583109
108
1,113
5.833333
0.518519
0.071429
0.050794
0.066667
0.257143
0.257143
0.142857
0.142857
0
0
0
0.063939
0.297394
1,113
37
122
30.081081
0.741688
0.038634
0
0.483871
1
0
0.184457
0.075843
0
0
0
0
0
1
0
false
0
0.032258
0
0.129032
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eb303ccb5d6fc21976ac6a80f71e130b361aba67
638
py
Python
search/search-part.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
search/search-part.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
search/search-part.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
# Search Part Problem n = int(input()) part_list = list(map(int, input().split())) m = int(input()) require_list = list(map(int, input().split())) def binary_search(array, target, start, end): mid = (start + end) // 2 if start >= end: return "no" if array[mid] == target: return "yes" ...
23.62963
66
0.617555
93
638
4.129032
0.354839
0.083333
0.132813
0.179688
0.460938
0.125
0
0
0
0
0
0.008197
0.23511
638
26
67
24.538462
0.778689
0.029781
0
0.105263
0
0
0.012966
0
0
0
0
0
0
1
0.052632
false
0
0
0
0.315789
0.052632
0
0
0
null
0
0
1
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
0
1
eb352e94a7fb4bf02bd98dcb00f1fdc574e9bbc8
1,549
py
Python
ax/runners/botorch_test_problem.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
ax/runners/botorch_test_problem.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
ax/runners/botorch_test_problem.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Set, Iterable, Any, Dict import torch from ax.core.base_trial import TrialStatus, BaseTrial from ax.core.runner import R...
37.780488
87
0.689477
209
1,549
5.043062
0.5311
0.018975
0.042695
0
0
0
0
0
0
0
0
0
0.242737
1,549
40
88
38.725
0.898551
0.42479
0
0
0
0
0.002345
0
0
0
0
0
0
1
0.142857
false
0
0.238095
0.095238
0.52381
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
1
0
0
1
eb3dd840004dc863ac79bfe779b109dc4f7a6f88
11,436
py
Python
src/generic_seg.py
ewilkinson/Humanoids_2015
9a081d2775ecc4740e62eff8e46368823615b127
[ "MIT" ]
null
null
null
src/generic_seg.py
ewilkinson/Humanoids_2015
9a081d2775ecc4740e62eff8e46368823615b127
[ "MIT" ]
null
null
null
src/generic_seg.py
ewilkinson/Humanoids_2015
9a081d2775ecc4740e62eff8e46368823615b127
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from sensor_msgs.msg import Image import numpy as np from cv_bridge import CvBridge, CvBridgeError import cv2 from skimage import morphology from skimage.filters import threshold_otsu from sklearn import mixture from sklearn.cluster import MeanShift, estimate_bandwidth, DBSCAN fro...
34.445783
116
0.54652
1,464
11,436
4.063525
0.182377
0.025719
0.016137
0.017482
0.277358
0.219197
0.159691
0.152295
0.152295
0.152295
0
0.037587
0.346275
11,436
331
117
34.549849
0.758159
0.066894
0
0.158371
0
0
0.02097
0.00202
0
0
0
0
0
0
null
null
0
0.054299
null
null
0.013575
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
1
0
0
0
0
0
0
0
0
1
eb3ecb374d8c5fa261b84c8b6bd09a5efc474b7b
8,101
py
Python
src/tortuga_test_lib/robot/Tortuga.py
UnivaCorporation/docker-robot-framework
dac2c4ec8ba69a2bf200b48753835eeca80259f0
[ "Apache-2.0" ]
null
null
null
src/tortuga_test_lib/robot/Tortuga.py
UnivaCorporation/docker-robot-framework
dac2c4ec8ba69a2bf200b48753835eeca80259f0
[ "Apache-2.0" ]
null
null
null
src/tortuga_test_lib/robot/Tortuga.py
UnivaCorporation/docker-robot-framework
dac2c4ec8ba69a2bf200b48753835eeca80259f0
[ "Apache-2.0" ]
null
null
null
# Copyright 2008-2018 Univa Corporation # # 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...
30.340824
77
0.570547
937
8,101
4.83778
0.323372
0.019413
0.009707
0.009265
0.034635
0.034635
0.034635
0.01809
0.01809
0
0
0.004643
0.335391
8,101
266
78
30.454887
0.837296
0.287742
0
0.038462
0
0
0.088984
0.017834
0
0
0
0
0
1
0.069231
false
0.069231
0.138462
0
0.269231
0.007692
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
1
0
0
0
0
0
1
eb40a5933cca64eae205ef8bd7b8d2f9ec4e267c
695
py
Python
pyro/contrib/gp/likelihoods/likelihood.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
pyro/contrib/gp/likelihoods/likelihood.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
pyro/contrib/gp/likelihoods/likelihood.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from pyro.contrib.gp import Parameterized class Likelihood(Parameterized): """ Base class for likelihoods used in Gaussian Process. Every inherited class should implement a forward pass which takes an input `f` and returns a sample...
26.730769
66
0.653237
86
695
5.116279
0.674419
0.059091
0.095455
0.05
0.072727
0.072727
0
0
0
0
0
0.003861
0.254676
695
25
67
27.8
0.84556
0.447482
0
0
0
0
0.031949
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0
0.714286
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
1
0
0
0
0
0
0
0
1
eb4530884808564881a2a1dd1e37939b3bc2a224
783
py
Python
setup.py
sjbarag/poorly-named-resume-generator
765defeb22241aafc085a1710b270af279e42e2c
[ "MIT" ]
1
2015-08-30T23:13:12.000Z
2015-08-30T23:13:12.000Z
setup.py
sjbarag/poorly-named-resume-generator
765defeb22241aafc085a1710b270af279e42e2c
[ "MIT" ]
10
2015-09-21T19:57:05.000Z
2015-12-05T17:30:34.000Z
setup.py
sjbarag/poorly-named-resume-generator
765defeb22241aafc085a1710b270af279e42e2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup, find_packages except: from distutils.core import setup, find_packages setup( name='yaml-resume', version='0.0.1', description='Generates multiple resume/CV formats from a single YAML source.', long_description=''....
29
82
0.639847
88
783
5.636364
0.761364
0.072581
0.060484
0.092742
0
0
0
0
0
0
0
0.013072
0.218391
783
26
83
30.115385
0.797386
0.05364
0
0
0
0
0.439783
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
1
0
0
0
0
0
0
1
eb46a7b6b9912cb68ae09a490b017d918e5ded50
10,804
py
Python
Utmp.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
14
2015-01-18T16:27:20.000Z
2021-06-20T19:27:32.000Z
Utmp.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
Utmp.py
HenryHu/pybbs
cb2a870f3879d5432739d0748a01842660793ba9
[ "BSD-2-Clause-FreeBSD" ]
2
2016-04-11T07:08:04.000Z
2018-08-02T15:39:27.000Z
import Config import os import struct import random import time import signal import User import UCache from sysv_ipc import * from UtmpHead import UtmpHead from commondata import CommonData from UserInfo import UserInfo from Log import Log from Util import Util import Login # from SemLock import SemLock UTMPFILE_SIZE...
35.893688
170
0.52425
1,136
10,804
4.950704
0.181338
0.027205
0.019915
0.021337
0.245377
0.211949
0.171764
0.162873
0.149004
0.118065
0
0.022216
0.362551
10,804
300
171
36.013333
0.794395
0.158275
0
0.219048
0
0
0.056988
0
0
0
0
0.003333
0
0
null
null
0.004762
0.071429
null
null
0.019048
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
1
0
0
0
0
0
0
0
0
1
de1c1ec134a985061017f4b9547039629e185ce8
761
py
Python
Hydro/datapoint/migrations/0003_auto_20160203_1943.py
p-v-o-s/hydro
34eaf227043c69b921650aa120516533d61c6854
[ "BSD-3-Clause" ]
null
null
null
Hydro/datapoint/migrations/0003_auto_20160203_1943.py
p-v-o-s/hydro
34eaf227043c69b921650aa120516533d61c6854
[ "BSD-3-Clause" ]
null
null
null
Hydro/datapoint/migrations/0003_auto_20160203_1943.py
p-v-o-s/hydro
34eaf227043c69b921650aa120516533d61c6854
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-03 19:43 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('datapoint', '0002_auto_20160203_1929'),...
26.241379
110
0.620237
83
761
5.542169
0.662651
0.017391
0.078261
0.095652
0
0
0
0
0
0
0
0.089606
0.266754
761
28
111
27.178571
0.734767
0.088042
0
0.190476
1
0
0.096961
0.033285
0
0
0
0
0
1
0
false
0
0.190476
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de28d9c0a31e66793a8d96737c26baa6345c04a8
6,176
py
Python
project/plugins/jira/__init__.py
Signiant/External-user-provisioning
986311234a3fcfd05e18d899865d5890a09b1690
[ "MIT" ]
null
null
null
project/plugins/jira/__init__.py
Signiant/External-user-provisioning
986311234a3fcfd05e18d899865d5890a09b1690
[ "MIT" ]
10
2018-05-02T12:42:24.000Z
2018-10-12T17:05:38.000Z
project/plugins/jira/__init__.py
Signiant/External-user-provisioning
986311234a3fcfd05e18d899865d5890a09b1690
[ "MIT" ]
1
2018-03-21T08:49:31.000Z
2018-03-21T08:49:31.000Z
import requests import json from project.user_provision import getJsonResponse from project.plugin import inviteMessage, removalMessage, getCLIgroups def inviteUser(email,configMap,allPermissions, plugin_tag, name): done = False username = email.split('@', 1)[0] instruction = '' for plugin in configM...
43.188811
154
0.595855
733
6,176
4.959072
0.222374
0.06685
0.056121
0.037414
0.545805
0.477854
0.435488
0.429161
0.273453
0.273453
0
0.0158
0.292908
6,176
143
155
43.188811
0.816579
0.08533
0
0.45614
0
0.070175
0.258379
0.017911
0
0
0
0
0
1
0.017544
false
0.061404
0.035088
0
0.070175
0.061404
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
1
0
0
0
0
0
1
de2f538cfbf7455350057e5e2a13268bf3c4d176
5,109
py
Python
ctfsurvey/web.py
lojikil/curryon-anabasis
ed48f00e78a10521fd0bc5c720d0c783234b907d
[ "0BSD" ]
null
null
null
ctfsurvey/web.py
lojikil/curryon-anabasis
ed48f00e78a10521fd0bc5c720d0c783234b907d
[ "0BSD" ]
null
null
null
ctfsurvey/web.py
lojikil/curryon-anabasis
ed48f00e78a10521fd0bc5c720d0c783234b907d
[ "0BSD" ]
null
null
null
import os import uuid import re from bottle import route, request, run, hook, redirect, app, view, template, response from beaker.middleware import SessionMiddleware key='5a17b238-13b5-4401-9d30-aab238a820eb' parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) template_cache = {} stripusername = r...
29.194286
93
0.578587
602
5,109
4.847176
0.272425
0.028787
0.033585
0.027416
0.270733
0.178547
0.139822
0.139822
0.139822
0.139822
0
0.015723
0.253083
5,109
174
94
29.362069
0.748952
0
0
0.272727
0
0.006993
0.194167
0.026032
0
0
0
0
0
0
null
null
0.048951
0.034965
null
null
0.006993
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
1
0
0
0
0
0
0
0
0
1
de30f623f6b5f3e45ddb4438b74a29992f394fff
524
py
Python
microblog/posts/migrations/0003_post_dislikes.py
ShrayankM/Django-MicroBlog
54b9b8663b124baec31dfc5a9e8733822853ea7c
[ "MIT" ]
null
null
null
microblog/posts/migrations/0003_post_dislikes.py
ShrayankM/Django-MicroBlog
54b9b8663b124baec31dfc5a9e8733822853ea7c
[ "MIT" ]
null
null
null
microblog/posts/migrations/0003_post_dislikes.py
ShrayankM/Django-MicroBlog
54b9b8663b124baec31dfc5a9e8733822853ea7c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-25 11:37 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('posts', '0002_post_likes'), ] operations = [ ...
24.952381
100
0.656489
59
524
5.661017
0.644068
0.05988
0.095808
0.125749
0
0
0
0
0
0
0
0.047619
0.23855
524
20
101
26.2
0.789474
0.085878
0
0
1
0
0.09434
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de437e891c9197e7fcfe29d7f7dbb87bf050734a
908
py
Python
python/depthcharge/register/cp.py
youssefms/depthcharge
51744abd4c92c8f49a47900cb02a3652744a4083
[ "BSD-3-Clause" ]
null
null
null
python/depthcharge/register/cp.py
youssefms/depthcharge
51744abd4c92c8f49a47900cb02a3652744a4083
[ "BSD-3-Clause" ]
null
null
null
python/depthcharge/register/cp.py
youssefms/depthcharge
51744abd4c92c8f49a47900cb02a3652744a4083
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # Depthcharge: <https://github.com/nccgroup/depthcharge> """ Implements FDTCrashRegisterReader """ from ..operation import Operation from .data_abort import DataAbortRegisterReader class CpCrashRegisterReader(DataAbortRegisterReader): """ This is a :py:class:`~.DataAb...
25.222222
72
0.680617
105
908
5.771429
0.704762
0.044554
0
0
0
0
0
0
0
0
0
0.005525
0.202643
908
35
73
25.942857
0.831492
0.386564
0
0
0
0
0.106262
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0.066667
0.533333
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
1
0
0
1
de4adf1c5dcc247c5543197b8b9e5c71edb8f7cb
1,911
py
Python
credential_test.py
ruthjelimo/Password_Locker
55458844c4f128dd4163e5e8b85e1eca30b6884f
[ "MIT" ]
null
null
null
credential_test.py
ruthjelimo/Password_Locker
55458844c4f128dd4163e5e8b85e1eca30b6884f
[ "MIT" ]
null
null
null
credential_test.py
ruthjelimo/Password_Locker
55458844c4f128dd4163e5e8b85e1eca30b6884f
[ "MIT" ]
null
null
null
import pyperclip import unittest from credential import Credential class TestCredentials(unittest.TestCase): def setUp(self): ''' function to run before each test ''' self.new_credential=Credential("Instagram","mimoh","1234Pa") def test_init(self): ''' ...
32.948276
86
0.66405
202
1,911
6.044554
0.30198
0.14742
0.097461
0.054054
0.379197
0.347256
0.252252
0.252252
0.252252
0.1638
0
0.006901
0.241758
1,911
58
87
32.948276
0.835749
0.162219
0
0.233333
0
0
0.061379
0
0
0
0
0
0.233333
1
0.233333
false
0.033333
0.1
0
0.366667
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
1
0
0
0
0
0
0
0
1
de4b6f0df736d4a85e9a1e5c685da189047dbb2e
1,319
py
Python
kektrade/exchange/resolver.py
flamingrickpat/kektrade
7bf5e0607605852c5f0c9116134ad61e2fd572d7
[ "MIT" ]
null
null
null
kektrade/exchange/resolver.py
flamingrickpat/kektrade
7bf5e0607605852c5f0c9116134ad61e2fd572d7
[ "MIT" ]
null
null
null
kektrade/exchange/resolver.py
flamingrickpat/kektrade
7bf5e0607605852c5f0c9116134ad61e2fd572d7
[ "MIT" ]
null
null
null
from kektrade.exceptions import UnsupportedExchange from kektrade.exchange.backtest_inverse import BacktestInverse from kektrade.exchange.backtest_linear import BacktestLinear from kektrade.exchange.dryrun_inverse import DryrunInverse from kektrade.exchange.dryrun_linear import DryrunLinear from kektrade.misc import E...
32.975
62
0.749052
113
1,319
8.575221
0.353982
0.074303
0.082559
0.057792
0
0
0
0
0
0
0
0
0.190296
1,319
39
63
33.820513
0.907303
0
0
0
0
0
0.105463
0.015933
0
0
0
0
0
1
0.033333
false
0
0.2
0
0.733333
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
1
0
0
1
de4bdc337d9618d6d5bac9a3a18e7cb75ba14287
433
py
Python
web/migrations/0011_auto_20160203_1410.py
ocwc/oerweekapi
11abae29c15fffc264daf742bda6e9c691df2382
[ "MIT" ]
null
null
null
web/migrations/0011_auto_20160203_1410.py
ocwc/oerweekapi
11abae29c15fffc264daf742bda6e9c691df2382
[ "MIT" ]
5
2020-02-12T00:35:42.000Z
2022-03-11T23:19:49.000Z
web/migrations/0011_auto_20160203_1410.py
ocwc/oerweekapi
11abae29c15fffc264daf742bda6e9c691df2382
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-03 14:10 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('web', '0010_auto_20160203_1406'), ] operations = [ migrations.RenameField( ...
20.619048
47
0.6097
49
433
5.122449
0.795918
0.071713
0
0
0
0
0
0
0
0
0
0.101911
0.274827
433
20
48
21.65
0.697452
0.154734
0
0
1
0
0.14876
0.063361
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de56a018e82df7d26337f10fa8364612e525cba1
3,988
py
Python
SVM_gray.py
artmusic0/Speech-Dataset-in-scikit-learn
c43fa230188c1105f01f92e173edc8707e7a217c
[ "Apache-2.0" ]
null
null
null
SVM_gray.py
artmusic0/Speech-Dataset-in-scikit-learn
c43fa230188c1105f01f92e173edc8707e7a217c
[ "Apache-2.0" ]
null
null
null
SVM_gray.py
artmusic0/Speech-Dataset-in-scikit-learn
c43fa230188c1105f01f92e173edc8707e7a217c
[ "Apache-2.0" ]
null
null
null
import numpy as np import pickle as pkl from sklearn import svm import time X, Y = pkl.load(open("train_data_gray.pkl", "rb")) test = pkl.load(open("test_data_gray.pkl", "rb")) test_ans = np.array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0...
37.622642
177
0.720662
658
3,988
4.303951
0.319149
0.014831
0.019068
0.024011
0.105932
0.04096
0.018362
0.018362
0.018362
0.018362
0
0.028631
0.159228
3,988
105
178
37.980952
0.815986
0.006018
0
0
0
0
0.192034
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.444444
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
1
0
1
de5ad1f842eb41dde6143f4b369d7516eb1228a0
315
py
Python
wsgi.py
hardworkingcoder/dw_experiments-
9a30678cb7004324278045469f9684ae699269b2
[ "MIT" ]
1
2017-07-09T22:17:52.000Z
2017-07-09T22:17:52.000Z
wsgi.py
hardworkingcoder/dw_experiments-
9a30678cb7004324278045469f9684ae699269b2
[ "MIT" ]
null
null
null
wsgi.py
hardworkingcoder/dw_experiments-
9a30678cb7004324278045469f9684ae699269b2
[ "MIT" ]
null
null
null
from app import app from flask_socketio import SocketIO from flask_failsafe import failsafe socketio = SocketIO(app) @failsafe def create_app(): return app import eventlet eventlet.monkey_patch() if __name__ == '__main__': socketio.run(create_app(), debug=True, use_reloader=True, port=app.config['PORT'])
24.230769
86
0.774603
44
315
5.227273
0.5
0.078261
0
0
0
0
0
0
0
0
0
0
0.126984
315
13
86
24.230769
0.836364
0
0
0
0
0
0.037975
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0.090909
0.545455
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
1
0
0
0
0
1
de5ae09eff8f25e8330626e58ef8eafa2356c721
7,528
py
Python
tests/base/test_endpoints_admin_groups.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
8
2018-07-04T09:54:46.000Z
2022-03-17T08:21:06.000Z
tests/base/test_endpoints_admin_groups.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
19
2018-04-18T07:24:55.000Z
2022-03-04T01:03:15.000Z
tests/base/test_endpoints_admin_groups.py
rapydo/http-api
ef0a299173195145303069534d45d446ea4da93a
[ "MIT" ]
7
2018-07-03T12:17:50.000Z
2021-05-05T04:33:32.000Z
import orjson import pytest from faker import Faker from restapi.env import Env from restapi.services.authentication import BaseAuthentication from restapi.tests import API_URI, AUTH_URI, BaseTests, FlaskClient from restapi.utilities.logs import Events, log class TestApp(BaseTests): def test_admin_groups(self, c...
37.829146
88
0.617827
942
7,528
4.835456
0.156051
0.086937
0.089572
0.050714
0.635565
0.605488
0.518112
0.45708
0.398024
0.392316
0
0.010858
0.26594
7,528
198
89
38.020202
0.813427
0.077046
0
0.458333
0
0
0.14733
0.053824
0
0
0
0
0.479167
1
0.013889
false
0
0.048611
0
0.083333
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
1
0
0
0
0
0
0
0
0
0
1
de5ddae31627271dbe9ce69f40e437d5c751a5e0
3,784
py
Python
y_2015/day7.py
Stegallo/adventofcode
74cd3725318150a4fee397a9388326d56ca49333
[ "MIT" ]
4
2020-11-28T15:46:43.000Z
2021-12-02T22:37:27.000Z
y_2015/day7.py
Stegallo/adventofcode
74cd3725318150a4fee397a9388326d56ca49333
[ "MIT" ]
80
2020-07-02T19:01:20.000Z
2021-12-06T03:48:46.000Z
y_2015/day7.py
Stegallo/adventofcode
74cd3725318150a4fee397a9388326d56ca49333
[ "MIT" ]
2
2021-04-04T06:22:56.000Z
2021-05-03T20:23:51.000Z
import re from collections import defaultdict def bitand(x, y): return x & y def bitor(x, y): return x | y def lshift(x, y): return x << y def rshift(x, y): return x >> y def bitnot(x): return x ^ 65535 BIN_OPERATORS = {"AND": bitand, "OR": bitor, "LSHIFT": lshift, "RSHIFT": rshift} UN_O...
22.52381
83
0.579545
503
3,784
4.129225
0.166998
0.046221
0.034665
0.038517
0.568127
0.520462
0.384208
0.328358
0.259027
0.23014
0
0.018902
0.272992
3,784
167
84
22.658683
0.736096
0.004757
0
0.330275
0
0
0.021646
0
0
0
0
0
0
1
0.211009
false
0.009174
0.018349
0.082569
0.495413
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
1
0
0
0
0
0
0
0
1
de60c69d50797f5c6f38039c34417edc601ff3bb
869
py
Python
atividade045.py
henrikysena/Atividades_CursosEmVideo_Python
2890c67ea4be2cde6f42c2489d4c96b47d7b597e
[ "MIT" ]
null
null
null
atividade045.py
henrikysena/Atividades_CursosEmVideo_Python
2890c67ea4be2cde6f42c2489d4c96b47d7b597e
[ "MIT" ]
null
null
null
atividade045.py
henrikysena/Atividades_CursosEmVideo_Python
2890c67ea4be2cde6f42c2489d4c96b47d7b597e
[ "MIT" ]
null
null
null
from random import randint from time import sleep c = randint(1, 3) print('\033[35m=-\033[m'*14) print(' JOKENPÔ') print('') print('\033[35m[ 1 ]\033[m PEDRA') print('\033[35m[ 2 ]\033[m PAPEL') print('\033[35m[ 3 ]\033[m TESOURA') j = int(input('Escolha sua jogada: ')) print('') print(end='\033[35mJO') sle...
21.195122
70
0.58458
149
869
3.409396
0.33557
0.047244
0.108268
0.112205
0.383858
0.226378
0
0
0
0
0
0.106322
0.199079
869
40
71
21.725
0.623563
0
0
0.371429
0
0
0.390104
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0.571429
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
1
0
1
de62d471f7418a5ac18c9d440102605867f070e7
9,098
py
Python
sdk/python/pulumi_oci/databasemanagement/get_managed_database.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/databasemanagement/get_managed_database.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/databasemanagement/get_managed_database.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
42.316279
277
0.69191
1,071
9,098
5.576097
0.163399
0.108004
0.048393
0.060281
0.303583
0.190388
0.106832
0.072003
0.051741
0.04069
0
0.00014
0.216421
9,098
214
278
42.514019
0.837565
0.207628
0
0.10219
1
0
0.179536
0.043977
0
0
0
0
0
1
0.109489
false
0
0.043796
0.007299
0.270073
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de7483c433b8392861b538f2f6de965047e34e19
912
py
Python
python_if_else_questoins/greatest_of_three_number.py
swapnil0601/HacktoberFest
dbf734bb325f927c7a4272b764422a19fd1eaf4e
[ "MIT" ]
9
2021-10-01T10:49:54.000Z
2021-11-08T12:01:08.000Z
python_if_else_questoins/greatest_of_three_number.py
swapnil0601/HacktoberFest
dbf734bb325f927c7a4272b764422a19fd1eaf4e
[ "MIT" ]
8
2021-10-01T08:56:24.000Z
2021-10-10T04:02:56.000Z
python_if_else_questoins/greatest_of_three_number.py
swapnil0601/HacktoberFest
dbf734bb325f927c7a4272b764422a19fd1eaf4e
[ "MIT" ]
78
2021-10-01T03:35:09.000Z
2021-10-31T10:50:24.000Z
# ternary method num1 = int(input('Enter the number 1::')) num2 = int(input('\nEnter the number 2::')) num3 = int(input('\nEnter the number 3::')) max = (num1 if (num1 > num2 and num1 > num3) else (num2 if(num2 > num3 and num2 > num1) else num3)) print('\n\nThe maximum number is ::', max) #with pre-...
25.333333
100
0.572368
148
912
3.527027
0.236486
0.137931
0.16092
0.195402
0.528736
0.283525
0.283525
0.283525
0.283525
0.283525
0
0.024113
0.226974
912
35
101
26.057143
0.716312
0.609649
0
0
0
0
0.304636
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
1
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
0
1
de76de93e3635821f4be149cd3794283becf3a78
5,671
py
Python
h5dumpRead/__init__.py
balarsen/h5dumpRead
d6c76243c8cbf6310c467eeda3cb435a43a56eff
[ "BSD-3-Clause" ]
null
null
null
h5dumpRead/__init__.py
balarsen/h5dumpRead
d6c76243c8cbf6310c467eeda3cb435a43a56eff
[ "BSD-3-Clause" ]
null
null
null
h5dumpRead/__init__.py
balarsen/h5dumpRead
d6c76243c8cbf6310c467eeda3cb435a43a56eff
[ "BSD-3-Clause" ]
null
null
null
import functools import gzip import os import re from collections import namedtuple # get the filename from a line: 'HDF5 "rbspa_hope_eff_2018.h5" {' hdf5_re = re.compile(r'.*HDF5.*"([A-Za-z0-9_\./\\-]*)"') # get the group from a line: 'GROUP "/" {', group_re = re.compile(r'.*GROUP.*"([A-Za-z0-9_\./\\-]*)"') # get t...
35.892405
112
0.572033
730
5,671
4.321918
0.236986
0.031062
0.01141
0.020602
0.248494
0.190174
0.161014
0.161014
0.161014
0.103328
0
0.01328
0.296244
5,671
157
113
36.121019
0.777249
0.290425
0
0.218391
0
0
0.073896
0.042303
0
0
0
0.012739
0
1
0.091954
false
0
0.057471
0
0.287356
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
1
0
0
0
0
0
0
0
0
0
0
1
de811a480667fd5f92d3e765e4afb731f7b5f3b0
1,103
py
Python
Copy/Register.py
zhsword/exercise
4887086502520e4b6e6197785b58c4626ba8b5b7
[ "MIT" ]
null
null
null
Copy/Register.py
zhsword/exercise
4887086502520e4b6e6197785b58c4626ba8b5b7
[ "MIT" ]
null
null
null
Copy/Register.py
zhsword/exercise
4887086502520e4b6e6197785b58c4626ba8b5b7
[ "MIT" ]
null
null
null
contracts = dict((('张坏人',123),('张好人',222))) def new_user(): a = '请输入用户名:' while True: name = input(a) if name in contracts: a = '此用户名已占用,请重新输入:' continue else: break password = input('请输入密码:') contracts[name] = password print('注册...
19.696429
43
0.435177
121
1,103
3.933884
0.371901
0.07563
0.046218
0.067227
0.151261
0.151261
0.151261
0.151261
0.151261
0.151261
0
0.009132
0.404352
1,103
55
44
20.054545
0.715373
0
0
0.446809
0
0
0.148685
0
0
0
0
0
0
1
0.042553
false
0.085106
0
0
0.042553
0.06383
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
1
0
0
0
0
0
1
de982d6c49f8e177c4d60b006bcd86d297c1f667
6,398
py
Python
agents/alphabeta.py
BenGHolmes/AlphaFour
21fd34dfaca2899f5a17f323e964e5dab9f1e100
[ "MIT" ]
1
2021-08-05T04:09:15.000Z
2021-08-05T04:09:15.000Z
agents/alphabeta.py
BenGHolmes/AlphaFour
21fd34dfaca2899f5a17f323e964e5dab9f1e100
[ "MIT" ]
null
null
null
agents/alphabeta.py
BenGHolmes/AlphaFour
21fd34dfaca2899f5a17f323e964e5dab9f1e100
[ "MIT" ]
null
null
null
import numpy as np from agents import Agent from connectboard import ConnectBoard import time import math class AlphaBeta(Agent): """Agent that implements minimax with alpha-beta pruning to select its next move.""" def get_move(self, game_board: np.ndarray) -> np.ndarray: """Recursively runs minimax ...
38.083333
118
0.6005
849
6,398
4.409894
0.243816
0.033654
0.017628
0.028846
0.150107
0.076389
0.03312
0.03312
0
0
0
0.009602
0.332604
6,398
167
119
38.311377
0.867213
0.441075
0
0.109756
0
0
0.012785
0
0
0
0
0.011976
0
1
0.060976
false
0
0.060976
0
0.243902
0.012195
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
1
0
0
0
0
0
0
0
0
0
0
1
de9c8897bb0eb018cb988ddd4ca776fa0d58f133
274
py
Python
tmp/urls.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
tmp/urls.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
tmp/urls.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from . import views app_name = "invoice_creator" router = routers.DefaultRouter() router.register(r"invoice", views.InvoiceViewSet) urlpatterns = [ path("", include(router.urls), name="api"), ]
21.076923
49
0.751825
34
274
5.970588
0.617647
0.108374
0
0
0
0
0
0
0
0
0
0
0.127737
274
12
50
22.833333
0.849372
0
0
0
0
0
0.091241
0
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
1
de9de3c65eecfe5811d5214ef24b8a82a5553ee4
2,212
py
Python
petstagram/main_app/migrations/0001_initial.py
rashkov7/petstagram
1589da79acb37ffa07a56a3f7426bc76b9db12b0
[ "MIT" ]
null
null
null
petstagram/main_app/migrations/0001_initial.py
rashkov7/petstagram
1589da79acb37ffa07a56a3f7426bc76b9db12b0
[ "MIT" ]
3
2022-03-22T21:29:56.000Z
2022-03-23T07:13:30.000Z
petstagram/main_app/migrations/0001_initial.py
rashkov7/petstagram
1589da79acb37ffa07a56a3f7426bc76b9db12b0
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-03-17 10:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import petstagram.main_app.validators class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(set...
43.372549
186
0.596293
229
2,212
5.598253
0.41048
0.031201
0.043682
0.068643
0.320593
0.320593
0.320593
0.320593
0.320593
0.320593
0
0.013889
0.251356
2,212
50
187
44.24
0.760266
0.020344
0
0.348837
1
0
0.123326
0
0
0
0
0
0
1
0
false
0
0.093023
0
0.186047
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de9edf9ecc3f00cde2e2b892d0672a34b2a03041
1,391
py
Python
bot.py
ohld/emoji
9b20f42f7bbfe402d3c26cc0658689320661c023
[ "Unlicense" ]
7
2019-01-02T10:21:28.000Z
2022-03-08T08:11:52.000Z
bot.py
ohld/emoji
9b20f42f7bbfe402d3c26cc0658689320661c023
[ "Unlicense" ]
1
2018-11-26T20:11:39.000Z
2018-11-26T20:14:58.000Z
bot.py
ohld/emoji
9b20f42f7bbfe402d3c26cc0658689320661c023
[ "Unlicense" ]
1
2021-03-18T10:10:40.000Z
2021-03-18T10:10:40.000Z
import os import logging import requests import telegram from telegram.error import NetworkError, Unauthorized from time import sleep from imageGenerator import generate_random_emoji_cover update_id = None def main(): """Run the bot.""" global update_id # Telegram Bot Authorization Token bot = telegr...
28.387755
86
0.662832
185
1,391
4.783784
0.448649
0.108475
0.042938
0.054237
0
0
0
0
0
0
0
0.005758
0.250899
1,391
49
87
28.387755
0.84357
0.202732
0
0.181818
1
0
0.074613
0
0
0
0
0
0
1
0.060606
false
0
0.212121
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dea227cae28cb8fa9871ca12d1b90272473f16ad
699
py
Python
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/TaskScheduler.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/TaskScheduler.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/TaskScheduler.py
side-projects-42/INTERVIEW-PREP-COMPLETE
627a3315cee4bbc38a0e81c256f27f928eac2d63
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
class Solution: def leastInterval(self, tasks: List[str], n: int) -> int: tasksDict = collections.Counter(tasks) heap = [] c = 0 for k, v in tasksDict.items(): heappush(heap, (-v, k)) while heap: i = 0 stack = [] while i <= n: ...
30.391304
61
0.384835
74
699
3.635135
0.472973
0.089219
0.066915
0.074349
0
0
0
0
0
0
0
0.026087
0.506438
699
22
62
31.772727
0.753623
0
0
0
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
0
1
dea4088734bcb1f70675145aa3b3355d98c1ffce
991
py
Python
django_workflow_system/models/step_ui_template.py
eikonomega/django-workflow-system
dc0e8807263266713d3d7fa46e240e8d72db28d1
[ "MIT" ]
2
2022-01-28T12:35:42.000Z
2022-03-23T16:06:05.000Z
django_workflow_system/models/step_ui_template.py
eikonomega/django-workflow-system
dc0e8807263266713d3d7fa46e240e8d72db28d1
[ "MIT" ]
10
2021-04-27T20:26:32.000Z
2021-07-21T15:34:31.000Z
django_workflow_system/models/step_ui_template.py
eikonomega/django-workflow-system
dc0e8807263266713d3d7fa46e240e8d72db28d1
[ "MIT" ]
1
2021-11-13T14:30:34.000Z
2021-11-13T14:30:34.000Z
"""Django model definition.""" import uuid from django.db import models from django_workflow_system.models.abstract_models import CreatedModifiedAbstractModel class WorkflowStepUITemplate(CreatedModifiedAbstractModel): """ User interface template specification for Workflows. While the back-end of the a...
30.96875
86
0.738648
126
991
5.68254
0.595238
0.02095
0
0
0
0
0
0
0
0
0
0.005051
0.200807
991
31
87
31.967742
0.89899
0.435923
0
0
0
0
0.103922
0.062745
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
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
1
0
0
1
dea7d5f204007921f3aecf24f6524e0132809bf8
477
py
Python
urllib2_test/urllib2_test_9.py
waws520waws/waws_spider
c6a5988121f32619a5c5134c09fdfd556c696fe7
[ "MIT" ]
null
null
null
urllib2_test/urllib2_test_9.py
waws520waws/waws_spider
c6a5988121f32619a5c5134c09fdfd556c696fe7
[ "MIT" ]
null
null
null
urllib2_test/urllib2_test_9.py
waws520waws/waws_spider
c6a5988121f32619a5c5134c09fdfd556c696fe7
[ "MIT" ]
null
null
null
# encoding:utf-8 import urllib2 import urllib """ ajax的请求方式是:post 因为使用的是python的库的方式,返回状态码为418,触发了反扒机制 添加上headers,模拟浏览器即可 """ url = "https://movie.douban.com/j/chart/top_list?type=10&interval_id=100%3A90&action" headers = {"User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0);"} formdata = {"l...
26.5
92
0.737945
69
477
5.072464
0.768116
0.011429
0
0
0
0
0
0
0
0
0
0.059497
0.083857
477
17
93
28.058824
0.741419
0.02935
0
0
0
0.25
0.428198
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
deb66de9bcbef580d6f3c507cf429c4db65689c6
417
py
Python
zentral/contrib/audit/events/__init__.py
VegarM/zentral
3ab2c92953b406cb7e2442df30d4b835b7f0a4a3
[ "Apache-2.0" ]
1
2019-06-10T06:11:27.000Z
2019-06-10T06:11:27.000Z
zentral/contrib/audit/events/__init__.py
VegarM/zentral
3ab2c92953b406cb7e2442df30d4b835b7f0a4a3
[ "Apache-2.0" ]
null
null
null
zentral/contrib/audit/events/__init__.py
VegarM/zentral
3ab2c92953b406cb7e2442df30d4b835b7f0a4a3
[ "Apache-2.0" ]
1
2020-09-09T19:26:04.000Z
2020-09-09T19:26:04.000Z
import logging from zentral.core.events.base import BaseEvent, register_event_type logger = logging.getLogger('zentral.contrib.audit.events') ALL_EVENTS_SEARCH_DICT = {"tag": "audit"} class AuditEvent(BaseEvent): event_type = "audit" tags = ["audit"] payload_aggregations = [ ("event_id", {"type...
21.947368
83
0.697842
49
417
5.714286
0.632653
0.096429
0.121429
0
0
0
0
0
0
0
0
0.005698
0.158273
417
18
84
23.166667
0.792023
0
0
0
0
0
0.215827
0.067146
0
0
0
0
0
1
0
false
0
0.181818
0
0.545455
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
1
0
0
1
deb70b7d1dde117c85bc01b70e960a24f6aa2c81
2,952
py
Python
GUI/tabs/specifications_tabs_/specification_tab.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
7
2021-03-17T01:23:28.000Z
2021-05-06T20:41:21.000Z
GUI/tabs/specifications_tabs_/specification_tab.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
GUI/tabs/specifications_tabs_/specification_tab.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
from DPS_data_objects.placeholders.geometry_placeholder import * from PyQt5.QtWidgets import * class specification_tab(QWidget): def __init__(self): super().__init__() self.layout = QFormLayout(self) def create_tab(self): self.create_widget() self.button = QPushButton('Save'...
36
103
0.61958
304
2,952
5.690789
0.200658
0.110983
0.078035
0.057803
0.380347
0.321387
0.253179
0.253179
0.113295
0
0
0.000421
0.194444
2,952
81
104
36.444444
0.727082
0.012873
0
0.058824
0
0
0.012025
0
0
0
0
0
0
1
0.137255
false
0.058824
0.039216
0
0.235294
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
1
0
0
0
0
0
1
decbd4297b5312734d6a07ffe297278659240c60
324
py
Python
assignment6/reducer.py
IITDU-BSSE06/ads-demystifying-the-logs-Shisir
2d57cf15b4e8097e54e1a997ed01b9a5002640be
[ "MIT" ]
null
null
null
assignment6/reducer.py
IITDU-BSSE06/ads-demystifying-the-logs-Shisir
2d57cf15b4e8097e54e1a997ed01b9a5002640be
[ "MIT" ]
null
null
null
assignment6/reducer.py
IITDU-BSSE06/ads-demystifying-the-logs-Shisir
2d57cf15b4e8097e54e1a997ed01b9a5002640be
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys cnt1=0 cnt2=0 cnt3=0 for line in sys.stdin: line=line.strip() if line=="2009": cnt1+=1 elif line=="2010": cnt2+=1 elif line=="2011": cnt3+=1 print "2009 ",cnt1 print "2010 ",cnt2 print "2011 ",cnt3 maxi=max(cnt1,max(cnt2,cnt3)) print "most number of hits: ",ma...
15.428571
35
0.62037
55
324
3.654545
0.490909
0.079602
0.089552
0
0
0
0
0
0
0
0
0.164063
0.209877
324
20
36
16.2
0.621094
0.049383
0
0
0
0
0.167247
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.235294
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
1
0
0
0
0
0
0
0
0
1
dece0ab9c2c7adaa8f48d2907d3d66887815c778
263
py
Python
setup.py
epleaner/kaggle-house-prices
0c0cb34b265aae78dd0517af1af82c935e1e91de
[ "MIT" ]
null
null
null
setup.py
epleaner/kaggle-house-prices
0c0cb34b265aae78dd0517af1af82c935e1e91de
[ "MIT" ]
null
null
null
setup.py
epleaner/kaggle-house-prices
0c0cb34b265aae78dd0517af1af82c935e1e91de
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='repo for https://www.kaggle.com/c/house-prices-advanced-regression-techniques', author='eli pleaner', license='MIT', )
23.909091
96
0.692015
34
263
5.294118
0.852941
0.133333
0
0
0
0
0
0
0
0
0
0.013514
0.155894
263
10
97
26.3
0.797297
0
0
0
0
0.111111
0.376426
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
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
1
0
0
0
0
0
0
1
ded301ffc06a9345e4d56c416e8dbf4f17b25538
521
py
Python
education4less/scholar/migrations/0004_auto_20191203_1435.py
xarielx/education4less
24de746d859a859a7413917fcbbb2dcdaa440521
[ "MIT" ]
1
2020-02-05T02:21:25.000Z
2020-02-05T02:21:25.000Z
education4less/scholar/migrations/0004_auto_20191203_1435.py
xarielx/education4less
24de746d859a859a7413917fcbbb2dcdaa440521
[ "MIT" ]
8
2020-02-12T03:03:26.000Z
2022-02-10T09:56:49.000Z
education4less/scholar/migrations/0004_auto_20191203_1435.py
xarielx/education4less
24de746d859a859a7413917fcbbb2dcdaa440521
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-12-03 19:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scholar', '0003_auto_20191203_0243'), ] operations = [ migrations.AlterModelOptions( name='scholar', options={'order...
22.652174
51
0.579655
50
521
5.92
0.74
0.074324
0
0
0
0
0
0
0
0
0
0.087671
0.299424
521
22
52
23.681818
0.723288
0.086372
0
0.125
1
0
0.160338
0.048523
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dedcda403dd61ff542804814a1756a9866d3a4ba
1,008
py
Python
task_3.py
MutterPedro/chicago_bikeshare_project
22797c0c4d7f42dd613486d14eb53ee53d8f4724
[ "MIT" ]
null
null
null
task_3.py
MutterPedro/chicago_bikeshare_project
22797c0c4d7f42dd613486d14eb53ee53d8f4724
[ "MIT" ]
null
null
null
task_3.py
MutterPedro/chicago_bikeshare_project
22797c0c4d7f42dd613486d14eb53ee53d8f4724
[ "MIT" ]
null
null
null
def column_to_list(data, index): """ Função para pegar um certo atributo dos dados. Argumentos: data: lista de dados. index: indice do atributo desejado. Retorna: Uma lista dos atributos desejados. """ return [d[index] for d in data] def run(data_list): # TAREFA 3 # ...
38.769231
116
0.621032
138
1,008
4.405797
0.521739
0.078947
0.118421
0.157895
0.172697
0.172697
0
0
0
0
0
0.031289
0.207341
1,008
25
117
40.32
0.729662
0.364087
0
0
0
0
0.328904
0
0
0
0
0
0.333333
1
0.222222
false
0
0
0
0.333333
0.222222
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
1
0
0
0
0
0
0
0
1
deea74e29f0f6e70ccb9f47c715a7dc57b2e3f74
948
py
Python
CNIC-C/inference_wrapper.py
CSnode/Multimodal-Captioning
535aad49bc77bfe72977ff4870befeb1a98b445b
[ "MIT" ]
2
2020-04-08T09:49:35.000Z
2021-06-19T05:04:23.000Z
CNIC/inference_wrapper.py
CSnode/Multimodal-Captioning
535aad49bc77bfe72977ff4870befeb1a98b445b
[ "MIT" ]
null
null
null
CNIC/inference_wrapper.py
CSnode/Multimodal-Captioning
535aad49bc77bfe72977ff4870befeb1a98b445b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import show_and_tell_model from inference_utils import inference_wrapper_base class InferenceWrapper(inference_wrapper_base.InferenceWrapperBase): def __init__(self): super(InferenceWr...
43.090909
146
0.820675
139
948
5.143885
0.345324
0.044755
0.067133
0.044755
0
0
0
0
0
0
0
0.00907
0.06962
948
21
147
45.142857
0.801587
0.022152
0
0
0
0
0.115926
0
0
0
0
0
0
1
0.222222
false
0
0.277778
0
0.722222
0.055556
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
1
0
0
0
0
0
0
0
1
deefafaa1cd7701a2fc45b519006fb22f493b36d
1,083
py
Python
Example merge conflicts/test3/right.py
kevinamick/Elegit
f92c1d5c7c8197c847c7de69b1f7684b36393c6e
[ "MIT" ]
28
2015-07-08T21:21:46.000Z
2020-12-30T23:09:50.000Z
Example merge conflicts/test3/right.py
kevinamick/Elegit
f92c1d5c7c8197c847c7de69b1f7684b36393c6e
[ "MIT" ]
551
2015-07-08T20:24:37.000Z
2021-12-14T21:13:17.000Z
Example merge conflicts/test3/right.py
grahamearley/Elegit
f92c1d5c7c8197c847c7de69b1f7684b36393c6e
[ "MIT" ]
12
2016-05-19T09:26:08.000Z
2020-09-24T03:04:17.000Z
def switch(myList, one, two): temp=myList[one] myList[one]=myList[two] myList[two]=temp def sortMyList(myList): newList = myList.copy() quicksort(newList, 0, len(newList)) return newList def divide(myList, start, end): pivot = myList[start] left = start+1 right = end done = Fal...
24.613636
54
0.573407
139
1,083
4.467626
0.330935
0.10628
0.067633
0.064412
0
0
0
0
0
0
0
0.022849
0.313019
1,083
43
55
25.186047
0.811828
0.071099
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.029412
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
1
0
0
0
0
0
0
0
0
1
def02abfb24d2df10f834d59243a68c261080d71
6,499
py
Python
scripts/gen-synon.py
KosuriLab/b2-dms
0480bfdadd7f4ddaffd00078437292ca0193f948
[ "MIT" ]
null
null
null
scripts/gen-synon.py
KosuriLab/b2-dms
0480bfdadd7f4ddaffd00078437292ca0193f948
[ "MIT" ]
null
null
null
scripts/gen-synon.py
KosuriLab/b2-dms
0480bfdadd7f4ddaffd00078437292ca0193f948
[ "MIT" ]
null
null
null
""" Generate all synonymous mutants for a input protein Nathan Lubock """ # Ensure Python 2/3 compatibility from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import itertools import argparse import sys from signal impor...
30.800948
94
0.493922
841
6,499
3.738407
0.375743
0.005725
0.009542
0.012087
0.057888
0.044529
0.044529
0.025445
0.025445
0.025445
0
0.008325
0.242191
6,499
210
95
30.947619
0.630051
0.339129
0
0
1
0
0.176208
0
0
0
0
0
0
1
0.039604
false
0
0.079208
0
0.148515
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
def2d408b3c654ad536842e85f9281e4398d0343
496
py
Python
api/main.py
Yelp/beans
c1d5fef357665ba2d9b1eefc4c01bd3553970af6
[ "MIT" ]
83
2017-02-21T18:27:18.000Z
2022-01-03T17:21:14.000Z
api/main.py
Yelp/beans
c1d5fef357665ba2d9b1eefc4c01bd3553970af6
[ "MIT" ]
99
2017-02-21T19:13:59.000Z
2021-09-22T22:22:38.000Z
api/main.py
Yelp/beans
c1d5fef357665ba2d9b1eefc4c01bd3553970af6
[ "MIT" ]
39
2017-02-21T18:15:56.000Z
2022-03-15T22:47:47.000Z
import os from factory import create_app app = create_app() app.app_context().push() @app.teardown_request def teardown_request(*args, **kwargs): 'Expire and remove the session after each request' from database import db db.session.expire_all() db.session.remove() if 'Development' in os.environ.g...
19.84
58
0.719758
70
496
4.828571
0.528571
0.053254
0.071006
0.118343
0
0
0
0
0
0
0
0
0.175403
496
24
59
20.666667
0.826406
0.096774
0
0.125
0
0
0.165323
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.375
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
1
0
0
0
0
1
def6032a4a03156b7c975258bf56e38509f44f5b
689
py
Python
backend/logger/migrations/0017_auto_20171202_2306.py
AstroMatt/esa-subjective-time-perception
e23b09d1f13a8f51057178509beebd697789721f
[ "MIT" ]
1
2017-02-25T10:32:01.000Z
2017-02-25T10:32:01.000Z
backend/logger/migrations/0017_auto_20171202_2306.py
AstroMatt/esa-subjective-time-perception
e23b09d1f13a8f51057178509beebd697789721f
[ "MIT" ]
23
2017-10-02T13:59:20.000Z
2017-12-27T21:32:17.000Z
backend/logger/migrations/0017_auto_20171202_2306.py
AstroMatt/esa-time-perception
e23b09d1f13a8f51057178509beebd697789721f
[ "MIT" ]
1
2021-02-08T17:13:56.000Z
2021-02-08T17:13:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-02 22:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('logger', '0016_errorlogger_request'), ] operations = [ migrations.RemoveFie...
24.607143
98
0.593614
68
689
5.852941
0.691176
0.045226
0.060302
0
0
0
0
0
0
0
0
0.042857
0.288824
689
27
99
25.518519
0.769388
0.098694
0
0.15
1
0
0.142395
0.038835
0
0
0
0
0
1
0
false
0
0.1
0
0.25
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7204e7a5aee16a5ec6e438ea5aaef58edab77903
474
py
Python
emails/migrations/0002_ondelete.py
fmalina/emails
9bb467433e9ad8c8109d76edc894eaaaa309466d
[ "BSD-3-Clause" ]
4
2015-04-02T11:59:32.000Z
2017-07-08T21:33:11.000Z
emails/migrations/0002_ondelete.py
fmalina/django-emails
66f22c10e433620693d4fee67b5a49f0aecb7ea1
[ "BSD-3-Clause" ]
null
null
null
emails/migrations/0002_ondelete.py
fmalina/django-emails
66f22c10e433620693d4fee67b5a49f0aecb7ea1
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-25 20:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('emails', '0001_initial'), ] operations = [ migrations.AlterField( model_name='mailoutuser', ...
23.7
110
0.64135
52
474
5.788462
0.692308
0.079734
0.093023
0.146179
0
0
0
0
0
0
0
0.052778
0.240506
474
19
111
24.947368
0.783333
0.094937
0
0
1
0
0.138173
0.051522
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
720804feabf0bb4e74b653fc5c933d6f5a2940ef
2,433
py
Python
QBG/DataLoader/tools/top_maker.py
GYMS-PKU/Daily-Frequency-Quant
808eda9930efecff04ecf98abf617404cadd0003
[ "MIT" ]
3
2021-11-21T04:35:04.000Z
2022-03-04T09:19:53.000Z
QBG/DataLoader/tools/top_maker.py
GYMS-PKU/Daily-Frequency-Quant
808eda9930efecff04ecf98abf617404cadd0003
[ "MIT" ]
null
null
null
QBG/DataLoader/tools/top_maker.py
GYMS-PKU/Daily-Frequency-Quant
808eda9930efecff04ecf98abf617404cadd0003
[ "MIT" ]
5
2021-10-03T00:00:22.000Z
2022-03-07T09:02:00.000Z
# Copyright (c) 2022 Dai HBG """ 构造top矩阵 日志 2022-01-11 - init 2022-01-20 - 更新:生成普通top时需要剔除ST股 """ import numpy as np import pandas as pd import pickle # 生成某个指数的top def generate_index_top(dates: np.array, date_position_dic: dict, code_order_dic: dict, data_path: str, top_type: str = 'ZZ1000'...
29.313253
103
0.588163
328
2,433
4.170732
0.271341
0.059211
0.078947
0.039474
0.495614
0.444444
0.416667
0.416667
0.342105
0.254386
0
0.022689
0.27538
2,433
83
104
29.313253
0.753261
0.177148
0
0.309524
1
0
0.093783
0.054268
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
720c067190359b25719e3293e8507c15ad77cc28
19,824
py
Python
css_em.py
amloewi/css-blockmodels
f4c0b907632c1cd9dea2930e3efc25125cd18e66
[ "MIT" ]
2
2015-11-20T14:22:19.000Z
2016-10-12T21:03:49.000Z
css_em.py
amloewi/css-blockmodels
f4c0b907632c1cd9dea2930e3efc25125cd18e66
[ "MIT" ]
null
null
null
css_em.py
amloewi/css-blockmodels
f4c0b907632c1cd9dea2930e3efc25125cd18e66
[ "MIT" ]
null
null
null
import sys import copy import pdb import numpy as np import networkx as nx import npkmeans as km import blockmodels as bm import grouping_distance as gd def calculate_likelihood(data, groups, G, n, k): Po1e0 = np.zeros((k,)*3) # p(o=1,e=0) Po1e1 = np.zeros((k,)*3) # p(o=1,e=1) counts = {0:np.zero...
34.718039
264
0.554328
3,144
19,824
3.40458
0.139313
0.007287
0.004765
0.008408
0.35725
0.30951
0.248972
0.213939
0.189649
0.172739
0
0.035641
0.283848
19,824
570
265
34.778947
0.718321
0.429025
0
0.121094
0
0
0.006956
0
0
0
0
0
0
0
null
null
0.011719
0.03125
null
null
0.007813
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
1
0
0
0
0
0
0
0
0
1
72124708eba863b161967f01b344d4a9d4390273
17,206
py
Python
profrage/generate/dae.py
federicoVS/ProFraGe
d8a653efae80af51e9a99f01268815c99fe62f84
[ "MIT" ]
null
null
null
profrage/generate/dae.py
federicoVS/ProFraGe
d8a653efae80af51e9a99f01268815c99fe62f84
[ "MIT" ]
null
null
null
profrage/generate/dae.py
federicoVS/ProFraGe
d8a653efae80af51e9a99f01268815c99fe62f84
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.optim import Adam from torch.optim.lr_scheduler import MultiStepLR from generate.layers import MLPLayer, DGCLayer from generate.utils import reparametrize, clipping_dist class ProDAAE(nn.Module): """ Protein graph generation model b...
42.483951
182
0.572242
2,340
17,206
3.997863
0.147009
0.0248
0.021807
0.010583
0.340353
0.233993
0.166649
0.129129
0.111277
0.111277
0
0.015301
0.316285
17,206
405
183
42.483951
0.779922
0.281878
0
0.121951
1
0
0.04
0.010489
0
0
0
0
0
1
0.04878
false
0
0.034146
0
0.131707
0.043902
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7226e2fbf7c6b28a0b36b29199ef18a2d7c0d471
480
py
Python
claims_to_quality/lib/teradata_methods/sql_formatting.py
CMSgov/qpp-claims-to-quality-public
1e2da9494faf9e316a17cbe899284db9e61d0902
[ "CC0-1.0" ]
13
2018-09-28T14:02:59.000Z
2021-12-07T21:31:54.000Z
claims_to_quality/lib/teradata_methods/sql_formatting.py
CMSgov/qpp-claims-to-quality-public
1e2da9494faf9e316a17cbe899284db9e61d0902
[ "CC0-1.0" ]
1
2018-10-01T17:49:05.000Z
2018-10-09T01:10:56.000Z
claims_to_quality/lib/teradata_methods/sql_formatting.py
CMSgov/qpp-claims-to-quality-public
1e2da9494faf9e316a17cbe899284db9e61d0902
[ "CC0-1.0" ]
1
2021-02-08T18:32:16.000Z
2021-02-08T18:32:16.000Z
"""SQL formatting for Teradata queries.""" class SQLFormattingError(Exception): """Custom Exception handling for empty SQL lists.""" pass def to_sql_list(iterable): """ Transform a Python list to a SQL list. input = [a1, a2] output = "('a1', 'a2')" """ if iterable: return '...
22.857143
84
0.597917
56
480
5.089286
0.660714
0.049123
0
0
0
0
0
0
0
0
0
0.011111
0.25
480
20
85
24
0.780556
0.341667
0
0
0
0
0.191489
0
0
0
0
0
0
1
0.142857
false
0.142857
0
0
0.428571
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
1
0
0
0
0
0
1
722b64e227afbeed67710b9445ef1952bdb29d1e
593
py
Python
src/data/905.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/905.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/905.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque N, Q = map(int, input().split()) R = [[] for _ in range(N)] for _ in range(N - 1): a, b = map(int, input().split()) a -= 1 b -= 1 R[a].append(b) R[b].append(a) D = [-1] * N D[0] = 0 queue = deque([0]) while queue: nxt = queue.popleft() for i in R[nxt]: ...
17.969697
36
0.435076
102
593
2.5
0.303922
0.070588
0.129412
0.188235
0.172549
0.172549
0.172549
0.172549
0.172549
0.172549
0
0.034121
0.357504
593
32
37
18.53125
0.635171
0
0
0.214286
0
0
0.013491
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.071429
0
0
0
null
0
0
1
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
0
1
7230504312216770e92b0bd5341ac6e47dca925d
2,436
py
Python
python/actorcore/ICCExceptions.py
sdss/actorcore
e683dc8a80c4838887d54da6eca4a3945e85868d
[ "BSD-3-Clause" ]
null
null
null
python/actorcore/ICCExceptions.py
sdss/actorcore
e683dc8a80c4838887d54da6eca4a3945e85868d
[ "BSD-3-Clause" ]
null
null
null
python/actorcore/ICCExceptions.py
sdss/actorcore
e683dc8a80c4838887d54da6eca4a3945e85868d
[ "BSD-3-Clause" ]
null
null
null
__all__ = ["ICCError", "CmdError", "CommError"] class ICCError(Exception): """A general exception for the ICC. Anything can throw one, passing a one line error message. The top-level event loop will close/cleanup/destroy any running command and return the error message on text. """ def __in...
30.835443
85
0.609606
294
2,436
4.996599
0.244898
0.028591
0.066712
0.076242
0.750851
0.697073
0.697073
0.697073
0.697073
0.697073
0
0
0.315271
2,436
78
86
31.230769
0.880695
0.55665
0
0.692308
0
0
0.028769
0
0
0
0
0
0
1
0.115385
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
1
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
0
1
72329a95d789236013301b175513c0c87b61ddcf
898
py
Python
Lib/glyphNameFormatter/rangeProcessors/alphabetic_presentation_forms.py
peterennis/glyphNameFormatter
10c8095322741341a2a57045e69fa8a2e923f1a9
[ "BSD-3-Clause" ]
69
2016-03-02T23:57:33.000Z
2022-03-15T00:04:28.000Z
Lib/glyphNameFormatter/rangeProcessors/alphabetic_presentation_forms.py
peterennis/glyphNameFormatter
10c8095322741341a2a57045e69fa8a2e923f1a9
[ "BSD-3-Clause" ]
90
2016-03-04T19:38:45.000Z
2022-03-21T21:06:34.000Z
Lib/glyphNameFormatter/rangeProcessors/alphabetic_presentation_forms.py
peterennis/glyphNameFormatter
10c8095322741341a2a57045e69fa8a2e923f1a9
[ "BSD-3-Clause" ]
17
2016-03-03T02:20:57.000Z
2022-02-11T14:26:58.000Z
from glyphNameFormatter.data.scriptPrefixes import scriptPrefixes def process(self): if self.has("LATIN"): self.scriptTag = scriptPrefixes['latin'] if self.has("ARMENIAN"): # self.scriptTag = scriptPrefixes['armenian'] self.processAs("Armenian") elif self.has("HEBREW"): # s...
33.259259
65
0.673719
111
898
5.315315
0.36036
0.094915
0.154237
0.213559
0.308475
0
0
0
0
0
0
0
0.190423
898
26
66
34.538462
0.811554
0.094655
0
0
0
0
0.334568
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.157895
0.105263
0
0
0
null
0
0
1
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
0
1
7237e94ca68fd57c1b18130524484eb30c65c669
2,156
py
Python
spark_auto_mapper_fhir/value_sets/device_use_statement_status.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/device_use_statement_status.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/device_use_statement_status.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
35.344262
84
0.731911
253
2,156
6.134387
0.403162
0.040593
0.05799
0.081186
0.371778
0.342139
0.342139
0.250644
0.250644
0.250644
0
0.005602
0.172078
2,156
60
85
35.933333
0.863866
0.166976
0
0
0
0
0.106077
0
0
0
0
0
0
1
0.066667
false
0
0.266667
0
0.933333
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
1
0
0
1
724a080fada5552d2e0b5c20aeb7fb1b25963e07
1,969
py
Python
backend/api.py
logandg/salty-sea
0c6701e83071e93dfd0c967ba352e22d9c586692
[ "MIT" ]
1
2015-03-02T01:55:53.000Z
2015-03-02T01:55:53.000Z
backend/api.py
logandg/salty-sea
0c6701e83071e93dfd0c967ba352e22d9c586692
[ "MIT" ]
null
null
null
backend/api.py
logandg/salty-sea
0c6701e83071e93dfd0c967ba352e22d9c586692
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask.ext import restful from functools import wraps import salt.client import yaml app = Flask(__name__) api = restful.Api(app) salt_local = salt.client.LocalClient() # decorator for token auth # uses a users.yaml file def token_auth(func): @wraps(func) ...
28.955882
116
0.654647
240
1,969
5.2125
0.3625
0.063949
0.033573
0.047962
0.177458
0.118305
0.118305
0.118305
0.118305
0.118305
0
0.004727
0.247842
1,969
67
117
29.38806
0.839973
0.070594
0
0.095238
0
0
0.09835
0.04632
0
0
0
0
0
0
null
null
0
0.142857
null
null
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
1
0
0
0
0
0
0
0
0
1
724a36c21e6e9f29cd9728a28cc79a60fbc83b3c
2,219
py
Python
Labs/Lab10/lab10b.py
tonysulfaro/CSE-231
0e3ff5422fe42624a90a17d7f33174346662a6fc
[ "MIT" ]
2
2021-09-23T19:17:24.000Z
2021-11-29T09:03:56.000Z
Labs/Lab10/lab10b.py
tonysulfaro/CSE-231
0e3ff5422fe42624a90a17d7f33174346662a6fc
[ "MIT" ]
null
null
null
Labs/Lab10/lab10b.py
tonysulfaro/CSE-231
0e3ff5422fe42624a90a17d7f33174346662a6fc
[ "MIT" ]
1
2020-10-25T13:03:18.000Z
2020-10-25T13:03:18.000Z
import cards # Create the deck of cards import random random.seed( 100 ) # Create a deck of cards the_deck = cards.Deck() # Shuffle the deck, then display it in 13 columns the_deck.shuffle() print( "===== shuffled deck =====" ) the_deck.display() # Deal five cards to each player (alternating) print( "Dealt fi...
24.932584
85
0.666967
312
2,219
4.573718
0.233974
0.053959
0.047652
0.047652
0.297828
0.133146
0.100911
0
0
0
0
0.033879
0.201893
2,219
88
86
25.215909
0.77188
0.132041
0
0.327273
0
0
0.221757
0
0
0
0
0
0
1
0
false
0
0.036364
0
0.036364
0.436364
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
1
0
1
7253c4bd6170ab42d1957903f25f011310468237
3,278
py
Python
tests/test_bool.py
defgsus/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
1
2021-02-17T17:50:28.000Z
2021-02-17T17:50:28.000Z
tests/test_bool.py
defgsus/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
2
2021-03-29T02:09:41.000Z
2022-03-01T20:09:48.000Z
tests/test_bool.py
netzkolchose/elastipy
c1144ab39fa70571ba0e02ccf41d380a8a1bd730
[ "Apache-2.0" ]
null
null
null
import os import json import time import unittest from elastipy import Search, query class TestBool(unittest.TestCase): def q1(self): return query.Term("a", "1") def q2(self): return query.Term("b", "2") def q3(self): return query.Term("c", "3") def q4(self): retur...
24.833333
81
0.484747
374
3,278
4.157754
0.165775
0.15627
0.158842
0.163987
0.64373
0.594855
0.515113
0.365273
0.365273
0.277814
0
0.029494
0.348383
3,278
131
82
25.022901
0.698502
0.003966
0
0.317757
0
0
0.01563
0
0
0
0
0
0.168224
1
0.140187
false
0
0.046729
0.037383
0.233645
0
0
0
0
null
0
0
1
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
0
1
a0c72e72d3e778955156799e6cf9cd500692ecfd
1,417
py
Python
example/example.py
cdsedson/kafka-decorator
f2c958df88c5698148aae4c5314dd39e31e995c3
[ "MIT" ]
null
null
null
example/example.py
cdsedson/kafka-decorator
f2c958df88c5698148aae4c5314dd39e31e995c3
[ "MIT" ]
null
null
null
example/example.py
cdsedson/kafka-decorator
f2c958df88c5698148aae4c5314dd39e31e995c3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- try: print('trying installed module') from kafka_client_decorators import KafkaDecorator except: print('installed module failed, trying from path') import sys sys.path.insert(1, '../') from kafka_client_decorators import KafkaDecorator kc = KafkaDecor...
24.431034
128
0.636556
187
1,417
4.679144
0.406417
0.032
0.034286
0.057143
0.258286
0.258286
0.091429
0.091429
0.091429
0.091429
0
0.02518
0.215243
1,417
57
129
24.859649
0.761691
0.057869
0
0.157895
0
0.026316
0.218962
0
0
0
0
0
0
1
0.184211
false
0.105263
0.078947
0
0.315789
0.105263
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
1
0
0
0
0
0
1
a0cdec98d40d4136df0273f4eb67f2d95d1b878f
687
py
Python
auth-api/migrations/versions/d46ec0214eb2_add_passcode_claimed_field.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
11
2019-09-26T06:58:25.000Z
2022-01-26T06:19:39.000Z
auth-api/migrations/versions/d46ec0214eb2_add_passcode_claimed_field.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
1,622
2019-05-07T21:08:38.000Z
2022-03-28T17:07:15.000Z
auth-api/migrations/versions/d46ec0214eb2_add_passcode_claimed_field.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
98
2019-03-01T21:36:15.000Z
2021-12-01T22:11:25.000Z
"""Add passcode claimed field Revision ID: d46ec0214eb2 Revises: 3d13cc3dc30d Create Date: 2019-08-26 13:18:28.719962 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = 'd46ec0214eb2' down_revision = '3d13cc3dc30d' branch_labels = None depends_on = None def upgr...
23.689655
88
0.703057
86
687
5.511628
0.593023
0.056962
0.088608
0.097046
0.185654
0.185654
0.185654
0.185654
0
0
0
0.08056
0.16885
687
28
89
24.535714
0.749562
0.448326
0
0
0
0
0.204678
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0
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
1
0
0
0
0
0
1
a0d38ee0e43db7dc7180db34042105919747da88
1,428
py
Python
setup.py
kamilmahmood/fastzipfile
b9c94680068c0d9775679633dc6cab52a84b8428
[ "MIT" ]
6
2019-07-07T13:32:42.000Z
2021-05-04T18:12:04.000Z
setup.py
kamilmahmood/fastzipfile
b9c94680068c0d9775679633dc6cab52a84b8428
[ "MIT" ]
2
2019-11-08T07:05:37.000Z
2021-10-01T16:24:55.000Z
setup.py
kamilmahmood/fastzipfile
b9c94680068c0d9775679633dc6cab52a84b8428
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import Extension from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() decrypter = Extension('_zipdecrypter', ...
33.209302
63
0.630252
156
1,428
5.647436
0.583333
0.129398
0.170261
0.177072
0
0
0
0
0
0
0
0.021958
0.234594
1,428
42
64
34
0.784081
0.031513
0
0
0
0
0.430123
0.04055
0
0
0
0
0
1
0
false
0.027027
0.081081
0
0.081081
0
0
0
0
null
0
0
1
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
0
1
a0da55180c19500a3007de792974462496b8ce54
3,613
py
Python
telenorsms.py
mikeri/Telenor-SMS
ef73744419c4e20d6d9ee39b477306680d5a8d65
[ "MIT" ]
1
2020-07-19T22:43:50.000Z
2020-07-19T22:43:50.000Z
telenorsms.py
mikeri/Telenor-SMS
ef73744419c4e20d6d9ee39b477306680d5a8d65
[ "MIT" ]
null
null
null
telenorsms.py
mikeri/Telenor-SMS
ef73744419c4e20d6d9ee39b477306680d5a8d65
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from html.parser import HTMLParser import argparse import requests import netrc import json import os class AuthenticationError(Exception): pass class TelenorSMS: def __init__(self, sender, password): session = requests.Session() init_url = "https://minemeldinger.no/auth/...
32.258929
83
0.598118
395
3,613
5.308861
0.311392
0.019075
0.032427
0.021936
0.049595
0.023844
0
0
0
0
0
0.003107
0.287296
3,613
111
84
32.54955
0.811262
0.004705
0
0.097826
0
0.01087
0.191099
0
0
0
0
0
0
1
0.043478
false
0.141304
0.065217
0
0.152174
0.054348
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
1
0
0
0
0
0
1
a0db4334e53245c94fc1959026a1530040123a4d
493
py
Python
number.py
fyl00/pysnippet
579461e06becccd65884b5faba6451999940c2e9
[ "MIT" ]
null
null
null
number.py
fyl00/pysnippet
579461e06becccd65884b5faba6451999940c2e9
[ "MIT" ]
null
null
null
number.py
fyl00/pysnippet
579461e06becccd65884b5faba6451999940c2e9
[ "MIT" ]
null
null
null
# coding=utf8 from sys import version_info as PY_VER PY3 = PY_VER[0] == 3 def int_with_commas(x): # Use commmas to separate numbers into groups of three digits if type(x) not in [type(0), type(0L)]: raise TypeError("Parameter must be an integer.") if x < 0: return '-' + intWithCommas(-x)...
23.47619
65
0.598377
76
493
3.789474
0.684211
0.034722
0.090278
0
0
0
0
0
0
0
0
0.063712
0.267748
493
20
66
24.65
0.734072
0.144016
0
0
0
0
0.097852
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.076923
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
1
0
0
0
0
0
0
0
0
1
a0dd588b56df188ab3afebe482b6a4b6487ec5b5
12,363
py
Python
mcmc_sampler.py
fraspass/human_activity
147fb571bcc5f8a4ef2faba87c21f85453553270
[ "MIT" ]
7
2018-04-25T23:56:28.000Z
2021-02-18T09:42:38.000Z
mcmc_sampler.py
fraspass/human_activity
147fb571bcc5f8a4ef2faba87c21f85453553270
[ "MIT" ]
null
null
null
mcmc_sampler.py
fraspass/human_activity
147fb571bcc5f8a4ef2faba87c21f85453553270
[ "MIT" ]
1
2021-07-30T17:42:05.000Z
2021-07-30T17:42:05.000Z
#!/usr/bin/env python import sys from scipy.special import gammaln from scipy.stats import gamma,geom,norm from scipy.stats import laplace as lpl from collections import Counter import numpy as np from numpy import pi,sqrt import cps_circle import mix_wrapped, mix_wrapped_laplace import matplotlib.pyplot as plt ######...
44.471223
123
0.63051
2,177
12,363
3.463023
0.127239
0.014591
0.020692
0.027059
0.52235
0.479109
0.452049
0.415572
0.391829
0.352169
0
0.036339
0.180862
12,363
277
124
44.631769
0.708107
0.150206
0
0.340611
0
0
0.018184
0
0
0
0
0
0
0
null
null
0
0.043668
null
null
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
1
0
0
0
0
0
0
0
0
1
a0eaadec929a1323fd4e612d5fc2afd9675d3ec1
1,514
py
Python
openprocurement/auctions/core/__init__.py
EBRD-ProzorroSale/openprocurement.auctions.core
52bd59f193f25e4997612fca0f87291decf06966
[ "Apache-2.0" ]
2
2016-09-15T20:17:43.000Z
2017-01-08T03:32:43.000Z
openprocurement/auctions/core/__init__.py
EBRD-ProzorroSale/openprocurement.auctions.core
52bd59f193f25e4997612fca0f87291decf06966
[ "Apache-2.0" ]
183
2017-12-21T11:04:37.000Z
2019-03-27T08:14:34.000Z
openprocurement/auctions/core/__init__.py
EBRD-ProzorroSale/openprocurement.auctions.core
52bd59f193f25e4997612fca0f87291decf06966
[ "Apache-2.0" ]
12
2016-09-05T12:07:48.000Z
2019-02-26T09:24:17.000Z
# -*- coding: utf-8 -*- from pyramid.events import ContextFound from pkg_resources import iter_entry_points from pyramid.interfaces import IRequest from openprocurement.api.interfaces import IContentConfigurator from openprocurement.auctions.core.models import IAuction from openprocurement.auctions.core.design import a...
48.83871
154
0.792602
162
1,514
7.185185
0.407407
0.118557
0.139175
0.106529
0
0
0
0
0
0
0
0.000764
0.135403
1,514
30
155
50.466667
0.888464
0.044254
0
0
0
0
0.102493
0.092798
0
0
0
0
0
1
0.041667
false
0
0.333333
0
0.375
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
1
0
0
0
0
1