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
92469e853a715e9955a582e9ea45ef2f7e9cfdce
3,585
py
Python
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
183
2020-04-04T02:01:15.000Z
2022-03-30T21:56:56.000Z
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
39
2020-04-05T15:19:56.000Z
2022-03-09T12:58:21.000Z
running_modes/scoring/logging/base_scoring_logger.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
70
2020-04-05T19:25:43.000Z
2022-02-22T12:04:39.000Z
import json import logging import os from abc import ABC, abstractmethod import pandas as pd from typing import List from running_modes.configurations.general_configuration_envelope import GeneralConfigurationEnvelope from running_modes.configurations.logging.scoring_log_configuration import ScoringLoggerConfiguratio...
41.206897
114
0.698187
424
3,585
5.632075
0.323113
0.065327
0.035595
0.035176
0.072864
0.052764
0.031826
0.031826
0.031826
0
0
0.001772
0.212831
3,585
86
115
41.686047
0.844437
0
0
0
0
0.014085
0.046583
0.006416
0
0
0
0
0
1
0.126761
false
0
0.140845
0
0.338028
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
924a0eddccceff04dda1decc76232550991e0be7
2,697
py
Python
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/contrib/payment/stripe_provider/__init__.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.utils.translation import ugettext_lazy as _ from ....payment import PaymentProvider, PaymentFailure, PaymentType from . import forms from . import models import stripe import datetime class StripeProvider(PaymentProvider): form_class = forms.StripeReceiptForm pay...
35.486842
84
0.595476
296
2,697
5.233108
0.334459
0.058102
0.051646
0.043899
0.096837
0.034861
0
0
0
0
0
0.002162
0.314053
2,697
75
85
35.96
0.835135
0.030404
0
0.09375
0
0
0.07925
0
0
0
0
0
0
1
0.0625
false
0.015625
0.109375
0
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
924a32e6e209fa2de53fe9b454a531ee0e4f03f5
2,424
py
Python
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
49
2017-02-14T13:49:37.000Z
2022-03-24T13:57:05.000Z
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
39
2017-02-08T14:21:17.000Z
2022-01-11T00:20:22.000Z
lambda/src/handlers/receive_email.py
sjmatta-forks/serverless-southwest-check-in
6b8cfbf1cb19c222f51a039db024217637db2ce4
[ "MIT" ]
13
2018-02-18T18:49:49.000Z
2022-02-16T15:05:35.000Z
import json import logging import os import time import boto3 import mail # Set up logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def _get_sfn_execution_name(reservation): """ Generate a human-readable execution named composed of the passenger's check in details followed by a tim...
32.32
79
0.691832
315
2,424
5.174603
0.4
0.066258
0.055215
0.03681
0.141104
0.04908
0.04908
0.04908
0.04908
0
0
0.001545
0.198845
2,424
74
80
32.756757
0.837796
0.276403
0
0.047619
0
0
0.170388
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.261905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
924c4a9c561c7aed9575e75c33ca46d044434fc2
9,184
py
Python
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
""" File for classes that handles the actual business logic of the application. Here is the the place where the actual reading, parsing and validation of the files happens. """ import re import click from .MethodInterface import MethodInterface from ..utils import ( get_leading_whitespace, get_indent_forward, ...
39.416309
178
0.530488
990
9,184
4.740404
0.223232
0.067121
0.041551
0.016621
0.178351
0.106542
0.051566
0.017899
0
0
0
0.005954
0.378267
9,184
232
179
39.586207
0.815937
0.135344
0
0.084848
0
0
0.034344
0
0.006061
0
0
0
0
1
0.054545
false
0.006061
0.036364
0
0.145455
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
924fec3ac075b37f75ff462088795707dc130a3b
1,539
py
Python
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
null
null
null
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
null
null
null
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
1
2021-03-10T04:02:57.000Z
2021-03-10T04:02:57.000Z
from conans import ConanFile, tools, CMake import os class KangaruConan(ConanFile): name = "kangaru" description = "A dependency injection container for C++11, C++14 and later" license = "MIT" topics = ("conan", "gracicot", "kangaru", "DI", "IoC", "inversion of control") homepage = "https:/...
37.536585
92
0.638077
172
1,539
5.52907
0.418605
0.078864
0.078864
0.060988
0.067298
0.067298
0
0
0
0
0
0.003401
0.235867
1,539
40
93
38.475
0.805272
0
0
0.058824
0
0
0.234156
0.018012
0
0
0
0
0
1
0.147059
false
0
0.058824
0.029412
0.558824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
925073b67d11908413dc3c2418ab4f3c9e2f45f4
8,989
py
Python
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
from player import Player import copy from random import randint # This AI class uses MiniMax Alpha-Beta Pruning in order to find the best possible move(s) each turn. class MiniMax(Player): def __init__(self, pid, board, logic): super().__init__(pid, board) self._logic = logic # Board ev...
61.993103
124
0.679608
1,420
8,989
4.228873
0.252817
0.030641
0.02398
0.017319
0.240633
0.219817
0.195171
0.157535
0.145545
0.145545
0
0.028988
0.243965
8,989
144
125
62.423611
0.85462
0.570586
0
0.142857
0
0
0.005198
0
0
0
0
0
0
1
0.057143
false
0
0.042857
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9250af11f4ee1e071c1b4ca4904fcbb36dc56250
2,971
py
Python
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
1
2021-04-16T06:29:41.000Z
2021-04-16T06:29:41.000Z
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
null
null
null
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
null
null
null
#!/usr/bin/env python from boxes.scrapers import DATA_PATH from pybox.task import Task from pybox.scraper.news_reader import NewsReader from datetime import date, timedelta, datetime def update_reader_settings(iteration, reader_settings): """Auxiliar function, returns the settings passed to the reader with u...
30.947917
76
0.678559
357
2,971
5.501401
0.341737
0.099796
0.035642
0.045825
0.144603
0.120163
0.037678
0.037678
0.037678
0
0
0.001739
0.22585
2,971
95
77
31.273684
0.852174
0.18445
0
0.246154
0
0
0.297629
0
0
0
0
0
0
1
0.030769
false
0
0.061538
0
0.107692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92533fd03fb0f3a8993a9f914c09ba1fc8a481b8
677
py
Python
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
class Thing(object): """A thing, does stuff.""" def __init__(self): self.special = "My special value!" def process(self, default=True): """Accept any argument with no special processing (except True).""" if default is True: # Notice I'm checking identity, not truth or equality ...
35.631579
81
0.611521
84
677
4.785714
0.607143
0.059701
0
0
0
0
0
0
0
0
0
0
0.279173
677
18
82
37.611111
0.82377
0.357459
0
0
0
0
0.119048
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.214286
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
925401b8a6748c444b83c26016063c2cd09a8be6
1,233
py
Python
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
from get_users_channels import getUsers from user_association import userAssociation from mmimo_mrt import computeBitrates from dpb import Dpb import numpy as np def singleUESetSimulation(no_ue, scenario, dpb_algorithm, dpb, assignment_method): pathloss, position, corr_data = getUsers(scenario,no_ue) pathl...
34.25
137
0.763179
161
1,233
5.583851
0.329193
0.040044
0.040044
0.050056
0.233593
0.206897
0.14238
0.14238
0.14238
0
0
0.004808
0.156529
1,233
35
138
35.228571
0.859615
0.025953
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.208333
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
0
0
0
0
1
0
925480aad2538abcd3adf524e7dc5e68a3d73cf6
5,362
py
Python
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-06-27T08:47:48.000Z
2019-06-27T08:47:48.000Z
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-11-23T03:39:28.000Z
2019-11-23T03:39:28.000Z
# coding: utf-8 from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from anchore_engine.services.policy_engine.api.models.base_model_ import Model from anchore_engine.services.policy_engine.api.models.trigger_spec import TriggerSpec # noqa: F401,E501 from anchore_engine.se...
28.827957
113
0.608355
641
5,362
5
0.168487
0.048674
0.113573
0.033697
0.545086
0.474571
0.45117
0.308892
0.280187
0.251482
0
0.018664
0.310518
5,362
185
114
28.983784
0.848255
0.469974
0
0.230769
0
0
0.08384
0
0
0
0
0
0
1
0.184615
false
0
0.076923
0
0.369231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92588762a2b3b34b9bfdc6caf756989bb0850c29
3,576
py
Python
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 31 16:29:33 2019 @author: jlee """ import time start_time = time.time() import numpy as np import glob, os import g0_init_cfg as ic from astropy.io import fits # ----- Importing IRAF from the root directory ----- # current_dir = os.getcwd() os....
30.827586
99
0.558445
482
3,576
4.049793
0.358921
0.035861
0.050205
0.025615
0.277664
0.224385
0.13832
0.11373
0.076844
0.076844
0
0.043943
0.268177
3,576
115
100
31.095652
0.701949
0.357662
0
0.137255
0
0
0.119376
0
0
0
0
0
0
1
0
false
0
0.137255
0
0.137255
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
925ad854367cffcab0b72b26714e6ad39f176b24
19,279
py
Python
wrapless.py
mpi3d/goodix-fp-dump
039940845bd5eeb98cd92d72f267e3be77feb156
[ "MIT" ]
136
2021-05-05T14:16:17.000Z
2022-03-31T09:04:18.000Z
wrapless.py
tsunekotakimoto/goodix-fp-dump
b88ecbababd3766314521fe30ee943c4bd1810df
[ "MIT" ]
14
2021-08-20T09:49:39.000Z
2022-03-20T13:18:05.000Z
wrapless.py
tsunekotakimoto/goodix-fp-dump
b88ecbababd3766314521fe30ee943c4bd1810df
[ "MIT" ]
11
2021-08-02T15:49:11.000Z
2022-02-06T22:06:42.000Z
from protocol import Protocol from typing import Optional import logging import struct from dataclasses import dataclass from usb.core import USBTimeoutError from Crypto.Cipher import AES from Crypto.Hash import HMAC, SHA256 from Crypto.Random import get_random_bytes from crccheck.crc import Crc32Mpeg2 USB_CHUNK_SIZE...
34.989111
88
0.591317
2,300
19,279
4.735217
0.113478
0.039849
0.020292
0.019282
0.369388
0.279405
0.212744
0.178404
0.146084
0.140942
0
0.034121
0.297681
19,279
550
89
35.052727
0.770236
0.008714
0
0.133333
0
0
0.120387
0.017744
0
0
0.023502
0.001818
0.021429
1
0.085714
false
0
0.02381
0.009524
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
925c6033603c561ea55693dac40cadc80e60ea16
10,293
py
Python
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
1
2019-09-22T04:00:56.000Z
2019-09-22T04:00:56.000Z
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
14
2015-01-22T01:00:50.000Z
2017-12-06T03:35:46.000Z
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
4
2015-03-31T19:49:05.000Z
2020-03-03T20:44:32.000Z
# Copyright 2012 Rackspace Hosting, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
35.739583
102
0.644224
1,256
10,293
5.199045
0.285032
0.006126
0.007351
0.006738
0.306585
0.294487
0.294487
0.294487
0.282695
0.282695
0
0.004778
0.288351
10,293
287
103
35.864112
0.886689
0.51093
0
0.09901
0
0
0.01479
0
0
0
0
0
0
1
0.158416
false
0.039604
0.069307
0.009901
0.445545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
925e1e9d69320dc2a3507c471bdf305b87ca4a4f
1,459
py
Python
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
from collections import defaultdict from parser import PARSER from syntax_tree import build_ast from type_objects import BuiltinType def check_types(syntax_tree): all_types = defaultdict(dict) # Define builtin primitive types. for t in ('int', 'float', 'string', 'void'): all_types[t][None] = BuiltinType(t...
31.042553
77
0.702536
202
1,459
4.866337
0.376238
0.073245
0.04883
0.054934
0.19939
0.121058
0.077314
0
0
0
0
0.000859
0.202193
1,459
46
78
31.717391
0.843643
0.154901
0
0.068966
0
0
0.08802
0
0
0
0
0
0
1
0.068966
false
0
0.172414
0
0.275862
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
925f4af91f977c93af580c343c412cbe16f6b8e5
766
py
Python
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
import oneflow as flow import oneflow.nn as nn class SEModule(nn.Module): def __init__( self, channels, reduction=16, rd_channels=None, act_layer=nn.ReLU, gate_layer=nn.Sigmoid, mlp_bias=False, ): super(SEModule, self).__init__() rd_chann...
29.461538
83
0.616188
109
766
4.100917
0.394495
0.134228
0.080537
0.071588
0.107383
0.107383
0
0
0
0
0
0.021544
0.272846
766
25
84
30.64
0.780969
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
926080df7fe450b583f1afff1fb17e6b9cc7b79a
2,669
py
Python
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import pandas as pd from django.core.management.base import BaseCommand from library.log_utils import console_logger from seqauto.models import Sequencer, SequencingInfo, EnrichmentKit from snpdb.models import Lab, LabProject LAB_NAME = "lab name" INSTITUTION = "institution" DOI = "doi" PAPER_NAME = "paper name" YEAR...
39.25
133
0.557887
283
2,669
5.123675
0.349823
0.033793
0.033103
0.041379
0.030345
0
0
0
0
0
0
0
0.359685
2,669
67
134
39.835821
0.848449
0.043837
0
0
0
0
0.138987
0
0
0
0
0
0
1
0.041667
false
0
0.104167
0
0.166667
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92632090c4e3d282320b824c62a3295534a71fb2
8,746
py
Python
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- import pytest from pytest import raises from anyioc import ServiceProvider, LifeTime from anyioc.utils_conf import BadConfError, load_conf def from_conf(conf: dict): provider = ServiceProvider() loa...
29.153333
149
0.53533
908
8,746
4.917401
0.143172
0.041209
0.034938
0.045689
0.54916
0.498096
0.432923
0.390594
0.333259
0.290258
0
0.008992
0.338783
8,746
299
150
29.250836
0.763099
0.013149
0
0.400763
0
0.01145
0.162365
0.049184
0
0
0
0
0.133588
1
0.091603
false
0
0.022901
0
0.125954
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9263ae98e68deabf82d6263e3f38c433bcba634f
34,195
py
Python
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
12
2015-08-28T12:05:32.000Z
2020-06-23T13:31:29.000Z
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-24T06:37:33.000Z
2016-11-21T11:39:39.000Z
import unittest from datetime import datetime from hashlib import sha256 from bson import ObjectId from six import string_types from eduid_userdb import LockedIdentityNin, OidcAuthorization, OidcIdToken, Orcid from eduid_userdb.credentials import METHOD_SWAMID_AL2_MFA, U2F, CredentialList, Password from eduid_userdb....
38.682127
120
0.555578
3,662
34,195
5.006827
0.121518
0.017453
0.020289
0.020944
0.62907
0.567276
0.528497
0.477229
0.446305
0.404854
0
0.061232
0.324199
34,195
883
121
38.725934
0.732182
0.069162
0
0.426027
0
0
0.199126
0.0561
0
0
0
0
0.119178
1
0.058904
false
0.035616
0.020548
0.00137
0.082192
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
926458d1d9c97fc6abf90370ad0d99e05fe59844
13,515
py
Python
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
11
2022-02-09T02:51:59.000Z
2022-03-31T09:35:24.000Z
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
5
2022-03-11T03:46:18.000Z
2022-03-31T06:07:31.000Z
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
1
2022-02-20T12:25:11.000Z
2022-02-20T12:25:11.000Z
"""Collection of Quantization Functions""" # global import ivy as _ivy # local from ivy_vision import single_view_geometry as _ivy_svg MIN_DENOMINATOR = 1e-12 MIN_DEPTH_DIFF = 1e-2 def quantize_to_image(pixel_coords, final_image_dims, feat=None, feat_prior=None, with_db=False, pixel_coords_va...
42.904762
119
0.645727
2,058
13,515
3.866375
0.103984
0.017343
0.040468
0.029408
0.513133
0.367727
0.269071
0.205731
0.151942
0.113234
0
0.024127
0.25172
13,515
314
120
43.041401
0.762385
0.241731
0
0.103448
0
0
0.003305
0
0
0
0
0.003185
0
1
0.006897
false
0
0.013793
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9267d808febd8df821dcd1afc41b5923d6971fdd
12,396
py
Python
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
18
2015-02-22T12:53:50.000Z
2019-03-15T16:45:10.000Z
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
20
2015-01-20T22:35:02.000Z
2017-11-06T11:17:34.000Z
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
5
2015-01-13T04:23:09.000Z
2019-01-03T17:00:31.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import six from os import path, walk import traceback import re from ansible.errors import AnsibleError, AnsibleParserError from ansible.module_utils._text import to_native from ansible.plugins.action import ActionBase from mc_sta...
34.529248
93
0.543482
1,399
12,396
4.556826
0.162974
0.026353
0.032627
0.023843
0.189647
0.154667
0.112314
0.072784
0.060549
0.060549
0
0.003076
0.370523
12,396
358
94
34.625698
0.813918
0.083979
0
0.310714
0
0
0.058341
0.002254
0
0
0
0
0
1
0.039286
false
0
0.032143
0
0.117857
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92682d145301e3cf26643177715c46fcd5839c3d
952
py
Python
tools/Vitis-AI-Library/graph_runner/test/format_json.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Library/graph_runner/test/format_json.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Library/graph_runner/test/format_json.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
28.848485
74
0.705882
151
952
4.337748
0.582781
0.091603
0.048855
0.048855
0.048855
0
0
0
0
0
0
0.016949
0.194328
952
32
75
29.75
0.837027
0.57563
0
0
0
0
0.071979
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92692d7f00f3377986985af8973ac66784ff3072
6,760
py
Python
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
6
2020-08-02T17:41:07.000Z
2022-03-01T18:06:06.000Z
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
1
2020-07-30T07:14:25.000Z
2020-07-31T12:21:12.000Z
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
3
2021-06-18T12:57:24.000Z
2022-02-28T04:02:50.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist, Point, PoseStamped from nav_msgs.msg import Path from std_msgs.msg import Float32MultiArray, Float64 from path_nav.msg import points, mylist import math import random global obs_in_path obs_in_path = [] global rate def get_obs(request): ...
32.037915
205
0.568639
949
6,760
3.8451
0.173867
0.038367
0.032886
0.01425
0.166895
0.128528
0.107153
0.057002
0.037819
0.017539
0
0.022313
0.310503
6,760
210
206
32.190476
0.760566
0.100296
0
0.124138
0
0
0.016807
0
0
0
0
0
0
1
0.082759
false
0.006897
0.048276
0
0.22069
0.048276
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
926993a758d4bcc12fbe159bf42b98c618c9eb80
6,808
py
Python
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
4
2015-01-29T18:05:32.000Z
2018-05-03T17:02:09.000Z
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
13
2015-01-21T08:20:48.000Z
2018-08-20T20:41:01.000Z
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
6
2015-07-12T21:15:12.000Z
2020-10-22T16:32:54.000Z
from future import standard_library standard_library.install_aliases() from builtins import object import operator import array import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import json import uservoice from requests_oauthlib import OAuth1 from urllib.parse import p...
43.641026
194
0.611633
786
6,808
5.089059
0.152672
0.0475
0.04125
0.042
0.38475
0.32225
0.224
0.1915
0.149
0.137
0
0.004069
0.278055
6,808
155
195
43.922581
0.809766
0.003231
0
0.160584
0
0
0.107901
0.018721
0
0
0
0
0
1
0.109489
false
0.043796
0.080292
0.051095
0.29927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
926b0aae20c9db282c44cb01fb1eb01eb50d3739
4,754
py
Python
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
10
2020-11-07T04:07:34.000Z
2021-12-31T10:19:12.000Z
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
16
2021-02-03T22:35:01.000Z
2021-05-24T21:28:56.000Z
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
19
2020-11-11T05:44:53.000Z
2022-02-01T14:10:15.000Z
# Our next aim is to build a simple app that will # accept user input and show useful output. # Our app will be a penguin classifier: input some # measurements of a penguin, and the classifier will # make an educated guess about the penguin's species. # This means that we'll need to find a way to bring in # our mac...
31.071895
72
0.597602
660
4,754
4.222727
0.354545
0.038751
0.021529
0.024399
0.188375
0.140294
0.089702
0.073197
0.04521
0.04521
0
0.025523
0.315944
4,754
152
73
31.276316
0.831488
0.404922
0
0.2
0
0
0.067791
0
0
0
0
0
0
1
0
false
0
0.013333
0
0.013333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
926f0826b49de22b8199e308698b8a8bb238dfee
13,417
py
Python
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
35
2016-06-22T20:07:31.000Z
2021-04-07T11:02:08.000Z
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
15
2016-06-17T09:36:02.000Z
2020-10-30T11:39:07.000Z
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
16
2016-10-02T16:09:18.000Z
2021-05-29T02:51:14.000Z
import os import base64 import requests import time import zlib from . import version from compat import bytes_, text_ from errors import APIException from weak_ciphers import WeakCiphersAdapter try: from urllib.parse import urlparse, urlunparse, parse_qsl except ImportError: # pragma: no cover from urlparse ...
33.128395
106
0.585675
1,540
13,417
4.905195
0.155195
0.02502
0.020254
0.019063
0.410643
0.330289
0.286736
0.247683
0.241859
0.235372
0
0.003636
0.303123
13,417
404
107
33.210396
0.804278
0.030037
0
0.361194
0
0
0.111103
0.00477
0
0
0
0
0
1
0.110448
false
0.002985
0.059701
0.014925
0.283582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9270ac95e899e83cadb5cec384f9e4de3f872548
4,160
py
Python
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
################################### # # Point # ################################### class Point(object): ''' A point. ''' def __init__(self, x=0.0, y=0.0, z=None): if hasattr(x, 'x'): # is this an objext containing x,y,z objects? If so, then transfer those. tx = x.x ...
23.771429
102
0.47476
479
4,160
3.974948
0.173278
0.013655
0.009454
0.010504
0.532563
0.483193
0.483193
0.395483
0.377101
0.289916
0
0.009648
0.352163
4,160
175
103
23.771429
0.696846
0.14976
0
0.354839
0
0
0.063586
0.029777
0
0
0
0
0
1
0.129032
false
0
0
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
927130d7806b470ffda0c0ca41177feb165a188a
1,658
py
Python
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
96
2019-06-06T05:13:34.000Z
2022-03-23T12:01:07.000Z
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
35
2019-07-05T06:03:22.000Z
2022-03-09T03:11:02.000Z
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
30
2019-07-17T09:37:26.000Z
2022-02-28T19:09:22.000Z
#!/usr/bin/env python3 """ The Ramer-Douglas-Peucker algorithm roughly ported from the pseudo-code provided by http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm The code is taken from https://github.com/mitroadmaps/roadtracer/blob/master/lib/discoverlib/rdp.py """ from math import sqrt def distance(a, ...
28.586207
87
0.603136
234
1,658
4.252137
0.384615
0.01809
0.042211
0.056281
0
0
0
0
0
0
0
0.026359
0.267793
1,658
57
88
29.087719
0.793245
0.436068
0
0.076923
0
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.038462
0.038462
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
927303a84f42823f69e85cdc571a7f5088e0421b
8,337
py
Python
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.565789
80
0.644836
1,064
8,337
4.87782
0.24812
0.030829
0.027746
0.026204
0.239884
0.205588
0.186513
0.178998
0.158767
0.144123
0
0.010209
0.248051
8,337
227
81
36.726872
0.817674
0.165767
0
0.251613
0
0
0.056993
0
0
0
0
0
0.006452
1
0.051613
false
0
0.03871
0
0.148387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92745101ac9b7fb8a1d621ca0d57ec6d077050b3
832
py
Python
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
3
2020-10-15T14:46:20.000Z
2021-11-03T23:45:56.000Z
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
25
2020-10-14T08:09:05.000Z
2021-06-23T18:05:38.000Z
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
null
null
null
from tflens.model.tfstate_resource import TfStateResource class TfState(): def __init__(self, content: dict): super().__init__() self.__content = content self.__version = self.__content['version'] self.__tf_version = self.__content['terraform_version'] self.__serial = self.__content['serial'] ...
27.733333
59
0.727163
94
832
5.861702
0.340426
0.15971
0.087114
0.130672
0.101633
0
0
0
0
0
0
0
0.165865
832
29
60
28.689655
0.793948
0
0
0
0
0
0.063702
0
0
0
0
0
0
1
0.190476
false
0
0.047619
0.095238
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9274d416d7048e207bf11ee0a1a4caf193e5c80c
13,140
py
Python
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
import os # # Collective Knowledge () # # # # # Developer: # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated by CK (initialized CK kernel) # Local settings #################################################################...
31.662651
148
0.54277
1,757
13,140
3.940239
0.130336
0.055467
0.0273
0.030334
0.682508
0.661418
0.607251
0.588184
0.568395
0.555684
0
0.014645
0.267275
13,140
414
149
31.73913
0.704404
0.172603
0
0.599206
0
0.011905
0.317352
0.03193
0
0
0
0
0
1
0.019841
false
0
0.003968
0
0.039683
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9276b7e92fbafdac27d50333d01d384cadbdbcef
1,087
py
Python
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
1
2018-06-20T13:27:52.000Z
2018-06-20T13:27:52.000Z
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
1
2019-03-15T12:30:56.000Z
2019-03-15T12:30:56.000Z
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
null
null
null
""" Class for Data Extraction from CloudFront """ import boto3 from deplugins.base import AWSFact class CloudFront (AWSFact): NAME = "CloudFront-SSL" OPTION = 'cfront_ssl' ORDERED_HEADINGS = ['Id', 'SSLSupportMethod', 'MinimumProtocolVersion', 'IAMCertificateId'] def get_all_regions(self): ...
31.057143
97
0.633855
97
1,087
7.020619
0.463918
0.105727
0.035242
0.04699
0.096916
0.096916
0
0
0
0
0
0.002392
0.230911
1,087
34
98
31.970588
0.812201
0.103036
0
0
0
0
0.286453
0.068252
0
0
0
0
0
1
0.142857
false
0
0.095238
0.047619
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
0
0
1
0
92772f7652e5d7de73104cce45e1da31b37c887a
2,348
py
Python
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=733 lang=python3 # # [733] Flood Fill # # https://leetcode.com/problems/flood-fill/description/ # # algorithms # Easy (52.32%) # Likes: 745 # Dislikes: 146 # Total Accepted: 86.6K # Total Submissions: 163.5K # Testcase Example: '[[1,1,1],[1,1,0],[1,0,1]]\n1\n1\n2' # # # An image is repre...
30.493506
100
0.617121
383
2,348
3.78329
0.347258
0.012422
0.077295
0.011042
0.140787
0.140787
0.140787
0.120083
0.086957
0.074534
0
0.05436
0.247871
2,348
76
101
30.894737
0.766138
0.673765
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9278b5055cf7701d71ff39aa690e2ba8bd96a0df
2,205
py
Python
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import List from webdnn.backend.code_generator.allocator import MemoryLayout from webdnn.backend.code_generator.injectors.buffer_injector import BufferInjector from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgpu.generator import WebGPUDescr...
32.910448
91
0.673469
263
2,205
5.444867
0.307985
0.055866
0.071229
0.043994
0.075419
0.054469
0
0
0
0
0
0.0046
0.211338
2,205
66
92
33.409091
0.818861
0.003175
0
0
0
0
0.297814
0.095173
0
0
0
0
0.057692
1
0.019231
false
0
0.173077
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9278cc591836f5c26f4155dd214702456cfc9574
6,624
py
Python
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
from pygame import * from random import randint #фоновая музыка mixer.init() mixer.music.load('music.mp3') mixer.music.play() #подключение звуков GOAL_sound = mixer.Sound('GOAL.wav') hit_sound = mixer.Sound('HIT.wav') #шрифты и надписи font.init() font1 = font.SysFont("Arial", 73) win_left_text = fo...
31.69378
97
0.575483
879
6,624
4.166098
0.276451
0.022938
0.024577
0.009831
0.29574
0.231841
0.216002
0.183233
0.149645
0.129437
0
0.049642
0.324879
6,624
208
98
31.846154
0.769231
0.177989
0
0.279412
0
0
0.043495
0
0
0
0
0
0
1
0.036765
false
0
0.014706
0
0.080882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92794c155ed2c47d8f504e48e0719392aee204cd
1,277
py
Python
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
5
2018-07-30T18:50:55.000Z
2019-03-20T18:07:05.000Z
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
1
2018-06-25T21:08:35.000Z
2018-07-13T21:23:39.000Z
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
7
2018-06-25T21:09:29.000Z
2020-06-29T14:09:01.000Z
#!/usr/bin/env python #author mark_purcell@ie.ibm.com import json import os import requests import csv from db2 import DB2 SQL_TEMPLATE = '' SQL_TEMPLATE += 'CALL {database}(); ' def build_query(database): sql_template = SQL_TEMPLATE.format(database=database) return sql_template, True def process_response...
22.017241
98
0.588097
160
1,277
4.6
0.4875
0.074728
0.038043
0.059783
0
0
0
0
0
0
0
0.01594
0.263117
1,277
57
99
22.403509
0.766206
0.039154
0
0
0
0
0.144608
0
0
0
0
0
0
1
0.081081
false
0.027027
0.135135
0
0.297297
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
927c35a89cf67b0b0ea4047744d2f4c1543ea266
554
py
Python
faq/urls/normal.py
coordt/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
1
2019-06-14T15:29:49.000Z
2019-06-14T15:29:49.000Z
faq/urls/normal.py
natgeosociety/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
null
null
null
faq/urls/normal.py
natgeosociety/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
1
2016-05-05T21:56:37.000Z
2016-05-05T21:56:37.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from faq.views import TopicListView, TopicDetailView, question_detail # Include these patterns if you want URLs like: # # /faq/ # /faq/topic/ # /faq/topic/#question # urlpatterns = [ url(r'^$', TopicListView.as_view(), name='faq-topic-list'), u...
21.307692
69
0.579422
68
554
4.647059
0.470588
0.101266
0.063291
0.082278
0.113924
0
0
0
0
0
0
0.002294
0.212996
554
25
70
22.16
0.722477
0.200361
0
0.153846
0
0
0.260369
0.099078
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
927cacc6f1985cec9c819c64c22a24d06d77cb91
22,599
py
Python
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
1
2020-11-29T21:24:31.000Z
2020-11-29T21:24:31.000Z
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
11
2020-12-03T16:40:51.000Z
2020-12-07T15:47:31.000Z
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
1
2022-03-30T05:18:42.000Z
2022-03-30T05:18:42.000Z
# -*- coding: utf-8 -*- import time import subprocess import digitalio import board from PIL import Image, ImageDraw, ImageFont import adafruit_rgb_display.st7789 as st7789 import requests ##################################################################################################### # You can disable panels th...
38.499148
145
0.640427
2,671
22,599
5.400973
0.219019
0.011091
0.015528
0.028074
0.38188
0.329059
0.300083
0.26071
0.251282
0.177041
0
0.048865
0.212178
22,599
587
146
38.499148
0.761402
0.124253
0
0.294845
0
0.002062
0.099072
0.029845
0
0
0
0
0
1
0.024742
false
0
0.014433
0
0.049485
0.024742
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9282e076561a09b5b5e807ad3ccd8b3ba2cf7148
264
py
Python
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
2
2019-07-10T06:32:05.000Z
2019-11-13T07:52:53.000Z
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
null
null
null
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
1
2019-10-12T06:56:13.000Z
2019-10-12T06:56:13.000Z
#Python program to check whether the year is leap or not using inbuilt function import calendar def main(): x=int(input("Enter the year")) if calendar.isleap(x): print(x,"is leap year") else: print(x,"is not a leap year") if __name__=='__main__': main()
22
79
0.704545
45
264
3.955556
0.622222
0.078652
0.089888
0
0
0
0
0
0
0
0
0
0.170455
264
11
80
24
0.812785
0.295455
0
0
0
0
0.281081
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
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
0
0
0
0
0
0
0
1
0
9288db8bce578378c4eef0b2f0dd1396e58bb840
4,482
py
Python
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
13
2020-11-07T22:03:35.000Z
2022-01-12T22:08:53.000Z
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
null
null
null
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
4
2020-11-23T16:24:03.000Z
2022-03-25T01:25:21.000Z
from builtins import getattr from warnings import warn try: from mpi4py.MPI import DOUBLE as MPI_DOUBLE, COMM_WORLD as MPI_COMM_WORLD import matplotlib.pyplot as plt import numpy as np except: warn('Ensure that all required packages are installed.') exit() from PCE_Codes._helpers import _warn from...
32.715328
83
0.585676
554
4,482
4.599278
0.299639
0.040816
0.014129
0.021193
0.183673
0.161695
0.145212
0.090659
0.090659
0.042386
0
0.006252
0.321954
4,482
136
84
32.955882
0.832182
0.251673
0
0.118421
0
0
0.1573
0.03553
0
0
0
0
0
1
0.052632
false
0
0.092105
0
0.157895
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9288fc164e0faa00174f655789c095f5517d439e
21,121
py
Python
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
1,337
2015-01-06T06:23:55.000Z
2022-03-31T21:06:21.000Z
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
43
2015-04-23T13:14:15.000Z
2022-01-04T12:55:59.000Z
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
1,497
2015-01-13T22:05:32.000Z
2022-03-30T09:19:53.000Z
"""This file contains code for use with "Think Bayes", by Allen B. Downey, available from greenteapress.com Copyright 2012 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division import math import numpy import random import sys import correlation ...
27.008951
80
0.573884
2,767
21,121
4.361764
0.193712
0.013257
0.011269
0.00348
0.203745
0.134891
0.107051
0.097688
0.075814
0.071008
0
0.032347
0.310591
21,121
781
81
27.043534
0.796511
0.293736
0
0.17801
0
0
0.067987
0.004432
0
0
0
0
0
1
0.117801
false
0
0.02356
0
0.217277
0.049738
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
928cdb12cb361d5fcb3ef68b59a2d730df5d6777
1,072
py
Python
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
null
null
null
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
null
null
null
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
1
2019-03-28T00:25:46.000Z
2019-03-28T00:25:46.000Z
import config, lang import pb import urllib2 import urlnorm import os import time def parse(pages): spelings = [] speling_dirpath = "data/speling/%s/%s/" % (config.wiki_lang, config.start_cat) pages_dirpath = "data/pages/%s/%s/" % (config.wiki_lang, config.start_cat) counter = 0 for page in pages: counter +=...
23.304348
79
0.677239
157
1,072
4.496815
0.305732
0.109065
0.033994
0.050992
0.33711
0.33711
0.263456
0.172805
0.130312
0.130312
0
0.003363
0.16791
1,072
46
80
23.304348
0.788117
0
0
0.142857
0
0
0.073625
0
0
0
0
0
0
1
0.057143
false
0
0.171429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
928fe78301baaab64810fda9828eb05526f5d381
416
py
Python
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
46
2018-08-25T07:45:07.000Z
2022-01-27T04:06:38.000Z
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
1
2018-10-10T12:59:43.000Z
2018-10-10T12:59:43.000Z
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
19
2018-10-10T12:58:44.000Z
2021-04-25T16:12:08.000Z
import os img_path = '/home/deep/datasets/hmdb/' clip_length = 16 f = open('ucfTrainTestlist/hmdb.txt', 'w') actions = os.listdir(img_path) actions.sort(key=str.lower) label = 0 for action in actions: print(action) samples = os.listdir(img_path + action) samples.sort(key=str.lower) for sample in sam...
20.8
64
0.644231
61
416
4.327869
0.557377
0.079545
0.090909
0.121212
0
0
0
0
0
0
0
0.011976
0.197115
416
19
65
21.894737
0.778443
0
0
0
0
0
0.132212
0.120192
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9295f185bea3693f60585923f865715fd849e6ea
1,232
py
Python
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
import json import pytest from handler import detect_language, translate_message, handler @pytest.mark.skip @pytest.mark.parametrize("test_input, expected", [ ('This text is written in English', 'en'), ('Этот текст написан mostly по-русски', 'ru'), ('Ten tekst jest napisany w jezyku polskim, ale bez znako...
34.222222
86
0.693182
151
1,232
5.496689
0.410596
0.072289
0.050602
0.072289
0.384337
0.319277
0.319277
0.233735
0.127711
0
0
0.002836
0.141234
1,232
35
87
35.2
0.781664
0
0
0.206897
0
0
0.314935
0
0
0
0
0
0.137931
1
0.103448
false
0
0.103448
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9297372fa443955e53e67f87e3ad4b6f573eebaa
715
py
Python
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Alpha Griffin # @%@~LICENSE~@%@ from ag.orbit.command import main from ag.orbit.node.config import get_webapi_interface, set_webapi_interface def run(args): if args and len(args) != 1: raise ValueError("Expecting exactly 1 argument") if args: ip ...
20.428571
75
0.606993
94
715
4.446809
0.5
0.143541
0.052632
0
0
0
0
0
0
0
0
0.015267
0.267133
715
34
76
21.029412
0.782443
0.097902
0
0.166667
0
0
0.226563
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.166667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
929893933759cc9c2a16174a003428aa9861cd4f
1,290
py
Python
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
4
2021-01-04T07:04:32.000Z
2021-07-25T12:25:58.000Z
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
null
null
null
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://zhuyuanxiang.github.io --------------------------- @Software : PyCharm @Project : Hanlp-Books-Examples @File : demo_corpus_loader.py @Version : v0.1 @Time : 2020-12-21 16:27 @...
24.807692
72
0.55969
159
1,290
4.314465
0.553459
0.116618
0.048105
0.08309
0.067055
0
0
0
0
0
0
0.034908
0.244961
1,290
51
73
25.294118
0.669405
0.370543
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.12
false
0.04
0.12
0.04
0.32
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
929a40a2c2266e63e865c5849f48f7efa2fab62e
1,895
py
Python
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
3
2020-07-24T01:06:04.000Z
2021-12-20T14:35:21.000Z
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
39
2020-06-26T12:54:35.000Z
2022-03-23T14:16:34.000Z
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
1
2020-05-29T14:24:16.000Z
2020-05-29T14:24:16.000Z
""" Create a label file and a pickled subset file of the recount3 dataset containing only samples with manually annotated tissue labels """ import argparse import pickle from typing import Dict import pandas as pd def map_samples_to_labels(file_path: str) -> Dict[str, str]: metadata_df = pd.read_csv(file_path, ...
34.454545
98
0.729815
281
1,895
4.601423
0.33452
0.048724
0.074246
0.027842
0.122196
0.122196
0.072699
0
0
0
0
0.001284
0.177836
1,895
54
99
35.092593
0.828626
0.069129
0
0
0
0
0.191344
0.030752
0
0
0
0
0
1
0.03125
false
0
0.125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
929ea315775a00593ed7a9f890d334c617507497
4,136
py
Python
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2016 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of...
42.204082
89
0.60324
421
4,136
5.793349
0.35867
0.090611
0.106601
0.107011
0.520705
0.480115
0.456745
0.456745
0.456745
0.412464
0
0.009772
0.257737
4,136
97
90
42.639175
0.784691
0.173356
0
0.5
0
0
0.318516
0
0
0
0
0
0
1
0.080645
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
929f30d54fb67d713942739135dbf52d301c492c
1,210
py
Python
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
2
2019-11-15T17:59:36.000Z
2020-06-08T04:42:36.000Z
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
null
null
null
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
null
null
null
import unittest import json from tests.dummy_flask_app import app class JsonTypeContentValidatorTests(unittest.TestCase): def setUp(self): app.testing = True self.app = app.test_client() def test_dummy_resource_should_return_data_given_json_content_header(self): # given url = ...
29.512195
85
0.643802
142
1,210
5.267606
0.359155
0.080214
0.032086
0.053476
0.516043
0.516043
0.259358
0.259358
0.259358
0.259358
0
0.014493
0.258678
1,210
40
86
30.25
0.819398
0.02562
0
0.230769
0
0
0.093857
0
0
0
0
0
0.153846
1
0.115385
false
0
0.115385
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
929fca46bf26c17e3a094d83f8ff90c1a0c57add
582
py
Python
webware/MiddleKit/WebBrowser/BrowseObject.py
PeaceWorksTechnologySolutions/w4py3-middlekit
a9554e20c47010e7b0c0deee63e1786482c59a1c
[ "MIT" ]
2
2020-10-31T09:12:58.000Z
2021-02-20T13:52:14.000Z
webware/MiddleKit/WebBrowser/BrowseObject.py
WebwareForPython/w4py3-middlekit
f740e2d2d3a5c225d6b8f9eb27ac08f8deed47e6
[ "MIT" ]
2
2020-01-07T15:24:09.000Z
2020-01-08T15:39:57.000Z
webware/MiddleKit/WebBrowser/BrowseObject.py
PeaceWorksTechnologySolutions/w4py3-middlekit
a9554e20c47010e7b0c0deee63e1786482c59a1c
[ "MIT" ]
1
2021-09-27T21:04:18.000Z
2021-09-27T21:04:18.000Z
from .StorePage import StorePage class BrowseObject(StorePage): def writeContent(self): req = self.request() className = req.field('class') serialNum = int(req.field('serialNum')) obj = self.store().fetchObject(className, serialNum, None) if obj is None: self.w...
29.1
66
0.539519
61
582
5.147541
0.557377
0.050955
0
0
0
0
0
0
0
0
0
0
0.319588
582
19
67
30.631579
0.792929
0
0
0
0
0
0.111684
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92a139101f7375dea0fe1c410b3894330370bd08
2,867
py
Python
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Read results from visual inspection, create new target lists. ''' import os, sys import json import glob, shutil from collections import OrderedDict if __name__ == '__main__': # read candidate events. with open('candidate-events.json', 'r') as fp: cand_events = json.load(fp...
31.855556
70
0.560516
376
2,867
4.013298
0.308511
0.033135
0.035785
0.026508
0.104705
0.055666
0.043738
0.043738
0.043738
0.043738
0
0.010417
0.33031
2,867
89
71
32.213483
0.775521
0.114405
0
0.111111
0
0
0.080295
0.019531
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
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
0
0
0
0
0
0
0
1
0
92a1643415ce525953e9608207d138948ae44c6e
736
py
Python
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
1
2018-03-05T00:40:04.000Z
2018-03-05T00:40:04.000Z
#!/usr/bin/env python from setuptools import find_packages, setup long_description = """Basic regular expression lexer implementation. """ appname = "rexlex" version = "0.02" setup(**{ "name": appname, "version": version, "packages": [ 'tater', ], "author": "Thom Neale", "package...
23
68
0.588315
71
736
6
0.633803
0.105634
0.107981
0.15493
0.244131
0.244131
0
0
0
0
0
0.005226
0.220109
736
31
69
23.741935
0.736934
0.027174
0
0
0
0
0.453147
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92a2d943773633b0c8d2368e44bf92c1be473d13
2,776
py
Python
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class EduWorkAddress(object): def __init__(self): self._address = None self._city = None self._district_name = None self._province = None self._street_name = Non...
27.485149
77
0.569885
321
2,776
4.700935
0.133956
0.119284
0.087475
0.059642
0.250497
0.141816
0
0
0
0
0
0.000536
0.32781
2,776
100
78
27.76
0.808146
0.01513
0
0.120482
0
0
0.088645
0
0
0
0
0
0
1
0.156627
false
0
0.024096
0.060241
0.289157
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92a3e68d41a9710b084dfa63bf531cd128f665af
450
py
Python
Python/435.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/435.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/435.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
class Solution: def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int: if not intervals: return 0 count = 0 intervals.sort() left, right = intervals[0] for start, end in intervals[1:]: if start < right: count += 1 ...
26.470588
71
0.451111
43
450
4.72093
0.534884
0.078818
0
0
0
0
0
0
0
0
0
0.020921
0.468889
450
17
72
26.470588
0.828452
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92a551a7495fb26a88c28fac7bc5841ea1c6677d
585
py
Python
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
1
2021-03-24T13:52:15.000Z
2021-03-24T13:52:15.000Z
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
null
null
null
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
1
2018-12-18T13:59:29.000Z
2018-12-18T13:59:29.000Z
import sys sys.path.append('/home/sriteja/PycharmProjects/My_Mario/mymario') import objects as o import config as c ob = o.Obj(10, 10, 5,6, 'a') def test_init(): assert (ob.max_x, ob.max_y, ob.min_x, ob.min_y, ob.string, ob.check_ends) == (10, 10, 5, 6, 'a', False) def test_update(): ob.min_x = 4 ob.mi...
20.892857
107
0.605128
111
585
3.018018
0.369369
0.089552
0.053731
0.035821
0.40597
0.364179
0.214925
0.214925
0.214925
0.214925
0
0.053215
0.22906
585
28
108
20.892857
0.689579
0
0
0.454545
0
0
0.085324
0.078498
0
0
0
0
0.136364
1
0.136364
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92a5e861cf4d8399bd7cd91a87489badf6a26104
3,479
py
Python
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
7
2021-05-20T23:54:30.000Z
2021-10-21T03:01:21.000Z
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
24
2021-05-18T07:56:00.000Z
2021-08-14T12:35:34.000Z
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
null
null
null
import collections from enum import Enum, auto class Duplicates(Enum): ALLOW = auto() IGNORE = auto() ERROR = auto() class HTDM: def __init__(self, address_sep=".", duplicates=Duplicates.ALLOW): self.counters = [] self.address_sep = address_sep self.duplicates = duplicates ...
36.239583
85
0.569991
393
3,479
4.933842
0.216285
0.082517
0.072202
0.030944
0.092831
0.044353
0.044353
0.044353
0.044353
0
0
0.004314
0.333717
3,479
95
86
36.621053
0.832183
0
0
0.0875
0
0
0.020408
0
0
0
0
0
0
1
0.15
false
0
0.025
0.0125
0.3125
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92abd4bfab45f4773add1ea8e00aef24b3e5cafc
2,482
py
Python
gpflowopt/acquisition/poi.py
kyu999/GPflowOpt
972aa70a57222c66ce9bcfe077f92deb4fbaf227
[ "Apache-2.0" ]
258
2017-04-28T15:47:35.000Z
2022-03-31T08:44:40.000Z
gpflowopt/acquisition/poi.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
123
2017-04-28T22:20:47.000Z
2021-10-01T16:29:47.000Z
gpflowopt/acquisition/poi.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
69
2017-06-06T00:18:01.000Z
2022-02-25T21:43:39.000Z
# Copyright 2017 Joachim van der Herten # # 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 wr...
36.5
154
0.670024
309
2,482
5.239482
0.550162
0.03706
0.016059
0.019765
0
0
0
0
0
0
0
0.015049
0.22361
2,482
67
155
37.044776
0.825117
0.522965
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.238095
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ae05ad8c75372791cf6ad5c9f3d0a8771a5d26
3,160
py
Python
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
null
null
null
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
null
null
null
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
1
2022-02-12T11:34:44.000Z
2022-02-12T11:34:44.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django.template.loader import render_to_string from django.utils.translation import ugettext as _ from django.utils.functional import cached_property from django.core.exceptions import ImproperlyConfigured try: f...
32.57732
106
0.625316
350
3,160
5.4
0.305714
0.084656
0.051852
0.040212
0.341799
0.318519
0.250794
0.206349
0.077249
0.077249
0
0.00172
0.263924
3,160
96
107
32.916667
0.810834
0.006646
0
0.22973
0
0
0.126554
0.022633
0
0
0
0
0
1
0.081081
false
0
0.175676
0.027027
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92aeaf3bb38c5d7ba7802606c755df910d5db3eb
307
py
Python
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
8
2017-06-13T13:07:34.000Z
2020-02-13T06:30:42.000Z
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
null
null
null
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
3
2017-06-10T18:30:57.000Z
2019-03-19T07:28:25.000Z
from networkx import Graph, complement from networkx.algorithms.clique import find_cliques def maximal_independent_sets(mat): g = Graph(mat) for u in g.nodes(): if g.has_edge(u, u): g.remove_edge(u, u) cg = complement(g) isets = list(find_cliques(cg)) return isets
23.615385
51
0.664495
46
307
4.304348
0.586957
0.121212
0.060606
0
0
0
0
0
0
0
0
0
0.237785
307
12
52
25.583333
0.846154
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
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
0
0
0
0
0
1
0
92b048524e06f46f14c0a5fe0c3471d724de29c7
4,241
py
Python
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
2
2018-02-11T10:34:48.000Z
2018-02-11T17:31:21.000Z
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
null
null
null
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
null
null
null
# -*- coding: iso-8859-15 -*- import unicodedata import nltk from nltk.stem.porter import PorterStemmer import itertools from nltk.tokenize import RegexpTokenizer import pandas as pd import numpy as np import re from nltk.corpus import stopwords from tqdm import tqdm import glob import multiprocessing from functools im...
34.479675
90
0.590663
562
4,241
4.368327
0.291815
0.074134
0.053768
0.058248
0.327495
0.311202
0.270468
0.215071
0.215071
0.215071
0
0.011147
0.259609
4,241
123
91
34.479675
0.770701
0.082999
0
0.252632
0
0
0.13297
0.030327
0
0
0
0
0
1
0.073684
false
0
0.178947
0
0.294737
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b0497c2fa2c3a01be8e9844086d5b63c53e894
1,902
py
Python
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
from typing import Any import math import types from rx.core.notification import OnNext, OnError, OnCompleted from .recorded import Recorded from .subscription import Subscription def is_prime(i: int) -> bool: """Tests if number is prime or not""" if i <= 1: return False _max = int(math.floor(...
23.775
63
0.627234
217
1,902
5.396313
0.322581
0.056362
0.081127
0.034159
0.278395
0.216909
0.157131
0.157131
0.157131
0.157131
0
0.009566
0.285489
1,902
79
64
24.075949
0.852097
0.02734
0
0.375
0
0
0.001085
0
0
0
0
0
0
1
0.160714
false
0
0.107143
0.035714
0.678571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b1e3a36f771edef543cb8815d84b4cc693e74f
12,296
py
Python
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
from model.sentclassifier import SentClassifier from model.seqlabel import SeqLabel from utils.data import Data import torch import os import sys from utils.functions import normalize_word import time from main import recover_nbest_label, get_ner_fmeasure, recover_label, batchify_with_label def label_input(input_line...
42.546713
156
0.588728
1,496
12,296
4.554144
0.14639
0.018788
0.021136
0.017467
0.523118
0.497431
0.471598
0.446499
0.416557
0.366652
0
0.00707
0.309857
12,296
288
157
42.694444
0.795781
0.084418
0
0.502128
0
0.004255
0.039501
0.013553
0
0
0
0
0.008511
1
0.025532
false
0.004255
0.038298
0
0.093617
0.046809
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b2ec2594b7f624a5e0c4ef610a7491441323d8
694
py
Python
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
10
2020-09-06T12:08:32.000Z
2021-07-19T15:12:30.000Z
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
null
null
null
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
1
2021-11-22T05:14:56.000Z
2021-11-22T05:14:56.000Z
#!/usr/bin/python import binascii import dpkt import struct import sys # Start the pcap file parsing f = open("usbtraffic.pcap", 'rb') pcap = dpkt.pcap.Reader(f) #print(pcap) lba = 0 packets = [] for ts, buf in pcap: #print(ts) if buf[64:68] == b'USBC': #lba = int( buf[], 16) a = buf[0x51:0x55]...
23.133333
66
0.567723
107
694
3.663551
0.504673
0.053571
0.068878
0
0
0
0
0
0
0
0
0.040619
0.255043
694
29
67
23.931034
0.717602
0.122478
0
0
0
0
0.11755
0
0
0
0.02649
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b4a1d863351284e48ed8cd2f0cf5dc7bead1a6
2,586
py
Python
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
null
null
null
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
14
2020-12-06T13:31:34.000Z
2020-12-12T12:55:06.000Z
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
1
2020-12-17T14:33:19.000Z
2020-12-17T14:33:19.000Z
from django.shortcuts import render from . utils import get_html_content from store.utils import cartData # Create your views here. def weather(request): weather_data = {} unknown_location = {} try: if 'city' in request.GET: # Fetch weather data city = request.GET.get('c...
41.047619
170
0.549111
312
2,586
4.416667
0.304487
0.069666
0.078374
0.069666
0.357765
0.357765
0.219884
0.135704
0.135704
0.112482
0
0.005829
0.270302
2,586
63
171
41.047619
0.72443
0.043697
0
0
0
0
0.181192
0.009728
0
0
0
0
0
1
0.046512
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b669a43887f9c811d94bcfb545a90bfec0af49
718
py
Python
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
2
2015-10-07T12:31:24.000Z
2015-10-08T04:58:48.000Z
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
setup.py
zaibacu/wutu
642207dcc3bb248fdfb2ee6e32c575cf2ea15fc6
[ "MIT" ]
null
null
null
from setuptools import setup from pip.req import parse_requirements import sys, os sys.path.append("wutu/") sys.path.append("wutu/compiler/") install_reqs = list(parse_requirements("requirements.txt", session={})) def version(): import version return version.get_version() setup(name="wutu", version...
27.615385
71
0.669916
86
718
5.488372
0.627907
0.072034
0.055085
0.072034
0
0
0
0
0
0
0
0
0.189415
718
25
72
28.72
0.810997
0
0
0
0
0
0.250696
0
0
0
0
0
0
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b778782a6c826438fa80906dc1159fa91249e9
2,063
py
Python
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
memory_loading.py
leobouts/Market_basket_analysis
3f22db68a3bda69abd82717d15c68b4659d61a80
[ "MIT" ]
null
null
null
import itertools import threading import pickle import time import sys def animate(): for c in itertools.cycle(['|', '/', '-', '\\']): if done: break sys.stdout.write('\rComputing the matrix ' + c) sys.stdout.flush() time.sleep(0.1) sys.stdout.write('\r... ') ...
20.838384
84
0.565681
266
2,063
4.244361
0.338346
0.063773
0.038973
0.033658
0.267493
0.200177
0.200177
0.200177
0.200177
0.200177
0
0.013148
0.336403
2,063
98
85
21.05102
0.811541
0.141057
0
0.307692
0
0
0.041998
0
0
0
0
0
0
1
0.057692
false
0
0.096154
0
0.192308
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92b80775e077bc571711817c75463061aa2ef995
2,632
py
Python
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
cintegrate/cpptypes.py
YanayGoor/cintegrate
4eac07f68b0505c6734f120cfee656fcb7a9142a
[ "MIT" ]
null
null
null
from pathlib import PurePath from elftools.elf.elffile import ELFFile from .typing import get_class import ctypes def die_from_offset(cu, offset): return [die for die in cu.iter_DIEs() if die.offset == offset][0] def get_type_from_file(filename, name): with open(str(filename), 'rb') as f: elffile = EL...
48.740741
153
0.676292
408
2,632
4.110294
0.213235
0.031008
0.066786
0.07096
0.514013
0.44186
0.339296
0.309481
0.254025
0.254025
0
0.005629
0.18997
2,632
54
154
48.740741
0.780957
0
0
0.255319
0
0
0.11128
0.021269
0
0
0
0
0
1
0.106383
false
0
0.085106
0.042553
0.319149
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92ba7faaffb8f7360355154db493fc509d84f145
2,305
py
Python
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
conf/jupyter/00_findspark.py
vshulyak/workstation_image
c94386aa6f66d49bcd19e742a031be10952aaf74
[ "MIT" ]
null
null
null
import os from functools import partial import lazy_object_proxy def start_spark(app_name="Jupyter"): def sc_lazy(spark): return spark.sparkContext def hc_lazy(spark): return HiveContext(spark.sparkContext) global sc global hc global sqlContext global spark import fin...
43.490566
115
0.463774
169
2,305
6.213018
0.378698
0.146667
0.071429
0.07619
0.098095
0.072381
0.072381
0.072381
0
0
0
0.025316
0.451627
2,305
52
116
44.326923
0.80538
0
0
0
0
0
0.204772
0.163557
0
0
0
0
0
1
0.076923
false
0
0.153846
0.051282
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
92baceda72fe1079e3c469a957d61c1676e7dbea
1,534
py
Python
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
live_predictions.py
eugeniodias5/Audio-Emotion-Server
589974d02e309c6356fdb10679df4cfa4576e2b3
[ "MIT" ]
null
null
null
""" This file can be used to try a live prediction. """ import keras import librosa import numpy as np class LivePredictions: """ Main class of the application. """ def __init__(self): """ Init method is used to initialize the main parameters. """ self.path = './model...
30.078431
92
0.524772
169
1,534
4.615385
0.573965
0.015385
0.038462
0.033333
0
0
0
0
0
0
0
0.014418
0.367014
1,534
50
93
30.68
0.788877
0.166884
0
0
0
0
0.080169
0.033755
0
0
0
0
0
1
0.107143
false
0
0.107143
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b7cd4df0f0bbe6c33a448d501b266a7c04861f1
3,956
py
Python
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
1
2021-11-12T12:57:59.000Z
2021-11-12T12:57:59.000Z
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
Modules/GenWidgets/Nav.py
macromorgan/pocketchip-menu
1f824b07ba179b386079528f2bf0496ec0c9c94f
[ "MIT" ]
null
null
null
import pygame import __main__ from Modules.Globals import * from Modules.NavWidgets.Battery import * from Modules.NavWidgets.Bluetooth import * from Modules.NavWidgets.Wifi import * class Nav(): def __init__(self, parent): self.visible = True self.parent = parent self.buttons = [] s...
31.396825
105
0.503539
416
3,956
4.680288
0.223558
0.09245
0.050334
0.058552
0.510529
0.447869
0.404725
0.345146
0.313303
0.313303
0
0.022194
0.39636
3,956
125
106
31.648
0.793132
0.035137
0
0.356436
0
0
0.021791
0
0
0
0
0
0
1
0.049505
false
0.019802
0.059406
0
0.118812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b7eedc17fc971f906228a3bedf199afe148ad63
358
py
Python
executive/executive/urls.py
b800h/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
1
2019-03-14T11:13:00.000Z
2019-03-14T11:13:00.000Z
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
executive/executive/urls.py
bmcollier/vcloudexecutive
aa556664b454ba5d5112fa6c07dde8db8a7dfab4
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'executive.views.home', name='home'), url(r'^cloudcontrol/ajax/', include('cloudcontrol.urlsajax')), url(r'^cloudcontrol/', include('cloudcontrol.urls')), url(r'^...
32.545455
66
0.675978
43
358
5.627907
0.488372
0.066116
0.132231
0
0
0
0
0
0
0
0
0
0.131285
358
10
67
35.8
0.778135
0.162011
0
0
0
0
0.262626
0.070707
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b7faeb53a37cd7b206440dda10874cb138af114
5,356
py
Python
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
null
null
null
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
66
2019-05-03T22:10:11.000Z
2022-02-20T18:33:38.000Z
examples/plot_als_classification.py
arokem/AFQ-Insight
be8db20b34484e96aec255b4862878ffc6a800c8
[ "BSD-3-Clause" ]
8
2018-05-17T04:16:30.000Z
2022-02-07T18:00:57.000Z
""" ================================================= Classify ALS diagnosis from white matter features ================================================= Predict ALS diagnosis from white matter features. This example fetches the ALS classification dataset from Sarica et al [1]_. This dataset contains tractometry featu...
41.51938
181
0.731516
794
5,356
4.816121
0.437028
0.012552
0.01046
0.010983
0.042887
0.02772
0
0
0
0
0
0.026316
0.155713
5,356
128
182
41.84375
0.819328
0.476475
0
0
0
0
0.154595
0.052252
0
0
0
0
0
1
0
false
0
0.106667
0
0.106667
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b827b627d677ff0e024a5757a45773ff0405784
7,004
py
Python
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
1
2020-05-05T05:11:56.000Z
2020-05-05T05:11:56.000Z
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
mlearn/describers.py
ruoitrau86/mlearn
5b24690344836f53047ede409966d5dd3859098f
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Materials Virtual Lab # Distributed under the terms of the BSD License. import itertools import numpy as np import pandas as pd from monty.json import MSONable from pymatgen.core.periodic_table import get_el_sp from sklearn.base import TransformerMixin, BaseEstimator class Bispectrum...
43.234568
93
0.536408
816
7,004
4.503676
0.289216
0.035374
0.010612
0.015238
0.17415
0.122993
0.099048
0.051156
0.051156
0.035918
0
0.017898
0.369789
7,004
161
94
43.503106
0.814681
0.344517
0
0.053333
0
0
0.01627
0
0
0
0
0
0
1
0.066667
false
0
0.093333
0
0.226667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b88ac303411dbb8834614706fb3ea14becb3330
68,137
py
Python
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
src/models/vli/modified_xlnet.py
maranedah/music_inpainting_benchmark
567f4ccfe135a7a6c0578a0672145414b61fd227
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
46.132024
198
0.610931
8,955
68,137
4.460525
0.095701
0.042059
0.010815
0.003004
0.51084
0.461696
0.416533
0.392525
0.373949
0.352644
0
0.010204
0.29379
68,137
1,476
199
46.163279
0.819905
0.33371
0
0.305396
0
0.01837
0.197463
0.030265
0
0
0
0.000678
0.006889
1
0.030999
false
0.002296
0.020666
0.001148
0.137773
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b8bc3d0e40e43824259f72ae47057f59a324480
3,470
py
Python
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Colloquiums/2020-2021/Colloquium_2/Exercise_3.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# W roku 2050 Maksymilian odbywa podróż przez pustynię z miasta A do miasta B. Droga pomiędzy miastami # jest linią prostą na której w pewnych miejscach znajdują się plamy ropy. Maksymilian porusza się # 24-kołową cysterną, która spala 1 litr ropy na 1 kilometr trasy. Cysterna wyposażona jest w pompę # pozwalającą zbie...
50.289855
104
0.69366
548
3,470
4.344891
0.417883
0.029399
0.0063
0.0126
0.058379
0.053339
0.033599
0
0
0
0
0.022803
0.216427
3,470
68
105
51.029412
0.851416
0.660807
0
0.057143
0
0
0
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b8e4161bf16ec89b1640782424942de3ea30db0
6,499
py
Python
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
90
2021-01-04T20:08:20.000Z
2022-03-14T11:20:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
93
2020-12-12T22:10:33.000Z
2021-11-21T16:12:24.000Z
datajob/datajob_stack.py
vincentclaes/datajob
0454c7c6327b2a0c2a2284e35153213787704b71
[ "Apache-2.0" ]
13
2020-12-12T22:11:01.000Z
2021-09-22T14:37:09.000Z
import os from typing import Union from aws_cdk import core from aws_cdk.core import CfnOutput from datajob import logger from datajob.datajob_context import DataJobContext from datajob.datajob_execution_input import DataJobExecutionInput class DataJobStack(core.Stack): STAGE_NAME = "stage" def __init__( ...
36.717514
113
0.62625
809
6,499
4.911001
0.211372
0.015857
0.015102
0.009061
0.031211
0.031211
0.017619
0.017619
0.017619
0
0
0.000654
0.294507
6,499
176
114
36.926136
0.865867
0.270349
0
0.040816
0
0.010204
0.146823
0
0
0
0
0
0
1
0.132653
false
0.010204
0.071429
0
0.306122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b8e54d9ba07085ebbc7eda5e53fdf3cf8fed6cb
5,869
py
Python
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
1
2020-06-04T11:10:27.000Z
2020-06-04T11:10:27.000Z
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
pytorch/exercises/wgan/main_improved_wgan.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import numpy as np import pandas as pd import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable def list_all_files(rootdir, key): import os _files = [] list = os.listdir(rootdir) # 列出文件夹下所有的目录与文件 ...
30.567708
114
0.552905
847
5,869
3.638725
0.217237
0.02109
0.020441
0.021415
0.2573
0.237833
0.194354
0.17294
0.148605
0.148605
0
0.031938
0.295791
5,869
191
115
30.727749
0.713767
0.148066
0
0.109489
0
0
0.009459
0
0
0
0
0
0
1
0.051095
false
0
0.065693
0.007299
0.153285
0.014599
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b9525401f62a8c3bf39cf1a74d072fa4e2b9b95
2,455
py
Python
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
14
2015-03-11T21:46:15.000Z
2020-06-06T16:01:38.000Z
chemreac/util/grid.py
bjodah/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
20
2015-01-21T16:11:36.000Z
2020-01-06T10:30:46.000Z
chemreac/util/grid.py
chemreac/chemreac
dbe38a10cf6b88e66192bcc998721b61aabbd9dc
[ "BSD-2-Clause" ]
3
2015-08-13T12:06:17.000Z
2021-12-17T01:12:20.000Z
# -*- coding: utf-8 -*- """ chemreac.util.grid ------------------ Grid related utilities for one-dimensional grid of arbitrary spacing. """ from __future__ import print_function, division from math import log import numpy as np from ..units import get_derived_unit, to_unitless def generate_grid(x0, xend, N, logx...
25.309278
93
0.600407
344
2,455
4.188953
0.360465
0.00694
0.016655
0.013879
0.036086
0.036086
0
0
0
0
0
0.028318
0.266395
2,455
96
94
25.572917
0.771793
0.340937
0
0.102564
0
0
0.026639
0
0
0
0
0
0
1
0.102564
false
0
0.102564
0
0.333333
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b95278b15173f39c3e354e42bd5da9df55f3094
4,771
py
Python
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
power_calibration.py
elvd/rf_sewer_pipes
18dd433539f8678d9b64e7004283a031811de241
[ "MIT" ]
null
null
null
#python: from collections import namedtuple import numpy as np from scipy.constants import speed_of_light import gprMax.input_cmd_funcs as gprmax_cmds import aux_funcs Point = namedtuple('Point', ['x', 'y', 'z']) # ! Simulation model parameters begin # * Naming parameters simulation_name = 'Antenna in free spac...
29.450617
78
0.640537
647
4,771
4.401855
0.236476
0.042135
0.010534
0.008427
0.239115
0.181531
0.140449
0.140449
0.140449
0.140449
0
0.024649
0.268707
4,771
161
79
29.63354
0.791631
0.134982
0
0.224299
0
0
0.038705
0.006086
0
0
0
0
0
1
0
false
0
0.046729
0
0.046729
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b96748117a2ee7e1202b513f6bf2c96ed0a9759
6,226
py
Python
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-08-06T13:32:17.000Z
2021-08-06T13:32:17.000Z
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
null
null
null
r2o.py
AnweshGangula/Roam2Obsidian
5fe70957a6d3e0275c0244b96583657c433010ba
[ "MIT" ]
1
2021-10-20T20:16:30.000Z
2021-10-20T20:16:30.000Z
# Save Roam JSON Export file in same folder and run following code in terminal `python r2o.py my-roam-export.json` import sys import os import json from tqdm import tqdm import re from dateutil.parser import parse from datetime import datetime yaml = """--- title: {title} created: {created} --- """ months = r"Jan...
29.789474
114
0.540475
813
6,226
4.055351
0.273063
0.026691
0.048832
0.014559
0.166515
0.138004
0.057931
0.041856
0.041856
0.016379
0
0.023367
0.292001
6,226
208
115
29.932692
0.724592
0.122229
0
0.110429
0
0.018405
0.153945
0.038899
0
0
0
0
0
1
0.030675
false
0.02454
0.042945
0
0.104294
0.055215
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b99fe63fcf6d06c867423d961d88a13935d459e
1,465
py
Python
var/spack/repos/builtin/packages/canu/package.py
mrzv/spack
a0fb2838ea60f020179f480a2db1438da9d2e2ab
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/canu/package.py
matzke1/spack
9af44814b12639744926c56cdf16ac9e95490011
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Canu(MakefilePackage): """A single molecule sequence assembler for genomes large and ...
34.069767
95
0.63959
177
1,465
5.237288
0.661017
0.029126
0.030205
0.040992
0.049622
0
0
0
0
0
0
0.077058
0.220478
1,465
42
96
34.880952
0.734676
0.271672
0
0
0
0
0.271251
0.111748
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2b9c7ab513539e60f2d46c3236a9f0d71ce9e6af
446
py
Python
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
socket_sender.py
RashiG27/summer19
ca6956080b2034793f45716850dca3fb27cb87e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import socket #target machine's ip number target_ip = '3.82.4.173' #target machine's port number target_port = 8888 #create UDP socket # IPv4--(INET--INET6), type of socket UDP --(DGRAM--STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) while True: msg = input("P...
20.272727
75
0.665919
68
446
4.279412
0.617647
0.089347
0.09622
0
0
0
0
0
0
0
0
0.047222
0.192825
446
21
76
21.238095
0.761111
0.363229
0
0
0
0
0.154122
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
0
0
0
0
0
1
0
2b9f17f18f5bbb0bd66f11c7a64aabbb4c285ec5
733
py
Python
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
null
null
null
step1a/sanproof_1_01/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
50
2021-08-28T23:02:22.000Z
2022-01-18T18:31:21.000Z
step1a/sanproof_1_02/transcode_ab.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
1
2021-09-02T04:36:26.000Z
2021-09-02T04:36:26.000Z
# coding=utf-8 """transcode_ab.py """ from __future__ import print_function import sys, re,codecs sys.path.append('../') import transcoder transcoder.transcoder_set_dir('../transcoder') def transcode(x,tranin,tranout): y = transcoder.transcoder_processString(x,tranin,tranout) return y if __name__=="__main__": fi...
27.148148
63
0.709413
111
733
4.531532
0.531532
0.023857
0.053678
0.027833
0
0
0
0
0
0
0
0.009346
0.124147
733
26
64
28.192308
0.774143
0.096862
0
0
0
0
0.105828
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.263158
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ba3178b86594e0bd355d453a40ea67602520196
3,361
py
Python
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/measurement_plugins/OneWireEnv.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
from threading import Thread, Timer from time import time import logging try: import Adafruit_DHT except: pass class OneWireEnv(Thread): """This class is for reading out one wire sensors with the rpi""" def __init__(self, main, framework, update_interval=5000): """This starts the background ...
36.532609
109
0.547456
354
3,361
5.070621
0.322034
0.027298
0.04234
0.03844
0.288579
0.288579
0.254039
0.254039
0.254039
0.254039
0
0.004247
0.369533
3,361
91
110
36.934066
0.84285
0.091342
0
0.178082
0
0
0.135046
0
0
0
0
0
0
1
0.041096
false
0.013699
0.068493
0
0.136986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ba81ec618c7d1270dc12f7a84fbe054a68e7523
1,073
py
Python
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SDPR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
1
2021-09-26T08:03:11.000Z
2021-09-26T08:03:11.000Z
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
CODE/GET_FORECASTS_V001.py
rianashwin/Forecasting-SPDR-Gold-Trust-ETF-Prices--PRD-
138b99deab4c2afdf89c7c881c3f91ea2732f3ef
[ "MIT" ]
null
null
null
""" Flask app """ import pandas as pd from flask import Flask import json app = Flask(__name__) # runs in local host http://127.0.0.1:5000/latest/all @app.route('/latest/<horizon>') def weather(horizon): """ Reads json and outputs based on selected paramter Horizon can be either "all" or an integer betw...
24.386364
97
0.652377
158
1,073
4.322785
0.531646
0.030747
0.035139
0.039531
0.377745
0.310395
0.310395
0.281113
0.213763
0.213763
0
0.045949
0.229264
1,073
43
98
24.953488
0.779927
0.507922
0
0
0
0
0.135776
0.073276
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2babfb50af910a621784aa5f2878e7604544427c
535
py
Python
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
lut.py
94JuHo/OpenCV_Lecture
1a895ce479aa64ddf45563489123f721b754f167
[ "MIT" ]
null
null
null
import cv2 import numpy as np def showImage(): filename = "Images/lena.jpg" img = cv2.imread(filename, cv2.IMREAD_GRAYSCALE) cv2.imshow('image', img) lut = np.arange(255, -1, -1, dtype='uint8') ysize = img.shape[0] xsize = img.shape[1] for y in range(ysize): for x i...
22.291667
53
0.573832
75
535
4.08
0.506667
0.039216
0
0
0
0
0
0
0
0
0
0.043928
0.276636
535
24
54
22.291667
0.74677
0.065421
0
0
0
0
0.065126
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bac2bdf3e935053151415509164e32a0e767cd4
1,340
py
Python
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
project-4/code.py
aakashsingh1210/greyatom-python-for-data-science
c4df27416cfffa574107ba1a7a5dc96ba6d92172
[ "MIT" ]
null
null
null
# -------------- # Importing header files import numpy as np import warnings warnings.filterwarnings('ignore') #New record new_record=[[50, 9, 4, 1, 0, 0, 40, 0]] #Reading file data = np.genfromtxt(path, delimiter=",", skip_header=1) #Code starts here census=np.concatenate((data,new_record)) a...
23.928571
57
0.71194
256
1,340
3.429688
0.226563
0.027335
0.039863
0.045558
0.159453
0.159453
0.159453
0.159453
0.159453
0.159453
0
0.063506
0.118657
1,340
55
58
24.363636
0.679932
0.061194
0
0
0
0
0.005843
0
0
0
0
0
0
1
0
false
0
0.046512
0
0.046512
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bad03cbdb9b9c6e7b1117ca58db86aba320ec23
3,247
py
Python
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
8
2017-07-02T10:45:43.000Z
2022-02-25T16:30:22.000Z
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
null
null
null
old/tkpng3.py
jarvisteach/tinter-png
08348fde1fc4099248ca7170d0cdfa8cda8f23d7
[ "MIT" ]
1
2019-07-10T06:49:22.000Z
2019-07-10T06:49:22.000Z
#!/usr/bin/env python3 # tkpng - example of using tkinter and pypng to display pngs (albeit reduced quality) # in nothing but pure python. Can use RGBA images, but the alpha is stripped. # v0.3 - structure rearranged to make classes and functions for reuse from array import * from tkinter import * import png class Pn...
41.101266
122
0.493994
385
3,247
4.14026
0.387013
0.035132
0.016939
0.018821
0.060226
0.036386
0.036386
0.036386
0.036386
0
0
0.014583
0.408685
3,247
78
123
41.628205
0.815625
0.28457
0
0.078431
0
0
0.05529
0
0
0
0
0
0
1
0.078431
false
0
0.058824
0.019608
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2baf47be9d3daf1c604497a9da492e2f6f27a9d5
2,083
py
Python
demos/face_recognition_demo/python/landmarks_detector.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
2
2019-08-20T15:30:19.000Z
2020-09-01T15:16:33.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
4
2020-05-22T17:30:43.000Z
2021-08-02T07:33:16.000Z
demos/face_recognition_demo/python/landmarks_detector.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
2
2021-06-25T06:18:58.000Z
2021-08-04T10:05:32.000Z
""" Copyright (c) 2018-2021 Intel 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 i...
37.196429
108
0.697072
294
2,083
4.823129
0.404762
0.042313
0.029619
0.038082
0.098025
0.043724
0.043724
0.043724
0.043724
0
0
0.017523
0.205473
2,083
55
109
37.872727
0.839275
0.272204
0
0
0
0
0.066756
0
0
0
0
0
0.103448
1
0.172414
false
0
0.103448
0.034483
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bb09c7c624b4b2fa539a4a7b7639cfbbb55950f
23,581
py
Python
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
pyASH/interface.py
dhrone/pyASH
85da060d135fb8be6475d58d4dc33acf88a3a9b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 by dhrone. All Rights Reserved. # import time from .iot import Iot from .utility import get_utc_timestamp from .objects import ASHO class Interface(object): interface = None version = None properties = None def __init__(self,thing=None, uncertaintyInMillisec...
52.872197
221
0.713329
2,113
23,581
7.823
0.136772
0.029643
0.016636
0.020327
0.529946
0.444041
0.375923
0.370901
0.358863
0.338476
0
0.007738
0.188923
23,581
445
222
52.991011
0.85653
0.048217
0
0.335277
0
0
0.074649
0.012932
0.008746
0
0
0
0
1
0.198251
false
0
0.011662
0.014577
0.338192
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bb22f0b235ccbd5403faa7e90ca5e580a0c0f77
1,696
py
Python
Invisible Pixels/invisible_pixel.py
Yash-Vekaria/Web-Tracking-in-Indian-Partisan-News-Websites
9fac25ed364b823d13d25346dbaef3042fa459fb
[ "MIT" ]
1
2021-01-31T17:32:38.000Z
2021-01-31T17:32:38.000Z
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
null
null
null
Invisible Pixels/invisible_pixel.py
vibhor98/Web-Tracking-in-Indian-Partisan-News-Websites
f68c4ae011a499c0519bed0b0cb953a12f438902
[ "MIT" ]
2
2021-01-31T16:48:13.000Z
2021-05-28T15:33:48.000Z
import sqlite3 import json import pandas as pd import numpy as np homepages = list(pd.read_csv('news_homepage_urls.csv')['news_url']) conn = sqlite3.connect('./topics_url_crawls/topics_url_crawl4/crawl-data_all_topics4.sqlite') c = conn.cursor() res = [['image_url', 'content_length', 'req_id', 'visit_id', 'news_site...
34.612245
114
0.608491
240
1,696
4.091667
0.358333
0.050917
0.065173
0.01833
0.044807
0.044807
0
0
0
0
0
0.033735
0.26592
1,696
48
115
35.333333
0.75502
0
0
0.047619
0
0
0.254127
0.067217
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bb98a7d05b2fa13ccaa82a80ac1056091559328
1,844
py
Python
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
2
2020-04-28T16:50:43.000Z
2020-09-13T10:36:08.000Z
loaders/codeforces_parser.py
pandrei7/cf-tests
4211d2f8c94730a63ceb960cfe487d9d13f9596b
[ "MIT" ]
null
null
null
from html.parser import HTMLParser from .test_data import TestData class CodeforcesParser(HTMLParser): """A class which can parse Codeforces webpages for testcase data.""" def __init__(self): HTMLParser.__init__(self) self.in_input = False self.in_output = False self.in_pre = False self.curr_...
28.8125
74
0.625813
262
1,844
4.209924
0.270992
0.087035
0.059837
0.043518
0.267452
0.076156
0
0
0
0
0
0.00431
0.245119
1,844
63
75
29.269841
0.788075
0.122017
0
0.326531
0
0
0.036182
0
0
0
0
0
0
1
0.142857
false
0
0.040816
0
0.244898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bbb4aba06003d96ae6df55d6da4fe272ec4958a
10,644
py
Python
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
src/nonogram_solver/nonogram.py
MikeJongen/nonogram-solver
b174fe6c693c1ace3918bf19a9110165a5b42db9
[ "MIT" ]
null
null
null
import json from nonogram_solver.error import LengthError, ClueError, AxisError, SetSolutionError class Nonogram: """Main nonogram class Used to hold the data of the nonogram. Also has some basic creation and helper functions. """ printable_values = {0: " ", -1: "..", ...
31.868263
90
0.530252
1,297
10,644
4.215883
0.136469
0.039503
0.028164
0.038405
0.335955
0.308888
0.232992
0.153255
0.126189
0.126189
0
0.004444
0.36584
10,644
333
91
31.963964
0.80563
0.160936
0
0.301887
0
0
0.021027
0.005376
0
0
0
0
0
1
0.132075
false
0
0.009434
0.004717
0.240566
0.051887
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bbe278b496ce085135269ff9461df76d529a0fd
2,468
py
Python
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
3
2020-02-17T11:11:08.000Z
2021-12-03T18:54:47.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
1
2019-12-05T15:32:50.000Z
2019-12-10T16:13:08.000Z
gromacs_wrapper/make_ndx.py
bioexcel/virtualscreening
e973958e012e38f99b0c8ed2b798c5e5a7f72b22
[ "Apache-2.0" ]
2
2019-09-26T20:21:14.000Z
2021-07-10T04:37:31.000Z
#!/usr/bin/env python """Python wrapper module for the GROMACS make_ndx module """ import sys import json from command_wrapper import cmd_wrapper import configuration.settings as settings from tools import file_utils as fu class MakeNdx(object): """Wrapper for the 5.1.2 version of the make_ndx module Args: ...
35.257143
94
0.633712
325
2,468
4.627692
0.301538
0.060505
0.071809
0.043883
0.021277
0
0
0
0
0
0
0.007507
0.244327
2,468
69
95
35.768116
0.798928
0.181118
0
0.042553
0
0
0.048534
0
0
0
0
0
0
1
0.06383
false
0
0.106383
0
0.212766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bbf71442072bd282493639805a17b1c960bf32f
5,866
py
Python
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
null
null
null
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
40
2018-06-18T13:43:42.000Z
2018-07-24T19:24:57.000Z
Installer.py
LordOfPolls/Helix3
7ad62ce8dd831a31d846457cfba98807f9ba6c19
[ "MIT" ]
2
2018-07-17T20:47:23.000Z
2018-07-27T17:42:53.000Z
from __future__ import print_function import os import sys import time import traceback import subprocess from shutil import disk_usage, rmtree from base64 import b64decode pipWorking = False gitWorking = False def clear(): os.system('cls' if os.name == 'nt' else 'clear') def checkGit(): global gitWorking ...
36.434783
183
0.56103
663
5,866
4.921569
0.334842
0.022066
0.013485
0.018388
0.134845
0.1232
0.097456
0.08152
0.08152
0.08152
0
0.01121
0.33089
5,866
161
184
36.434783
0.820127
0
0
0.326531
0
0.027211
0.276291
0.00392
0
0
0
0
0
1
0.061224
false
0
0.088435
0
0.190476
0.156463
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc2d93e8d13d4e3616e50c69adba5724129cd36
280
py
Python
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2019-11-05T18:28:22.000Z
2019-11-05T18:28:22.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
9
2019-12-05T01:04:48.000Z
2021-06-10T19:26:06.000Z
src/nfunctions/templatetags/custom_tags.py
AnclaTech/minify
f986353b04687c39b6b90b65bfec61edf838f7a4
[ "Apache-2.0" ]
1
2020-09-24T22:21:14.000Z
2020-09-24T22:21:14.000Z
from django import template register = template.Library() from ..models import Notification @register.simple_tag def unread_notification(user): no = Notification.objects.filter(user=user, read=False).count() if no >= 1: return True else: return False
23.333333
67
0.707143
35
280
5.6
0.685714
0
0
0
0
0
0
0
0
0
0
0.004464
0.2
280
12
68
23.333333
0.870536
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc2f3579b936e5347d7069c68b383a1d2e7b783
499
py
Python
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
2
2021-09-15T04:12:07.000Z
2022-02-04T02:44:09.000Z
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
tests/io/test_fred.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
import pytest from ekorpkit import eKonf @pytest.mark.local() def test_fred(): cfg = eKonf.compose(config_group="io/fetcher=quandl") cfg.series_name = "DFEDTAR" cfg.series_id = ["DFEDTAR", "DFEDTARU"] cfg.force_download = True fred = eKonf.instantiate(cfg) cfg = eKonf.compose(config_group="v...
23.761905
63
0.677355
68
499
4.882353
0.617647
0.048193
0.090361
0.126506
0.156627
0
0
0
0
0
0
0.009828
0.184369
499
20
64
24.95
0.805897
0
0
0
0
0
0.154309
0.046092
0
0
0
0
0.066667
1
0.066667
false
0
0.133333
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc30fd5ccd085f6e33f22005fb27c74cb901846
16,111
py
Python
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
5
2021-07-24T15:11:28.000Z
2021-07-24T15:11:49.000Z
app/main.py
Kyle-L/Revenants
003d79b7b8141442a998e191dc9855f7d1e33183
[ "MIT" ]
null
null
null
import os import operator from flask import Blueprint, redirect, render_template, url_for, request, session from flask_socketio import SocketIO, emit, join_room, leave_room from . import socketio from .helper import * from .generator import generate_room_code from .database import * MIN_PLAYER_COUNT = 4 app = Bluepri...
36.042506
136
0.638322
2,137
16,111
4.627515
0.126345
0.024269
0.030943
0.020932
0.560421
0.499747
0.445343
0.415512
0.387097
0.352412
0
0.001991
0.25194
16,111
446
137
36.123318
0.818536
0.245236
0
0.348837
0
0
0.180599
0.046449
0
0
0
0
0
1
0.05814
false
0
0.031008
0.011628
0.124031
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc4ad754b21348d16285e2026fcdacb8e8dc9ad
1,075
py
Python
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/modules/post/unix/shell/getpid.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This module requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.module import Module from hatsploit.utils.session import SessionTools class HatSploitModule(Module, SessionTools): details = { 'Name': "Uni...
26.219512
65
0.572093
109
1,075
5.605505
0.59633
0.042553
0
0
0
0
0
0
0
0
0
0.006579
0.293023
1,075
40
66
26.875
0.797368
0.126512
0
0
0
0
0.281585
0.052463
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc4ad99cec6515a6001bb4ad4c1f6891d5605dd
293
py
Python
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
ex077a.py
jgabriel1607/Python
d6b75519eb8f0d4fef944e1690ba8914d81a5d16
[ "MIT" ]
null
null
null
p = ('Curso', 'Video', 'Python') cont = 0 contl = 0 while True: while True: if p[cont][contl] in 'AaEeIiOoUu': print(p[cont][contl]) contl += 1 if contl >= len(p[cont]): break contl = 0 cont += 1 if cont >= len(p): break
19.533333
42
0.467577
39
293
3.512821
0.410256
0.109489
0.145985
0
0
0
0
0
0
0
0
0.027473
0.37884
293
14
43
20.928571
0.725275
0
0
0.428571
0
0
0.088737
0
0
0
0
0
0
1
0
false
0
0
0
0
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2bc5c9f0df460e7d769b16ab75ae99c2117d9daa
3,951
py
Python
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
JT_Selenium/captcha.py
Gothingbop/JT_Selenium
088cf370bca464a546e039786c720142cf056a29
[ "MIT" ]
null
null
null
import requests import time from urllib.parse import urlparse, parse_qs from selenium.common.exceptions import NoSuchElementException def SolveCaptcha(api_key, site_key, url): """ Uses the 2Captcha service to solve Captcha's for you. Captcha's are held in iframes; to solve the captcha, you need a part of...
41.589474
185
0.68894
517
3,951
5.112186
0.352031
0.05297
0.061294
0.037836
0.090049
0.051457
0.024972
0.024972
0
0
0
0.022698
0.219438
3,951
95
186
41.589474
0.834306
0.398127
0
0.109091
0
0
0.183862
0.030864
0
0
0
0
0.090909
1
0.036364
false
0
0.072727
0
0.163636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0