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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8b1144f6af3bd40eaef2d162aa0a36cc3d27031 | 970 | py | Python | my_linux_academy/my_python_class/exercise7.py | mikronixx/public | 7410e42f3f5bf911be28b762817e30936d7a7c60 | [
"Apache-2.0"
] | null | null | null | my_linux_academy/my_python_class/exercise7.py | mikronixx/public | 7410e42f3f5bf911be28b762817e30936d7a7c60 | [
"Apache-2.0"
] | null | null | null | my_linux_academy/my_python_class/exercise7.py | mikronixx/public | 7410e42f3f5bf911be28b762817e30936d7a7c60 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import argparse
parser = argparse.ArgumentParser (description='Prints the specified line_number from file_name to the screen. The user will specify this as you would expect, not using zero as the first line')
parser.add_argument('filename', help='enter a filename to read')
parser.add_argument('li... | 34.642857 | 192 | 0.726804 | 151 | 970 | 4.569536 | 0.490066 | 0.15942 | 0.073913 | 0.049275 | 0.078261 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.15567 | 970 | 27 | 193 | 35.925926 | 0.835165 | 0.095876 | 0 | 0.26087 | 0 | 0.043478 | 0.32646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8ba5a6a2050e189d9998321caa7fc1815a9c706 | 2,639 | py | Python | mermaid/libraries/modules/stn_nd.py | HastingsGreer/mermaid | bd13c5fc427eb8cd9054973a8eaaeb302078182d | [
"Apache-2.0"
] | 120 | 2019-10-29T23:53:02.000Z | 2022-03-30T02:59:58.000Z | mermaid/libraries/modules/stn_nd.py | AlexanderChristgau/mermaid | ba07883cc3cb5982e4655048a434b4495cb49c6d | [
"Apache-2.0"
] | 10 | 2019-11-05T09:28:35.000Z | 2022-01-09T19:12:51.000Z | mermaid/libraries/modules/stn_nd.py | AlexanderChristgau/mermaid | ba07883cc3cb5982e4655048a434b4495cb49c6d | [
"Apache-2.0"
] | 19 | 2019-11-10T13:34:39.000Z | 2022-03-13T20:30:10.000Z | """
This package implements spatial transformations in 1D, 2D, and 3D.
This is needed for the map-based registrations for example.
.. todo::
Implement CUDA version. There is already a 2D CUDA version available (in the source directory here).
But it needs to be extended to 1D and 3D. We also make use of a different... | 40.6 | 144 | 0.665404 | 331 | 2,639 | 5.123867 | 0.34139 | 0.028892 | 0.053066 | 0.03184 | 0.301887 | 0.274764 | 0.274764 | 0.229953 | 0.229953 | 0.229953 | 0 | 0.012726 | 0.225843 | 2,639 | 64 | 145 | 41.234375 | 0.817425 | 0.584312 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8bcb0b548f27018036de970876117d27a9e8e4b | 2,454 | py | Python | amazon_scraper.py | fcpauldiaz/Keydex | 35abfc84256d95a5d24259d4fbe7929a0cabba72 | [
"MIT"
] | null | null | null | amazon_scraper.py | fcpauldiaz/Keydex | 35abfc84256d95a5d24259d4fbe7929a0cabba72 | [
"MIT"
] | 2 | 2020-06-05T19:40:09.000Z | 2021-12-13T19:53:04.000Z | amazon_scraper.py | fcpauldiaz/Keydex | 35abfc84256d95a5d24259d4fbe7929a0cabba72 | [
"MIT"
] | null | null | null | from lxml import html
import csv,os,json
import requests
import random
from exceptions import ValueError
from bs4 import BeautifulSoup
from time import sleep
def AmzonParser(url):
USER_AGENTS = [
{'User-Agent': 'Mozilla/5.0 (Windows NT 10.0'},
{'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 10_3_1 like Mac OS ... | 36.088235 | 151 | 0.655257 | 378 | 2,454 | 4.193122 | 0.396825 | 0.01388 | 0.100946 | 0.107256 | 0.399369 | 0.388013 | 0.350789 | 0.328076 | 0.328076 | 0.239748 | 0 | 0.13215 | 0.173594 | 2,454 | 68 | 152 | 36.088235 | 0.649408 | 0.0815 | 0 | 0 | 0 | 0.2 | 0.575379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.14 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8c4696803ec15ce71c2822a860c70fbe2f5f036 | 207 | py | Python | env_test.py | zhaofeng-shu33/DDPG-MountainCarContinuous-v0 | 52fdd5cd6e221f62a450ac10737b448d14ab6a63 | [
"MIT"
] | null | null | null | env_test.py | zhaofeng-shu33/DDPG-MountainCarContinuous-v0 | 52fdd5cd6e221f62a450ac10737b448d14ab6a63 | [
"MIT"
] | null | null | null | env_test.py | zhaofeng-shu33/DDPG-MountainCarContinuous-v0 | 52fdd5cd6e221f62a450ac10737b448d14ab6a63 | [
"MIT"
] | null | null | null | import gym
import custom_gym_env
def test_reset_and_step():
env = gym.make('MountainCarContinuous-v1')
env.reset()
action = [0.5]
next_state, reward, done, info = env.step(action)
pass
| 18.818182 | 53 | 0.681159 | 30 | 207 | 4.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.202899 | 207 | 10 | 54 | 20.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.116505 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f8c5569e76e7611ec8b36240fe58dee974ab9e0e | 306 | py | Python | list_zones.py | raajheshkannaa/cloudflare-automated-ip-block | a2e9f2233cff4961b61f96d777469657510d1d71 | [
"MIT"
] | null | null | null | list_zones.py | raajheshkannaa/cloudflare-automated-ip-block | a2e9f2233cff4961b61f96d777469657510d1d71 | [
"MIT"
] | null | null | null | list_zones.py | raajheshkannaa/cloudflare-automated-ip-block | a2e9f2233cff4961b61f96d777469657510d1d71 | [
"MIT"
] | null | null | null | import CloudFlare
token = '' # API Token
zone = '' # Zone ID
def main():
cf = CloudFlare.CloudFlare(token=token)
zones = cf.zones.get()
for zone in zones:
zone_id = zone['id']
zone_name = zone['name']
print(zone_id, zone_name)
if __name__ == '__main__':
main()
| 17 | 43 | 0.588235 | 40 | 306 | 4.2 | 0.4 | 0.142857 | 0.178571 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 306 | 17 | 44 | 18 | 0.756757 | 0.055556 | 0 | 0 | 0 | 0 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8c98bb47b8001300acb36bd5b321cdbbcb2c9ca | 815 | py | Python | RCEModel/csv_writer.py | Mihir-DG/Modelling-Planetary-Climate | 4699d55d6ccecc4938f9844dd658e9c40c6d07c2 | [
"MIT"
] | 1 | 2021-06-21T04:52:46.000Z | 2021-06-21T04:52:46.000Z | RCEModel/csv_writer.py | Mihir-DG/Modelling-Planetary-Climate | 4699d55d6ccecc4938f9844dd658e9c40c6d07c2 | [
"MIT"
] | null | null | null | RCEModel/csv_writer.py | Mihir-DG/Modelling-Planetary-Climate | 4699d55d6ccecc4938f9844dd658e9c40c6d07c2 | [
"MIT"
] | null | null | null | import csv
import numpy as np
def output_to_csv(timeTaken, olrs, bdry_tempDiff, netEn, surfT, lwFluxNet, lwFluxUp, lwFluxDown, heatRate, airTemperatureProf):
with open('output_runModel/weekly_results.csv', mode='w') as weeklyCSV:
weeklyWriter = csv.writer(weeklyCSV)
weeklyWriter.writerow(olrs)
weeklyWriter.writ... | 38.809524 | 127 | 0.804908 | 87 | 815 | 7.45977 | 0.436782 | 0.231125 | 0.043143 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001353 | 0.093252 | 815 | 21 | 128 | 38.809524 | 0.876861 | 0 | 0 | 0 | 0 | 0 | 0.082108 | 0.079657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f8d3be3180a64dcaf3c2c091b0e15037370701ec | 776 | py | Python | distancemap/distances.py | Cyril-Meyer/DistanceMap | 1eb06e47519800d49cdf5662932b29d78a2740e6 | [
"MIT"
] | null | null | null | distancemap/distances.py | Cyril-Meyer/DistanceMap | 1eb06e47519800d49cdf5662932b29d78a2740e6 | [
"MIT"
] | null | null | null | distancemap/distances.py | Cyril-Meyer/DistanceMap | 1eb06e47519800d49cdf5662932b29d78a2740e6 | [
"MIT"
] | null | null | null | import math
from numba import jit
@jit(nopython=True)
def manhattan_distance(p1, p2):
"""
Precondition: p1 and p2 are same length
:param p1: point 1 tuple coordinate
:param p2: point 2 tuple coordinate
:return: manhattan distance between two points p1 and p2
"""
distance = 0
for dim in... | 25.866667 | 60 | 0.652062 | 112 | 776 | 4.5 | 0.321429 | 0.039683 | 0.055556 | 0.071429 | 0.68254 | 0.68254 | 0.68254 | 0.68254 | 0.68254 | 0.68254 | 0 | 0.049743 | 0.248711 | 776 | 30 | 61 | 25.866667 | 0.814751 | 0.434278 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ef2b4d543cb7c16846d455c0d9d7531b06dd442 | 312 | py | Python | src/postClass.py | iamshnoo/TerminusBrowser | e88dc1319108f7d3b5a00f97c268eb036a13407c | [
"BSD-3-Clause"
] | 104 | 2019-08-14T14:25:22.000Z | 2022-03-21T01:46:52.000Z | src/postClass.py | iamshnoo/TerminusBrowser | e88dc1319108f7d3b5a00f97c268eb036a13407c | [
"BSD-3-Clause"
] | 53 | 2019-07-14T17:56:45.000Z | 2019-08-13T18:11:55.000Z | src/postClass.py | iamshnoo/TerminusBrowser | e88dc1319108f7d3b5a00f97c268eb036a13407c | [
"BSD-3-Clause"
] | 16 | 2019-08-14T14:14:45.000Z | 2022-01-30T17:02:30.000Z | class Post():
def __init__(self, userIden, content, timestamp, image=None, score='0', replies=None):
self.userIden = userIden
self.content = content
self.timestamp = timestamp
self.image = image
self.score = score
self.replies = [] if not replies else replies
| 34.666667 | 90 | 0.628205 | 36 | 312 | 5.333333 | 0.444444 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004405 | 0.272436 | 312 | 8 | 91 | 39 | 0.84141 | 0 | 0 | 0 | 0 | 0 | 0.003205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ef6808222c63389e6e12d5213c444262cbbfbd2 | 202 | py | Python | src/plotly_test/color_hide_colorbar.py | jiaweiM/PlotNotes | c62dd1884466fbc87eb2968163a8630dee7e41c1 | [
"MIT"
] | null | null | null | src/plotly_test/color_hide_colorbar.py | jiaweiM/PlotNotes | c62dd1884466fbc87eb2968163a8630dee7e41c1 | [
"MIT"
] | null | null | null | src/plotly_test/color_hide_colorbar.py | jiaweiM/PlotNotes | c62dd1884466fbc87eb2968163a8630dee7e41c1 | [
"MIT"
] | null | null | null | import plotly.express as px
df = px.data.tips()
fig = px.density_heatmap(df, x='total_bill', y='tip', title='No color bar on this density plot')
fig.update_layout(coloraxis_showscale=False)
fig.show()
| 28.857143 | 96 | 0.747525 | 35 | 202 | 4.2 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108911 | 202 | 6 | 97 | 33.666667 | 0.816667 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6efd5cb272b2af5af0f369b5b504e640135505e9 | 861 | py | Python | scripts/replay.py | gbmxdwmssj/path_planner | 53e1d743dc8f780b677a69ea232ee0b9aeacaf5f | [
"BSD-3-Clause"
] | null | null | null | scripts/replay.py | gbmxdwmssj/path_planner | 53e1d743dc8f780b677a69ea232ee0b9aeacaf5f | [
"BSD-3-Clause"
] | null | null | null | scripts/replay.py | gbmxdwmssj/path_planner | 53e1d743dc8f780b677a69ea232ee0b9aeacaf5f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import rospy
import math
import numpy as np
import scipy
from scipy import interpolate
from scipy.interpolate import CubicHermiteSpline
from nav_msgs.msg import Path
from hybrid_astar.srv import *
from std_msgs.msg import *
import pylab as pl
import numpy as np
import matplotlib.pyplot as plt
imp... | 23.916667 | 64 | 0.713124 | 130 | 861 | 4.661538 | 0.515385 | 0.059406 | 0.064356 | 0.049505 | 0.148515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008119 | 0.141696 | 861 | 35 | 65 | 24.6 | 0.811908 | 0.036005 | 0 | 0.214286 | 0 | 0 | 0.109903 | 0.073672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
3e043907406da9a775dba4ceda3a6ccd252b1278 | 3,418 | py | Python | script/testing/artifact_stats/__main__.py | pmenon/noisepage | 73d50cdfa2e15b5d45e61b51e34672d10a851e14 | [
"MIT"
] | 971 | 2020-09-13T10:24:02.000Z | 2022-03-31T07:02:51.000Z | script/testing/artifact_stats/__main__.py | pmenon/noisepage | 73d50cdfa2e15b5d45e61b51e34672d10a851e14 | [
"MIT"
] | 1,019 | 2018-07-20T23:11:10.000Z | 2020-09-10T06:41:42.000Z | script/testing/artifact_stats/__main__.py | pmenon/noisepage | 73d50cdfa2e15b5d45e61b51e34672d10a851e14 | [
"MIT"
] | 318 | 2018-07-23T16:48:16.000Z | 2020-09-07T09:46:31.000Z | #!/usr/bin/env python3
import argparse
import logging
import sys
from ..reporting.report_result import report_artifact_stats_result
from ..util.constants import LOG, PERFORMANCE_STORAGE_SERVICE_API
from .base_artifact_stats_collector import BaseArtifactStatsCollector
from .collectors import * # Import necessary for _... | 35.237113 | 106 | 0.620246 | 353 | 3,418 | 5.773371 | 0.373938 | 0.05103 | 0.049068 | 0.036801 | 0.035329 | 0.035329 | 0 | 0 | 0 | 0 | 0 | 0.00294 | 0.303394 | 3,418 | 96 | 107 | 35.604167 | 0.853003 | 0.175249 | 0 | 0.050847 | 0 | 0 | 0.147826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.050847 | 0.118644 | 0 | 0.152542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3e08694fb93e9f8c61ed56b14f3a5181487ff4be | 6,471 | py | Python | test/util_tests/context_utils_test_suite.py | FreNeS1/PyEngy-2d | 771112530ae039e8921369f700ba3b66c3df50c1 | [
"MIT"
] | 1 | 2020-07-09T12:42:30.000Z | 2020-07-09T12:42:30.000Z | test/util_tests/context_utils_test_suite.py | FreNeS1/PyEngy-2d | 771112530ae039e8921369f700ba3b66c3df50c1 | [
"MIT"
] | null | null | null | test/util_tests/context_utils_test_suite.py | FreNeS1/PyEngy-2d | 771112530ae039e8921369f700ba3b66c3df50c1 | [
"MIT"
] | null | null | null | """Contains the test suite for the context utils."""
import unittest
from typing import Dict, Any
from pyengy.error import PyEngyError
from pyengy.util.context_utils import Context
def get_test_data() -> Dict[str, Any]:
"""
Auxiliary method to return test data args.
:return: Test data.
"""
retu... | 33.528497 | 113 | 0.629115 | 802 | 6,471 | 4.850374 | 0.118454 | 0.063753 | 0.042416 | 0.053985 | 0.732648 | 0.711825 | 0.690488 | 0.65347 | 0.611825 | 0.599486 | 0 | 0.006292 | 0.263174 | 6,471 | 192 | 114 | 33.703125 | 0.809564 | 0.304744 | 0 | 0.373333 | 0 | 0 | 0.10961 | 0.020902 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.053333 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e0cf1754a9f983f332d2c93af568167bee904e6 | 7,462 | py | Python | src/ebay_rest/api/sell_compliance/api/listing_violation_summary_api.py | gbm001/ebay_rest | 077d3478423ccd80ff35e0361821d6a11180bc54 | [
"MIT"
] | 3 | 2021-12-12T04:28:03.000Z | 2022-03-10T03:29:18.000Z | src/ebay_rest/api/sell_compliance/api/listing_violation_summary_api.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 33 | 2021-06-16T20:44:36.000Z | 2022-03-30T14:55:06.000Z | src/ebay_rest/api/sell_compliance/api/listing_violation_summary_api.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 7 | 2021-06-03T09:30:23.000Z | 2022-03-08T19:51:33.000Z | # coding: utf-8
"""
Compliance API
Service for providing information to sellers about their listings being non-compliant, or at risk for becoming non-compliant, against eBay listing policies. # noqa: E501
OpenAPI spec version: 1.4.1
Generated by: https://github.com/swagger-api/swagger-codegen.g... | 57.844961 | 638 | 0.707585 | 1,001 | 7,462 | 5.110889 | 0.212787 | 0.049257 | 0.035184 | 0.047498 | 0.678655 | 0.668491 | 0.653831 | 0.629007 | 0.629007 | 0.629007 | 0 | 0.010622 | 0.230367 | 7,462 | 128 | 639 | 58.296875 | 0.880202 | 0.606406 | 0 | 0 | 0 | 0 | 0.183689 | 0.091283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.066667 | 0 | 0.183333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e1748801d033c928ab65215e90802f21b19f630 | 472 | py | Python | cupy/cuda/internal.py | umitanuki/chainer | 225c56b233e684ff4855451d2af4c2fb66915f21 | [
"MIT"
] | null | null | null | cupy/cuda/internal.py | umitanuki/chainer | 225c56b233e684ff4855451d2af4c2fb66915f21 | [
"MIT"
] | null | null | null | cupy/cuda/internal.py | umitanuki/chainer | 225c56b233e684ff4855451d2af4c2fb66915f21 | [
"MIT"
] | 1 | 2018-11-18T00:36:51.000Z | 2018-11-18T00:36:51.000Z | import ctypes
import sys
def load_library(name):
if 'linux' in sys.platform:
libname = 'lib%s.so' % name
module = ctypes.cdll
elif 'darwin' == sys.platform:
libname = 'lib%s.dylib' % name
module = ctypes.cdll
elif 'windows' == sys.platform:
libname = '%s.dll' % name... | 24.842105 | 69 | 0.608051 | 56 | 472 | 5.107143 | 0.517857 | 0.153846 | 0.188811 | 0.146853 | 0.321678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275424 | 472 | 18 | 70 | 26.222222 | 0.836257 | 0 | 0 | 0.133333 | 0 | 0 | 0.141949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e1c189f06d993ab122708e7a03e722b636444f7 | 650 | py | Python | utilities/utilities002.py | BeltranBot/google-python-exercises | 29b885a72f4aa2dbdf5fa832d96f00d0332f0d99 | [
"Apache-2.0"
] | null | null | null | utilities/utilities002.py | BeltranBot/google-python-exercises | 29b885a72f4aa2dbdf5fa832d96f00d0332f0d99 | [
"Apache-2.0"
] | null | null | null | utilities/utilities002.py | BeltranBot/google-python-exercises | 29b885a72f4aa2dbdf5fa832d96f00d0332f0d99 | [
"Apache-2.0"
] | null | null | null | ## Given a dir path, run an external 'le -l on it--
## shows how to call an external program
import subprocess
import sys
def listdir(dir):
cmd = 'ls -l ' + dir
print "Command to run:", cmd
# status = subprocess.call(cmd.split())
output = subprocess.check_output(cmd.split())
print output
# if ... | 23.214286 | 76 | 0.629231 | 95 | 650 | 4.210526 | 0.526316 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.255385 | 650 | 27 | 77 | 24.074074 | 0.818182 | 0.423077 | 0 | 0 | 0 | 0 | 0.107438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e217e7505aa4440620cb47760fc656c2a031cd4 | 5,156 | py | Python | src/hypexport/dal.py | karlicoss/hypexport | c92c6ee997291ba33cd03df56a94c0363a3aa5b3 | [
"MIT"
] | 21 | 2019-12-03T06:38:48.000Z | 2022-03-18T21:57:56.000Z | src/hypexport/dal.py | karlicoss/hypexport | c92c6ee997291ba33cd03df56a94c0363a3aa5b3 | [
"MIT"
] | 3 | 2020-03-23T00:59:21.000Z | 2022-03-05T12:08:53.000Z | src/hypexport/dal.py | karlicoss/hypexport | c92c6ee997291ba33cd03df56a94c0363a3aa5b3 | [
"MIT"
] | 2 | 2020-02-05T13:58:43.000Z | 2020-02-14T04:42:06.000Z | #!/usr/bin/env python3
from itertools import tee, groupby
from typing import NamedTuple, Optional, Sequence, Iterator, List
from pathlib import Path
import json
from datetime import datetime
from .exporthelpers import dal_helper
from .exporthelpers.dal_helper import PathIsh, Res, the, Json
Url = str
# TODO unstead... | 29.632184 | 143 | 0.589798 | 669 | 5,156 | 4.479821 | 0.321375 | 0.012012 | 0.006673 | 0.009343 | 0.108108 | 0.09009 | 0.09009 | 0.069403 | 0.052719 | 0.052719 | 0 | 0.00305 | 0.300621 | 5,156 | 173 | 144 | 29.803468 | 0.828064 | 0.140613 | 0 | 0.081301 | 0 | 0 | 0.053409 | 0.009773 | 0 | 0 | 0 | 0.011561 | 0.01626 | 1 | 0.089431 | false | 0 | 0.073171 | 0.02439 | 0.300813 | 0.04065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e26894bd456c5a06286eb5ebb067a26224d360e | 747 | py | Python | tests/tabular_tests/base_tests/strategies.py | lycantropos/hypothesis_sqlalchemy | 6c68a065802d5efdfa3d805d9e4a79199ab46ea3 | [
"MIT"
] | 21 | 2017-09-19T17:43:55.000Z | 2021-12-20T20:44:45.000Z | tests/tabular_tests/base_tests/strategies.py | lycantropos/hypothesis_sqlalchemy | 6c68a065802d5efdfa3d805d9e4a79199ab46ea3 | [
"MIT"
] | 31 | 2017-09-20T04:41:31.000Z | 2022-03-29T20:24:28.000Z | tests/tabular_tests/base_tests/strategies.py | lycantropos/hypothesis_sqlalchemy | 6c68a065802d5efdfa3d805d9e4a79199ab46ea3 | [
"MIT"
] | 5 | 2019-03-06T03:16:24.000Z | 2022-03-28T19:58:08.000Z | from typing import Tuple
from hypothesis import strategies
from sqlalchemy.engine import Dialect
from hypothesis_sqlalchemy.hints import Strategy
from hypothesis_sqlalchemy.utils import to_sql_identifiers
from tests.strategies import (data,
dialects,
max_siz... | 27.666667 | 78 | 0.69344 | 84 | 747 | 5.928571 | 0.357143 | 0.084337 | 0.10241 | 0.076305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253012 | 747 | 26 | 79 | 28.730769 | 0.892473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0.052632 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3e3284cac22e99b33e04ce44b67b080c893b20cb | 1,298 | py | Python | molecule/default/tests/test_default.py | Jakski/ansible-role-fail2ban | 837cf3c14f345c8b5f96e833400d0dcfdd628cde | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | Jakski/ansible-role-fail2ban | 837cf3c14f345c8b5f96e833400d0dcfdd628cde | [
"MIT"
] | null | null | null | molecule/default/tests/test_default.py | Jakski/ansible-role-fail2ban | 837cf3c14f345c8b5f96e833400d0dcfdd628cde | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_configuration_files(host):
assert not host.file('/etc/fail2ban/jail.d').exists
assert not host.file('/etc/fail2ban/action.d/du... | 34.157895 | 68 | 0.709553 | 173 | 1,298 | 5.225434 | 0.358382 | 0.089602 | 0.073009 | 0.126106 | 0.207965 | 0.098451 | 0 | 0 | 0 | 0 | 0 | 0.022381 | 0.139445 | 1,298 | 37 | 69 | 35.081081 | 0.786929 | 0 | 0 | 0 | 0 | 0 | 0.312018 | 0.161017 | 0 | 0 | 0 | 0 | 0.535714 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e37b5dd54552931f8102d0fc34a944394a21e09 | 1,254 | py | Python | AI_News/apps/app_news/migrations/0008_auto_20190121_1718.py | puxiaoshuai/News | fcfe09883e489777dfbcc7a882bf52aa195054f1 | [
"MIT"
] | null | null | null | AI_News/apps/app_news/migrations/0008_auto_20190121_1718.py | puxiaoshuai/News | fcfe09883e489777dfbcc7a882bf52aa195054f1 | [
"MIT"
] | 3 | 2019-01-15T09:34:49.000Z | 2021-06-10T21:07:06.000Z | AI_News/apps/app_news/migrations/0008_auto_20190121_1718.py | puxiaoshuai/News | fcfe09883e489777dfbcc7a882bf52aa195054f1 | [
"MIT"
] | 1 | 2019-01-15T09:35:31.000Z | 2019-01-15T09:35:31.000Z | # Generated by Django 2.1.5 on 2019-01-21 09:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app_news', '0007_auto_20190121_1626'),
]
operations = [
migrations.CreateM... | 33.891892 | 151 | 0.573365 | 126 | 1,254 | 5.52381 | 0.539683 | 0.045977 | 0.060345 | 0.094828 | 0.204023 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0 | 0.034989 | 0.293461 | 1,254 | 36 | 152 | 34.833333 | 0.750564 | 0.035885 | 0 | 0.066667 | 1 | 0 | 0.137531 | 0.019056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e383109eb6e71bfe99cecbb4d24b458fa932a20 | 6,758 | py | Python | sherry/view/prototype/prototype_activity_about.py | py-mu/sherry | af1e95f1eada663ba3b3fb607ca88f099f894f36 | [
"MIT"
] | 1 | 2021-06-27T05:54:23.000Z | 2021-06-27T05:54:23.000Z | sherry/view/prototype/prototype_activity_about.py | py-mu/sherry | af1e95f1eada663ba3b3fb607ca88f099f894f36 | [
"MIT"
] | null | null | null | sherry/view/prototype/prototype_activity_about.py | py-mu/sherry | af1e95f1eada663ba3b3fb607ca88f099f894f36 | [
"MIT"
] | 1 | 2021-07-28T09:00:43.000Z | 2021-07-28T09:00:43.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'prototype_activity_about.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 im... | 51.984615 | 115 | 0.689997 | 842 | 6,758 | 5.380048 | 0.165083 | 0.139073 | 0.06755 | 0.083444 | 0.360706 | 0.270419 | 0.059823 | 0.014128 | 0 | 0 | 0 | 0.044416 | 0.183782 | 6,758 | 129 | 116 | 52.387597 | 0.775018 | 0.042764 | 0 | 0 | 1 | 0 | 0.068101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017391 | false | 0 | 0.008696 | 0 | 0.034783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e44b7b7dbef3efbbb6ae76bbdec2fb8b4674735 | 2,409 | py | Python | make_backup.py | nurazur/PV_Monitor | c44a15c46cf155d42624c560d3f8b8564049c82a | [
"MIT"
] | null | null | null | make_backup.py | nurazur/PV_Monitor | c44a15c46cf155d42624c560d3f8b8564049c82a | [
"MIT"
] | null | null | null | make_backup.py | nurazur/PV_Monitor | c44a15c46cf155d42624c560d3f8b8564049c82a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#store error log on nas
# crontab job every monday morning at 00:01
import time, datetime
import os
import subprocess
import sys
def get_log_filename_of_the_week(verzeichnis, device=""):
th_week= datetime.date.today().isocalendar()[1]
th_year= datetime.date.today().isocalendar()[0]
... | 33.929577 | 84 | 0.62391 | 308 | 2,409 | 4.646104 | 0.285714 | 0.037736 | 0.048917 | 0.055905 | 0.429769 | 0.416492 | 0.410901 | 0.208246 | 0.208246 | 0.167016 | 0 | 0.021153 | 0.215027 | 2,409 | 70 | 85 | 34.414286 | 0.73559 | 0.063512 | 0 | 0.276596 | 0 | 0 | 0.100561 | 0.012161 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.085106 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e472cd3af4956686aabca059153f6a1681963bf | 785 | py | Python | GeeksforGeeks/Easy/Python/Average_Min_Max - Python.py | mohitkhedkar/Competitive-programming | 85d08791002363c6a1104b6b51bf049489fd5257 | [
"MIT"
] | 2 | 2020-10-22T15:37:14.000Z | 2020-12-11T06:45:02.000Z | GeeksforGeeks/Easy/Python/Average_Min_Max - Python.py | mohitkhedkar/Competitive-programming | 85d08791002363c6a1104b6b51bf049489fd5257 | [
"MIT"
] | null | null | null | GeeksforGeeks/Easy/Python/Average_Min_Max - Python.py | mohitkhedkar/Competitive-programming | 85d08791002363c6a1104b6b51bf049489fd5257 | [
"MIT"
] | null | null | null | #{
#Driver Code Starts
#Initial Template for Python 3
# } Driver Code Ends
#User function Template for python3
# Function to calculate average
def calc_average(nums):
# Your code here
mini = min(nums)
maxi = max(nums)
n = len(nums)
s = sum(nums)-mini-maxi
s = s//(n-2)
return s
#{ ... | 18.255814 | 39 | 0.55414 | 100 | 785 | 4.23 | 0.52 | 0.118203 | 0.07565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013283 | 0.328662 | 785 | 43 | 40 | 18.255814 | 0.789374 | 0.304459 | 0 | 0 | 0 | 0 | 0.014981 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.157895 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e4ad8f5f9f0ba9c8ef1b44175bf337795613fb6 | 1,499 | py | Python | src/marketplace/migrations/0035_auto_20180718_1729.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | 5 | 2018-08-28T19:31:51.000Z | 2021-04-15T22:14:34.000Z | src/marketplace/migrations/0035_auto_20180718_1729.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | 49 | 2018-07-26T01:03:23.000Z | 2022-02-10T10:46:27.000Z | src/marketplace/migrations/0035_auto_20180718_1729.py | abell5/marketplace | 474241801416e4699970f5684176e7351504b9c0 | [
"MIT"
] | 2 | 2020-08-04T11:01:59.000Z | 2020-08-13T19:04:16.000Z | # Generated by Django 2.0.6 on 2018-07-18 22:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('marketplace', '0034_volunteerapplication_reviewer'),
]
operations = [
migr... | 48.354839 | 283 | 0.713142 | 176 | 1,499 | 5.903409 | 0.357955 | 0.038499 | 0.053898 | 0.084697 | 0.571704 | 0.571704 | 0.571704 | 0.571704 | 0.571704 | 0.479307 | 0 | 0.015523 | 0.183456 | 1,499 | 30 | 284 | 49.966667 | 0.833333 | 0.03002 | 0 | 0.375 | 1 | 0 | 0.285124 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e4c563daf8cd93b2a03edd624518fba7f520845 | 1,633 | py | Python | tests/test_deta_query_list.py | rickh94/ODetaM | 3096f850ef9a543d1d39aa98ab40be6568134261 | [
"MIT"
] | 16 | 2020-12-21T17:05:57.000Z | 2022-03-22T02:00:45.000Z | tests/test_deta_query_list.py | rickh94/ODetaM | 3096f850ef9a543d1d39aa98ab40be6568134261 | [
"MIT"
] | 3 | 2021-05-23T22:24:41.000Z | 2021-09-08T05:08:36.000Z | tests/test_deta_query_list.py | rickh94/ODetaM | 3096f850ef9a543d1d39aa98ab40be6568134261 | [
"MIT"
] | 1 | 2021-08-04T07:02:50.000Z | 2021-08-04T07:02:50.000Z | from unittest import mock
from odetam.query import DetaQueryList, DetaQueryStatement
def test_or(query_one, query_two, query_three, query_four):
dql1 = DetaQueryList(conditions=[query_one, query_two])
dql2 = DetaQueryList(conditions=[query_three, query_four])
dql3 = dql1 | dql2
assert isinstance(dq... | 30.811321 | 80 | 0.757502 | 225 | 1,633 | 5.204444 | 0.137778 | 0.109308 | 0.111016 | 0.136635 | 0.77199 | 0.514091 | 0.41076 | 0.41076 | 0.367208 | 0.367208 | 0 | 0.017557 | 0.16289 | 1,633 | 52 | 81 | 31.403846 | 0.839064 | 0 | 0 | 0.257143 | 0 | 0 | 0.022045 | 0 | 0 | 0 | 0 | 0 | 0.457143 | 1 | 0.114286 | false | 0 | 0.057143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e5019cabf136a3ab9ed29b274204e6a9d56f5f5 | 1,669 | py | Python | verres/utils/profiling.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | verres/utils/profiling.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | verres/utils/profiling.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | import time
from collections import defaultdict
from typing import List, Dict
import numpy as np
def timed(callback, *args, **kwargs):
start = time.time()
result = callback(*args, **kwargs)
return result, time.time() - start
class Timer:
def __init__(self):
self.start = 0.
self.res... | 24.544118 | 113 | 0.609946 | 201 | 1,669 | 4.810945 | 0.298507 | 0.094105 | 0.159255 | 0.080662 | 0.346432 | 0.283351 | 0.088935 | 0.088935 | 0.088935 | 0.088935 | 0 | 0.005025 | 0.284602 | 1,669 | 67 | 114 | 24.910448 | 0.804858 | 0.010186 | 0 | 0.382979 | 0 | 0 | 0.015971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.085106 | 0.021277 | 0.489362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e51c7dc18b9b2e11a1a9673beeb1a2e7e26d0a6 | 10,084 | py | Python | _build/jupyter_execute/Lecture2/Lecture2.py | Astro-330/Astro-330.github.io | e7ba5d1db0f369a110419e939d9ed2d29c9d7020 | [
"MIT"
] | 4 | 2021-08-28T23:26:14.000Z | 2022-03-27T14:35:17.000Z | _build/jupyter_execute/Lecture2/Lecture2.py | mgebran/Astro-330.github.io | e7ba5d1db0f369a110419e939d9ed2d29c9d7020 | [
"MIT"
] | null | null | null | _build/jupyter_execute/Lecture2/Lecture2.py | mgebran/Astro-330.github.io | e7ba5d1db0f369a110419e939d9ed2d29c9d7020 | [
"MIT"
] | 2 | 2021-12-18T00:53:51.000Z | 2022-03-21T14:53:12.000Z | #!/usr/bin/env python
# coding: utf-8
# # 2. Object Oriented Programming
# In this lecture, we'll go over the basics of writing object oriented code. Because this is a large shift in programming syntax (and thinking), we'll be spending several lectures building up intuition for it.
# ## Part I: Methods and Attribu... | 43.27897 | 473 | 0.724217 | 1,691 | 10,084 | 4.28149 | 0.313424 | 0.013122 | 0.007597 | 0.005525 | 0.074171 | 0.064779 | 0.055249 | 0.055249 | 0.053177 | 0.044751 | 0 | 0.008237 | 0.193376 | 10,084 | 232 | 474 | 43.465517 | 0.881854 | 0.869199 | 0 | 0.538462 | 0 | 0 | 0.004992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0.025641 | 0.051282 | 0 | 0.410256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e5571d4b68bc0b707f0b1fe19d8b2620c704bbd | 12,595 | py | Python | debexpo/controllers/my.py | jadonk/debexpo | a022160492e40cd02bafc413a3cb009551fd6f8d | [
"MIT"
] | null | null | null | debexpo/controllers/my.py | jadonk/debexpo | a022160492e40cd02bafc413a3cb009551fd6f8d | [
"MIT"
] | null | null | null | debexpo/controllers/my.py | jadonk/debexpo | a022160492e40cd02bafc413a3cb009551fd6f8d | [
"MIT"
] | 2 | 2017-01-20T23:08:40.000Z | 2019-08-13T20:30:00.000Z | # -*- coding: utf-8 -*-
#
# my.py — My Controller
#
# This file is part of debexpo - https://alioth.debian.org/projects/debexpo/
#
# Copyright © 2008 Jonny Lamb <jonny@debian.org>
# Copyright © 2010 Jan Dittberner <jandd@debian.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining... | 36.507246 | 129 | 0.624851 | 1,520 | 12,595 | 5.064474 | 0.246711 | 0.032216 | 0.036373 | 0.012471 | 0.226163 | 0.17576 | 0.104962 | 0.062873 | 0.045726 | 0.018966 | 0 | 0.003071 | 0.276062 | 12,595 | 344 | 130 | 36.613372 | 0.840645 | 0.157761 | 0 | 0.148718 | 0 | 0 | 0.153902 | 0.014283 | 0 | 0 | 0 | 0.002907 | 0 | 0 | null | null | 0.041026 | 0.071795 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e687064b9bd7f9836ff474f17f6de2767ce3b2c | 562 | py | Python | applications/contacts/models/db_contacts.py | sanuptpm/web2py | 598e3aae391b092f1ab8873c55b937cb7607faf9 | [
"BSD-3-Clause"
] | null | null | null | applications/contacts/models/db_contacts.py | sanuptpm/web2py | 598e3aae391b092f1ab8873c55b937cb7607faf9 | [
"BSD-3-Clause"
] | null | null | null | applications/contacts/models/db_contacts.py | sanuptpm/web2py | 598e3aae391b092f1ab8873c55b937cb7607faf9 | [
"BSD-3-Clause"
] | null | null | null | # in file: models/db_custom.py
db.define_table('company', Field('name', notnull = True, unique = True), format = '%(name)s')
db.define_table(
'contact',
Field('name', notnull = True),
Field('company', 'reference company'),
Field('picture', 'upload'),
Field('email', requires = IS_EMAIL()),
Field('phone... | 29.578947 | 93 | 0.617438 | 68 | 562 | 4.985294 | 0.5 | 0.070796 | 0.115044 | 0.117994 | 0.141593 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158363 | 562 | 19 | 94 | 29.578947 | 0.716702 | 0.049822 | 0 | 0.117647 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e6b6193f5487b9703b58e8a00fae1e52ebf1831 | 2,723 | py | Python | rexify/pipeline/scann/executor.py | joseprsm/rexify | 30790d28e04ec61923fe70e0f6034a98f8aec199 | [
"MIT"
] | 5 | 2021-12-21T05:28:19.000Z | 2022-03-25T22:47:48.000Z | rexify/pipeline/scann/executor.py | joseprsm/rexify | 30790d28e04ec61923fe70e0f6034a98f8aec199 | [
"MIT"
] | null | null | null | rexify/pipeline/scann/executor.py | joseprsm/rexify | 30790d28e04ec61923fe70e0f6034a98f8aec199 | [
"MIT"
] | null | null | null | from typing import Dict, Text, List, Any, Optional, Union, Tuple
import numpy as np
import tensorflow as tf
import tensorflow_recommenders as tfrs
from tfx import types
from tfx.dsl.components.base import base_executor
from tfx.proto.orchestration import execution_result_pb2
from rexify import utils
from rexify.mode... | 32.807229 | 80 | 0.639001 | 294 | 2,723 | 5.710884 | 0.370748 | 0.065515 | 0.038118 | 0.021441 | 0.088148 | 0.034544 | 0 | 0 | 0 | 0 | 0 | 0.004489 | 0.26368 | 2,723 | 82 | 81 | 33.207317 | 0.832918 | 0.047007 | 0 | 0 | 0 | 0 | 0.030186 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.044776 | false | 0 | 0.134328 | 0 | 0.223881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e738ba1a2f8e9b981b04d6b91717826a659631f | 4,383 | py | Python | mdpub.py | tentonlien/mdbook-publisher | c3275f9ca1e4d04f67bc401e72630862566e7a38 | [
"MIT"
] | null | null | null | mdpub.py | tentonlien/mdbook-publisher | c3275f9ca1e4d04f67bc401e72630862566e7a38 | [
"MIT"
] | null | null | null | mdpub.py | tentonlien/mdbook-publisher | c3275f9ca1e4d04f67bc401e72630862566e7a38 | [
"MIT"
] | null | null | null | # mdbook-publisher
# Author: Tenton Lien
# Date: 1/4/2021
import json
import os
import sys
# Global config
config = {}
def generate(name, path):
with open(path, 'r', encoding='utf-8') as f:
summary_text = '# Summary\n\n'
item_array = f.read().split('\n- ')
print(str(len(item_array) - 1) +... | 33.976744 | 185 | 0.503993 | 493 | 4,383 | 4.350913 | 0.255578 | 0.051282 | 0.035897 | 0.026107 | 0.151049 | 0.088578 | 0.027972 | 0.027972 | 0.027972 | 0 | 0 | 0.011067 | 0.36094 | 4,383 | 128 | 186 | 34.242188 | 0.75473 | 0.054529 | 0 | 0.089888 | 1 | 0 | 0.229187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033708 | false | 0.011236 | 0.033708 | 0 | 0.067416 | 0.191011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e786c6d249276060c4eab576fb5d71abedde0be | 990 | py | Python | src/piony/migrations/0002_auto_20190316_2143.py | mpasternak/dyzurmajster3 | 0861ad512280458bc7158c8295c480b28efdf570 | [
"MIT"
] | null | null | null | src/piony/migrations/0002_auto_20190316_2143.py | mpasternak/dyzurmajster3 | 0861ad512280458bc7158c8295c480b28efdf570 | [
"MIT"
] | 24 | 2019-04-10T01:18:28.000Z | 2021-06-10T18:01:14.000Z | src/piony/migrations/0002_auto_20190316_2143.py | mpasternak/dyzurmajster3 | 0861ad512280458bc7158c8295c480b28efdf570 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-16 20:43
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('piony', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='PrzerwaWPra... | 31.935484 | 123 | 0.590909 | 100 | 990 | 5.78 | 0.67 | 0.041522 | 0.048443 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055402 | 0.270707 | 990 | 30 | 124 | 33 | 0.745152 | 0.045455 | 0 | 0.083333 | 1 | 0 | 0.128314 | 0.038176 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e7f5778c70458674797c2d2f410922ce8538d61 | 1,822 | py | Python | digitalpaper/models.py | liberation/django-digitalpaper | 222c7733f2f1fb468129ffa034ec8920df4da701 | [
"WTFPL"
] | 4 | 2015-09-28T10:08:02.000Z | 2018-06-21T07:52:54.000Z | digitalpaper/models.py | liberation/django-digitalpaper | 222c7733f2f1fb468129ffa034ec8920df4da701 | [
"WTFPL"
] | null | null | null | digitalpaper/models.py | liberation/django-digitalpaper | 222c7733f2f1fb468129ffa034ec8920df4da701 | [
"WTFPL"
] | 1 | 2020-03-12T16:32:33.000Z | 2020-03-12T16:32:33.000Z | # -*- coding: utf-8 -*-
from django.conf import settings
from django.db import models
class AbstractDigitalPaperPage(models.Model):
class Meta:
abstract = True
get_latest_by = ('id')
def get_preview_absolute_url(self, size='x148'):
"""
Return the url corresponding to the previ... | 28.920635 | 82 | 0.630077 | 217 | 1,822 | 5.138249 | 0.308756 | 0.026906 | 0.050224 | 0.060987 | 0.6 | 0.567713 | 0.497758 | 0.497758 | 0.442152 | 0.442152 | 0 | 0.013761 | 0.282108 | 1,822 | 62 | 83 | 29.387097 | 0.838685 | 0.271131 | 0 | 0.580645 | 0 | 0 | 0.149153 | 0.117797 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.096774 | 0.064516 | 0 | 0.483871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3e82f243b6839a1efbde237ec3c4cfec1d19773b | 6,014 | py | Python | numerblox/model_pipeline.py | mickeybeurskens/numerblox | 0e4b887efcd9e6b84309b6ac5fb1d0de327e810e | [
"Apache-2.0"
] | 30 | 2022-03-17T03:23:20.000Z | 2022-03-30T15:20:19.000Z | numerblox/model_pipeline.py | mickeybeurskens/numerblox | 0e4b887efcd9e6b84309b6ac5fb1d0de327e810e | [
"Apache-2.0"
] | 8 | 2022-03-18T10:31:44.000Z | 2022-03-31T15:43:46.000Z | numerblox/model_pipeline.py | mickeybeurskens/numerblox | 0e4b887efcd9e6b84309b6ac5fb1d0de327e810e | [
"Apache-2.0"
] | 5 | 2022-03-18T10:24:38.000Z | 2022-03-30T14:40:08.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/06_modelpipeline.ipynb (unless otherwise specified).
__all__ = ['ModelPipeline', 'ModelPipelineCollection']
# Cell
import uuid
import pandas as pd
from tqdm.auto import tqdm
from typeguard import typechecked
from typing import List, Union, Dict
from rich import print as... | 49.702479 | 171 | 0.680412 | 637 | 6,014 | 6.257457 | 0.252747 | 0.051179 | 0.028098 | 0.032112 | 0.200201 | 0.12293 | 0.12293 | 0.076769 | 0.064476 | 0 | 0 | 0.001295 | 0.229631 | 6,014 | 121 | 172 | 49.702479 | 0.859055 | 0.193216 | 0 | 0.111111 | 1 | 0.024691 | 0.171796 | 0.054806 | 0 | 0 | 0 | 0 | 0.012346 | 1 | 0.135802 | false | 0 | 0.123457 | 0.024691 | 0.395062 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e856cbf5188f74cd5685865277b27160a0efb75 | 7,570 | py | Python | server/swagger_server/models/housing.py | SocialFinanceDigitalLabs/family-context-api | 22631e33834ba2db5426e48c2cf1c0a6a6af6df8 | [
"MIT"
] | 3 | 2020-01-28T11:31:09.000Z | 2020-01-31T11:18:42.000Z | server/swagger_server/models/housing.py | SocialFinanceDigitalLabs/family-context-api | 22631e33834ba2db5426e48c2cf1c0a6a6af6df8 | [
"MIT"
] | 8 | 2020-01-06T17:41:39.000Z | 2020-01-09T16:57:07.000Z | Reference App/API/server/swagger_server/models/housing.py | CSCDP/Family-Context-PrivateBeta | 9279e60ec59e733c7b8932a2eb3a2229cb09e3ca | [
"MIT-0"
] | 4 | 2020-03-31T15:41:47.000Z | 2022-01-23T16:31:02.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server.models.contact import Contact # noqa: F401,E501
import re # noqa: F401,E501
from swagger_serve... | 30.647773 | 262 | 0.655746 | 851 | 7,570 | 5.586369 | 0.099882 | 0.051746 | 0.112116 | 0.032183 | 0.563525 | 0.394615 | 0.305006 | 0.137989 | 0.137989 | 0.053008 | 0 | 0.008845 | 0.268164 | 7,570 | 246 | 263 | 30.772358 | 0.849278 | 0.408587 | 0 | 0.272727 | 0 | 0 | 0.097915 | 0.030351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.079545 | 0 | 0.397727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e88c5b752cd089c9caa6e549105ae13a96306b4 | 1,309 | py | Python | aiida/cmdline/commands/__init__.py | frssp/aiida-core | e0fb53bb94af72c063397e0c7c796b2f7f191db6 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | aiida/cmdline/commands/__init__.py | frssp/aiida-core | e0fb53bb94af72c063397e0c7c796b2f7f191db6 | [
"MIT",
"BSD-3-Clause"
] | 6 | 2019-12-17T16:01:25.000Z | 2020-12-11T10:37:12.000Z | aiida/cmdline/commands/__init__.py | frssp/aiida-core | e0fb53bb94af72c063397e0c7c796b2f7f191db6 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 31.166667 | 85 | 0.544691 | 139 | 1,309 | 4.94964 | 0.611511 | 0.065407 | 0.061047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001048 | 0.271199 | 1,309 | 41 | 86 | 31.926829 | 0.720126 | 0.520244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e8b354b14869c25775c2ba4c2fb54a405e5e3fc | 1,156 | py | Python | automationcommon/middleware.py | uisautomation/django-automationcommon | 75c6b0de5e3471a96cb884f4857e791895983c4a | [
"MIT"
] | null | null | null | automationcommon/middleware.py | uisautomation/django-automationcommon | 75c6b0de5e3471a96cb884f4857e791895983c4a | [
"MIT"
] | 9 | 2018-01-22T21:33:50.000Z | 2019-01-08T14:31:22.000Z | automationcommon/middleware.py | uisautomation/django-automationcommon | 75c6b0de5e3471a96cb884f4857e791895983c4a | [
"MIT"
] | 1 | 2018-01-23T11:47:20.000Z | 2018-01-23T11:47:20.000Z | from automationcommon.models import clear_local_user, set_local_user
class RequestUserMiddleware(object):
"""
Middleware that simply set's the request.user to be used for the audit trail.
"""
def __init__(self, get_response=None):
self.get_response = get_response
def __call__(self, reques... | 31.243243 | 81 | 0.67301 | 145 | 1,156 | 5.137931 | 0.406897 | 0.088591 | 0.080537 | 0.077852 | 0.193289 | 0.193289 | 0.193289 | 0.193289 | 0.193289 | 0.193289 | 0 | 0 | 0.257785 | 1,156 | 36 | 82 | 32.111111 | 0.868298 | 0.286332 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.263158 | false | 0 | 0.052632 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e8baedfc38111c79867ab5fd9fe5bd79d835423 | 2,242 | py | Python | authors/apps/articles/views/bookmark.py | andela/ah-the-unsullied | 7821c96f16880fb5c3cbd2d51fbd43669c2ee7fd | [
"BSD-3-Clause"
] | 7 | 2019-01-15T16:11:27.000Z | 2019-02-26T19:56:29.000Z | authors/apps/articles/views/bookmark.py | andela/ah-the-unsullied | 7821c96f16880fb5c3cbd2d51fbd43669c2ee7fd | [
"BSD-3-Clause"
] | 14 | 2019-01-07T17:00:00.000Z | 2019-02-05T09:58:02.000Z | authors/apps/articles/views/bookmark.py | andela/ah-the-unsullied | 7821c96f16880fb5c3cbd2d51fbd43669c2ee7fd | [
"BSD-3-Clause"
] | 2 | 2019-02-24T05:50:28.000Z | 2019-09-17T10:28:15.000Z | # local imports
from rest_framework import status
from rest_framework.generics import (RetrieveUpdateDestroyAPIView)
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from authors.apps.articles.models import Article, BookmarkArti... | 40.763636 | 76 | 0.711418 | 242 | 2,242 | 6.396694 | 0.31405 | 0.031008 | 0.05491 | 0.043928 | 0.338501 | 0.305556 | 0.280362 | 0.192506 | 0.140827 | 0.098191 | 0 | 0.008441 | 0.207404 | 2,242 | 54 | 77 | 41.518519 | 0.86269 | 0.054416 | 0 | 0.153846 | 0 | 0 | 0.037825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.205128 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
3e8d1ce579393bdd6dc578d73a3d272e38b96436 | 3,767 | py | Python | pock/verification.py | atbentley/pock | d7cefee40dd967707948d7253857629767f2599b | [
"MIT"
] | 1 | 2017-10-13T15:05:50.000Z | 2017-10-13T15:05:50.000Z | pock/verification.py | atbentley/pock | d7cefee40dd967707948d7253857629767f2599b | [
"MIT"
] | null | null | null | pock/verification.py | atbentley/pock | d7cefee40dd967707948d7253857629767f2599b | [
"MIT"
] | null | null | null | from .matchers import MatchCriteria
class VerificationError(Exception):
pass
class VerificationBuilder(object):
def __init__(self, mock, test, msg):
self.mock = mock
self.test = test
self.msg = msg
self.name = None
def passes_test(self, results):
return not self.... | 40.505376 | 111 | 0.646934 | 430 | 3,767 | 5.367442 | 0.183721 | 0.038128 | 0.028596 | 0.046794 | 0.392114 | 0.340555 | 0.249567 | 0.249567 | 0.249567 | 0.220971 | 0 | 0.002467 | 0.246881 | 3,767 | 92 | 112 | 40.945652 | 0.811068 | 0 | 0 | 0.272727 | 0 | 0 | 0.040616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.064935 | 0.012987 | 0.025974 | 0.350649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e40d7c6f36b4aa2af1e9fd11aeddceea5318c837 | 1,309 | py | Python | logger.py | VolVox99/OpenCourseAPI | edfe51c8ee050ad0bf99c03f5ed421ce247cc01f | [
"MIT"
] | 9 | 2020-10-02T00:10:46.000Z | 2022-01-06T00:48:59.000Z | logger.py | VolVox99/OpenCourseAPI | edfe51c8ee050ad0bf99c03f5ed421ce247cc01f | [
"MIT"
] | 8 | 2020-09-06T22:13:36.000Z | 2020-12-15T20:37:17.000Z | logger.py | VolVox99/OpenCourseAPI | edfe51c8ee050ad0bf99c03f5ed421ce247cc01f | [
"MIT"
] | 4 | 2020-09-08T02:26:56.000Z | 2022-03-11T20:43:55.000Z | import click
def log(tag, color, message, details=None, pad=True, start='', end='\n'):
'''
Log a message to stdout
:param tag: (str) The tag, ex. `info` or `warn`
:param color: (str) The color for the tag (passed to colorama)
:param message: (str) The log message string
:param details: (dict)... | 25.666667 | 86 | 0.576776 | 178 | 1,309 | 4.196629 | 0.38764 | 0.107095 | 0.069612 | 0.064257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246753 | 1,309 | 50 | 87 | 26.18 | 0.757606 | 0.325439 | 0 | 0 | 0 | 0 | 0.096569 | 0.027954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.352941 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e41ddb904e1bf85b00b0dd6c8f0b3b172b049b37 | 1,156 | py | Python | app/serializers.py | sukgu/aut-reports | 8145f59bce23cb7fef73143e46a75278af74d4aa | [
"Apache-2.0"
] | 6 | 2019-03-11T05:14:32.000Z | 2020-10-12T13:56:56.000Z | app/serializers.py | sukgu/aut-reports | 8145f59bce23cb7fef73143e46a75278af74d4aa | [
"Apache-2.0"
] | 3 | 2020-02-11T23:52:59.000Z | 2021-06-10T21:15:22.000Z | app/serializers.py | sukgu/aut-reports | 8145f59bce23cb7fef73143e46a75278af74d4aa | [
"Apache-2.0"
] | null | null | null | '''
Created on 03-Mar-2019
@author: sushil
'''
from rest_framework import serializers
from app.models import RestTestRunModel
class TestRunSerializer(serializers.ModelSerializer):
version = serializers.CharField(max_length=100)
title = serializers.CharField(max_length=300)
json = serializers.JSONFie... | 27.52381 | 125 | 0.58218 | 111 | 1,156 | 6 | 0.495496 | 0.04955 | 0.13964 | 0.087087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015345 | 0.323529 | 1,156 | 42 | 126 | 27.52381 | 0.836317 | 0.033737 | 0 | 0.074074 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.074074 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e4200710f787009531502dc8034f1372dd5e77b5 | 1,492 | py | Python | Mesos/utils/python_compatibility_utils.py | alinbalutoiu/mesos-jenkins | 4d3c9674b9947ef274c2bf6f8d3276203fbe134e | [
"Apache-2.0"
] | null | null | null | Mesos/utils/python_compatibility_utils.py | alinbalutoiu/mesos-jenkins | 4d3c9674b9947ef274c2bf6f8d3276203fbe134e | [
"Apache-2.0"
] | null | null | null | Mesos/utils/python_compatibility_utils.py | alinbalutoiu/mesos-jenkins | 4d3c9674b9947ef274c2bf6f8d3276203fbe134e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | 36.390244 | 77 | 0.72319 | 224 | 1,492 | 4.803571 | 0.526786 | 0.055762 | 0.024164 | 0.02974 | 0.040892 | 0.040892 | 0 | 0 | 0 | 0 | 0 | 0.011083 | 0.213807 | 1,492 | 40 | 78 | 37.3 | 0.906223 | 0.717828 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e420c7d379d04c5652b515e7d7afeea3fffd8826 | 3,019 | py | Python | LibMS/Home/models.py | Suharda-Silva/BADWeb-LibMS | bbddccda5c0260712318449919b248b2e0589b55 | [
"MIT"
] | null | null | null | LibMS/Home/models.py | Suharda-Silva/BADWeb-LibMS | bbddccda5c0260712318449919b248b2e0589b55 | [
"MIT"
] | null | null | null | LibMS/Home/models.py | Suharda-Silva/BADWeb-LibMS | bbddccda5c0260712318449919b248b2e0589b55 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
import datetime
# Create your models here.
YEAR = [(y,y) for y in range(datetime.date.today().year+1, 1500, -1)]
class Books (models.Model):
id = models.AutoField(primary_key=True)
title = models.CharField(max_length=128)
picture = ... | 45.059701 | 97 | 0.368003 | 212 | 3,019 | 5.117925 | 0.556604 | 0.04977 | 0.082949 | 0.110599 | 0.077419 | 0.077419 | 0.077419 | 0.077419 | 0 | 0 | 0 | 0.012388 | 0.518715 | 3,019 | 67 | 98 | 45.059701 | 0.734343 | 0.00795 | 0 | 0.140351 | 0 | 0 | 0.094188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.052632 | 0.035088 | 0.45614 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e42d5666a8fb6722e394a29c2a8de518ed2a7948 | 22,670 | py | Python | src/main/resources/project/wsadmin_scripts/preamble.py | electric-cloud/EC-WebSphere | 72930f119910190f8fc70acbb401319ca0eb0c19 | [
"Apache-2.0"
] | null | null | null | src/main/resources/project/wsadmin_scripts/preamble.py | electric-cloud/EC-WebSphere | 72930f119910190f8fc70acbb401319ca0eb0c19 | [
"Apache-2.0"
] | 12 | 2016-09-23T04:42:55.000Z | 2021-04-09T09:59:29.000Z | src/main/resources/project/wsadmin_scripts/preamble.py | electric-cloud/EC-WebSphere | 72930f119910190f8fc70acbb401319ca0eb0c19 | [
"Apache-2.0"
] | 2 | 2016-06-13T07:24:12.000Z | 2018-05-08T12:49:33.000Z | #
# Copyright 2015 Electric Cloud, 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 agree... | 33.240469 | 142 | 0.657036 | 2,252 | 22,670 | 6.574156 | 0.198046 | 0.017021 | 0.013779 | 0.011145 | 0.216008 | 0.200068 | 0.158528 | 0.154813 | 0.146505 | 0.103681 | 0 | 0.007505 | 0.230084 | 22,670 | 681 | 143 | 33.28928 | 0.840724 | 0.078871 | 0 | 0.285455 | 0 | 0.003636 | 0.172394 | 0.021405 | 0 | 0 | 0 | 0.001468 | 0 | 0 | null | null | 0 | 0.012727 | null | null | 0.052727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e43a64fcc22014f8d884419f8d6c26fd2d2bfd2b | 7,407 | py | Python | bicycleparking/views.py | CityofEdmonton/bikespace | fc67ba2d4472fdd6439e1b4145fc16692f9a893b | [
"MIT"
] | 3 | 2019-03-22T16:42:42.000Z | 2019-03-27T02:57:16.000Z | bicycleparking/views.py | CityofEdmonton/bikespace | fc67ba2d4472fdd6439e1b4145fc16692f9a893b | [
"MIT"
] | 10 | 2019-03-14T15:20:37.000Z | 2019-04-17T22:02:33.000Z | bicycleparking/views.py | CityofEdmonton/bikespace | fc67ba2d4472fdd6439e1b4145fc16692f9a893b | [
"MIT"
] | 1 | 2019-03-25T15:05:55.000Z | 2019-03-25T15:05:55.000Z | # MIT License
# Copyright 2017,Code 4 Canada
# written by and for the bicycle parking project, a joint project of
# Civic Tech Toronto, Cycle Toronto, Code 4 Canada, and the
# City of Toronto
#
# Modified 2017 10 28
# Purpose add geocode to view
#
# Modified 2018 02 27
# Purpose added code to write to separate picture ... | 36.308824 | 102 | 0.692723 | 885 | 7,407 | 5.751412 | 0.333333 | 0.042436 | 0.020039 | 0.02947 | 0.163654 | 0.139293 | 0.139293 | 0.126523 | 0.115128 | 0.115128 | 0 | 0.011607 | 0.232348 | 7,407 | 204 | 103 | 36.308824 | 0.883574 | 0.331578 | 0 | 0.209091 | 0 | 0 | 0.067771 | 0.011685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.245455 | 0.009091 | 0.554545 | 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 | 1 | 0 | 0 | 1 |
e4428396c80f74cbdf744cec319b0f32f0efb32f | 327 | py | Python | factorial.py | facmartoni/python_exercises | 7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2 | [
"Apache-2.0"
] | null | null | null | factorial.py | facmartoni/python_exercises | 7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2 | [
"Apache-2.0"
] | null | null | null | factorial.py | facmartoni/python_exercises | 7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2 | [
"Apache-2.0"
] | 1 | 2021-10-11T00:25:14.000Z | 2021-10-11T00:25:14.000Z |
def factorial(number):
if(number == 0):
return 1
return number * factorial(number - 1)
def run():
number = int(input('\nIngresa un número para saber su factorial: '))
result = factorial(number)
print('\nEl factorial de {} es: {} \n'.format(number, result))
if __name__ == '__main__':
... | 20.4375 | 72 | 0.611621 | 41 | 327 | 4.682927 | 0.609756 | 0.234375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.238532 | 327 | 15 | 73 | 21.8 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.254601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e446a5d58de12f10a5b395ff36bd1cafa0c06c9b | 606 | py | Python | Profile/urls.py | Carlos-Caballero/cs01 | ced6aef7fae8a533851af18e6de545bb83fd427b | [
"MIT"
] | null | null | null | Profile/urls.py | Carlos-Caballero/cs01 | ced6aef7fae8a533851af18e6de545bb83fd427b | [
"MIT"
] | 11 | 2021-03-19T08:07:49.000Z | 2022-03-12T00:13:51.000Z | Profile/urls.py | Carlos-Daniel260/cs01 | ced6aef7fae8a533851af18e6de545bb83fd427b | [
"MIT"
] | null | null | null | from django.urls import path, re_path
from django.conf.urls import include
from django.contrib.auth.models import User
# from rest_framework import routers, serilizers, viewsets
from Profile import views
urlpatterns = [
re_path(r'Profile_Lista/$', views.ExampleList2.as_view()),
re_path(r'Ciudad_Lista/$', views... | 40.4 | 70 | 0.754125 | 86 | 606 | 5.081395 | 0.406977 | 0.09611 | 0.09611 | 0.1373 | 0.148741 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011091 | 0.107261 | 606 | 14 | 71 | 43.285714 | 0.796673 | 0.092409 | 0 | 0 | 0 | 0 | 0.169708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e447763bcfbd94d8da5e6ff4ee0c304694aa6d33 | 818 | py | Python | swagger_server/test/test_class_attribute_controller.py | pablokvitca/cs3200-project-backend | aec890bb4fb2b532cb8099016ebbec7b273bb266 | [
"MIT"
] | null | null | null | swagger_server/test/test_class_attribute_controller.py | pablokvitca/cs3200-project-backend | aec890bb4fb2b532cb8099016ebbec7b273bb266 | [
"MIT"
] | null | null | null | swagger_server/test/test_class_attribute_controller.py | pablokvitca/cs3200-project-backend | aec890bb4fb2b532cb8099016ebbec7b273bb266 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from flask import json
from six import BytesIO
from swagger_server.test import BaseTestCase
class TestClassAttributeController(BaseTestCase):
"""ClassAttributeController integration test stubs"""
def test_get_class_attributes(self):
"""Test ca... | 28.206897 | 168 | 0.696822 | 92 | 818 | 5.913043 | 0.576087 | 0.082721 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018547 | 0.209046 | 818 | 28 | 169 | 29.214286 | 0.822257 | 0.165037 | 0 | 0 | 0 | 0 | 0.215267 | 0.161832 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
e4524b56627ac84f8294c8430a4ec9a2e107c076 | 6,679 | py | Python | check_schedule.py | serhei/course-scheduler | d77b1747daeb54756bfc37c82b0c18cb359c35f1 | [
"MIT"
] | 3 | 2017-10-26T16:32:40.000Z | 2021-07-04T06:17:30.000Z | check_schedule.py | serhei/course-scheduler | d77b1747daeb54756bfc37c82b0c18cb359c35f1 | [
"MIT"
] | null | null | null | check_schedule.py | serhei/course-scheduler | d77b1747daeb54756bfc37c82b0c18cb359c35f1 | [
"MIT"
] | 1 | 2021-02-22T12:10:59.000Z | 2021-02-22T12:10:59.000Z | #!/usr/bin/env python
# Takes a (possibly partial) schedule and checks it for conflicts.
# Provided under the terms of the MIT License, as stated in LICENSE.txt.
from course_selection import Preferences, Schedule, read_combined_file, \
gencmp_conflict, cmp_to_key
from optparse import OptionParser
# Helper functions... | 37.734463 | 81 | 0.724959 | 856 | 6,679 | 5.455607 | 0.212617 | 0.056959 | 0.035974 | 0.012848 | 0.321627 | 0.224839 | 0.14561 | 0.14561 | 0.132762 | 0.132762 | 0 | 0.013987 | 0.175775 | 6,679 | 176 | 82 | 37.948864 | 0.834332 | 0.123521 | 0 | 0.210526 | 0 | 0 | 0.093278 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | null | null | 0 | 0.015038 | null | null | 0.090226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e45438772b8ecf48f48f515cc881f24fdc750b04 | 15,696 | py | Python | model.py | rafaie/fashion-mnist | b0865dea9920afc3984da1a8df52a93a1edd39dd | [
"Apache-2.0"
] | 1 | 2019-02-19T04:20:21.000Z | 2019-02-19T04:20:21.000Z | model.py | rafaie/fashion-mnist | b0865dea9920afc3984da1a8df52a93a1edd39dd | [
"Apache-2.0"
] | null | null | null | model.py | rafaie/fashion-mnist | b0865dea9920afc3984da1a8df52a93a1edd39dd | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import numpy as np
import tensorflow as tf
from util import get_data2, get_dataset
# Drop layer state
DROP_STATE_NONE = 0
DROP_STATE_BEGINING = 1
DROP_STATE_MIDDLE = 2
DROP_STATE_END = 3
class FashionMnist:
def __init__(self, data_dir):
self.data_dir = data_dir
(self.t... | 46.575668 | 122 | 0.498344 | 1,604 | 15,696 | 4.616584 | 0.131546 | 0.04659 | 0.077245 | 0.047535 | 0.705604 | 0.674679 | 0.641053 | 0.634436 | 0.622822 | 0.609858 | 0 | 0.021887 | 0.400357 | 15,696 | 336 | 123 | 46.714286 | 0.764875 | 0.013634 | 0 | 0.608059 | 0 | 0 | 0.061276 | 0.010794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029304 | false | 0 | 0.018315 | 0 | 0.062271 | 0.10989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e45636a47fd4c5c507285a6650c1c3a990d77a13 | 27,205 | py | Python | smq/robots.py | x75/smq | 17fc1219b3f34f6e6035d261021b8e772b7a287d | [
"MIT"
] | null | null | null | smq/robots.py | x75/smq | 17fc1219b3f34f6e6035d261021b8e772b7a287d | [
"MIT"
] | null | null | null | smq/robots.py | x75/smq | 17fc1219b3f34f6e6035d261021b8e772b7a287d | [
"MIT"
] | null | null | null | """Robots for use in smq experiments
A robot contains a body, defined set of internal states, given brain, ...
(c) 2016 Oswald Berthold
"""
# Implementations:
# # these are limited to 1D/2D
# - smp.ode_inert_system.InertParticle,
# - smp.ode_inert_system.InertParticle2D
# - smp.ode_inert_system.InertParticleND
... | 39.657434 | 160 | 0.567028 | 3,624 | 27,205 | 4.051325 | 0.129139 | 0.03099 | 0.028879 | 0.023021 | 0.558848 | 0.488557 | 0.463969 | 0.428893 | 0.407506 | 0.389252 | 0 | 0.013146 | 0.286969 | 27,205 | 685 | 161 | 39.715328 | 0.743736 | 0.548539 | 0 | 0.174129 | 0 | 0 | 0.071808 | 0 | 0 | 0 | 0 | 0.00292 | 0 | 0 | null | null | 0 | 0.074627 | null | null | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e459b407b74da88020f25928c06e19e8702237c9 | 4,564 | py | Python | plotdevice/lib/io.py | plotdevice/plotdevice | 598f66a19cd58b8cfea8295024998b322ed66adf | [
"MIT"
] | 110 | 2015-01-17T03:22:51.000Z | 2022-02-12T06:04:27.000Z | plotdevice/lib/io.py | Jason-Cooke/plotdevice | 598f66a19cd58b8cfea8295024998b322ed66adf | [
"MIT"
] | 38 | 2015-01-02T01:06:59.000Z | 2021-10-05T06:34:42.000Z | plotdevice/lib/io.py | Jason-Cooke/plotdevice | 598f66a19cd58b8cfea8295024998b322ed66adf | [
"MIT"
] | 17 | 2015-04-28T17:29:03.000Z | 2021-07-11T21:26:25.000Z | import objc, os, re
import cIO
for cls in ["AnimatedGif", "Pages", "SysAdmin", "Video"]:
globals()[cls] = objc.lookUpClass(cls)
### Session objects which wrap the GCD-based export managers ###
class ExportSession(object):
def __init__(self):
# state flags
self.running = True
self.canc... | 32.140845 | 100 | 0.571648 | 534 | 4,564 | 4.769663 | 0.294007 | 0.058893 | 0.015705 | 0.018846 | 0.138987 | 0.113074 | 0.018846 | 0 | 0 | 0 | 0 | 0.007431 | 0.321867 | 4,564 | 141 | 101 | 32.368794 | 0.815509 | 0.071648 | 0 | 0.225225 | 0 | 0 | 0.028917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009009 | 0.027027 | null | null | 0.009009 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e45c50cb815c85c6891c49a5bb267e0b6f87628d | 352 | py | Python | configs/deeplabv3/deeplabv3_r50a-d8_512x512_20k_sn6_sar_pro.py | yoyoyoohh/spacenet6 | 57829afb6a642d96c30c42434929080b6d927fb4 | [
"Apache-2.0"
] | null | null | null | configs/deeplabv3/deeplabv3_r50a-d8_512x512_20k_sn6_sar_pro.py | yoyoyoohh/spacenet6 | 57829afb6a642d96c30c42434929080b6d927fb4 | [
"Apache-2.0"
] | null | null | null | configs/deeplabv3/deeplabv3_r50a-d8_512x512_20k_sn6_sar_pro.py | yoyoyoohh/spacenet6 | 57829afb6a642d96c30c42434929080b6d927fb4 | [
"Apache-2.0"
] | null | null | null | '''
Author: Shuailin Chen
Created Date: 2021-09-14
Last Modified: 2021-09-25
content:
'''
_base_ = [
'../_base_/models/deeplabv3_r50a-d8.py',
'../_base_/datasets/sn6_sar_pro.py', '../_base_/default_runtime.py',
'../_base_/schedules/schedule_20k.py'
]
model = dict(
decode_head=dict(num_classes=2), auxi... | 25.142857 | 72 | 0.696023 | 50 | 352 | 4.52 | 0.7 | 0.079646 | 0.097345 | 0.159292 | 0.168142 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080906 | 0.122159 | 352 | 13 | 73 | 27.076923 | 0.650485 | 0.252841 | 0 | 0 | 0 | 0 | 0.509579 | 0.509579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e45f8afc2028c3fd559d5c89bcccd8a0c181fd25 | 195 | py | Python | backup.py | WizBash/tkinter_button_backend_functions | 43809f09ed5895e73941aeb744b2442ad97d1706 | [
"Apache-2.0"
] | null | null | null | backup.py | WizBash/tkinter_button_backend_functions | 43809f09ed5895e73941aeb744b2442ad97d1706 | [
"Apache-2.0"
] | null | null | null | backup.py | WizBash/tkinter_button_backend_functions | 43809f09ed5895e73941aeb744b2442ad97d1706 | [
"Apache-2.0"
] | null | null | null | import shutil
import os
import zipfile
with zipfile.ZipFile('Backup.zip','w') as my_zip:
my_zip.write('Finance.db')
src='Backup.zip'
dst='E:/backup'
shutil.copy(src=src,dst=dst) | 15 | 50 | 0.682051 | 32 | 195 | 4.09375 | 0.53125 | 0.137405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158974 | 195 | 13 | 51 | 15 | 0.79878 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e4632050ff3d5799fda7192559b1257f011fbc5c | 297 | py | Python | ex101.py | shwezinoo/python-excercises | f2507ad8ec161bb1e12a3667946f2cb48c422bb4 | [
"MIT"
] | null | null | null | ex101.py | shwezinoo/python-excercises | f2507ad8ec161bb1e12a3667946f2cb48c422bb4 | [
"MIT"
] | null | null | null | ex101.py | shwezinoo/python-excercises | f2507ad8ec161bb1e12a3667946f2cb48c422bb4 | [
"MIT"
] | null | null | null |
tabby_cat="\t I'm tabbed in ."
persian_cat="I'm split\n on a line"
backslash_cat="I'm\\a\\cat."
fat_cat="""
I'll do a list:
\t*Cat food
\t*Fishies
\t*Catnip\n\t*Grass
"""
print tabby_cat
print persian_cat
print backslash_cat
print fat_cat
| 17.470588 | 35 | 0.579125 | 51 | 297 | 3.215686 | 0.45098 | 0.036585 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292929 | 297 | 16 | 36 | 18.5625 | 0.780952 | 0 | 0 | 0 | 0 | 0 | 0.562712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e467d697972a79c3e0b14441abd5734282e56d72 | 3,206 | py | Python | app/helper/database.py | idayrus/evoting | 241d92a4d68f524365a6322b5bbcfaa7d9abc8a3 | [
"MIT"
] | 1 | 2021-12-24T06:41:45.000Z | 2021-12-24T06:41:45.000Z | app/helper/database.py | idayrus/evoting | 241d92a4d68f524365a6322b5bbcfaa7d9abc8a3 | [
"MIT"
] | null | null | null | app/helper/database.py | idayrus/evoting | 241d92a4d68f524365a6322b5bbcfaa7d9abc8a3 | [
"MIT"
] | null | null | null | from app import db_main, app
from app.helper.sqlalchemy import ObjectIDField
from sqlalchemy.ext.declarative import declared_attr
from datetime import datetime
from re import sub as re_sub
from bson.objectid import ObjectId
from bson.errors import InvalidId
from werkzeug.routing import BaseConverter, ValidationError
fr... | 25.648 | 93 | 0.614473 | 386 | 3,206 | 4.873057 | 0.339378 | 0.060606 | 0.069112 | 0.038278 | 0.192982 | 0.136629 | 0.136629 | 0.120149 | 0.083998 | 0 | 0 | 0.009198 | 0.287898 | 3,206 | 125 | 94 | 25.648 | 0.814717 | 0.062383 | 0 | 0.238095 | 0 | 0 | 0.016399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.107143 | 0.035714 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e46848f7b51a9adf290d8eaa8bbed40a10eb53d6 | 3,820 | py | Python | model.py | rlisowski10/Databasify | e7ec254cd47d624d5c2b07a7e74fd0158fb936c8 | [
"MIT"
] | null | null | null | model.py | rlisowski10/Databasify | e7ec254cd47d624d5c2b07a7e74fd0158fb936c8 | [
"MIT"
] | null | null | null | model.py | rlisowski10/Databasify | e7ec254cd47d624d5c2b07a7e74fd0158fb936c8 | [
"MIT"
] | null | null | null | '''
This code defines the object relational model classes that sqlalchemy uses.
Each class maps to a table in the database.
'''
# Create the sqlite database and map python objects
# Configuration: import all modules needed
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship... | 32.931034 | 83 | 0.71466 | 467 | 3,820 | 5.732334 | 0.211991 | 0.097124 | 0.078446 | 0.036608 | 0.389989 | 0.339933 | 0.27232 | 0.247665 | 0.218528 | 0.137094 | 0 | 0.007374 | 0.183508 | 3,820 | 115 | 84 | 33.217391 | 0.850914 | 0.220942 | 0 | 0.235294 | 0 | 0 | 0.05952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0.014706 | 0.044118 | 0.014706 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e468a2594f305d8d725af8458f7b5a20b1615072 | 4,595 | py | Python | projeto/web/professorSheetCheap/settings.py | itepifanio/mongoStudy | 8447865971680ac341d0e4e504c9f3e403eaa91b | [
"MIT"
] | 2 | 2018-12-05T08:21:03.000Z | 2018-12-08T20:51:57.000Z | projeto/web/professorSheetCheap/settings.py | itepifanio/mongoStudy | 8447865971680ac341d0e4e504c9f3e403eaa91b | [
"MIT"
] | 10 | 2018-05-01T17:02:30.000Z | 2018-07-11T02:37:08.000Z | projeto/web/professorSheetCheap/settings.py | itepifanio/mongoStudy | 8447865971680ac341d0e4e504c9f3e403eaa91b | [
"MIT"
] | 1 | 2020-03-04T20:22:10.000Z | 2020-03-04T20:22:10.000Z | """
Django settings for professorSheetCheap project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
... | 26.257143 | 91 | 0.673123 | 506 | 4,595 | 5.968379 | 0.407115 | 0.06457 | 0.035762 | 0.044702 | 0.195364 | 0.140066 | 0.088411 | 0.088411 | 0.039735 | 0 | 0 | 0.01606 | 0.186942 | 4,595 | 174 | 92 | 26.408046 | 0.792291 | 0.220457 | 0 | 0.036364 | 1 | 0 | 0.501827 | 0.364071 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.036364 | 0 | 0.036364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e475169a55fac3fd91a7b0a4e2d263cad7216384 | 13,098 | py | Python | vrc_online/session/views.py | IntusFacultas/ERC | b6ac71b6469f1325d5cdbd1761429f33d8a797b1 | [
"Apache-2.0"
] | null | null | null | vrc_online/session/views.py | IntusFacultas/ERC | b6ac71b6469f1325d5cdbd1761429f33d8a797b1 | [
"Apache-2.0"
] | null | null | null | vrc_online/session/views.py | IntusFacultas/ERC | b6ac71b6469f1325d5cdbd1761429f33d8a797b1 | [
"Apache-2.0"
] | null | null | null | import warnings
from django.conf import settings
# Avoid shadowing the login() and logout() views below.
from django.contrib import messages
from django.contrib.auth import (
get_user_model, update_session_auth_hash
)
from django.contrib.auth.forms import (
PasswordResetForm, SetPasswordForm, PasswordChangeFor... | 36.48468 | 86 | 0.621393 | 1,386 | 13,098 | 5.660895 | 0.156566 | 0.034412 | 0.013765 | 0.036452 | 0.540658 | 0.465205 | 0.41142 | 0.377517 | 0.356615 | 0.299006 | 0 | 0.002803 | 0.291877 | 13,098 | 358 | 87 | 36.586592 | 0.843127 | 0.026493 | 0 | 0.461538 | 0 | 0 | 0.134952 | 0.052818 | 0 | 0 | 0 | 0 | 0.003344 | 1 | 0.050167 | false | 0.100334 | 0.100334 | 0.006689 | 0.247492 | 0.006689 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e4781db452ba9c1c7be1a41d5f701cd39880a450 | 968 | py | Python | 4.LanguageIdentification/LanguageParser.py | NamithaGS/ContentEvaluation | 6f27bf9e98d9760528799c4d24f1933fcf9413f8 | [
"Apache-1.1"
] | null | null | null | 4.LanguageIdentification/LanguageParser.py | NamithaGS/ContentEvaluation | 6f27bf9e98d9760528799c4d24f1933fcf9413f8 | [
"Apache-1.1"
] | null | null | null | 4.LanguageIdentification/LanguageParser.py | NamithaGS/ContentEvaluation | 6f27bf9e98d9760528799c4d24f1933fcf9413f8 | [
"Apache-1.1"
] | null | null | null |
import json
import tika
import os
from collections import OrderedDict
from tika import parser
from tika import language
import random
path = "/Users/charanshampur/newAwsDump/testFiles4"
d3LanguageDist=open("D3Language.json","w")
langFile = open("Language.json","r")
langDictionary=json.load(langFile)
Language={}
for pa... | 26.888889 | 60 | 0.664256 | 122 | 968 | 5.204918 | 0.467213 | 0.047244 | 0.047244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014455 | 0.213843 | 968 | 35 | 61 | 27.657143 | 0.819974 | 0 | 0 | 0 | 0 | 0 | 0.109731 | 0.043478 | 0 | 0 | 0.008282 | 0 | 0 | 0 | null | null | 0 | 0.233333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4812fb8535b4d1311647a5731711abd0aa6636a | 1,390 | py | Python | Maths_And_Stats/Number_Theory/Sieve_of_Eratosthenes/prime_and_base.py | arslantalib3/algo_ds_101 | a1293f407e00b8346f93e8770727f769e7add00e | [
"MIT"
] | 182 | 2020-10-01T17:16:42.000Z | 2021-10-04T17:52:49.000Z | Maths_And_Stats/Number_Theory/Sieve_of_Eratosthenes/prime_and_base.py | arslantalib3/algo_ds_101 | a1293f407e00b8346f93e8770727f769e7add00e | [
"MIT"
] | 759 | 2020-10-01T00:12:21.000Z | 2021-10-04T19:35:11.000Z | Maths_And_Stats/Number_Theory/Sieve_of_Eratosthenes/prime_and_base.py | arslantalib3/algo_ds_101 | a1293f407e00b8346f93e8770727f769e7add00e | [
"MIT"
] | 1,176 | 2020-10-01T16:02:13.000Z | 2021-10-04T19:20:19.000Z | #include<bits/stdc++.h>
using namespace std;
char letterconverter(int number)
{
return 'A' + (number-10);
}
int main()
{
vector<int> primes;
int num, flag, x, base2, i, upto;
// Take input from user
cout << "Find prime numbers upto : ";
cin >> upto;
for(num = 2; num <= upto; num++)
{... | 20.746269 | 75 | 0.400719 | 156 | 1,390 | 3.557692 | 0.442308 | 0.025225 | 0.057658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023286 | 0.443885 | 1,390 | 67 | 76 | 20.746269 | 0.694696 | 0.015827 | 0 | 0 | 0 | 0 | 0.068713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e48189e001d0b501df6ec797b07a328663aa457c | 2,398 | py | Python | cbor/tests/test_objects.py | alexmrqt/cbor_py | e0db3da1dbdc47993598c33e8b8b8fdd6b5c631e | [
"Apache-2.0"
] | 4 | 2020-03-13T01:02:30.000Z | 2021-12-31T22:13:29.000Z | cbor/tests/test_objects.py | alexmrqt/cbor_py | e0db3da1dbdc47993598c33e8b8b8fdd6b5c631e | [
"Apache-2.0"
] | null | null | null | cbor/tests/test_objects.py | alexmrqt/cbor_py | e0db3da1dbdc47993598c33e8b8b8fdd6b5c631e | [
"Apache-2.0"
] | 1 | 2022-01-23T01:15:43.000Z | 2022-01-23T01:15:43.000Z | import ubinascii
import sys
from cbor.tagmap import ClassTag, TagMapper, Tag, UnknownTagException
from cbor.tests.test_cbor import hexstr
class SomeType(object):
"target type for translator tests"
def __init__(self, a, b):
self.a = a
self.b = b
@staticmethod
def to_cbor(ob):
... | 23.281553 | 113 | 0.585905 | 312 | 2,398 | 4.240385 | 0.301282 | 0.042328 | 0.033258 | 0.042328 | 0.160242 | 0.102797 | 0 | 0 | 0 | 0 | 0 | 0.012964 | 0.292327 | 2,398 | 102 | 114 | 23.509804 | 0.766647 | 0.042118 | 0 | 0.289474 | 0 | 0.013158 | 0.126234 | 0.019751 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.131579 | false | 0.065789 | 0.052632 | 0.026316 | 0.263158 | 0.118421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e483707adc5103a25d38bfb5deed88ef1ca700ff | 631 | py | Python | atlas/location/urls.py | briansok/Atlas | 01320e6c1f2d41e41a93890de6ef6c92bfbbb7e6 | [
"MIT"
] | 5 | 2018-06-04T08:12:50.000Z | 2020-11-30T20:57:48.000Z | atlas/location/urls.py | briansok/Atlas | 01320e6c1f2d41e41a93890de6ef6c92bfbbb7e6 | [
"MIT"
] | null | null | null | atlas/location/urls.py | briansok/Atlas | 01320e6c1f2d41e41a93890de6ef6c92bfbbb7e6 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views as location_views
urlpatterns = [
path('', location_views.index, name='location-detail'),
path('add/', location_views.add_location),
path('<int:id>/edit/', location_views.edit_location),
path('plan/', location_views.plan),
path('plan/set/', location... | 37.117647 | 61 | 0.719493 | 82 | 631 | 5.280488 | 0.268293 | 0.330254 | 0.103926 | 0.08776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122029 | 631 | 16 | 62 | 39.4375 | 0.781588 | 0 | 0 | 0 | 0 | 0 | 0.169572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4837d6d497b0e99add80c71001e0ac8ea7ee6d9 | 1,013 | py | Python | criterion/ResponseMap/bbox_regression/L1.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 143 | 2021-12-03T02:33:36.000Z | 2022-03-29T00:01:48.000Z | criterion/ResponseMap/bbox_regression/L1.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 33 | 2021-12-03T10:32:05.000Z | 2022-03-31T02:13:55.000Z | criterion/ResponseMap/bbox_regression/L1.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 24 | 2021-12-04T06:46:42.000Z | 2022-03-30T07:57:47.000Z | import torch.nn as nn
from criterion.common.reduction.default import build_loss_reduction_function
from data.operator.bbox.spatial.vectorized.torch.cxcywh_to_xyxy import box_cxcywh_to_xyxy
def l1_loss_data_adaptor(pred, label, _):
predicted_bbox = pred['bbox']
if label is None:
return False, predicted... | 40.52 | 107 | 0.764067 | 146 | 1,013 | 4.917808 | 0.390411 | 0.041783 | 0.066852 | 0.062674 | 0.077994 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01373 | 0.137216 | 1,013 | 24 | 108 | 42.208333 | 0.80778 | 0 | 0 | 0 | 0 | 0 | 0.040474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e494afc99bc783860b7aca307662b4922703b3cd | 3,964 | py | Python | Events/sens_fortress_constants.py | grimrhapsody/StJudeSouls | c6123ceff260faa76997c1eba3c5832d75d52ece | [
"MIT"
] | null | null | null | Events/sens_fortress_constants.py | grimrhapsody/StJudeSouls | c6123ceff260faa76997c1eba3c5832d75d52ece | [
"MIT"
] | null | null | null | Events/sens_fortress_constants.py | grimrhapsody/StJudeSouls | c6123ceff260faa76997c1eba3c5832d75d52ece | [
"MIT"
] | null | null | null | import soulstruct.emevd.ds_types as dt
class CHR(dt.Character):
Siegmeyer = 6280
BombGiant = 1500100
BoulderGiant = 1500101
GateGiant = 1500102
IronGolem1 = 1500800
IronGolem2 = 1500801
BoulderFodderSerpent = 1500110
UndeadAssassin1 = 1500400 # Dead end at end of first bridge.
U... | 31.212598 | 97 | 0.7389 | 351 | 3,964 | 8.339031 | 0.692308 | 0.014349 | 0.027332 | 0.0082 | 0.096344 | 0.066963 | 0.066963 | 0.027332 | 0 | 0 | 0 | 0.199679 | 0.212916 | 3,964 | 126 | 98 | 31.460317 | 0.738462 | 0.206862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010417 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e49bb1fa740734c6b4f7cf9c24dc3e303c61bd4f | 3,872 | py | Python | ReadyToGo/registration/migrations/0004_auto_20220309_2326.py | korey-h/ReadyToGo | 060927a9658f40df34eb8bc7599af5dafe3a2e89 | [
"Apache-2.0"
] | null | null | null | ReadyToGo/registration/migrations/0004_auto_20220309_2326.py | korey-h/ReadyToGo | 060927a9658f40df34eb8bc7599af5dafe3a2e89 | [
"Apache-2.0"
] | null | null | null | ReadyToGo/registration/migrations/0004_auto_20220309_2326.py | korey-h/ReadyToGo | 060927a9658f40df34eb8bc7599af5dafe3a2e89 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.5 on 2022-03-09 18:26
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('registration', '0003_auto_20220308_0149'),
]
operations = [
migrations.Create... | 56.941176 | 167 | 0.633781 | 406 | 3,872 | 5.916256 | 0.273399 | 0.054954 | 0.066611 | 0.069942 | 0.661532 | 0.649875 | 0.597419 | 0.576603 | 0.576603 | 0.410908 | 0 | 0.029265 | 0.223399 | 3,872 | 67 | 168 | 57.791045 | 0.769538 | 0.011622 | 0 | 0.42623 | 1 | 0 | 0.16366 | 0.017516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.098361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4aa81a64d4c369ff1986fa2b704ed771c4d1865 | 702 | py | Python | modelscript/megamodels/dependencies/__init__.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | 1 | 2019-02-22T14:27:06.000Z | 2019-02-22T14:27:06.000Z | modelscript/megamodels/dependencies/__init__.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | 4 | 2015-12-18T10:30:02.000Z | 2015-12-18T10:36:28.000Z | modelscript/megamodels/dependencies/__init__.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | null | null | null | # coding=utf-8
"""Dependencies.
This module provides only one abstract class "Dependency",
the root of all concrete dependencies defined in separated modules.
"""
from abc import ABCMeta, abstractmethod
from modelscript.base.exceptions import (
MethodToBeDefined)
MegamodelElement = 'MegamodelElement'
class Dep... | 25.071429 | 67 | 0.7151 | 70 | 702 | 7.171429 | 0.614286 | 0.059761 | 0.099602 | 0.167331 | 0.227092 | 0.227092 | 0.227092 | 0 | 0 | 0 | 0 | 0.001795 | 0.206553 | 702 | 27 | 68 | 26 | 0.899461 | 0.245014 | 0 | 0.4 | 0 | 0 | 0.165385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4ab83c68ffc6969a049b86740d3d6dbb189fbf3 | 1,665 | py | Python | V2.0.0/generate_json.py | ryanjsfx2424/ComputationalFluidDynamicNFTs | aeb38b5b33beaaf16cefbaef8e95186c5f257609 | [
"MIT"
] | null | null | null | V2.0.0/generate_json.py | ryanjsfx2424/ComputationalFluidDynamicNFTs | aeb38b5b33beaaf16cefbaef8e95186c5f257609 | [
"MIT"
] | null | null | null | V2.0.0/generate_json.py | ryanjsfx2424/ComputationalFluidDynamicNFTs | aeb38b5b33beaaf16cefbaef8e95186c5f257609 | [
"MIT"
] | null | null | null | ## generate_json.py by Ryan Farber 2022-02-19
"""
To start, I'll just change the name, image, and colormap values.
"""
CID = 'QmQkbk2G1WmHV3DLWQHzbW4uc3iXNNtqh3uQc5p64q6W21/'
import os
import glob
import string
import random
import numpy as np
os.chdir("movies")
fs = glob.glob("*.mp4")
inds = np.arange(0,len(fs))
np... | 27.295082 | 80 | 0.600601 | 242 | 1,665 | 3.983471 | 0.392562 | 0.05083 | 0.034232 | 0.024896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027429 | 0.233634 | 1,665 | 60 | 81 | 27.75 | 0.728056 | 0.121922 | 0 | 0 | 1 | 0 | 0.202768 | 0.06436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.125 | 0.025 | 0.175 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4b66c66f906dd6d9cbdb86ca8c69342dc4965f3 | 282 | py | Python | p001.py | anadahalli/project-euler | d4150a5a6c54cf9f4edcd024df69b01bf03c2a10 | [
"CC0-1.0"
] | 1 | 2017-02-03T15:37:42.000Z | 2017-02-03T15:37:42.000Z | p001.py | anadahalli/project-euler | d4150a5a6c54cf9f4edcd024df69b01bf03c2a10 | [
"CC0-1.0"
] | null | null | null | p001.py | anadahalli/project-euler | d4150a5a6c54cf9f4edcd024df69b01bf03c2a10 | [
"CC0-1.0"
] | null | null | null | """Problem 001
If we list all the natural numbers below 10 that are
multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
"""
ans = sum(n for n in range(1000) if n % 3 == 0 or n % 5 == 0)
print(ans)
| 21.692308 | 61 | 0.663121 | 63 | 282 | 2.968254 | 0.555556 | 0.064171 | 0.128342 | 0.149733 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127358 | 0.248227 | 282 | 12 | 62 | 23.5 | 0.754717 | 0.705674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e4bbe30de1b980eb8922a146787eb1fb136e95ff | 10,164 | py | Python | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoFill/displayFill.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | 8 | 2021-12-14T21:30:01.000Z | 2022-02-14T11:30:03.000Z | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoFill/displayFill.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoFill/displayFill.py | bio-hpc/metascreener | 6900497629f601c4b6c0c37da26de58ffa221988 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 20 23:53:00 2012
###############################################################################
#
# autoPACK Authors: Graham T. Johnson, Ludovic Autin, Mostafa Al-Alusi, Michel Sanner
# Based on COFFEE Script developed by Graham Johnson between 2005 and 2010
# with as... | 35.915194 | 85 | 0.566804 | 1,138 | 10,164 | 5.06239 | 0.22935 | 0.024996 | 0.017185 | 0.023086 | 0.620899 | 0.585141 | 0.523173 | 0.488283 | 0.469016 | 0.444194 | 0 | 0.017207 | 0.308146 | 10,164 | 282 | 86 | 36.042553 | 0.801906 | 0.196183 | 0 | 0.735294 | 0 | 0 | 0.028368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02451 | false | 0 | 0.009804 | 0 | 0.034314 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4c28764eeadf5d1c68fd135f93b5957dc7f59bd | 412 | py | Python | mydemo/test_5.3.py | ebayboy/pydata-book | 77128a7bf2c446e8ef8cdcc53e3295a231376863 | [
"MIT"
] | null | null | null | mydemo/test_5.3.py | ebayboy/pydata-book | 77128a7bf2c446e8ef8cdcc53e3295a231376863 | [
"MIT"
] | null | null | null | mydemo/test_5.3.py | ebayboy/pydata-book | 77128a7bf2c446e8ef8cdcc53e3295a231376863 | [
"MIT"
] | null | null | null |
# 5.3.1 相关性和协方差
import pandas as pd
import numpy as np
import pandas_datareader as pdr
import time
#for ticker in ['GS10', 'AAPL', 'IBM', 'MSFT', 'GOOG']:
for ticker in ['GS10']:
try:
print("get data: {}...".format(ticker))
tmp = pdr.get_data_fred(ticker)
print("tmp:{}".format(tmp))
e... | 21.684211 | 55 | 0.606796 | 59 | 412 | 4.050847 | 0.59322 | 0.100418 | 0.09205 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022082 | 0.230583 | 412 | 18 | 56 | 22.888889 | 0.731861 | 0.162621 | 0 | 0 | 0 | 0 | 0.102941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
e4ca7b4d56abb1d622c14441b0533803da471bdd | 694 | py | Python | alpacka/trainers/__init__.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | 2 | 2021-01-03T04:21:56.000Z | 2021-02-12T12:54:58.000Z | alpacka/trainers/__init__.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | null | null | null | alpacka/trainers/__init__.py | shoot-tree-search/sts | 2d9f19a40c7fb1c637dd3bd230942c01f14927e1 | [
"MIT"
] | null | null | null | """Neural network trainers."""
import gin
from alpacka.trainers import dummy
from alpacka.trainers import supervised
from alpacka.trainers import td
from alpacka.trainers.base import Trainer
# Configure trainers in this module to ensure they're accessible via the
# alpacka.trainers.* namespace.
def configure_traine... | 31.545455 | 99 | 0.798271 | 82 | 694 | 6.670732 | 0.439024 | 0.164534 | 0.13894 | 0.137112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123919 | 694 | 21 | 100 | 33.047619 | 0.899671 | 0.306916 | 0 | 0 | 0 | 0 | 0.03397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e4cb1221585ebdfd8359c0c3b541ed9a8593346d | 3,217 | py | Python | tools/analysis_trace.py | vusec/TIFF | 432aae6e2bc991b4c303ce98c2f75a1019b0c0c5 | [
"Apache-2.0"
] | 7 | 2019-01-25T23:44:48.000Z | 2021-06-22T17:20:53.000Z | tools/analysis_trace.py | vusec/TIFF | 432aae6e2bc991b4c303ce98c2f75a1019b0c0c5 | [
"Apache-2.0"
] | 4 | 2020-08-12T09:13:32.000Z | 2021-12-22T07:34:31.000Z | tools/analysis_trace.py | vusec/TIFF | 432aae6e2bc991b4c303ce98c2f75a1019b0c0c5 | [
"Apache-2.0"
] | 5 | 2019-03-25T14:51:10.000Z | 2020-11-18T17:18:11.000Z | import os,sys
def ssplit(seq,splitters):
seq=list(seq);
if splitters and seq:
result=[];
begin=0;
for end in range(len(seq)):
if seq[end] in splitters:
if end > begin:
result.append(seq[begin:end]);
begin=end+1;
if begin<len(seq):
result.append(seq[begin:])
return result;
return [seq];
... | 25.736 | 74 | 0.634131 | 547 | 3,217 | 3.522852 | 0.157221 | 0.074728 | 0.056046 | 0.058121 | 0.255319 | 0.195122 | 0.119875 | 0.077841 | 0.077841 | 0.051894 | 0 | 0.016686 | 0.180292 | 3,217 | 124 | 75 | 25.943548 | 0.714069 | 0.012123 | 0 | 0.172727 | 0 | 0 | 0.052283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009091 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4cfd513a6acd6b08aba0eea934508a415bfb5a1 | 197 | py | Python | sys/stderr2file.py | haiwangyang/lp | ff3c6137c52ac31fc3f9c005990e944100de3dd7 | [
"MIT"
] | null | null | null | sys/stderr2file.py | haiwangyang/lp | ff3c6137c52ac31fc3f9c005990e944100de3dd7 | [
"MIT"
] | null | null | null | sys/stderr2file.py | haiwangyang/lp | ff3c6137c52ac31fc3f9c005990e944100de3dd7 | [
"MIT"
] | null | null | null | import sys
# https://www.python-course.eu/sys_module.php
save_stderr = sys.stderr
fh = open("errors.txt","w")
sys.stderr = fh
x = 10 / 0
# return to normal:
sys.stderr = save_stderr
fh.close()
| 14.071429 | 45 | 0.690355 | 34 | 197 | 3.911765 | 0.676471 | 0.203008 | 0.165414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017964 | 0.152284 | 197 | 13 | 46 | 15.153846 | 0.778443 | 0.309645 | 0 | 0 | 0 | 0 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4d0e35f0744ec8f8cb35470863739bf47c70392 | 1,385 | py | Python | ooobuild/lo/rendering/panose_stroke_variation.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/rendering/panose_stroke_variation.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/rendering/panose_stroke_variation.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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... | 30.108696 | 150 | 0.732852 | 191 | 1,385 | 5.115183 | 0.617801 | 0.061412 | 0.030706 | 0.058342 | 0.04913 | 0.04913 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0.186282 | 1,385 | 45 | 151 | 30.777778 | 0.842059 | 0.628881 | 0 | 0 | 0 | 0 | 0.195329 | 0.184713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4d3215bba8192d10cb645e331d2a205c8ece80e | 3,414 | py | Python | landsat/tests/test_landsat.py | duner/landsat-util | 87b16fce50162e6113e1040b5c6b6c2e00fec02d | [
"CC0-1.0"
] | null | null | null | landsat/tests/test_landsat.py | duner/landsat-util | 87b16fce50162e6113e1040b5c6b6c2e00fec02d | [
"CC0-1.0"
] | 3 | 2015-03-25T23:57:20.000Z | 2015-03-27T12:17:52.000Z | landsat/tests/test_landsat.py | duner/landsat-util | 87b16fce50162e6113e1040b5c6b6c2e00fec02d | [
"CC0-1.0"
] | 1 | 2021-03-31T02:14:00.000Z | 2021-03-31T02:14:00.000Z | # Landsat Util
# License: CC0 1.0 Universal
"""Tests for landsat"""
import sys
import errno
import shutil
import unittest
import subprocess
from tempfile import mkdtemp
from os.path import join, abspath, dirname
try:
import landsat.landsat as landsat
except ImportError:
sys.path.append(abspath(join(dirname(_... | 29.179487 | 100 | 0.615993 | 416 | 3,414 | 4.894231 | 0.307692 | 0.054028 | 0.068762 | 0.088409 | 0.367387 | 0.272102 | 0.217092 | 0.079568 | 0.048134 | 0.048134 | 0 | 0.043866 | 0.24546 | 3,414 | 116 | 101 | 29.431034 | 0.746506 | 0.158172 | 0 | 0.25 | 0 | 0 | 0.135991 | 0.015664 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.205882 | false | 0 | 0.147059 | 0 | 0.367647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e4e0105a40c84295c68aa1fd00ee78b23879b240 | 2,142 | py | Python | main.py | christopher-roelofs/GameEventHub | 4ed43f27b5e0593e511613906ec2d9369483fae0 | [
"MIT"
] | null | null | null | main.py | christopher-roelofs/GameEventHub | 4ed43f27b5e0593e511613906ec2d9369483fae0 | [
"MIT"
] | null | null | null | main.py | christopher-roelofs/GameEventHub | 4ed43f27b5e0593e511613906ec2d9369483fae0 | [
"MIT"
] | null | null | null | import logger
import sys
import event_manager
import mister
import os
import sys
import json
import schedule
import time
import threading
import obs
import filesystem
import script
import discord
import dashboard
import retroarch
import config
import steam
if __name__ == "__main__":
pubsub_file = "pubsub.json"
... | 31.043478 | 108 | 0.606443 | 224 | 2,142 | 5.651786 | 0.348214 | 0.085308 | 0.044234 | 0.07346 | 0.151659 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00264 | 0.292717 | 2,142 | 69 | 109 | 31.043478 | 0.833003 | 0.001867 | 0 | 0.071429 | 0 | 0 | 0.107628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.321429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
e4f86c8e96f68d7a7e00714fe8d62709ee161b60 | 1,798 | py | Python | pypadre/cli/config/config_cli.py | padre-lab-eu/pypadre | c244a5f1d4eb7bf168cc06dd9b43416883534268 | [
"MIT"
] | 3 | 2019-12-19T13:29:52.000Z | 2019-12-20T07:32:05.000Z | pypadre/cli/config/config_cli.py | padre-lab-eu/pypadre | c244a5f1d4eb7bf168cc06dd9b43416883534268 | [
"MIT"
] | 1 | 2019-12-16T13:39:24.000Z | 2019-12-16T13:39:24.000Z | pypadre/cli/config/config_cli.py | padre-lab-eu/pypadre | c244a5f1d4eb7bf168cc06dd9b43416883534268 | [
"MIT"
] | null | null | null | """
Command Line Interface for PADRE.
"""
import click
from pypadre.pod.app import PadreConfig
from pypadre.pod.app.padre_app import PadreAppFactory
@click.group()
def config():
"""
Commands for the configuration.
Default config file: ~/.padre.cfg
"""
def _get_app(ctx) -> PadreConfig:
return ... | 25.323944 | 86 | 0.667964 | 249 | 1,798 | 4.718876 | 0.26506 | 0.045957 | 0.068936 | 0.051064 | 0.435745 | 0.382128 | 0.301277 | 0.180426 | 0.088511 | 0 | 0 | 0.003413 | 0.185206 | 1,798 | 70 | 87 | 25.685714 | 0.798635 | 0.159066 | 0 | 0.297297 | 0 | 0 | 0.155401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0.081081 | 0.081081 | 0.027027 | 0.243243 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e4fa89e07c9cffcb61ef0d0bbc677310adf25279 | 1,723 | py | Python | src/modules/apputils/terminal/getch/keymapping_win.py | hapylestat/appcore | 5ae3d02fd91d134fe2908661fa3a8ec4e48468d5 | [
"Apache-2.0"
] | null | null | null | src/modules/apputils/terminal/getch/keymapping_win.py | hapylestat/appcore | 5ae3d02fd91d134fe2908661fa3a8ec4e48468d5 | [
"Apache-2.0"
] | 1 | 2021-03-02T07:15:43.000Z | 2021-03-02T07:15:43.000Z | src/modules/apputils/terminal/getch/keymapping_win.py | hapylestat/appcore | 5ae3d02fd91d134fe2908661fa3a8ec4e48468d5 | [
"Apache-2.0"
] | 2 | 2017-08-14T20:12:04.000Z | 2018-02-14T16:22:19.000Z | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not... | 28.245902 | 75 | 0.702844 | 281 | 1,723 | 4.103203 | 0.516014 | 0.056375 | 0.101474 | 0.027754 | 0.032958 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054191 | 0.19675 | 1,723 | 60 | 76 | 28.716667 | 0.778902 | 0.494486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.939394 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e4fe6d98f5f0e153083757c0a900110983caad1e | 8,163 | py | Python | python/nilib/niwsgiserver.py | skunkwerks/netinf | 7f164db64d87d9450ff9233497d10f1c900b527e | [
"Apache-2.0"
] | null | null | null | python/nilib/niwsgiserver.py | skunkwerks/netinf | 7f164db64d87d9450ff9233497d10f1c900b527e | [
"Apache-2.0"
] | null | null | null | python/nilib/niwsgiserver.py | skunkwerks/netinf | 7f164db64d87d9450ff9233497d10f1c900b527e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
@package nilib
@file niwsgiserver.py
@brief Simple WSGI server using Python wsgiref and nihandler.py.
@version $Revision: 1.00 $ $Author: elwynd $
@version Copyright (C) 2012 Trinity College Dublin and Folly Consulting Ltd
This is an adjunct to the NI URI library developed as
part ... | 38.504717 | 84 | 0.680142 | 1,132 | 8,163 | 4.812721 | 0.366608 | 0.01909 | 0.014684 | 0.008811 | 0.020742 | 0.013767 | 0 | 0 | 0 | 0 | 0 | 0.014177 | 0.196374 | 8,163 | 211 | 85 | 38.687204 | 0.816311 | 0.155703 | 0 | 0.105263 | 0 | 0 | 0.265394 | 0.060143 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.122807 | null | null | 0.087719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9001f40da8eb60aeb7d72063d6c1d88702fabcaf | 794 | py | Python | setup.py | DecodEPFL/HamiltonianNet | 030e62fc8ef2a607e9c8923cabfe859d28043951 | [
"CC-BY-4.0"
] | 6 | 2021-09-15T08:39:55.000Z | 2022-03-17T17:57:16.000Z | setup.py | DecodEPFL/HamiltonianNet | 030e62fc8ef2a607e9c8923cabfe859d28043951 | [
"CC-BY-4.0"
] | null | null | null | setup.py | DecodEPFL/HamiltonianNet | 030e62fc8ef2a607e9c8923cabfe859d28043951 | [
"CC-BY-4.0"
] | 2 | 2021-05-27T15:02:10.000Z | 2021-07-05T10:40:02.000Z | #!/usr/bin/env python
import setuptools
import os
os.chmod("examples/run.py", 0o744)
os.chmod("examples/run_MNIST.py", 0o744)
os.chmod("examples/run_distributed.py", 0o744)
setuptools.setup(
name="hamiltonianNet",
version="0.0.1",
author="Clara Galimberti",
author_email="clara.galimberti@epfl.ch",
... | 28.357143 | 60 | 0.618388 | 93 | 794 | 5.215054 | 0.612903 | 0.043299 | 0.092784 | 0.11134 | 0.103093 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0.050081 | 0.220403 | 794 | 27 | 61 | 29.407407 | 0.733441 | 0.025189 | 0 | 0 | 0 | 0 | 0.446313 | 0.093144 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90086d03f61727903c7a7eedb51be26559488da6 | 281 | py | Python | netpy/butterfly/observer.py | stronklab/netpy | 0d22a6ce43d66c3355457e681b83f338ae806e0f | [
"MIT"
] | null | null | null | netpy/butterfly/observer.py | stronklab/netpy | 0d22a6ce43d66c3355457e681b83f338ae806e0f | [
"MIT"
] | null | null | null | netpy/butterfly/observer.py | stronklab/netpy | 0d22a6ce43d66c3355457e681b83f338ae806e0f | [
"MIT"
] | null | null | null | from tornado.web import RequestHandler, Application
class Observer(RequestHandler):
viewers = []
app = None
def start_observer(self):
self.app = Application(self.viewers)
self.app.listen(self.viewport)
print "Viewer started at", self.viewport | 25.545455 | 51 | 0.686833 | 32 | 281 | 6 | 0.625 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220641 | 281 | 11 | 52 | 25.545455 | 0.876712 | 0 | 0 | 0 | 0 | 0 | 0.060284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
900b706e9787941db6c5d0a4001d0116dda7457b | 2,418 | py | Python | setup.py | DersJ/GitNotified | b7fea5f062bd57ce8228efe905ac06993e9c51f6 | [
"MIT"
] | null | null | null | setup.py | DersJ/GitNotified | b7fea5f062bd57ce8228efe905ac06993e9c51f6 | [
"MIT"
] | 1 | 2021-06-01T23:50:44.000Z | 2021-06-01T23:50:44.000Z | setup.py | DersJ/GitNotified | b7fea5f062bd57ce8228efe905ac06993e9c51f6 | [
"MIT"
] | null | null | null | import json, validators
#TODO: Add input validation
def main():
data = {}
print("")
print("GitNotifier Setup")
print("Thanks for trying GitNotifier! I just need a few things before we can get started.")
print("")
data['domain'] = inputURL()
print("")
print("Great! Next, I need the proje... | 35.043478 | 145 | 0.624069 | 324 | 2,418 | 4.62963 | 0.450617 | 0.04 | 0.018667 | 0.028 | 0.136 | 0.136 | 0.094667 | 0 | 0 | 0 | 0 | 0.007642 | 0.242349 | 2,418 | 69 | 146 | 35.043478 | 0.811135 | 0.010753 | 0 | 0.254237 | 0 | 0.067797 | 0.443144 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.101695 | false | 0 | 0.016949 | 0 | 0.220339 | 0.322034 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90102fdf79050c3549f641603f93a034d6bbd095 | 2,796 | py | Python | lc0904_fruit_into_baskets.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | 8 | 2019-03-18T06:37:24.000Z | 2022-01-30T07:50:58.000Z | lc0904_fruit_into_baskets.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | lc0904_fruit_into_baskets.py | bowen0701/python-algorithms-data-structures | e625f59a9fc59e4728825078d4434a7968a724e5 | [
"BSD-2-Clause"
] | null | null | null | """Leetcode 904. Fruit Into Baskets
Medium
URL: https://leetcode.com/problems/fruit-into-baskets/
In a row of trees, the i-th tree produces fruit with type tree[i].
You start at any tree of your choice, then repeatedly perform the following steps:
1. Add one piece of fruit from this tree to your baskets. If you ca... | 26.628571 | 83 | 0.639843 | 463 | 2,796 | 3.812095 | 0.311015 | 0.016997 | 0.010198 | 0.052125 | 0.273654 | 0.185836 | 0.185836 | 0.113881 | 0.063456 | 0.063456 | 0 | 0.050193 | 0.258941 | 2,796 | 104 | 84 | 26.884615 | 0.801641 | 0.067597 | 0 | 0.153846 | 0 | 0 | 0.008214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9012bf16a2f9f54f974bf2ef30cc9e64543322ab | 2,529 | py | Python | back-end/python-scripts/add_vm1.py | matteomitico/vtc-senior-project | 778b59537edae54fbcb284a862bad587469b96af | [
"MIT"
] | null | null | null | back-end/python-scripts/add_vm1.py | matteomitico/vtc-senior-project | 778b59537edae54fbcb284a862bad587469b96af | [
"MIT"
] | null | null | null | back-end/python-scripts/add_vm1.py | matteomitico/vtc-senior-project | 778b59537edae54fbcb284a862bad587469b96af | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import json
import sys, os
import virtualbox
from os.path import expanduser
from pprint import pprint
from subprocess import call
#create virtual machine from the repository
# arg1 = vmType
# arg2 = vmName
# return 1|0 success or failure
# list of all VMs
print "hii"
gateway = ... | 31.222222 | 134 | 0.58877 | 338 | 2,529 | 4.33432 | 0.360947 | 0.020478 | 0.027304 | 0.040956 | 0.256655 | 0.249829 | 0.249829 | 0.249829 | 0.249829 | 0.249829 | 0 | 0.076619 | 0.200079 | 2,529 | 80 | 135 | 31.6125 | 0.647553 | 0.180308 | 0 | 0.129032 | 0 | 0 | 0.429293 | 0.106566 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.048387 | 0.096774 | null | null | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
901fa87f8983e6d7d963eae8b08a3b768fee1076 | 4,323 | py | Python | vcf2tsv.py | brendane/miscellaneous_bioinfo_scripts | 91ca3282823495299e4c68aa79bdc1c0225a6d7b | [
"MIT"
] | null | null | null | vcf2tsv.py | brendane/miscellaneous_bioinfo_scripts | 91ca3282823495299e4c68aa79bdc1c0225a6d7b | [
"MIT"
] | 1 | 2020-09-17T11:14:13.000Z | 2020-09-17T11:14:13.000Z | vcf2tsv.py | brendane/miscellaneous_bioinfo_scripts | 91ca3282823495299e4c68aa79bdc1c0225a6d7b | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
"""
Transform a VCF file into a tab-delimited file with 1s and 0s for
genotype calls.
vcf2tsv.py --output <output file> <input file>
OPTIONS
--subset A bed file with positions to include, default is
to include everything
--rs ... | 34.03937 | 91 | 0.488318 | 541 | 4,323 | 3.83549 | 0.295749 | 0.034699 | 0.065542 | 0.044337 | 0.193735 | 0.169639 | 0.169639 | 0.151325 | 0.041446 | 0.041446 | 0 | 0.01349 | 0.348369 | 4,323 | 126 | 92 | 34.309524 | 0.72311 | 0.059681 | 0 | 0.26087 | 0 | 0 | 0.086405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032609 | null | null | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
902979793cb4850dbd742c7fff78b3f8d07e9358 | 48,269 | py | Python | utils/stm32parser/gd32/gd32vf1xx_eclic.py | fstqwq/awesome-mcu | c468fbcac9f6dae082867cb615c61bab95585359 | [
"MIT"
] | 4 | 2021-09-09T12:07:16.000Z | 2021-12-19T11:39:41.000Z | utils/stm32parser/gd32/gd32vf1xx_eclic.py | fstqwq/awesome-mcu | c468fbcac9f6dae082867cb615c61bab95585359 | [
"MIT"
] | 1 | 2021-12-02T16:52:12.000Z | 2021-12-02T16:52:12.000Z | utils/stm32parser/gd32/gd32vf1xx_eclic.py | fstqwq/awesome-mcu | c468fbcac9f6dae082867cb615c61bab95585359 | [
"MIT"
] | 1 | 2021-12-17T17:40:52.000Z | 2021-12-17T17:40:52.000Z | import ctypes
class GD32VF1xxEclic:
class Type(ctypes.Structure):
""" Enhanced Core Local Interrupt Controller
"""
_fields_ = [
("CLICCFG" , ctypes.c_uint8), # Address offset: 0x0, cliccfg Register
("CLICINFO" , ctypes.c_uint32), # Address offset: 0x04... | 67.040278 | 95 | 0.620377 | 4,584 | 48,269 | 6.30192 | 0.102967 | 0.085053 | 0.145389 | 0.230199 | 0.325602 | 0.323872 | 0 | 0 | 0 | 0 | 0 | 0.185685 | 0.29174 | 48,269 | 719 | 96 | 67.133519 | 0.659315 | 0.318817 | 0 | 0 | 0 | 0 | 0.135754 | 0 | 0 | 0 | 0.107927 | 0 | 0 | 1 | 0.001406 | false | 0 | 0.001406 | 0 | 0.005626 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9031ac689d73ce52c9aca7676a17b8c9088d96e3 | 10,359 | py | Python | datalad_deprecated/gitrepo.py | yarikoptic/datalad-deprecated | 03f8b11d3161888ce74167bcb8006180404a43a4 | [
"MIT"
] | null | null | null | datalad_deprecated/gitrepo.py | yarikoptic/datalad-deprecated | 03f8b11d3161888ce74167bcb8006180404a43a4 | [
"MIT"
] | 42 | 2021-04-12T18:31:11.000Z | 2022-03-02T19:48:03.000Z | datalad_deprecated/gitrepo.py | yarikoptic/datalad-deprecated | 03f8b11d3161888ce74167bcb8006180404a43a4 | [
"MIT"
] | 2 | 2021-07-06T21:03:57.000Z | 2021-12-07T16:17:19.000Z | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ##... | 41.770161 | 104 | 0.587991 | 1,234 | 10,359 | 4.875203 | 0.285251 | 0.019947 | 0.011968 | 0.012467 | 0.105219 | 0.076463 | 0.0625 | 0.0625 | 0.049202 | 0.033245 | 0 | 0.001154 | 0.330727 | 10,359 | 247 | 105 | 41.939271 | 0.86658 | 0.4011 | 0 | 0.113821 | 0 | 0 | 0.177136 | 0.017588 | 0 | 0 | 0 | 0.012146 | 0.01626 | 1 | 0.02439 | false | 0 | 0.089431 | 0 | 0.130081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90356a177da9d02e84906b774e9d7749dee45f2f | 1,504 | py | Python | falcon/entry.py | Vesion/ZhihuSpider | f249af3da73c3fb9948ad18ffceafd09cc4a3e75 | [
"MIT"
] | 2 | 2015-03-02T06:24:33.000Z | 2015-08-15T06:05:59.000Z | falcon/entry.py | Vesion/ZhihuSpider | f249af3da73c3fb9948ad18ffceafd09cc4a3e75 | [
"MIT"
] | null | null | null | falcon/entry.py | Vesion/ZhihuSpider | f249af3da73c3fb9948ad18ffceafd09cc4a3e75 | [
"MIT"
] | null | null | null | # ________ ______
# ___ __/_____ ___ /__________________
# __ /_ _ __ `/_ /_ ___/ __ \_ __ \
# _ __/ / /_/ /_ / / /__ / /_/ / / / /
# /_/ \__,_/ /_/ \___/ \____//_/ /_/
#
# Author : Shine Xu
# License: The MIT License (MIT)
# -*- coding: utf-... | 31.333333 | 80 | 0.59109 | 169 | 1,504 | 4.721893 | 0.52071 | 0.026316 | 0.042607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009515 | 0.301197 | 1,504 | 47 | 81 | 32 | 0.748811 | 0.317154 | 0 | 0 | 0 | 0 | 0.032761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90361e49acd014598c889511e28bc70f9448515e | 734 | py | Python | view.py | danicon/Prj_SQLite | 1d9bb5756f6a0793f2e40a3f4c4110e4095c4e0c | [
"MIT"
] | null | null | null | view.py | danicon/Prj_SQLite | 1d9bb5756f6a0793f2e40a3f4c4110e4095c4e0c | [
"MIT"
] | null | null | null | view.py | danicon/Prj_SQLite | 1d9bb5756f6a0793f2e40a3f4c4110e4095c4e0c | [
"MIT"
] | null | null | null | # importando SQLite
import sqlite3 as lite
# criando conexão / criando novo BD
con = lite.connect('livraria.db')
'''
# inserindo dados
with con:
cur = con.cursor()
cur.execute("INSERT INTO Categoria (nome) VALUES ('Romance') ")
cur.execute("INSERT INTO Categoria (nome) VALUES ('Drama') ")
cur.execute("... | 23.677419 | 68 | 0.668937 | 93 | 734 | 5.27957 | 0.451613 | 0.142566 | 0.162933 | 0.203666 | 0.519348 | 0.397149 | 0.397149 | 0 | 0 | 0 | 0 | 0.003328 | 0.181199 | 734 | 31 | 69 | 23.677419 | 0.813644 | 0.092643 | 0 | 0.2 | 0 | 0 | 0.218045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
903714eb15a198372e8b65d91b65c6f24f2bdf59 | 834 | py | Python | MuleBot/Con1.py | Z223I/MuleBot360 | 193e4f34b27d5a09e1fc05f75dcda343e282e9f4 | [
"MIT"
] | null | null | null | MuleBot/Con1.py | Z223I/MuleBot360 | 193e4f34b27d5a09e1fc05f75dcda343e282e9f4 | [
"MIT"
] | null | null | null | MuleBot/Con1.py | Z223I/MuleBot360 | 193e4f34b27d5a09e1fc05f75dcda343e282e9f4 | [
"MIT"
] | null | null | null | import threading
import Queue
import time
class Con1():
"""
Consumes two streams of data.
"""
def __init__(self):
self._running = True
def terminate(self):
self._running = False
def run1(self, _q1):
while self._running:
name = threading.currentThread().get... | 23.166667 | 54 | 0.519185 | 86 | 834 | 4.848837 | 0.488372 | 0.105516 | 0.071942 | 0.095923 | 0.326139 | 0.326139 | 0.326139 | 0.326139 | 0.326139 | 0.326139 | 0 | 0.024952 | 0.3753 | 834 | 35 | 55 | 23.828571 | 0.775432 | 0.045564 | 0 | 0.25 | 0 | 0 | 0.096337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9037449799343716b04d40989e8cc4a1de2a2969 | 429 | py | Python | aboutus.py | Akash280999/CGPA_Calculator | fece9dc0d572c3b0b265dc7aac127c21a5fec6b3 | [
"Apache-2.0"
] | 5 | 2019-08-13T09:22:13.000Z | 2021-04-18T06:33:59.000Z | aboutus.py | Akash280999/CGPA_Calculator | fece9dc0d572c3b0b265dc7aac127c21a5fec6b3 | [
"Apache-2.0"
] | null | null | null | aboutus.py | Akash280999/CGPA_Calculator | fece9dc0d572c3b0b265dc7aac127c21a5fec6b3 | [
"Apache-2.0"
] | 1 | 2021-05-01T12:47:35.000Z | 2021-05-01T12:47:35.000Z | from tkinter import *
from aboutus_ui import Aboutus
class CustomAboutus(Aboutus):
print("About Us Window Opened.")
pass
def close_command(self):
print("Close Buttton pressed.")
print("About Us Window Closed.")
quit(0)
pass
def main():
root = Tk()
demo... | 21.45 | 41 | 0.601399 | 49 | 429 | 5.061224 | 0.612245 | 0.080645 | 0.096774 | 0.145161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003268 | 0.286713 | 429 | 19 | 42 | 22.578947 | 0.80719 | 0 | 0 | 0.125 | 0 | 0 | 0.202439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.3125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9043ed8e87af3d1efb318dfd122bfd34ecbb17d8 | 511 | py | Python | space_for_kernel2.py | srpkdyy/geister_rl | 8190243d6b3ccd48aa6dfbc3920b903bedb79901 | [
"MIT"
] | null | null | null | space_for_kernel2.py | srpkdyy/geister_rl | 8190243d6b3ccd48aa6dfbc3920b903bedb79901 | [
"MIT"
] | null | null | null | space_for_kernel2.py | srpkdyy/geister_rl | 8190243d6b3ccd48aa6dfbc3920b903bedb79901 | [
"MIT"
] | null | null | null | import numpy as np
from geister2 import Geister2
from battle import battle, battle2, battle2_get_results
from load_ import load_agent, load_agents
from greedy_agent import GreedyAgent
seed = None
game = Geister2()
folder_path = "weights/vsself3"
agents = load_agents([folder_path+"/vsself"+str(i) for i in range(0, 949,... | 31.9375 | 85 | 0.761252 | 82 | 511 | 4.536585 | 0.487805 | 0.080645 | 0.091398 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050998 | 0.117417 | 511 | 15 | 86 | 34.066667 | 0.773836 | 0 | 0 | 0 | 0 | 0 | 0.058708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5f3c72f0296880358ce53a476d581f6c38ef2325 | 10,862 | py | Python | Protheus_WebApp/Modules/SIGACTB/CTBA270TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 17 | 2018-09-24T17:27:08.000Z | 2021-09-16T19:09:46.000Z | Protheus_WebApp/Modules/SIGACTB/CTBA270TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 4 | 2018-09-24T17:30:32.000Z | 2022-01-03T11:39:30.000Z | Protheus_WebApp/Modules/SIGACTB/CTBA270TESTCASE.py | 98llm/tir-script-samples | 0bff8393b79356aa562e9e6512c11ee6e039b177 | [
"MIT"
] | 18 | 2019-06-07T17:41:34.000Z | 2022-01-31T18:17:31.000Z | from tir import Webapp
import unittest
class CTBA270(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup("SIGACTB", "29/06/2015", "T1", "M SP 02 ", "34")
inst.oHelper.Program("CTBA270")
#########################... | 40.22963 | 100 | 0.508378 | 1,005 | 10,862 | 5.40597 | 0.193035 | 0.244984 | 0.143383 | 0.076937 | 0.736794 | 0.671268 | 0.606295 | 0.564697 | 0.47414 | 0.395362 | 0 | 0.057059 | 0.27877 | 10,862 | 269 | 101 | 40.379182 | 0.636456 | 0.199687 | 0 | 0.470588 | 0 | 0 | 0.189653 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 1 | 0.058824 | false | 0 | 0.014706 | 0 | 0.080882 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f42a43eaffdd47fbb7b002e215c30847930dea2 | 311 | py | Python | setup.py | astraw/remote_traits | e61a52c12a111d52c9662c3af15a8552cb59083e | [
"MIT"
] | 1 | 2016-05-08T16:08:06.000Z | 2016-05-08T16:08:06.000Z | setup.py | astraw/remote_traits | e61a52c12a111d52c9662c3af15a8552cb59083e | [
"MIT"
] | null | null | null | setup.py | astraw/remote_traits | e61a52c12a111d52c9662c3af15a8552cb59083e | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='remote_traits',
version='0.1',
description='use traits remotely',
license='MIT',
author='Andrew Straw',
author_email='strawman@astraw.com',
url='http://github.com/astraw/remote_traits',
py_modules=['remote_traits'],
)
| 28.272727 | 51 | 0.646302 | 37 | 311 | 5.297297 | 0.756757 | 0.183673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0.205788 | 311 | 10 | 52 | 31.1 | 0.785425 | 0 | 0 | 0 | 0 | 0 | 0.385852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f43b7bd66dfe67e0421f4f744156c6b652dabe7 | 1,663 | py | Python | sample.py | CraftedCart/py_gc_rel_patcher | e9fc5bc3315092e699a7107d6c878627321c7b11 | [
"Unlicense"
] | null | null | null | sample.py | CraftedCart/py_gc_rel_patcher | e9fc5bc3315092e699a7107d6c878627321c7b11 | [
"Unlicense"
] | null | null | null | sample.py | CraftedCart/py_gc_rel_patcher | e9fc5bc3315092e699a7107d6c878627321c7b11 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
##########################################################################################################
# Run the sample.py in your build directory after building, not the one in the root of py_gc_rel_patcher #
##################################################################################... | 35.382979 | 106 | 0.691521 | 175 | 1,663 | 6.531429 | 0.451429 | 0.062992 | 0.083115 | 0.094488 | 0.120735 | 0.07699 | 0 | 0 | 0 | 0 | 0 | 0.081225 | 0.096813 | 1,663 | 46 | 107 | 36.152174 | 0.67976 | 0.508719 | 0 | 0 | 0 | 0 | 0.030822 | 0 | 0 | 0 | 0.136986 | 0.021739 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f43ccc35f5b7dc57398094c912108b0e7f2b2e6 | 3,944 | py | Python | tests/test_figure_generator.py | damirmardanov/figure-generator | 1ed7ee6d423f2d7392e95529336b8f2d35ea65fd | [
"MIT"
] | null | null | null | tests/test_figure_generator.py | damirmardanov/figure-generator | 1ed7ee6d423f2d7392e95529336b8f2d35ea65fd | [
"MIT"
] | null | null | null | tests/test_figure_generator.py | damirmardanov/figure-generator | 1ed7ee6d423f2d7392e95529336b8f2d35ea65fd | [
"MIT"
] | null | null | null | import csv
import os
import cv2
import pytest
import numpy as np
from Converter import Converter
from Main import Application
from Processing import Processing
from Utilities import Writer
from Processing.GaussianNoise import GaussianNoise
class TestValidationCount(object):
def test_empty(self):
assert n... | 27.971631 | 76 | 0.646298 | 491 | 3,944 | 4.953157 | 0.193483 | 0.066201 | 0.103618 | 0.117599 | 0.630757 | 0.600329 | 0.600329 | 0.582237 | 0.534539 | 0.467105 | 0 | 0.021537 | 0.234787 | 3,944 | 140 | 77 | 28.171429 | 0.784294 | 0 | 0 | 0.291262 | 0 | 0 | 0.105984 | 0.075558 | 0 | 0 | 0 | 0 | 0.223301 | 1 | 0.223301 | false | 0 | 0.097087 | 0 | 0.359223 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f46d56112f19622c068a9428431b6d6548675c2 | 329 | py | Python | djangossl/migrations/0002_auto_20200209_1022.py | jacksonpm/django-admin-ssl | c29f9a30398361ce8c28a8759090176afa40c449 | [
"Apache-2.0"
] | null | null | null | djangossl/migrations/0002_auto_20200209_1022.py | jacksonpm/django-admin-ssl | c29f9a30398361ce8c28a8759090176afa40c449 | [
"Apache-2.0"
] | null | null | null | djangossl/migrations/0002_auto_20200209_1022.py | jacksonpm/django-admin-ssl | c29f9a30398361ce8c28a8759090176afa40c449 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.7 on 2020-02-09 13:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangossl', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
name='ssl',
table='ssl',
),... | 18.277778 | 48 | 0.541033 | 32 | 329 | 5.53125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088372 | 0.346505 | 329 | 17 | 49 | 19.352941 | 0.734884 | 0.136778 | 0 | 0 | 1 | 0 | 0.101887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f5070661cc28819482298ce9ecada91fa6731e8 | 3,211 | py | Python | bll/nursing_processor.py | chesteruu/baby_nursing | c3e136abf3c7f47f1e022b579c7de328e95c7764 | [
"MIT"
] | null | null | null | bll/nursing_processor.py | chesteruu/baby_nursing | c3e136abf3c7f47f1e022b579c7de328e95c7764 | [
"MIT"
] | null | null | null | bll/nursing_processor.py | chesteruu/baby_nursing | c3e136abf3c7f47f1e022b579c7de328e95c7764 | [
"MIT"
] | null | null | null | from datetime import timezone, datetime
from models.poo import Poo
from models.nursing import Nursing
from models.bath import Bath
from sqlalchemy import func
from website import db
def _get_last_poo_time():
last_poo_time: datetime = db.session.query(func.max(Poo.poo_time)).scalar()
return last_poo_time.re... | 32.434343 | 109 | 0.705388 | 465 | 3,211 | 4.511828 | 0.144086 | 0.056721 | 0.057674 | 0.026692 | 0.373213 | 0.238322 | 0.186845 | 0.159199 | 0.031459 | 0 | 0 | 0.000781 | 0.202118 | 3,211 | 98 | 110 | 32.765306 | 0.818111 | 0 | 0 | 0.161765 | 0 | 0 | 0.013088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.220588 | false | 0 | 0.088235 | 0.044118 | 0.455882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f51cbb60d744cf72fc7803c7e14fb71ea997665 | 221 | py | Python | src/block/utils/tools.py | Andyye-jx/block_onchain | f51316ddd778eea95e7fbe3743ff2473125c4bd6 | [
"Apache-2.0"
] | null | null | null | src/block/utils/tools.py | Andyye-jx/block_onchain | f51316ddd778eea95e7fbe3743ff2473125c4bd6 | [
"Apache-2.0"
] | null | null | null | src/block/utils/tools.py | Andyye-jx/block_onchain | f51316ddd778eea95e7fbe3743ff2473125c4bd6 | [
"Apache-2.0"
] | null | null | null | from lxml import etree
def parse_xml(content):
raw = {}
root = etree.fromstring(content, parser=etree.XMLParser(resolve_entities=False))
for child in root:
raw[child.tag] = child.text
return raw
| 22.1 | 84 | 0.683258 | 30 | 221 | 4.966667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217195 | 221 | 9 | 85 | 24.555556 | 0.861272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5f59d63862d2497681f43b179e6fdcd43c69f66d | 5,271 | py | Python | runsimulator.py | goiri/hadoopsimulator | cdc2d5e197a95ffef16c9424a8958d80c78e5ede | [
"Apache-2.0"
] | null | null | null | runsimulator.py | goiri/hadoopsimulator | cdc2d5e197a95ffef16c9424a8958d80c78e5ede | [
"Apache-2.0"
] | null | null | null | runsimulator.py | goiri/hadoopsimulator | cdc2d5e197a95ffef16c9424a8958d80c78e5ede | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env pypy
from optparse import OptionParser
import random
import sys
from simulator import Simulator
from node import Node
from job import Job
from workloadmanager import WorkloadManager
def getPriority(nReds):
if nReds<3:
return Job.Priority.VERY_HIGH
elif nReds < 4:
return Job.Priority.HIGH
elif ... | 35.857143 | 179 | 0.648454 | 688 | 5,271 | 4.925872 | 0.271802 | 0.034523 | 0.057539 | 0.012983 | 0.245795 | 0.163175 | 0.133963 | 0.105636 | 0.086751 | 0.086751 | 0 | 0.018386 | 0.205464 | 5,271 | 146 | 180 | 36.10274 | 0.790831 | 0.063366 | 0 | 0.171717 | 0 | 0 | 0.171005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070707 | null | null | 0.050505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.