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
3c988a3bbfa24fe5c3273607b2e3a5909c559524
2,241
py
Python
controlimcap/models/flatattn.py
SikandarBakht/asg2cap
d8a6360eaccdb8c3add5f9c4f6fd72764e47e762
[ "MIT" ]
169
2020-03-15T08:41:39.000Z
2022-03-30T09:36:17.000Z
controlimcap/models/flatattn.py
wtr850/asg2cap
97a1d866d4a2b86c1f474bb168518f97eb2f8b96
[ "MIT" ]
25
2020-05-23T15:14:00.000Z
2022-03-10T06:20:31.000Z
controlimcap/models/flatattn.py
wtr850/asg2cap
97a1d866d4a2b86c1f474bb168518f97eb2f8b96
[ "MIT" ]
25
2020-04-02T10:08:01.000Z
2021-12-09T12:10:10.000Z
import torch import torch.nn as nn import framework.configbase import caption.encoders.vanilla import caption.decoders.attention import caption.models.attention import controlimcap.encoders.flat from caption.models.attention import MPENCODER, ATTNENCODER, DECODER class NodeBUTDAttnModel(caption.models.attention.BU...
43.096154
95
0.764391
287
2,241
5.714286
0.236934
0.085366
0.068293
0.046341
0.417683
0.373171
0.373171
0.373171
0.373171
0.373171
0
0.00402
0.112004
2,241
51
96
43.941176
0.820101
0
0
0.3
0
0
0.080804
0
0
0
0
0
0
1
0.125
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c99a84bfa19cff4eef1b2a7eb8aeb82d35b63a6
5,169
py
Python
pywincffi/kernel32/console.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
10
2015-11-19T12:39:50.000Z
2021-02-21T20:15:29.000Z
pywincffi/kernel32/console.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
109
2015-06-15T05:03:33.000Z
2018-01-14T10:18:48.000Z
pywincffi/kernel32/console.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
8
2015-07-29T04:18:27.000Z
2018-11-02T17:15:40.000Z
""" Console ------- A module containing functions for interacting with a Windows console. """ from six import integer_types from pywincffi.core import dist from pywincffi.core.checks import NON_ZERO, NoneType, input_check, error_check from pywincffi.exceptions import WindowsAPIError from pywincffi.wintypes import HA...
32.923567
83
0.691623
562
5,169
6.240214
0.291815
0.022812
0.027089
0.01882
0.250927
0.201312
0.15854
0.140861
0.117479
0.117479
0
0.001259
0.231573
5,169
156
84
33.134615
0.881672
0.433933
0
0.176471
0
0
0.092115
0.037214
0
0
0
0
0
1
0.044118
false
0
0.073529
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c9a8ed33f779646dc17846360f63018c12812e8
2,568
py
Python
src/extractClimateObservations.py
bcgov/nr-rfc-ensweather
5d1ce776e6eeb35a5672ca194e3c2ced1be98ed6
[ "Apache-2.0" ]
1
2021-03-23T15:32:39.000Z
2021-03-23T15:32:39.000Z
src/extractClimateObservations.py
bcgov/nr-rfc-ensweather
5d1ce776e6eeb35a5672ca194e3c2ced1be98ed6
[ "Apache-2.0" ]
7
2021-02-05T00:52:08.000Z
2022-03-01T21:37:43.000Z
src/extractClimateObservations.py
bcgov/nr-rfc-ensweather
5d1ce776e6eeb35a5672ca194e3c2ced1be98ed6
[ "Apache-2.0" ]
2
2021-02-24T20:29:39.000Z
2021-03-23T15:32:44.000Z
""" extracts the climate observation data from the xlsx spreadsheet to a csv file so that ens weather scripts can consume it. Looks in the folder os.environ["ENS_CLIMATE_OBS"] determines the relationship between the xlsx source and the csv destinations deleteds any csv's and regenerates them by exporting the ALL_DATa...
35.178082
101
0.712227
320
2,568
5.59375
0.428125
0.036313
0.042458
0.021229
0.060335
0
0
0
0
0
0
0.003352
0.186916
2,568
72
102
35.666667
0.853927
0.195093
0
0
0
0
0.166258
0.031878
0
0
0
0
0
1
0.045455
false
0
0.159091
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c9d412ce7e720587944a183ef63dc8c3a37cb1a
2,437
py
Python
server/server/parsing/session.py
PixelogicDev/zoom_attendance_check
7c47066d006ae2205ccb04371115904ec48e3bda
[ "MIT" ]
1
2020-12-30T19:39:56.000Z
2020-12-30T19:39:56.000Z
server/server/parsing/session.py
PixelogicDev/zoom_attendance_check
7c47066d006ae2205ccb04371115904ec48e3bda
[ "MIT" ]
null
null
null
server/server/parsing/session.py
PixelogicDev/zoom_attendance_check
7c47066d006ae2205ccb04371115904ec48e3bda
[ "MIT" ]
null
null
null
import pandas as pd class Session: def __init__(self, students_df, df_session_chat, meta_data): self._first_message_time = df_session_chat["time"].sort_values().iloc[0] self._relevant_chat = self.get_participants_in_session(students_df, df_session_chat, meta_data) @ staticmethod def get_...
55.386364
137
0.684858
356
2,437
4.379213
0.283708
0.08467
0.062861
0.030789
0.07569
0.07569
0.07569
0
0
0
0
0.002515
0.184243
2,437
44
137
55.386364
0.78169
0.140336
0
0
0
0
0.108333
0
0
0
0
0
0
1
0.142857
false
0
0.035714
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3c9f1d64c05ce80fd3ad121b31d428afa01b9e36
4,538
py
Python
project/image.py
Mandrenkov/SVBRDF-Texture-Synthesis
7e7282698befd53383cbd6566039340babb0a289
[ "MIT" ]
2
2021-04-26T14:41:11.000Z
2021-08-20T09:13:03.000Z
project/image.py
Mandrenkov/SVBRDF-Texture-Synthesis
7e7282698befd53383cbd6566039340babb0a289
[ "MIT" ]
null
null
null
project/image.py
Mandrenkov/SVBRDF-Texture-Synthesis
7e7282698befd53383cbd6566039340babb0a289
[ "MIT" ]
null
null
null
import imageio # type: ignore import logging import numpy # type: ignore import os import pathlib import torch import torchvision # type: ignore import utils from torch import Tensor from typing import Callable def load(path: str, encoding: str = 'RGB') -> Tensor: ''' Loads the image at the given path usi...
32.884058
163
0.628691
654
4,538
4.321101
0.227829
0.010616
0.028309
0.037155
0.521585
0.458599
0.374735
0.342887
0.305732
0.254069
0
0.032324
0.243279
4,538
137
164
33.124088
0.790623
0.313134
0
0.275862
0
0
0.194185
0
0
0
0
0
0.137931
1
0.12069
false
0
0.172414
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1af4bb14846eb251b39a1c7a18e1ee46ffce810
12,611
py
Python
node_graph.py
JasonZhuGit/py_path_planner
e045a076c2c69284f1f977420ad93a966161e012
[ "Apache-2.0" ]
null
null
null
node_graph.py
JasonZhuGit/py_path_planner
e045a076c2c69284f1f977420ad93a966161e012
[ "Apache-2.0" ]
null
null
null
node_graph.py
JasonZhuGit/py_path_planner
e045a076c2c69284f1f977420ad93a966161e012
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import matplotlib.pyplot as plt import numpy as np from vertex import Vertex from heap import PriorityQueue class NodeGraph(): ''' The NodeGraph conception comes from computer science textbooks work on graphs in the mathematical sense―a set of vertices ...
35.624294
135
0.505273
1,622
12,611
3.770037
0.145499
0.030908
0.034342
0.036795
0.311365
0.251513
0.22502
0.15045
0.128536
0.128536
0
0.027197
0.358576
12,611
353
136
35.725212
0.728644
0.062089
0
0.20678
0
0
0.021087
0
0
0
0
0
0
1
0.115254
false
0.00678
0.013559
0.013559
0.189831
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1b2da34505536ccd8a8d170d37deaec68c901e7
1,534
py
Python
Y2018/Day09.py
dnsdhrj/advent-of-code-haskell
160257960c7995f3e54f889b3d893894bc898005
[ "BSD-3-Clause" ]
7
2020-11-28T10:29:45.000Z
2022-02-03T07:37:54.000Z
Y2018/Day09.py
sonowz/advent-of-code-haskell
160257960c7995f3e54f889b3d893894bc898005
[ "BSD-3-Clause" ]
null
null
null
Y2018/Day09.py
sonowz/advent-of-code-haskell
160257960c7995f3e54f889b3d893894bc898005
[ "BSD-3-Clause" ]
null
null
null
import re class Doubly: def __init__(self, value, prev=None, next=None): self.value = value self.prev = prev or self self.next = next or self def move(self, n): curr = self for i in range(abs(n)): if n < 0: curr = curr.prev else:...
23.96875
89
0.541069
243
1,534
3.300412
0.279835
0.104738
0.09601
0.027431
0.139651
0.139651
0.139651
0.139651
0.087282
0
0
0.026975
0.323338
1,534
63
90
24.349206
0.745665
0.015645
0
0.039216
0
0
0.016578
0
0
0
0
0
0
1
0.176471
false
0
0.019608
0.058824
0.372549
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1b3c90a89f10cc3abca5ea3c241070e29f4d3b5
628
py
Python
examples/consulta_preco.py
deibsoncarvalho/tabela-fipe-api
2890162e4436611326f0b878f647f344a8d52626
[ "Apache-2.0" ]
null
null
null
examples/consulta_preco.py
deibsoncarvalho/tabela-fipe-api
2890162e4436611326f0b878f647f344a8d52626
[ "Apache-2.0" ]
null
null
null
examples/consulta_preco.py
deibsoncarvalho/tabela-fipe-api
2890162e4436611326f0b878f647f344a8d52626
[ "Apache-2.0" ]
null
null
null
from fipeapi import CARRO, CAMINHAO, MOTO, consulta_preco_veiculo, pega_anos_modelo, pega_modelos from time import sleep def consulta_preco(marca="HONDA"): modelo = pega_modelos(tipo_veiculo=CAMINHAO, marca=marca)[0]['modelo'] print(f"\nAnos do Modelo {modelo} da {marca}:") sleep(2) anos = pega_anos_m...
36.941176
97
0.705414
81
628
5.160494
0.382716
0.124402
0.136364
0.114833
0.138756
0
0
0
0
0
0
0.005803
0.176752
628
16
98
39.25
0.802708
0
0
0
0
0
0.111465
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.25
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1b47b065e5504e7082a3670697994dcf84ff418
853
py
Python
isubscribe/management/commands/announce.py
ilavender/sensu_drive
e874024aa157c7076ccc9465e9d6ae00a4f19fd0
[ "MIT" ]
71
2016-12-25T12:06:07.000Z
2021-02-21T21:14:48.000Z
isubscribe/management/commands/announce.py
ilavender/sensu_drive
e874024aa157c7076ccc9465e9d6ae00a4f19fd0
[ "MIT" ]
7
2016-12-23T23:18:45.000Z
2021-06-10T18:58:14.000Z
isubscribe/management/commands/announce.py
ilavender/sensu_drive
e874024aa157c7076ccc9465e9d6ae00a4f19fd0
[ "MIT" ]
30
2017-01-01T16:18:19.000Z
2021-04-21T15:06:47.000Z
from django.core.management.base import BaseCommand, CommandError from channels import Channel, Group, channel_layers import json from builtins import str class Command(BaseCommand): help = 'Send text announcement on notifications channel (events view)' def add_arguments(self, parser): ...
27.516129
74
0.52755
75
853
5.96
0.613333
0.035794
0
0
0
0
0
0
0
0
0
0
0.37163
853
31
75
27.516129
0.833955
0
0
0.090909
0
0
0.196721
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1b9101a00a5671a8a714dcff7906632b6da9851
849
py
Python
jcms/models/generic_menu_item.py
jessielaf/jcms-pip
ba0580c7cf229b099c17f0286d148018dabf8aa8
[ "MIT" ]
null
null
null
jcms/models/generic_menu_item.py
jessielaf/jcms-pip
ba0580c7cf229b099c17f0286d148018dabf8aa8
[ "MIT" ]
null
null
null
jcms/models/generic_menu_item.py
jessielaf/jcms-pip
ba0580c7cf229b099c17f0286d148018dabf8aa8
[ "MIT" ]
null
null
null
from typing import List from django.template.defaultfilters import slugify from jcms.models.single_menu_item import SingleMenuItem class GenericMenuItem: """ Generic menu item that can be seen in the left bar in the cms """ def __init__(self, title: str, single_menu_items: List[SingleMenuItem], slug:...
30.321429
95
0.657244
110
849
4.927273
0.472727
0.129151
0.166052
0.070111
0.121771
0
0
0
0
0
0
0
0.277974
849
27
96
31.444444
0.884176
0.381625
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1ba9b4717e2cdd9d9bb6e7e1745006030876674
9,572
py
Python
SOC_Photon/Battery State/EKF/sandbox/Hysteresis.py
davegutz/myStateOfCharge
d03dc5e92a9561d4b28be271d4eabe40b48b32ce
[ "MIT" ]
1
2021-12-03T08:56:33.000Z
2021-12-03T08:56:33.000Z
SOC_Photon/Battery State/EKF/sandbox/Hysteresis.py
davegutz/myStateOfCharge
d03dc5e92a9561d4b28be271d4eabe40b48b32ce
[ "MIT" ]
null
null
null
SOC_Photon/Battery State/EKF/sandbox/Hysteresis.py
davegutz/myStateOfCharge
d03dc5e92a9561d4b28be271d4eabe40b48b32ce
[ "MIT" ]
null
null
null
# Hysteresis class to model battery charging / discharge hysteresis # Copyright (C) 2022 Dave Gutz # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; # version 2.1 of the License. # # This...
35.191176
120
0.531446
1,355
9,572
3.612546
0.219926
0.023289
0.033095
0.041675
0.231869
0.178958
0.11665
0.093769
0.090705
0.090705
0
0.081977
0.332219
9,572
271
121
35.321033
0.683824
0.099561
0
0.130435
0
0
0.094296
0.002678
0
0
0
0
0
1
0.062802
false
0
0.038647
0
0.144928
0.004831
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1bc9799f169be42f1deb800510f1f294b2fb871
3,822
py
Python
src/google.com/get_website.py
IRE-Project/Data-Collector
9ca3efc32afe068682d334c8f833cb97ff2af36d
[ "MIT" ]
null
null
null
src/google.com/get_website.py
IRE-Project/Data-Collector
9ca3efc32afe068682d334c8f833cb97ff2af36d
[ "MIT" ]
null
null
null
src/google.com/get_website.py
IRE-Project/Data-Collector
9ca3efc32afe068682d334c8f833cb97ff2af36d
[ "MIT" ]
null
null
null
"""@file This file is responsible for extracting website from google search results and formatting them for later use. """ import json from urllib.parse import urlparse import nltk import os tc = 0 cp = 0 def find_website(raw_data): """ Uses several rule based techniques to find candidate websites for a compa...
27.695652
118
0.554422
471
3,822
4.399151
0.305732
0.02027
0.011583
0.015927
0.047297
0
0
0
0
0
0
0.00728
0.317111
3,822
137
119
27.89781
0.78659
0.193878
0
0.180723
0
0
0.114363
0.032963
0
0
0
0
0
1
0.048193
false
0
0.048193
0
0.144578
0.060241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1c12120eb1970800352a4b0dd3d40166babaf18
2,354
py
Python
api/serializers.py
openjobs-cinfo/openjobs-api
b902d41fc20167727bd058a77906ddb9a83fd52f
[ "MIT" ]
null
null
null
api/serializers.py
openjobs-cinfo/openjobs-api
b902d41fc20167727bd058a77906ddb9a83fd52f
[ "MIT" ]
null
null
null
api/serializers.py
openjobs-cinfo/openjobs-api
b902d41fc20167727bd058a77906ddb9a83fd52f
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from .models import Degree, Job, Skill, DataOrigin, Address, Qualification, User class DegreeSerializer(ModelSerializer): class Meta: model = Degree fields = ('id', 'name', 'description') class AddressSerializer(ModelSerializer): class M...
28.707317
115
0.643161
222
2,354
6.698198
0.315315
0.060525
0.129119
0.136516
0.365837
0.309348
0.274378
0.217888
0
0
0
0
0.229397
2,354
81
116
29.061728
0.819735
0
0
0.344828
0
0
0.169074
0
0
0
0
0
0
1
0.017241
false
0.034483
0.034483
0
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1c1b0752a916c3d0a0607d4658e6692c2c8187f
506
py
Python
naive_program.py
silentShadow/Python-3.5
acbbbc88826d9168ef2af29ca465930256f67332
[ "MIT" ]
null
null
null
naive_program.py
silentShadow/Python-3.5
acbbbc88826d9168ef2af29ca465930256f67332
[ "MIT" ]
null
null
null
naive_program.py
silentShadow/Python-3.5
acbbbc88826d9168ef2af29ca465930256f67332
[ "MIT" ]
null
null
null
import urllib.request urls = [ "https://www.google.com","httpr://www.python.org" ] for link in urls: request = urllib.request.Request( link) response = urllib.request.urlopen( request) ''' action here ''' '''\ NORMAL: sloooow [][][] [][] [][]{}{} {}{}{} {}{}{} {} THREADING: st...
23
60
0.420949
39
506
5.461538
0.692308
0.183099
0
0
0
0
0
0
0
0
0
0
0.280632
506
22
61
23
0.585165
0
0
0
0
0
0.209524
0.104762
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1c431a1f0a698ee3cb88df0ac882e928a41cf16
1,133
py
Python
CS303/lab4-6/work/algorithm_ncs/ncs_client.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS303_Artifical-Intelligence/NCS/algorithm_ncs/ncs_client.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS303/lab4-6/work/algorithm_ncs/ncs_client.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import json from algorithm_ncs import ncs_c as ncs import argparse parser = argparse.ArgumentParser(description="This is a NCS solver") parser.add_argument("-c", "--config", default="algorithm_ncs/parameter.json", type=str, help="a json file that contains parameter") parser.add_argument("-d", "--data", default="6", ...
29.815789
131
0.655781
170
1,133
4.164706
0.470588
0.069209
0.048023
0.070621
0
0
0
0
0
0
0
0.012048
0.194175
1,133
37
132
30.621622
0.763417
0
0
0
0
0
0.225198
0.027778
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1c525fad1b20ec7dd22a4699a9e0a34d0093f34
1,999
py
Python
src/setup.py
umedoblock/fugou
45d95f20bba6f85764fb686081098d92fc8cdb20
[ "BSD-3-Clause" ]
null
null
null
src/setup.py
umedoblock/fugou
45d95f20bba6f85764fb686081098d92fc8cdb20
[ "BSD-3-Clause" ]
2
2018-11-25T12:06:08.000Z
2018-12-05T14:37:59.000Z
src/setup.py
umedoblock/fugou
45d95f20bba6f85764fb686081098d92fc8cdb20
[ "BSD-3-Clause" ]
null
null
null
# name # name of the package short string (1) # version # version of this release short string (1)(2) # author # package author’s name short string (3) # author_email # email address of the package author email address (3) # maintainer # package maintainer’s name short string (3) # maintainer_email ...
27.763889
64
0.630815
247
1,999
4.995951
0.323887
0.06483
0.048622
0.074554
0.111831
0.047002
0
0
0
0
0
0.014795
0.256128
1,999
71
65
28.15493
0.815064
0.435218
0
0
0
0
0.22384
0.041856
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1ca7d47ebdd386eeb55838e16468d553751ab0a
2,910
py
Python
DeleteBackupFiles/deletebackupfile.py
Liuzkai/PythonScript
fb21ad80e085f6390ae970b81404f7e5c7923f4e
[ "MIT" ]
1
2021-01-16T16:09:33.000Z
2021-01-16T16:09:33.000Z
DeleteBackupFiles/deletebackupfile.py
Liuzkai/PythonScript
fb21ad80e085f6390ae970b81404f7e5c7923f4e
[ "MIT" ]
null
null
null
DeleteBackupFiles/deletebackupfile.py
Liuzkai/PythonScript
fb21ad80e085f6390ae970b81404f7e5c7923f4e
[ "MIT" ]
1
2021-01-16T16:09:36.000Z
2021-01-16T16:09:36.000Z
# -*- coding: utf-8 -*- # https://oldj.net/ u""" 同步两个文件夹 用法: python syncdir.py source_dir target_dir 执行后,source_dir 中的文件将被同步到 target_dir 中 这个同步是单向的,即只将 source_dir 中更新或新增的文件拷到 target_dir 中, 如果某个文件在 source_dir 中不存在而在 target_dir 中存在,本程序不会删除那个文件, 也不会将其拷贝到 source_dir 中 判断文件是否更新的方法是比较文件最后修改时间以及文件大小是否一致 """ import os im...
30.957447
155
0.55189
362
2,910
4.207182
0.312155
0.082731
0.049245
0.059094
0.143139
0.031517
0.031517
0.031517
0
0
0
0.019319
0.324055
2,910
93
156
31.290323
0.754957
0.224399
0
0.037037
0
0.018519
0.126452
0.075067
0
0
0
0
0
1
0.037037
false
0
0.055556
0
0.092593
0.203704
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1cc39d59dda967c7dcf371addd5df5990b99e23
5,004
py
Python
enkube/util.py
rfairburn/enkube-1
47910bbcc05a40a5b32c97d44aab9ca5c7038ed0
[ "Apache-2.0" ]
null
null
null
enkube/util.py
rfairburn/enkube-1
47910bbcc05a40a5b32c97d44aab9ca5c7038ed0
[ "Apache-2.0" ]
2
2019-12-03T20:05:03.000Z
2021-09-30T17:37:45.000Z
enkube/util.py
rfairburn/enkube-1
47910bbcc05a40a5b32c97d44aab9ca5c7038ed0
[ "Apache-2.0" ]
1
2019-12-03T19:23:05.000Z
2019-12-03T19:23:05.000Z
# Copyright 2018 SpiderOak, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
25.927461
93
0.632894
563
5,004
5.394316
0.351687
0.026342
0.027988
0.035561
0.088904
0.064537
0.064537
0.064537
0.064537
0.064537
0
0.002771
0.278777
5,004
192
94
26.0625
0.838736
0.110312
0
0.264706
0
0
0.007886
0
0
0
0
0
0
1
0.125
false
0.014706
0.095588
0.036765
0.455882
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1d089298e5f4bb67268690bc90d7e531a39929b
7,710
py
Python
aleph/model/document.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
1
2017-07-28T12:54:09.000Z
2017-07-28T12:54:09.000Z
aleph/model/document.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
7
2017-08-16T12:49:23.000Z
2018-02-16T10:22:11.000Z
aleph/model/document.py
gazeti/aleph
f6714c4be038471cfdc6408bfe88dc9e2ed28452
[ "MIT" ]
6
2017-07-26T12:29:53.000Z
2017-08-18T09:35:50.000Z
import logging from datetime import datetime, timedelta from normality import ascii_text from sqlalchemy import func from sqlalchemy.dialects.postgresql import JSONB from sqlalchemy.orm.attributes import flag_modified from aleph.core import db from aleph.model.metadata import Metadata from aleph.model.validate import ...
35.366972
113
0.623476
952
7,710
4.893908
0.212185
0.027044
0.02361
0.029191
0.25499
0.185018
0.128783
0.086714
0.075123
0.075123
0
0.002644
0.264073
7,710
217
114
35.529954
0.81847
0.054475
0
0.136364
0
0
0.060369
0
0
0
0
0.004608
0
1
0.090909
false
0
0.090909
0.005682
0.357955
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1d542377c13c57ca40f0aad4217a57a0a2f3e27
5,438
py
Python
tests/test_filters.py
maniospas/pygrank
a92f6bb6d13553dd960f2e6bda4c041a8027a9d1
[ "Apache-2.0" ]
19
2019-10-07T14:42:40.000Z
2022-03-24T15:02:02.000Z
tests/test_filters.py
maniospas/pygrank
a92f6bb6d13553dd960f2e6bda4c041a8027a9d1
[ "Apache-2.0" ]
13
2021-08-25T12:54:37.000Z
2022-03-05T03:31:34.000Z
tests/test_filters.py
maniospas/pygrank
a92f6bb6d13553dd960f2e6bda4c041a8027a9d1
[ "Apache-2.0" ]
4
2019-09-25T09:54:51.000Z
2020-12-09T00:11:21.000Z
import networkx as nx import pygrank as pg import pytest from .test_core import supported_backends def test_zero_personalization(): assert pg.sum(pg.PageRank()(next(pg.load_datasets_graph(["graph9"])), {}).np) == 0 def test_abstract_filter_types(): graph = next(pg.load_datasets_graph(["graph5"])) with p...
39.693431
136
0.685914
692
5,438
5.219653
0.193642
0.054817
0.03876
0.069767
0.501938
0.45598
0.368494
0.286545
0.267165
0.206811
0
0.019564
0.172858
5,438
137
137
39.693431
0.783459
0.01986
0
0.349057
0
0
0.03247
0
0
0
0
0.007299
0.113208
1
0.132075
false
0
0.04717
0
0.179245
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1d7b3ea3f8d942998560e953fec761fcb002a45
2,433
py
Python
procgen.py
tredfern/rdl2021-tutorial
18f992c9c09ab18ee8e2927cf53d707c251d4948
[ "MIT" ]
null
null
null
procgen.py
tredfern/rdl2021-tutorial
18f992c9c09ab18ee8e2927cf53d707c251d4948
[ "MIT" ]
null
null
null
procgen.py
tredfern/rdl2021-tutorial
18f992c9c09ab18ee8e2927cf53d707c251d4948
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Trevor Redfern # # This software is released under the MIT License. # https://opensource.org/licenses/MIT from __future__ import annotations from typing import Tuple, Iterator, List, TYPE_CHECKING import random import tcod from game_map import GameMap import tile_types if TYPE_CHECKI...
25.610526
95
0.628442
320
2,433
4.734375
0.3125
0.009241
0.029043
0.013861
0.030363
0.030363
0.030363
0
0
0
0
0.026403
0.252774
2,433
94
96
25.882979
0.806931
0.048911
0
0.092308
0
0
0
0
0
0
0
0
0
1
0.092308
false
0
0.107692
0.030769
0.276923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1d821122ad47a7fa47c073b2ce27f383a3871d3
1,492
py
Python
examples/plot_simulate_bo.py
pmdaly/supereeg
750f55db3cbfc2f3430e879fecc7a1f5407282a6
[ "MIT" ]
1
2018-12-10T01:38:48.000Z
2018-12-10T01:38:48.000Z
examples/plot_simulate_bo.py
pmdaly/supereeg
750f55db3cbfc2f3430e879fecc7a1f5407282a6
[ "MIT" ]
null
null
null
examples/plot_simulate_bo.py
pmdaly/supereeg
750f55db3cbfc2f3430e879fecc7a1f5407282a6
[ "MIT" ]
1
2019-06-25T21:34:12.000Z
2019-06-25T21:34:12.000Z
# -*- coding: utf-8 -*- """ ============================= Simulating a brain object ============================= In this example, we demonstrate the simulate_bo function. First, we'll load in some example locations. Then we'll simulate 1 brain object specifying a noise parameter and the correlational structure of the...
27.127273
92
0.731233
223
1,492
4.753363
0.457399
0.062264
0.026415
0.039623
0
0
0
0
0
0
0
0.016988
0.132038
1,492
54
93
27.62963
0.801544
0.536863
0
0
0
0
0.025449
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1d8cc75992fcd005adcc90ea90aa099fbd29007
5,031
py
Python
examples/fmanipulator.py
mateusmoutinho/python-cli-args
40b758db808e96b3c12a3e0a87b6904660e90d9b
[ "MIT" ]
null
null
null
examples/fmanipulator.py
mateusmoutinho/python-cli-args
40b758db808e96b3c12a3e0a87b6904660e90d9b
[ "MIT" ]
null
null
null
examples/fmanipulator.py
mateusmoutinho/python-cli-args
40b758db808e96b3c12a3e0a87b6904660e90d9b
[ "MIT" ]
null
null
null
from io import TextIOWrapper from typing import IO, Text from cli_args_system import Args from cli_args_system import Args, FlagsContent from sys import exit HELP = """this is a basic file manipulator to demonstrate args_system usage with file flags -------------------flags---------------------------- -join: join th...
29.25
79
0.650566
781
5,031
4.067862
0.165173
0.02046
0.020774
0.032106
0.217816
0.179729
0.129997
0.109852
0.051621
0.021404
0
0.006799
0.239913
5,031
171
80
29.421053
0.824006
0.252634
0
0.082353
0
0
0.314774
0.028666
0
0
0
0
0
1
0.082353
false
0.011765
0.058824
0
0.164706
0.047059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1dc9ba592a6ef41c372eaa2cd477c8b9c68c9a0
7,289
py
Python
src/Navigate.py
Qu-Xiangjun/CQU_NK_Research_Project
8634ce3496801610bc94aa3a424bcd9cff8d042e
[ "MIT" ]
1
2021-04-14T12:52:47.000Z
2021-04-14T12:52:47.000Z
src/Navigate.py
Qu-Xiangjun/CQU_NK_Research_Project
8634ce3496801610bc94aa3a424bcd9cff8d042e
[ "MIT" ]
null
null
null
src/Navigate.py
Qu-Xiangjun/CQU_NK_Research_Project
8634ce3496801610bc94aa3a424bcd9cff8d042e
[ "MIT" ]
null
null
null
""" @Author: Qu Xiangjun @Time: 2021.01.26 @Describe: 此文件负责根据雷达数据进行导航的线程类定义 """ import socket import time from threading import Thread import threading import numpy as np # python3.8.0 64位(python 32位要用32位的DLL) from ctypes import * from Navigation_help import * from Can_frame_help import * VCI_USBCAN2 = 4 # 设备类型 USBCA...
33.589862
89
0.522568
779
7,289
4.650834
0.32991
0.064587
0.050235
0.043058
0.259453
0.216671
0.187414
0.181065
0.172233
0.127795
0
0.040229
0.375909
7,289
216
90
33.74537
0.755771
0.154754
0
0.311594
0
0
0.089873
0.003689
0
0
0.004695
0
0
1
0.014493
false
0
0.057971
0
0.108696
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1e3076f57089de6bfe7eeff45ef0b802cbca8fa
5,057
py
Python
superviselySDK/supervisely_lib/geometry/bitmap_base.py
nicehuster/mmdetection-supervisely-person-datasets
ff1b57e16a71378510571dbb9cebfdb712656927
[ "Apache-2.0" ]
40
2019-05-05T08:08:18.000Z
2021-10-17T00:07:58.000Z
superviselySDK/supervisely_lib/geometry/bitmap_base.py
nicehuster/mmdetection-supervisely-person-datasets
ff1b57e16a71378510571dbb9cebfdb712656927
[ "Apache-2.0" ]
8
2019-06-13T06:00:08.000Z
2021-07-24T05:25:33.000Z
superviselySDK/supervisely_lib/geometry/bitmap_base.py
nicehuster/mmdetection-supervisely-person-datasets
ff1b57e16a71378510571dbb9cebfdb712656927
[ "Apache-2.0" ]
6
2019-07-30T06:36:27.000Z
2021-06-03T11:57:36.000Z
# coding: utf-8 import numpy as np from supervisely_lib.geometry.constants import DATA, ORIGIN from supervisely_lib.geometry.geometry import Geometry from supervisely_lib.geometry.point_location import PointLocation from supervisely_lib.geometry.rectangle import Rectangle from supervisely_lib.imaging.image import res...
40.782258
120
0.686969
677
5,057
4.889217
0.215657
0.029003
0.026586
0.024169
0.147734
0.107553
0.107553
0.093051
0.063444
0.063444
0
0.008048
0.213763
5,057
123
121
41.113821
0.824447
0.088392
0
0.141176
0
0
0.074852
0
0
0
0
0.00813
0
1
0.176471
false
0
0.070588
0.058824
0.388235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1edfb7e986ee60ac0da1a869a4e400f7398c3fe
1,492
py
Python
app/display_modules/ags/tests/test_tasks.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/display_modules/ags/tests/test_tasks.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
app/display_modules/ags/tests/test_tasks.py
MetaGenScope/metagenscope-server
609cd57c626c857c8efde8237a1f22f4d1e6065d
[ "MIT" ]
null
null
null
"""Test suite for Average Genome Size tasks.""" from app.display_modules.ags.ags_tasks import boxplot, ags_distributions from app.samples.sample_models import Sample from app.tool_results.microbe_census.tests.factory import create_microbe_census from tests.base import BaseTestCase class TestAverageGenomeSizeTasks(B...
38.25641
79
0.635389
186
1,492
4.956989
0.430108
0.081345
0.078091
0.041215
0.073753
0.073753
0.073753
0
0
0
0
0.04007
0.230563
1,492
38
80
39.263158
0.763066
0.125335
0
0
0
0
0.064113
0
0
0
0
0
0.36
1
0.12
false
0
0.16
0
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1efcf80cebb01dff50a1e2a45ff4368cec1958a
4,428
py
Python
metrics.py
efratkohen/Project
d95d20a1be8fe0e0918b3e699c640f36704639f8
[ "MIT" ]
1
2020-07-25T11:27:17.000Z
2020-07-25T11:27:17.000Z
metrics.py
efratkohen/Project
d95d20a1be8fe0e0918b3e699c640f36704639f8
[ "MIT" ]
null
null
null
metrics.py
efratkohen/Project
d95d20a1be8fe0e0918b3e699c640f36704639f8
[ "MIT" ]
null
null
null
import traceback import numpy as np from matplotlib import pyplot, pyplot as plt from sklearn.metrics import ( mean_squared_error, median_absolute_error, roc_curve, auc, f1_score, precision_recall_curve, r2_score, ) from sklearn.metrics import confusion_matrix import column_labeler as clabel...
28.203822
80
0.613144
622
4,428
4.155949
0.215434
0.073114
0.027079
0.021277
0.34352
0.301741
0.288201
0.255706
0.217408
0.17176
0
0.026535
0.268067
4,428
156
81
28.384615
0.771058
0.022358
0
0.275591
0
0
0.054579
0
0
0
0
0
0
1
0.07874
false
0
0.055118
0.023622
0.212598
0.023622
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1f203c60f7518be9918994e126f2868a0f76ed4
30,681
py
Python
main.py
RohiBaner/Beijing-Air-Quality-Prediction
4ec823ceacef1b61e1c1e5689a97a1335e4b5867
[ "MIT" ]
3
2019-09-23T10:04:05.000Z
2021-03-10T12:12:28.000Z
main.py
RohiBaner/Beijing-Air-Quality-Prediction
4ec823ceacef1b61e1c1e5689a97a1335e4b5867
[ "MIT" ]
null
null
null
main.py
RohiBaner/Beijing-Air-Quality-Prediction
4ec823ceacef1b61e1c1e5689a97a1335e4b5867
[ "MIT" ]
null
null
null
''' --------------------------------------------IMPORTING NECESSARY LIBRARIES------------------------------------------- ''' import numpy as np import pandas as pd from math import radians, cos, sin, asin, sqrt from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import LabelEncoder, OneHotEnc...
57.671053
249
0.702031
4,597
30,681
4.484011
0.09876
0.027749
0.009315
0.012419
0.514481
0.433901
0.392519
0.358463
0.308398
0.283462
0
0.026379
0.14126
30,681
531
250
57.779661
0.755987
0.268831
0
0.070513
0
0
0.267038
0.018116
0
0
0
0
0
1
0.022436
false
0
0.032051
0
0.076923
0.057692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1f22c9adbe507763be9a3e8cffbcec89c6b45a4
234
py
Python
examples/SortTimeDemo.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
null
null
null
examples/SortTimeDemo.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
4
2019-11-07T12:32:19.000Z
2020-07-19T14:04:44.000Z
examples/SortTimeDemo.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
5
2019-12-04T15:56:55.000Z
2022-01-14T06:19:18.000Z
import random import time n = eval(input("Enter the number of elements to sort: ")) lst = list(range(n)) random.shuffle(lst) startTime = time.time() lst.sort() print("Sort time in Python is", int(time.time() - startTime), "seconds")
23.4
72
0.705128
37
234
4.459459
0.648649
0.09697
0
0
0
0
0
0
0
0
0
0
0.136752
234
10
72
23.4
0.816832
0
0
0
0
0
0.285106
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1f5f177dec08c59abe32983e95271dfac01dbdf
1,239
py
Python
tests/conftest.py
andrewsayre/pysmartapp
5c3be867584d7e82d00b5998295b20bd12eccf94
[ "MIT" ]
10
2019-02-07T20:07:10.000Z
2020-12-30T20:29:32.000Z
tests/conftest.py
andrewsayre/pysmartapp
5c3be867584d7e82d00b5998295b20bd12eccf94
[ "MIT" ]
1
2021-12-05T15:00:13.000Z
2021-12-05T15:00:13.000Z
tests/conftest.py
andrewsayre/pysmartapp
5c3be867584d7e82d00b5998295b20bd12eccf94
[ "MIT" ]
2
2020-10-17T20:20:45.000Z
2021-09-28T12:58:50.000Z
"""Define common test configuraiton.""" import pytest from pysmartapp.dispatch import Dispatcher from pysmartapp.smartapp import SmartApp, SmartAppManager @pytest.fixture def smartapp(event_loop) -> SmartApp: """Fixture for testing against the SmartApp class.""" app = SmartApp(dispatcher=Dispatcher(loop=eve...
26.361702
66
0.67958
142
1,239
5.880282
0.316901
0.062275
0.076647
0.057485
0.435928
0.292216
0.22515
0.22515
0.22515
0.22515
0
0
0.215496
1,239
46
67
26.934783
0.859054
0.184019
0
0.451613
0
0
0.054822
0
0
0
0
0
0
1
0.16129
false
0
0.096774
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1f8c5ac672b61358853182ee48a06e86cda8b9c
294
py
Python
to_do_list.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
to_do_list.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
to_do_list.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
todo_list = ["" for i in range(11)] command = input() while command != 'End': task = command.split('-') importance = int(task[0]) thing_to_do = task[1] todo_list[importance] = thing_to_do command = input() final_list = [x for x in todo_list if x != ""] print(final_list)
21
46
0.629252
45
294
3.911111
0.533333
0.136364
0.102273
0
0
0
0
0
0
0
0
0.017391
0.217687
294
14
47
21
0.747826
0
0
0.2
0
0
0.013559
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1fa447d2310139f7a8d64aba2e5e1395276502b
6,035
py
Python
run.py
Tracymbone/password_locker
346a3c770174d20fe24720fd4875f5f4e222d582
[ "MIT" ]
null
null
null
run.py
Tracymbone/password_locker
346a3c770174d20fe24720fd4875f5f4e222d582
[ "MIT" ]
null
null
null
run.py
Tracymbone/password_locker
346a3c770174d20fe24720fd4875f5f4e222d582
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 from socket import create_server from users import Users from credentials import Credentials def create_credentials(first_name, last_name, user_name, credential): users = Users(first_name, last_name, user_name, credential) return users def save_user(users): users.save_user() d...
28.875598
136
0.471914
581
6,035
4.75043
0.185886
0.04058
0.028261
0.018478
0.45471
0.419928
0.41087
0.385507
0.385507
0.385507
0
0.011098
0.447556
6,035
209
137
28.875598
0.816737
0.015907
0
0.471831
0
0.021127
0.17738
0.009382
0
0
0
0
0
1
0.091549
false
0.021127
0.021127
0.042254
0.169014
0.288732
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1faa38cc22b54eb622228d21323a509bcdbceb8
2,346
py
Python
menu_info/menu_details.py
averytorres/WazHack-Clone
e53e9b1b64f3828b20e45d4eeaafcdedf9bc6fda
[ "Unlicense" ]
1
2019-06-21T17:13:35.000Z
2019-06-21T17:13:35.000Z
menu_info/menu_details.py
averytorres/WazHack-Clone
e53e9b1b64f3828b20e45d4eeaafcdedf9bc6fda
[ "Unlicense" ]
18
2019-06-25T00:48:11.000Z
2019-07-11T17:52:24.000Z
menu_info/menu_details.py
averytorres/WazHack-Clone
e53e9b1b64f3828b20e45d4eeaafcdedf9bc6fda
[ "Unlicense" ]
1
2019-06-21T17:08:23.000Z
2019-06-21T17:08:23.000Z
from game_states import GameStates from action_consumer.available_actions_enum import Action def get_menu_title(menu_name): menu_titles = {} menu_titles.update({GameStates.SHOW_INVENTORY:'Press the key next to an item to use it, or Esc to cancel.\n'}) menu_titles.update({GameStates.DROP_INVENTORY: 'Press...
39.1
132
0.728048
347
2,346
4.697406
0.230548
0.196319
0.107975
0.159509
0.531902
0.446626
0.402454
0.304294
0.304294
0.220859
0
0.013699
0.159847
2,346
59
133
39.762712
0.813293
0
0
0
0
0
0.202559
0
0
0
0
0
0
1
0.113636
false
0
0.045455
0.045455
0.340909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1fc50952b7cf799deab08fe85f0849c2cbaf2f0
1,154
py
Python
tests/unit/fileserver/test_hgfs.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2020-03-31T22:51:16.000Z
2020-03-31T22:51:16.000Z
tests/unit/fileserver/test_hgfs.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
tests/unit/fileserver/test_hgfs.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2021-09-30T07:00:01.000Z
2021-09-30T07:00:01.000Z
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import, print_function, unicode_literals # Import Salt Testing libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase from tests.support.mock import patch # Import Salt libs import salt.fileserve...
28.85
72
0.618718
127
1,154
5.275591
0.393701
0.044776
0.107463
0.095522
0.352239
0.235821
0.235821
0.235821
0.113433
0.113433
0
0.001229
0.294627
1,154
39
73
29.589744
0.821867
0.165511
0
0.1
0
0
0.115942
0.098105
0
0
0
0
0.1
1
0.15
false
0
0.25
0.05
0.5
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1fd1af131dc102c96ef990fe42c7c22c4e492de
1,273
py
Python
networks/model_factory.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
5
2021-09-07T13:33:45.000Z
2022-02-12T18:56:45.000Z
networks/model_factory.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
null
null
null
networks/model_factory.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
4
2021-09-25T06:56:38.000Z
2022-03-24T18:06:08.000Z
import torch.nn as nn from networks.resnet import resnet18 from networks.shufflenet import shufflenet_v2_x1_0 from networks.cifar_net import Net from networks.mlp import MLP class ModelFactory(): def __init__(self): pass @staticmethod def get_model(target_model, num_classes, img_size, pretrained...
31.04878
91
0.639434
152
1,273
5.092105
0.328947
0.129199
0.054264
0.05814
0.427649
0.363049
0.317829
0.317829
0
0
0
0.026432
0.286724
1,273
40
92
31.825
0.825991
0
0
0.233333
0
0
0.022013
0
0
0
0
0
0
1
0.066667
false
0.033333
0.166667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b1ff61ec8eb947ca5da56f846d344d35e22df2db
5,536
py
Python
main.py
MarySueTeam/Video_Maker
a3bbdeb49b5f887d5f8dbc3b4e57b955d4ee3671
[ "MIT" ]
1
2022-03-04T09:25:11.000Z
2022-03-04T09:25:11.000Z
main.py
MarySueTeam/Video_Maker
a3bbdeb49b5f887d5f8dbc3b4e57b955d4ee3671
[ "MIT" ]
null
null
null
main.py
MarySueTeam/Video_Maker
a3bbdeb49b5f887d5f8dbc3b4e57b955d4ee3671
[ "MIT" ]
1
2022-01-25T16:19:25.000Z
2022-01-25T16:19:25.000Z
from manim import * from TTS.TTS import get_mp3_file from utils import cut, get_duration, deal_text import time class Video(Scene): def construct(self): # INFO 视频开头 LOGO = ImageMobject("./media/images/logo.png").scale(0.3).to_edge(UP, buff=2) Slogan_text = "为你收集日落时的云朵,为你收藏下雨后的天空" g...
48.99115
129
0.62211
700
5,536
4.797143
0.195714
0.046456
0.082192
0.072365
0.328172
0.268017
0.191781
0.191781
0.156045
0.156045
0
0.033247
0.228504
5,536
113
130
48.99115
0.752985
0.012825
0
0.020833
0
0
0.183916
0.108628
0
0
0
0
0
1
0.010417
false
0
0.041667
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5901159e3f1532199cb8c881801333e8fca64f93
1,518
py
Python
sevenbridges/models/compound/tasks/batch_by.py
sbg/sevenbridges-python
b3e14016066563470d978c9b13e1a236a41abea8
[ "Apache-2.0" ]
46
2016-04-27T12:51:17.000Z
2021-11-24T23:43:12.000Z
sevenbridges/models/compound/tasks/batch_by.py
sbg/sevenbridges-python
b3e14016066563470d978c9b13e1a236a41abea8
[ "Apache-2.0" ]
111
2016-05-25T15:44:31.000Z
2022-02-05T20:45:37.000Z
sevenbridges/models/compound/tasks/batch_by.py
sbg/sevenbridges-python
b3e14016066563470d978c9b13e1a236a41abea8
[ "Apache-2.0" ]
37
2016-04-27T12:10:43.000Z
2021-03-18T11:22:28.000Z
from sevenbridges.meta.resource import Resource # noinspection PyUnresolvedReferences,PyProtectedMember class BatchBy(Resource, dict): """ Task batch by resource. """ _name = 'batch_by' # noinspection PyMissingConstructor def __init__(self, **kwargs): self.parent = kwargs.pop('_parent...
27.107143
77
0.554018
176
1,518
4.482955
0.318182
0.08872
0.070976
0.091255
0.08365
0
0
0
0
0
0
0
0.320817
1,518
55
78
27.6
0.765276
0.073781
0
0
0
0
0.012959
0
0
0
0
0
0
1
0.146341
false
0
0.02439
0
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
590721cca2145e8661012d52208da3bcc5dbe108
230
py
Python
Semester-1/Lab8/src/lab_A.py
Vipul-Cariappa/Collage-CS-Lab
0a0193df9575a4e69b60759d974423202ddf544b
[ "MIT" ]
null
null
null
Semester-1/Lab8/src/lab_A.py
Vipul-Cariappa/Collage-CS-Lab
0a0193df9575a4e69b60759d974423202ddf544b
[ "MIT" ]
null
null
null
Semester-1/Lab8/src/lab_A.py
Vipul-Cariappa/Collage-CS-Lab
0a0193df9575a4e69b60759d974423202ddf544b
[ "MIT" ]
2
2022-03-04T14:06:15.000Z
2022-03-16T17:32:10.000Z
# program to display first n lines in a text file n = int(input("Enter number of lines: ")) with open("note.txt") as file: while n > 0: print( file.readline(), end="" ) n -= 1
19.166667
49
0.5
32
230
3.59375
0.8125
0
0
0
0
0
0
0
0
0
0
0.013986
0.378261
230
11
50
20.909091
0.79021
0.204348
0
0
0
0
0.171271
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59079f538bc9e256df53c65451be92c382f11c5c
23,420
py
Python
eplusplus/view/mainWindow.py
labeee/EPlusPlus
da6cbd60575146a8f165fb72e165919cd83ddc24
[ "MIT" ]
1
2018-02-06T17:41:12.000Z
2018-02-06T17:41:12.000Z
eplusplus/view/mainWindow.py
labeee/EPlusPlus
da6cbd60575146a8f165fb72e165919cd83ddc24
[ "MIT" ]
null
null
null
eplusplus/view/mainWindow.py
labeee/EPlusPlus
da6cbd60575146a8f165fb72e165919cd83ddc24
[ "MIT" ]
1
2021-06-29T02:49:59.000Z
2021-06-29T02:49:59.000Z
import os import sys import ctypes import webbrowser from .lineEdit import LineEdit from .dialogWithCheckBox import DialogWithCheckBox from eplusplus.controller import ActorUser from eplusplus.exception import ColumnException, NoIdfException, InstallException, NoCsvException from PyQt5.QtCore import QSize, Qt, QRect fr...
40.589255
101
0.608839
2,525
23,420
5.637228
0.184158
0.033441
0.04686
0.039834
0.405929
0.360967
0.328369
0.291766
0.263594
0.234228
0
0.006056
0.302007
23,420
577
102
40.589255
0.864685
0.363877
0
0.27972
0
0
0.079667
0.002217
0
0
0
0
0
1
0.073427
false
0
0.048951
0
0.125874
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5907d7fbfcc198ea821785faf5ae482c8f858484
4,555
py
Python
CHAPTER 11 (search trees)/red_black_trees_class.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 11 (search trees)/red_black_trees_class.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 11 (search trees)/red_black_trees_class.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
from tree_map_class import * class RedBlackTreeMap(TreeMap): """Sorted map implementation using red-black tree.""" class _Node(TreeMap._Node): """Node class for red-black tree maintains bit that denotes color.""" __slots__ = "_red" # add additional data member to the Node class ...
46.958763
88
0.528211
585
4,555
3.907692
0.247863
0.048994
0.052493
0.041995
0.118548
0.020997
0
0
0
0
0
0.004407
0.35236
4,555
96
89
47.447917
0.770508
0.286718
0
0.076923
0
0
0.00125
0
0
0
0
0
0
1
0.141026
false
0
0.012821
0.025641
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5909f08bda2ad877f9982af2cd854a38d7dd516a
13,029
py
Python
intake_sdmx.py
dr-leo/intake_sdmx
dccd51e6ce4aa352fba0a0c25dfac82148acd1e3
[ "Apache-2.0" ]
null
null
null
intake_sdmx.py
dr-leo/intake_sdmx
dccd51e6ce4aa352fba0a0c25dfac82148acd1e3
[ "Apache-2.0" ]
3
2021-05-29T19:46:36.000Z
2022-01-15T14:15:22.000Z
intake_sdmx.py
dr-leo/intake_sdmx
dccd51e6ce4aa352fba0a0c25dfac82148acd1e3
[ "Apache-2.0" ]
1
2021-05-28T13:14:53.000Z
2021-05-28T13:14:53.000Z
"""intake plugin for SDMX data sources""" import intake from intake.catalog import Catalog from intake.catalog.utils import reload_on_change from intake.catalog.local import LocalCatalogEntry, UserParameter import pandasdmx as sdmx from collections.abc import MutableMapping from datetime import date from itertools im...
36.805085
90
0.54939
1,420
13,029
4.859859
0.215493
0.010433
0.014201
0.00739
0.107086
0.088683
0.073323
0.063179
0.063179
0.052746
0
0.001908
0.356359
13,029
353
91
36.909348
0.821011
0.131629
0
0.194853
0
0
0.116882
0.001871
0
0
0
0.002833
0
1
0.073529
false
0
0.029412
0.029412
0.209559
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5910779f16295dd8d8929f180e23470f2321f629
1,388
py
Python
apps/exp/afe/afe_bfcc.py
yt7589/mgs
2faae1b69e6d4cde63afb9b2432b1bf49ebdd770
[ "Apache-2.0" ]
null
null
null
apps/exp/afe/afe_bfcc.py
yt7589/mgs
2faae1b69e6d4cde63afb9b2432b1bf49ebdd770
[ "Apache-2.0" ]
null
null
null
apps/exp/afe/afe_bfcc.py
yt7589/mgs
2faae1b69e6d4cde63afb9b2432b1bf49ebdd770
[ "Apache-2.0" ]
null
null
null
# #import scipy #from scipy import io as sio import scipy.io.wavfile from ext.spafe.utils import vis from ext.spafe.features.bfcc import bfcc class AfeBfcc: @staticmethod def extract_bfcc(wav_file): print('获取BFCC特征') num_ceps = 13 low_freq = 0 high_freq = 2000 nfilts = 2...
30.844444
77
0.50072
163
1,388
4.128834
0.374233
0.011887
0.041605
0.011887
0.035661
0.035661
0.035661
0
0
0
0
0.026498
0.37464
1,388
45
78
30.844444
0.748848
0.103026
0
0
0
0
0.09135
0.046079
0
0
0
0
0
1
0.027778
false
0
0.083333
0
0.138889
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
591491ff550ba32d4e2ae2cbc52705d6ad0c7c72
4,673
py
Python
notifier_bot.py
maticardenas/football_api_notif
81f9e265d4effb7545e3d9ad80ee1109cd9b8edf
[ "MIT" ]
null
null
null
notifier_bot.py
maticardenas/football_api_notif
81f9e265d4effb7545e3d9ad80ee1109cd9b8edf
[ "MIT" ]
null
null
null
notifier_bot.py
maticardenas/football_api_notif
81f9e265d4effb7545e3d9ad80ee1109cd9b8edf
[ "MIT" ]
null
null
null
import logging from datetime import date from telegram import Update from telegram.ext import ApplicationBuilder, CommandHandler from config.notif_config import NotifConfig from src.emojis import Emojis from src.team_fixtures_manager import TeamFixturesManager from src.telegram_bot.bot_commands_handler import NextAnd...
37.685484
116
0.684571
549
4,673
5.577413
0.216758
0.035271
0.04115
0.061724
0.556499
0.517636
0.506205
0.506205
0.506205
0.506205
0
0.001374
0.221485
4,673
123
117
37.99187
0.839472
0
0
0.490385
0
0.009615
0.18853
0.073614
0
0
0
0
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
0
0
0
0
0
0
0
0
0
0
1
0
59177fedfb201ef7cf401094e43b1d49ac1b2c09
8,576
py
Python
events/models.py
Strategy-Tap/Novizi-BackEnd
536edde68dc79ad5467f2dbb0931a56930a4edea
[ "MIT" ]
null
null
null
events/models.py
Strategy-Tap/Novizi-BackEnd
536edde68dc79ad5467f2dbb0931a56930a4edea
[ "MIT" ]
4
2021-04-08T21:23:49.000Z
2022-03-12T00:44:54.000Z
events/models.py
Strategy-Tap/Novizi-BackEnd
536edde68dc79ad5467f2dbb0931a56930a4edea
[ "MIT" ]
1
2020-06-12T16:08:46.000Z
2020-06-12T16:08:46.000Z
"""Collection of model.""" from typing import Any from django.conf import settings from django.db import models from django.db.models.signals import pre_save from django.dispatch import receiver from django.utils.translation import gettext_lazy as _ from djgeojson.fields import PointField from .utils import get_read_...
30.519573
87
0.653451
994
8,576
5.395372
0.15493
0.073839
0.033563
0.038038
0.483125
0.459258
0.410218
0.360992
0.319038
0.267201
0
0.002526
0.215252
8,576
280
88
30.628571
0.794354
0.119986
0
0.267857
0
0
0.111638
0.006368
0
0
0
0
0
1
0.113095
false
0
0.047619
0
0.488095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5918b94351e68baf0dc788cb62fb44c5a012741d
2,276
py
Python
raster_compare/base/raster_data_difference.py
jomey/raster_compare
5199005d01f569e187e944d62af0ea70c383d16a
[ "MIT" ]
1
2021-11-13T12:59:53.000Z
2021-11-13T12:59:53.000Z
raster_compare/base/raster_data_difference.py
jomey/raster_compare
5199005d01f569e187e944d62af0ea70c383d16a
[ "MIT" ]
null
null
null
raster_compare/base/raster_data_difference.py
jomey/raster_compare
5199005d01f569e187e944d62af0ea70c383d16a
[ "MIT" ]
null
null
null
import numpy as np from osgeo import gdal from .median_absolute_deviation import MedianAbsoluteDeviation from .raster_file import RasterFile class RasterDataDifference(object): GDAL_DRIVER = gdal.GetDriverByName('GTiff') def __init__(self, lidar, sfm, band_number): self.lidar = RasterFile(lidar, ban...
27.756098
76
0.629174
279
2,276
4.870968
0.197133
0.135394
0.113319
0.05298
0.353937
0.318617
0.318617
0.318617
0.286976
0.286976
0
0.001229
0.28471
2,276
81
77
28.098765
0.833538
0
0
0.333333
0
0
0.002197
0
0
0
0
0
0
1
0.181818
false
0
0.060606
0.060606
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
591f579f62bec7c986797fa9d6cc59de7656817e
527
py
Python
util/logger.py
code4hk/NewsdiffHK-Backend
76ffd933fe9900a0bd2191597a210ddf86d2a8cd
[ "MIT" ]
5
2015-03-29T19:19:16.000Z
2015-06-20T09:37:39.000Z
util/logger.py
code4hk/NewsdiffHK-Backend
76ffd933fe9900a0bd2191597a210ddf86d2a8cd
[ "MIT" ]
28
2015-04-07T13:34:57.000Z
2015-05-25T13:30:36.000Z
util/logger.py
code4hk/NewsdiffHK-Backend
76ffd933fe9900a0bd2191597a210ddf86d2a8cd
[ "MIT" ]
null
null
null
from util.env import log_dir import logging class MyFormatter(logging.Formatter): def formatTime(self, record, datefmt=None): return logging.Formatter.formatTime(self, record, datefmt).replace(',', '.') def get(name): log = logging.getLogger(name) log.setLevel(logging.DEBUG) formatter = MyFo...
29.277778
84
0.70019
65
527
5.630769
0.507692
0.032787
0.10929
0.147541
0
0
0
0
0
0
0
0
0.157495
527
18
85
29.277778
0.824324
0
0
0
0
0
0.100379
0.070076
0
0
0
0
0
1
0.142857
false
0
0.142857
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
592176ee7d34af8c375b741cef8c2df674d9c4b5
2,243
py
Python
piservicebusclient.py
nikkh/pi
237c0c0effcf69c15c6fb2791c7fd49eb1e254aa
[ "Unlicense" ]
null
null
null
piservicebusclient.py
nikkh/pi
237c0c0effcf69c15c6fb2791c7fd49eb1e254aa
[ "Unlicense" ]
null
null
null
piservicebusclient.py
nikkh/pi
237c0c0effcf69c15c6fb2791c7fd49eb1e254aa
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import colorsys from azure.servicebus import ServiceBusService from azure.servicebus import Message from blinkt import set_pixel, set_brightness, show, clear import time import json class Payload(object): def __init__(self, j): self.__dict__ = json.loads(j) def snake( r, g, b ): "Th...
28.392405
78
0.602764
317
2,243
4.164038
0.388013
0.018182
0.009091
0.037879
0.05
0.025758
0.025758
0
0
0
0
0.041743
0.273741
2,243
78
79
28.75641
0.76857
0.069996
0
0.185714
0
0
0.113436
0.011623
0
0
0
0
0
1
0.042857
false
0
0.085714
0
0.142857
0.128571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59269ff1d7149784a5bf3e067f0e6975db562830
14,031
py
Python
apps/part_interpolation&replacement/part_replacement.py
GuillaumeDufau/3D-point-capsule-networks
369206df643edb263d43cf2d05923cf0a26841e5
[ "MIT" ]
283
2019-04-14T12:58:54.000Z
2022-03-30T11:49:38.000Z
apps/part_interpolation&replacement/part_replacement.py
LONG-9621/3D-Point-Capsule-Networks
161ac9042ca9c048f4b531ae26fe94a29b13e777
[ "MIT" ]
20
2019-05-01T05:40:02.000Z
2021-11-20T11:15:17.000Z
apps/part_interpolation&replacement/part_replacement.py
LONG-9621/3D-Point-Capsule-Networks
161ac9042ca9c048f4b531ae26fe94a29b13e777
[ "MIT" ]
55
2019-04-22T12:14:42.000Z
2022-03-25T06:26:36.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 12 17:45:51 2018 @author: zhao """ import argparse import torch import torch.nn.parallel from torch.autograd import Variable import torch.optim as optim import torch.nn.functional as F import sys import os import numpy as np BASE_DIR = os.path.dir...
44.26183
170
0.662818
2,057
14,031
4.209528
0.156539
0.048504
0.027717
0.025523
0.515533
0.414829
0.338838
0.2953
0.254995
0.231666
0
0.035776
0.2131
14,031
317
171
44.26183
0.748483
0.058798
0
0.121622
0
0
0.069737
0.019426
0
0
0
0
0
1
0.004505
false
0
0.067568
0
0.072072
0.004505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
592749e0c27abaef8d986702717878c311749a54
6,839
py
Python
src/Grid.py
RavinSG/aaivu-ride-hailing-simulation
eb7bc7cc6a5830d40509ce22fe4fa2eb013e6767
[ "Apache-2.0" ]
8
2021-02-18T19:02:59.000Z
2022-02-19T13:38:48.000Z
src/Grid.py
Programmer-RD-AI/aaivu-ride-hailing-simulation
f315661c94c9e3f26bab1d8bb9c35d21b1a60479
[ "Apache-2.0" ]
null
null
null
src/Grid.py
Programmer-RD-AI/aaivu-ride-hailing-simulation
f315661c94c9e3f26bab1d8bb9c35d21b1a60479
[ "Apache-2.0" ]
2
2021-02-14T03:28:51.000Z
2022-02-19T13:38:51.000Z
import simpy import itertools import numpy as np from RideSimulator.Driver import Driver from RideSimulator.HexGrid import HexGrid def get_spot_locations(width: int, height: int, interval: int) -> np.ndarray: """ :param width: width of the grid :param height: height of the grid :param interval: distan...
41.70122
120
0.640445
972
6,839
4.365226
0.209877
0.023097
0.014141
0.013198
0.20198
0.181711
0.130332
0.130332
0.130332
0.130332
0
0.009455
0.273139
6,839
163
121
41.957055
0.844096
0.324901
0
0.105882
0
0
0
0
0
0
0
0
0
1
0.105882
false
0
0.058824
0.011765
0.258824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
592b099ed5239bc2e197e2c20d2d55bdd277f278
881
py
Python
src/block_constants.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
5
2015-09-11T04:13:01.000Z
2021-11-17T14:35:28.000Z
src/block_constants.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
null
null
null
src/block_constants.py
cemulate/minecraft-hdl
a46da8d2a29aad9c2fc84037d677190c6db80dcd
[ "MIT" ]
1
2021-03-15T17:31:27.000Z
2021-03-15T17:31:27.000Z
REDSTONE = 55 REPEATER = 93 TORCH = 75 AIR = 0 GLASS = 20 SLAB = 44 DOUBLE_SLAB = 43 WOOL = 35 DIR_WEST_POS_Z = 0 DIR_NORTH_NEG_X = 1 DIR_EAST_NEG_Z = 2 DIR_SOUTH_POS_X = 3 TORCH_ON_GROUND = 5 TORCH_POINTING_POS_X = 1 TORCH_POINTING_NEG_X = 2 TORCH_POINTING_POS_Z = 3 TORCH_POINTING_NEG_Z = 4 STONE_SLAB_TOP = 8 DO...
17.62
29
0.538025
129
881
3.333333
0.503876
0.12093
0.074419
0
0
0
0
0
0
0
0
0.097345
0.358683
881
50
30
17.62
0.663717
0
0
0
0
0
0.099773
0
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
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
592b8f8cacb2754ab7e4528631c3f40cfdc1b7e7
4,973
py
Python
qfc/dirhandler.py
akhilkedia/qfc
101861bd2fb818564245249fc93f278752684b51
[ "MIT" ]
null
null
null
qfc/dirhandler.py
akhilkedia/qfc
101861bd2fb818564245249fc93f278752684b51
[ "MIT" ]
null
null
null
qfc/dirhandler.py
akhilkedia/qfc
101861bd2fb818564245249fc93f278752684b51
[ "MIT" ]
null
null
null
import os import subprocess import sys class CVSHandler(): """ Handler of CVS (fir, mercurial...) directories, The main purpose of this class is to cache external cvs command output, and determine the appropriate files to yield when navigating to a subdirectory of a project. This basically means th...
42.87069
246
0.648904
696
4,973
4.482759
0.248563
0.020192
0.03141
0.032051
0.246154
0.151923
0.112821
0.078205
0.078205
0.078205
0
0.002983
0.258395
4,973
115
247
43.243478
0.843004
0.311884
0
0.246914
0
0.012346
0.101649
0
0
0
0
0
0
1
0.148148
false
0
0.037037
0.049383
0.45679
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
592c8f23fd0453baefac3223ac8d226123072b8f
436
py
Python
demo1/jsons.py
dollarkillerx/Python-Data-Analysis
f208d5ce9951e9fca2d084a89290100b7e543154
[ "MIT" ]
null
null
null
demo1/jsons.py
dollarkillerx/Python-Data-Analysis
f208d5ce9951e9fca2d084a89290100b7e543154
[ "MIT" ]
null
null
null
demo1/jsons.py
dollarkillerx/Python-Data-Analysis
f208d5ce9951e9fca2d084a89290100b7e543154
[ "MIT" ]
null
null
null
import json filename = "data.json" mydata = { "title":"我的测试数据", "lesson":{ "python":"学习中", 'vue':"学习完毕", "golang":"基本精通" }, "games":{ "GAT":"一年没有玩了" }, } # 文件写入 with open(filename,'w',encoding="utf-8") as data: # 数据,文件句柄,json缩进空格数 json.dump(mydata,data,inden...
16.769231
49
0.538991
54
436
4.351852
0.685185
0.068085
0.13617
0.119149
0.153191
0
0
0
0
0
0
0.009317
0.261468
436
25
50
17.44
0.720497
0.066514
0
0
0
0
0.19403
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
592ca011fcc9c84fa4da0a8bde9dd4daf4629fd5
280
py
Python
Scripts/malware_scan/classess/progress.py
Team-Zed-cf/Team-Zed
662eee2948502fca0bdc477955db17e2d32f92aa
[ "MIT" ]
null
null
null
Scripts/malware_scan/classess/progress.py
Team-Zed-cf/Team-Zed
662eee2948502fca0bdc477955db17e2d32f92aa
[ "MIT" ]
null
null
null
Scripts/malware_scan/classess/progress.py
Team-Zed-cf/Team-Zed
662eee2948502fca0bdc477955db17e2d32f92aa
[ "MIT" ]
null
null
null
import progressbar, time from .colors import * # progress bar def animated_marker(): widgets = ['In Process: ', progressbar.AnimatedMarker()] bar = progressbar.ProgressBar(widgets=widgets).start() for i in range(18): time.sleep(0.1) bar.update(i)
28
61
0.660714
34
280
5.411765
0.676471
0
0
0
0
0
0
0
0
0
0
0.018182
0.214286
280
10
62
28
0.818182
0.042857
0
0
0
0
0.044944
0
0
0
0
0
0
1
0.125
false
0
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
0
0
0
0
0
1
0
593150e1f3c9a373acbf0b4f5ce7f05a49bde1de
4,406
py
Python
single_subject_workflow.py
tknapen/reward_np_analysis
29bcc02d5acd23689dee7059ecb1607d2814cdf0
[ "MIT" ]
null
null
null
single_subject_workflow.py
tknapen/reward_np_analysis
29bcc02d5acd23689dee7059ecb1607d2814cdf0
[ "MIT" ]
null
null
null
single_subject_workflow.py
tknapen/reward_np_analysis
29bcc02d5acd23689dee7059ecb1607d2814cdf0
[ "MIT" ]
null
null
null
# from nipype import config # config.enable_debug_mode() # Importing necessary packages import os import os.path as op import glob import json import nipype from nipype import config, logging import matplotlib.pyplot as plt import nipype.interfaces.fsl as fsl import nipype.pipeline.engine as pe import nipype.interfaces...
40.422018
170
0.682705
591
4,406
4.890017
0.307953
0.041176
0.041522
0.031488
0.438062
0.39827
0.351211
0.261246
0.172318
0.104498
0
0.005578
0.226963
4,406
108
171
40.796296
0.842924
0.159555
0
0.148649
0
0
0.142935
0.084893
0
0
0
0
0
1
0
false
0.027027
0.27027
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
593db3c128dcad16c4059d93406558fd51b30469
5,617
py
Python
wark.py
rcorre/wark
fe4fe4789cb63bb2738265c3a008dc3dadb8ddaa
[ "MIT" ]
1
2017-05-24T00:25:39.000Z
2017-05-24T00:25:39.000Z
wark.py
rcorre/wark
fe4fe4789cb63bb2738265c3a008dc3dadb8ddaa
[ "MIT" ]
null
null
null
wark.py
rcorre/wark
fe4fe4789cb63bb2738265c3a008dc3dadb8ddaa
[ "MIT" ]
null
null
null
import os import json import uuid import shlex import weechat import requests from ciscosparkapi import CiscoSparkAPI from ws4py.client.threadedclient import WebSocketClient SCRIPT_NAME = "spark" FULL_NAME = "plugins.var.python.{}".format(SCRIPT_NAME) SPARK_SOCKET_URL = 'https://wdm-a.wbx2.com/wdm/api/v1/devices' ...
28.226131
79
0.590707
675
5,617
4.820741
0.333333
0.033805
0.025814
0.033805
0.096497
0.059004
0.025814
0.025814
0.025814
0.025814
0
0.00582
0.2658
5,617
198
80
28.368687
0.78322
0.142069
0
0.098485
0
0
0.166177
0.013219
0
0
0
0
0
1
0.106061
false
0.015152
0.060606
0
0.242424
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
593ea1a84d21ae7ff3a90ce0dfc4e0f0d6b66ac7
4,728
py
Python
Leander_Stephen_D'Souza/Joystick/Joystick_Motor_Code_using_PWM_library.py
leander-dsouza/MRM-Tenure
3f372ffeeb12b04f4c5c636235db61725d47c3c6
[ "MIT" ]
2
2020-08-26T04:01:03.000Z
2020-09-11T05:21:32.000Z
Leander_Stephen_D'Souza/Joystick/Joystick_Motor_Code_using_PWM_library.py
leander-dsouza/MRM-Tenure
3f372ffeeb12b04f4c5c636235db61725d47c3c6
[ "MIT" ]
null
null
null
Leander_Stephen_D'Souza/Joystick/Joystick_Motor_Code_using_PWM_library.py
leander-dsouza/MRM-Tenure
3f372ffeeb12b04f4c5c636235db61725d47c3c6
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time import pygame from pygame import locals import pygame.display GPIO.setmode(GPIO.BOARD) GPIO.setwarnings(False) speedA = 0.000 speedB = 0.000 x = 512.00 y = 512.00 # frequency=100Hz t_on = 0.00 t_off = 0.00 ledpin1 =35 # left_fwd ledpin2 =36 # right_fwd l...
27.172414
78
0.556684
675
4,728
3.844444
0.151111
0.022351
0.073988
0.110983
0.56262
0.544123
0.509056
0.402698
0.402698
0.396146
0
0.191489
0.294205
4,728
173
79
27.32948
0.586155
0.045474
0
0.28125
0
0
0.009032
0
0
0
0
0
0
1
0.070313
false
0
0.039063
0.007813
0.117188
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
593f2fd2545bc28f967b04b9e6d7e99629ac3a94
8,548
py
Python
rest_helpers/type_serializers.py
WillFr/restlax
ec47617d915094137077f641427976f04acd8d47
[ "Apache-2.0" ]
1
2019-07-03T16:29:05.000Z
2019-07-03T16:29:05.000Z
rest_helpers/type_serializers.py
WillFr/restlax
ec47617d915094137077f641427976f04acd8d47
[ "Apache-2.0" ]
null
null
null
rest_helpers/type_serializers.py
WillFr/restlax
ec47617d915094137077f641427976f04acd8d47
[ "Apache-2.0" ]
null
null
null
""" This module contains functions that are geared toward serializing objects, in particular JSON API objects. """ import decimal from collections import Iterable from rest_helpers.jsonapi_objects import Resource, Response, Link, JsonApiObject, Relationship def to_jsonable(obj, no_empty_field=False, is_private=None):...
33.786561
168
0.681797
1,148
8,548
4.939895
0.134146
0.038794
0.017457
0.025216
0.344207
0.283372
0.247928
0.213895
0.208076
0.208076
0
0.000768
0.238184
8,548
252
169
33.920635
0.870086
0.437997
0
0.074468
0
0
0.039167
0
0
0
0
0
0.074468
1
0.095745
false
0
0.031915
0
0.297872
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5942ff8661f94ed3c33e9cd05d6389cd70d923f4
1,753
py
Python
Wizard Battle App/wizardbattle.py
rayjustinhuang/PythonApps
ba5572fbff38de71f806558c5d0be5827962aebb
[ "MIT" ]
null
null
null
Wizard Battle App/wizardbattle.py
rayjustinhuang/PythonApps
ba5572fbff38de71f806558c5d0be5827962aebb
[ "MIT" ]
null
null
null
Wizard Battle App/wizardbattle.py
rayjustinhuang/PythonApps
ba5572fbff38de71f806558c5d0be5827962aebb
[ "MIT" ]
null
null
null
import random import time from characters import Wizard, Creature def main(): game_header() game_loop() def game_header(): print('------------------------------') print(' WIZARD TEXT GAME APP') print('------------------------------') def game_loop(): creatures = [ Creature('T...
25.405797
84
0.50599
190
1,753
4.578947
0.457895
0.08046
0.064368
0.03908
0.050575
0
0
0
0
0
0
0.01113
0.333714
1,753
68
85
25.779412
0.733733
0.040502
0
0.170213
0
0
0.285629
0.035778
0
0
0
0
0
1
0.06383
false
0
0.06383
0
0.12766
0.276596
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5943869d3d4d2e30ae0802900ea733c4c32ec043
2,581
py
Python
xmastreegame/ThreadedTree.py
martinohanlon/GPIOXmasTreeGame
0d32ff7ca4fe3c2b536f5fa4490d09c1caf54b3a
[ "MIT" ]
2
2015-01-21T22:13:53.000Z
2017-12-13T17:57:37.000Z
xmastreegame/ThreadedTree.py
martinohanlon/GPIOXmasTreeGame
0d32ff7ca4fe3c2b536f5fa4490d09c1caf54b3a
[ "MIT" ]
null
null
null
xmastreegame/ThreadedTree.py
martinohanlon/GPIOXmasTreeGame
0d32ff7ca4fe3c2b536f5fa4490d09c1caf54b3a
[ "MIT" ]
null
null
null
import threading from time import sleep import RPi.GPIO as GPIO illumination_time_default = 0.001 class XmasTree(threading.Thread): #Pins #Model B+ or A+ #A, B, C, D = 21, 19, 26, 20 #Other model, probably Model A or Model B #A, B, C, D = 7, 9, 11, 8 def __init__(self, A = 21,B = ...
25.058252
62
0.533514
376
2,581
3.585106
0.332447
0.071217
0.008902
0.011869
0.029674
0.029674
0.029674
0.029674
0
0
0
0.046108
0.352964
2,581
102
63
25.303922
0.761078
0.20341
0
0.031746
0
0
0.003927
0
0
0
0
0
0
1
0.079365
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59445fc42f57f15739274fff9371a3ae622d87a7
1,962
py
Python
cap7/ex5.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap7/ex5.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap7/ex5.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
jogo = [[], [], []], [[], [], []], [[], [], []] cont = 0 contx = conto = contxc = contoc = 0 while True: l = int(input('Informe a linha: ')) c = int(input('Informe a coluna: ')) if l < 4 and c < 4: if cont % 2 == 0: jogo[l-1][c-1] = 'X' else: jogo[l-1][c-1] = 'O' ...
35.035714
77
0.35474
249
1,962
2.795181
0.160643
0.086207
0.158046
0.094828
0.610632
0.521552
0.521552
0.501437
0.426724
0.317529
0
0.056039
0.472477
1,962
55
78
35.672727
0.616425
0
0
0.454545
0
0
0.095821
0
0
0
0
0
0
1
0
false
0
0
0
0
0.327273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5944d36b482e6230d5854a8d2998c95179d5d03e
23,625
py
Python
lib/intercom_test/framework.py
rtweeks/intercom_test
a682088af93d280297764b639f4727ec4716673f
[ "Apache-2.0" ]
null
null
null
lib/intercom_test/framework.py
rtweeks/intercom_test
a682088af93d280297764b639f4727ec4716673f
[ "Apache-2.0" ]
null
null
null
lib/intercom_test/framework.py
rtweeks/intercom_test
a682088af93d280297764b639f4727ec4716673f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 PayTrace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
40.247019
132
0.634201
2,860
23,625
5.025874
0.177972
0.03395
0.008418
0.007931
0.202379
0.140392
0.086128
0.043829
0.031167
0.017671
0
0.001144
0.296847
23,625
586
133
40.3157
0.864134
0.324233
0
0.201807
0
0
0.036031
0
0
0
0
0
0
1
0.108434
false
0
0.042169
0.009036
0.246988
0.006024
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5945f3b8e933ce01f957d7f582aa80cb9b902687
1,283
py
Python
2020/03/day3.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2020/03/day3.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
null
null
null
2020/03/day3.py
AlbertVeli/AdventOfCode
3d3473695318a0686fac720a1a21dd3629f09e33
[ "Unlicense" ]
1
2021-12-04T10:37:09.000Z
2021-12-04T10:37:09.000Z
#!/usr/bin/env python3 # Day 3, with some speed optimizations # Not really necessary for day 3, but probably later import sys import typing import array if len(sys.argv) != 2: print('Usage:', sys.argv[0], '<input.txt>') sys.exit(1) width = 0 heigth = 0 # Use 1-d array of bytes to keep pixels def read_input...
18.070423
52
0.533125
205
1,283
3.317073
0.409756
0.030882
0.026471
0
0
0
0
0
0
0
0
0.036613
0.318784
1,283
70
53
18.328571
0.741419
0.168355
0
0
0
0
0.018886
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0.020833
0.1875
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
59470f4e50387be73fea566efd45c232849a6813
226
py
Python
Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Bisection Search.py
Dittz/Learning_Python
4c0c97075ef5e1717f82e2cf24b0587f0c8504f5
[ "MIT" ]
null
null
null
Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Bisection Search.py
Dittz/Learning_Python
4c0c97075ef5e1717f82e2cf24b0587f0c8504f5
[ "MIT" ]
null
null
null
Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Bisection Search.py
Dittz/Learning_Python
4c0c97075ef5e1717f82e2cf24b0587f0c8504f5
[ "MIT" ]
null
null
null
x = 23 epsilon = 0.001 guess = x/2 tries = 0 while abs(guess**2- x) >= epsilon: if guess**2 > x: guess /=2 else: guess *=1.5 tries +=1 print(f'Number of tries: {tries}') print(f'Guess = {guess}')
15.066667
34
0.535398
38
226
3.184211
0.473684
0.14876
0.115702
0
0
0
0
0
0
0
0
0.086957
0.287611
226
14
35
16.142857
0.664596
0
0
0
0
0
0.172566
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
594b9e391b71aa4e58f65f8b436f15f1fdaebd0a
2,440
py
Python
tests/unit/test_refresh_utils.py
anukaal/cloud-sql-python-connector
e8799c7de46dbe11a91a9a29173a5cfd279a561d
[ "Apache-2.0" ]
null
null
null
tests/unit/test_refresh_utils.py
anukaal/cloud-sql-python-connector
e8799c7de46dbe11a91a9a29173a5cfd279a561d
[ "Apache-2.0" ]
null
null
null
tests/unit/test_refresh_utils.py
anukaal/cloud-sql-python-connector
e8799c7de46dbe11a91a9a29173a5cfd279a561d
[ "Apache-2.0" ]
null
null
null
"""" Copyright 2021 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
30.123457
84
0.690164
311
2,440
5.302251
0.421222
0.036386
0.043663
0.05094
0.493633
0.413584
0.413584
0.374773
0.31413
0.264403
0
0.008776
0.206148
2,440
80
85
30.5
0.84254
0.240164
0
0.390244
0
0
0.167282
0
0
0
0
0
0.04878
1
0
false
0
0.146341
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ca23892448af2cabbc53d9df0bfd9fc4244b346
1,416
py
Python
crack-data-structures-and-algorithms/leetcode/sort_list_q148.py
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
20
2016-05-16T11:09:04.000Z
2021-12-08T09:30:33.000Z
crack-data-structures-and-algorithms/leetcode/sort_list_q148.py
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
1
2018-12-30T09:55:31.000Z
2018-12-30T14:08:30.000Z
crack-data-structures-and-algorithms/leetcode/sort_list_q148.py
Watch-Later/Eureka
3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35
[ "MIT" ]
11
2016-05-02T09:17:12.000Z
2021-12-08T09:30:35.000Z
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def sortList(self, head): """ :type head: ListNode :rtype: ListNode """ return merge_sort_list(head) def merge_sort...
22.47619
89
0.57274
208
1,416
3.831731
0.413462
0.031368
0.065245
0.06399
0
0
0
0
0
0
0
0.028785
0.337571
1,416
62
90
22.83871
0.820896
0.325565
0
0.114286
0
0
0
0
0
0
0
0
0
1
0.114286
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ca2e7b053503c5f1274ef05c3605bdeeddc592f
71,712
py
Python
Source Codes/CDBC_Source_Code.py
CDBCTool/CDBC
70e64241e4fb7687832e3771f316cb036f6fc3c7
[ "MIT" ]
13
2019-05-13T22:45:32.000Z
2022-02-27T07:19:16.000Z
Source Codes/CDBC_Source_Code.py
CDBCTool/CDBC
70e64241e4fb7687832e3771f316cb036f6fc3c7
[ "MIT" ]
2
2019-09-03T03:57:06.000Z
2021-11-21T14:01:31.000Z
Source Codes/CDBC_Source_Code.py
CDBCTool/CDBC
70e64241e4fb7687832e3771f316cb036f6fc3c7
[ "MIT" ]
3
2019-11-04T17:05:02.000Z
2021-12-29T18:14:51.000Z
from PyQt4.QtCore import * from PyQt4.QtGui import * import sys,os,time from scipy.stats import gamma, norm, beta import matplotlib.pyplot as plt from datetime import date, timedelta import numpy as np import tkinter from os import listdir from os.path import isfile, join def sorted_values(Obs,Sim): co...
45.76388
228
0.526146
8,150
71,712
4.560982
0.081104
0.022409
0.014796
0.01598
0.618826
0.583934
0.546379
0.525638
0.501345
0.465942
0
0.031493
0.336262
71,712
1,566
229
45.793103
0.749443
0.077755
0
0.443099
0
0.006457
0.118288
0.004236
0
0
0
0
0
1
0.037127
false
0
0.008071
0
0.05569
0.001614
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ca4fb77d1058786e6c3813cfbd46b9161c2b28a
3,473
py
Python
lagom/core/es/base_es_master.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
lagom/core/es/base_es_master.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
lagom/core/es/base_es_master.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
from lagom.core.multiprocessing import BaseIterativeMaster class BaseESMaster(BaseIterativeMaster): """ Base class for master of parallelized evolution strategies (ES). It internally defines an ES algorithm. In each generation, it distributes all sampled solution candidates, each for one worker...
37.344086
98
0.600921
397
3,473
5.115869
0.382872
0.027573
0.023634
0.01871
0.024618
0
0
0
0
0
0
0.009182
0.341492
3,473
93
99
37.344086
0.878881
0.520299
0
0.068966
0
0
0
0
0
0
0
0
0.034483
1
0.172414
false
0
0.034483
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ca513ca1cc8091c31b7381ae44ccedd1283fc01
1,096
py
Python
Roman_Morozov_dz_3/task_5.py
Wern-rm/2074_GB_Python
f0b7a7f4ed993a007c1aef6ec9ce266adb5a3646
[ "MIT" ]
null
null
null
Roman_Morozov_dz_3/task_5.py
Wern-rm/2074_GB_Python
f0b7a7f4ed993a007c1aef6ec9ce266adb5a3646
[ "MIT" ]
null
null
null
Roman_Morozov_dz_3/task_5.py
Wern-rm/2074_GB_Python
f0b7a7f4ed993a007c1aef6ec9ce266adb5a3646
[ "MIT" ]
null
null
null
""" Реализовать функцию get_jokes(), возвращающую n шуток, сформированных из трех случайных слов, взятых из трёх списков (по одному из каждого): """ import random nouns = ["автомобиль", "лес", "огонь", "город", "дом"] adverbs = ["сегодня", "вчера", "завтра", "позавчера", "ночью"] adjectives = ["веселый", "яркий", "зе...
40.592593
140
0.666058
139
1,096
5.158273
0.489209
0.055788
0.072524
0.075314
0.404463
0.359833
0.359833
0.359833
0.270572
0.172943
0
0.003311
0.173358
1,096
27
141
40.592593
0.788079
0.127737
0
0.111111
0
0
0.107482
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ca67e9442436a3a4c05f92ccc99c1b4150df427
11,217
py
Python
tools.py
akerestely/nonlinearBestFit
e45b5e33dd8fdfc2f9bd19b48523b1759e694fc4
[ "MIT" ]
1
2019-10-09T07:39:55.000Z
2019-10-09T07:39:55.000Z
tools.py
akerestely/nonlinearBestFit
e45b5e33dd8fdfc2f9bd19b48523b1759e694fc4
[ "MIT" ]
null
null
null
tools.py
akerestely/nonlinearBestFit
e45b5e33dd8fdfc2f9bd19b48523b1759e694fc4
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd np.random.seed(421) def hCG(x: np.ndarray, A: float, B: float, alpha: float): return A * np.exp(-alpha * x) + B def gen_rand_points(n: int, A: float = 1000, B: float = 3, alpha: float = 0.01, noise: float = 2, consecutive: bool = False): """ :param n: number of poin...
36.537459
174
0.61594
1,595
11,217
4.230094
0.172414
0.008893
0.010375
0.032014
0.384615
0.35349
0.262635
0.219357
0.200534
0.18838
0
0.016943
0.25809
11,217
307
175
36.537459
0.7938
0.127128
0
0.373333
0
0.017778
0.057431
0.002181
0
0
0
0
0
1
0.084444
false
0.013333
0.137778
0.004444
0.262222
0.008889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ca9eb97e4365037a9faa4fd695283f51ac6d5a4
3,870
py
Python
sciflo/utils/mail.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
null
null
null
sciflo/utils/mail.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
null
null
null
sciflo/utils/mail.py
hysds/sciflo
f706288405c8eee59a2f883bab3dcb5229615367
[ "Apache-2.0" ]
1
2019-02-07T01:08:34.000Z
2019-02-07T01:08:34.000Z
from smtplib import SMTP from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email.header import Header from email.utils import parseaddr, formataddr, COMMASPACE, formatdate from email.encoders import encode_base64 def send_email(sender, cc_rec...
42.527473
103
0.708527
503
3,870
5.292247
0.310139
0.063486
0.07438
0.087904
0.313298
0.302029
0.247934
0.247934
0.212622
0.212622
0
0.010502
0.212662
3,870
90
104
43
0.863144
0.311886
0
0.081633
0
0
0.054064
0
0
0
0
0
0
1
0.020408
false
0.020408
0.142857
0
0.163265
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3caab00869605f81530d9a70561508995ff52b3b
2,467
py
Python
apps/extention/views/tool.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/extention/views/tool.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/extention/views/tool.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
from flask import Blueprint from apps.extention.business.tool import ToolBusiness from apps.extention.extentions import validation, parse_json_form from library.api.render import json_detail_render tool = Blueprint('tool', __name__) @tool.route('/ip', methods=['GET']) def tool_ip(): """ @api {get} /v1/tool/...
29.369048
115
0.614512
270
2,467
5.440741
0.425926
0.044929
0.057182
0.044929
0.076242
0.076242
0.076242
0.076242
0.076242
0.076242
0
0.063209
0.249696
2,467
83
116
29.722892
0.730416
0.551682
0
0
0
0
0.132603
0.064477
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.5
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cab08629b30111114e01484ab49b594bbdb9dd0
3,948
py
Python
apt_repoman/connection.py
memory/repoman
4c5cdfba85afcab5a1219fa5629abc457de27ed5
[ "Apache-2.0" ]
1
2017-07-01T21:46:40.000Z
2017-07-01T21:46:40.000Z
apt_repoman/connection.py
memory/repoman
4c5cdfba85afcab5a1219fa5629abc457de27ed5
[ "Apache-2.0" ]
null
null
null
apt_repoman/connection.py
memory/repoman
4c5cdfba85afcab5a1219fa5629abc457de27ed5
[ "Apache-2.0" ]
6
2017-07-13T21:41:14.000Z
2020-08-07T19:40:25.000Z
# stdlib imports import logging import time # pypi imports from boto3 import Session LOG = logging.getLogger(__name__) class Connection(object): def __init__(self, role_arn='', profile_name='', region=None): self._log = LOG or logging.getLogger(__name__) self.role_arn = role_arn self....
31.584
76
0.563323
464
3,948
4.575431
0.209052
0.052756
0.032972
0.025436
0.148846
0.148846
0.1187
0.1187
0.1187
0.081959
0
0.004662
0.348024
3,948
124
77
31.83871
0.820124
0.101317
0
0.265306
0
0
0.106816
0.006014
0
0
0
0
0
1
0.112245
false
0
0.030612
0.020408
0.255102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cac0aa35252a097de5d59a421a354021c1ccdfa
21,267
py
Python
paul_analysis/Python/labird/fieldize.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
paul_analysis/Python/labird/fieldize.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
paul_analysis/Python/labird/fieldize.py
lzkelley/arepo-mbh-sims_analysis
f14519552cedd39a040b53e6d7cc538b5b8f38a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Methods for interpolating particle lists onto a grid. There are three classic methods: ngp - Nearest grid point (point interpolation) cic - Cloud in Cell (linear interpolation) tsc - Triangular Shaped Cloud (quadratic interpolation) Each function takes inputs: Values ...
34.246377
137
0.590022
3,324
21,267
3.757822
0.158845
0.004323
0.008646
0.009527
0.399888
0.369706
0.351933
0.326475
0.310864
0.29221
0
0.030906
0.269714
21,267
620
138
34.301613
0.773357
0.452344
0
0.367213
0
0
0.181399
0.044603
0
0
0
0
0
1
0.059016
false
0
0.019672
0
0.170492
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cafbcdeecba4bc828647c5d5e2a12435c74df80
776
py
Python
spotify_search/search.py
MiltonLn/spotify-tracks-pyconco2020
4a75b15852344f7dac066bea3c3e3abb1157d198
[ "MIT" ]
1
2021-07-29T16:09:30.000Z
2021-07-29T16:09:30.000Z
spotify_search/search.py
MiltonLn/spotify-tracks-pyconco2020
4a75b15852344f7dac066bea3c3e3abb1157d198
[ "MIT" ]
null
null
null
spotify_search/search.py
MiltonLn/spotify-tracks-pyconco2020
4a75b15852344f7dac066bea3c3e3abb1157d198
[ "MIT" ]
null
null
null
from importlib import import_module from flask import Flask, request, jsonify from .spotify_api import get_spotify_response app = Flask(__name__) app.config.from_object("spotify_search.settings") @app.route("/search", methods=["GET"]) def search(): search_term = request.args.get("search_term", "") limit =...
26.758621
65
0.719072
100
776
5.27
0.38
0.094877
0.079696
0
0
0
0
0
0
0
0
0
0.166237
776
28
66
27.714286
0.814529
0
0
0
0
0
0.140464
0.029639
0
0
0
0
0.05
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cb1615543f6a7b7ba1580acd4a1477cfa004ce2
3,940
py
Python
Python/src/controllers/MainController.py
Jictyvoo/EXA868--PathFinder
1fe839e0d3c14f36a4a2187cc8bc00c19f3bda4a
[ "MIT" ]
null
null
null
Python/src/controllers/MainController.py
Jictyvoo/EXA868--PathFinder
1fe839e0d3c14f36a4a2187cc8bc00c19f3bda4a
[ "MIT" ]
null
null
null
Python/src/controllers/MainController.py
Jictyvoo/EXA868--PathFinder
1fe839e0d3c14f36a4a2187cc8bc00c19f3bda4a
[ "MIT" ]
null
null
null
import math from models.business.OrganismController import OrganismController from models.value.Finder import Finder from models.value.Labyrinth import Labyrinth class MainController: def __init__(self): self.__labyrinth = Labyrinth("../config.json") self.__labyrinth.loadLabyrinth("../labyrinth....
39.4
103
0.628173
378
3,940
6.164021
0.259259
0.044635
0.036052
0.037339
0.060086
0.030901
0
0
0
0
0
0.008717
0.272081
3,940
99
104
39.79798
0.803696
0.036548
0
0.027027
0
0
0.031118
0
0
0
0
0
0
1
0.135135
false
0
0.054054
0.081081
0.310811
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cb181b4a78692a5068ea6ba57d0e24bbe0db8c2
3,386
py
Python
accounts/views.py
callmewind/billdev
fcd53cb98284677fb619abeafb17a88035aabfd6
[ "MIT" ]
null
null
null
accounts/views.py
callmewind/billdev
fcd53cb98284677fb619abeafb17a88035aabfd6
[ "MIT" ]
null
null
null
accounts/views.py
callmewind/billdev
fcd53cb98284677fb619abeafb17a88035aabfd6
[ "MIT" ]
null
null
null
from django.views.generic.edit import CreateView from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.utils.translation import ugettext_lazy as _ from django.views.generic.base import RedirectView from django.conf import settings from .forms import * class ActivateAccountTokenGenerator(Passw...
36.804348
208
0.646486
364
3,386
5.873626
0.362637
0.074836
0.03508
0.02058
0.130964
0.130964
0.035547
0
0
0
0
0.012024
0.263142
3,386
91
209
37.208791
0.84489
0.058771
0
0.128571
0
0
0.072864
0.02858
0
0
0
0
0
1
0.057143
false
0.028571
0.271429
0.014286
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cb70deff93c19ea3ca28c0dcdec1ef4bed01acf
3,532
py
Python
Custom/text.py
SemLaan/Hotel-review-sentiment-analysis
b7fd22dcea63bab1c7fe666a7f4912931de1f4dc
[ "Apache-2.0" ]
null
null
null
Custom/text.py
SemLaan/Hotel-review-sentiment-analysis
b7fd22dcea63bab1c7fe666a7f4912931de1f4dc
[ "Apache-2.0" ]
null
null
null
Custom/text.py
SemLaan/Hotel-review-sentiment-analysis
b7fd22dcea63bab1c7fe666a7f4912931de1f4dc
[ "Apache-2.0" ]
null
null
null
import pandas as pd from nltk import tokenize as tokenizers from nltk.stem import PorterStemmer, WordNetLemmatizer class TextCleaning: def __init__(self): return def remove_hyperlinks(self, corpus): corpus = corpus.str.replace(r"https?://t.co/[A-Za-z0-9]+", "https") return ...
22.213836
76
0.51812
439
3,532
4.138952
0.268793
0.085856
0.052834
0.048431
0.24656
0.18492
0.147496
0.111172
0.111172
0.111172
0
0.001699
0.333239
3,532
158
77
22.35443
0.769851
0
0
0.176991
0
0
0.220617
0.007363
0
0
0
0
0
1
0.097345
false
0
0.026549
0.017699
0.230089
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cb8b156ffda90f3a147616840973c64a0b81e50
546
py
Python
kolibri/plugins/user_auth/root_urls.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
545
2016-01-19T19:26:55.000Z
2022-03-20T00:13:04.000Z
kolibri/plugins/user_auth/root_urls.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
8,329
2016-01-19T19:32:02.000Z
2022-03-31T21:23:12.000Z
kolibri/plugins/user_auth/root_urls.py
MBKayro/kolibri
0a38a5fb665503cf8f848b2f65938e73bfaa5989
[ "MIT" ]
493
2016-01-19T19:26:48.000Z
2022-03-28T14:35:05.000Z
""" This is here to enable redirects from the old /user endpoint to /auth """ from django.conf.urls import include from django.conf.urls import url from django.views.generic.base import RedirectView from kolibri.core.device.translation import i18n_patterns redirect_patterns = [ url( r"^user/$", Re...
26
86
0.705128
70
546
5.371429
0.542857
0.079787
0.074468
0.095745
0.12766
0
0
0
0
0
0
0.009009
0.186813
546
20
87
27.3
0.837838
0.126374
0
0.142857
0
0
0.134328
0.091684
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cb8ec1381ca6215654d8b8a9da92a3ab2726159
4,685
py
Python
Script.py
harisqazi1/Automated_Script
6680e0604db55297fad2ab2f99ea61324ca88048
[ "MIT" ]
null
null
null
Script.py
harisqazi1/Automated_Script
6680e0604db55297fad2ab2f99ea61324ca88048
[ "MIT" ]
null
null
null
Script.py
harisqazi1/Automated_Script
6680e0604db55297fad2ab2f99ea61324ca88048
[ "MIT" ]
null
null
null
""" Title: Automated Script for Data Scraping Creator: Haris "5w464l1c10u5" Purpose: This was made in order to make it easier to get data from online, all through one python script Usage: python3 Automated_Script.py Resources: https://www.digitalocean.com/community/tutorials/how-to-scrape-web-pages-with-beautiful-s...
28.919753
159
0.683458
713
4,685
4.374474
0.26648
0.051298
0.034626
0.046169
0.309715
0.204873
0.18756
0.166399
0.151331
0.151331
0
0.039158
0.127855
4,685
161
160
29.099379
0.72418
0.155603
0
0.25
0
0.044643
0.450851
0.044958
0
0
0
0
0
1
0
false
0
0.053571
0
0.053571
0.080357
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cbd5fce78146aae7cbddda0c039ec527c342db9
5,752
py
Python
apis.py
teemuja/ndp_app3
8a9517b2e2385640dc1a2c1baf0ae07cf630c89c
[ "MIT" ]
null
null
null
apis.py
teemuja/ndp_app3
8a9517b2e2385640dc1a2c1baf0ae07cf630c89c
[ "MIT" ]
null
null
null
apis.py
teemuja/ndp_app3
8a9517b2e2385640dc1a2c1baf0ae07cf630c89c
[ "MIT" ]
null
null
null
# apis for ndp_d3 from owslib.wfs import WebFeatureService import pandas as pd import geopandas as gpd import momepy import streamlit as st @st.cache(allow_output_mutation=True) def pno_data(kunta,vuosi=2021): url = 'http://geo.stat.fi/geoserver/postialue/wfs' # vaestoruutu tai postialue wfs = WebFeatureServi...
52.770642
134
0.685327
766
5,752
4.979112
0.302872
0.01311
0.014421
0.018878
0.362611
0.340063
0.313057
0.295752
0.295752
0.254851
0
0.019026
0.168463
5,752
108
135
53.259259
0.778382
0.141516
0
0.298851
0
0
0.173789
0.026659
0
0
0
0
0
1
0.057471
false
0
0.057471
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cbec5b44846435b33e0ef20ab76a5f6a4ef6c68
6,471
py
Python
test-suite/unit-testing/PortageLive.soap/tests/testIncrAddSentence.py
nrc-cnrc/Portage-SMT-TAS
73f5a65de4adfa13008ea9a01758385c97526059
[ "MIT" ]
null
null
null
test-suite/unit-testing/PortageLive.soap/tests/testIncrAddSentence.py
nrc-cnrc/Portage-SMT-TAS
73f5a65de4adfa13008ea9a01758385c97526059
[ "MIT" ]
null
null
null
test-suite/unit-testing/PortageLive.soap/tests/testIncrAddSentence.py
nrc-cnrc/Portage-SMT-TAS
73f5a65de4adfa13008ea9a01758385c97526059
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim:expandtab:ts=3:sw=3 # @file testIncrStatus.py # @brief Test SOAP calls to incrAddSentence using a deployed PortageLive web server. # # @author Samuel Larkin # # Traitement multilingue de textes / Multilingual Text Processing # Tech. de l'information et des communications / Information and C...
36.767045
118
0.637923
778
6,471
5.155527
0.330334
0.055098
0.05086
0.037896
0.314884
0.288955
0.288955
0.288955
0.288955
0.265021
0
0.011402
0.268119
6,471
175
119
36.977143
0.835515
0.225622
0
0.222222
0
0
0.162224
0.009163
0
0
0
0.005714
0.177778
1
0.088889
false
0
0.166667
0
0.266667
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cbf25669395a89790375a19545ba5be63026880
1,919
py
Python
Cryptography/Caesar_Cipher.py
hari40009/learnpython
b75e700f62f49ab9d8fef607ebd87a34c5cb6530
[ "MIT" ]
1
2018-11-07T04:13:52.000Z
2018-11-07T04:13:52.000Z
Cryptography/Caesar_Cipher.py
engineerprogrammer/learnpython
140acfd8fc6345745a9b274baaa1e58ea3217f9f
[ "MIT" ]
null
null
null
Cryptography/Caesar_Cipher.py
engineerprogrammer/learnpython
140acfd8fc6345745a9b274baaa1e58ea3217f9f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ A program to use a Caesar cipher based on user input for the shift value """ MAX_SHIFT = 26 def whatMode(): """ Finds out what the user wants to do """ while True: print("Do you wish to encrypt, decrypt or brute force a message: ") mode = input().lower() if ...
27.028169
80
0.532569
230
1,919
4.426087
0.369565
0.02947
0.020629
0.060904
0.058939
0.058939
0.058939
0.058939
0.058939
0.058939
0
0.015848
0.342366
1,919
70
81
27.414286
0.790808
0.145909
0
0.215686
0
0
0.123288
0
0
0
0
0
0
1
0.078431
false
0
0
0
0.156863
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cc3cc243655d3b808c34d010f7d4b9e190e610a
494
py
Python
leetcode/python/medium/p046_permute.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
leetcode/python/medium/p046_permute.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
leetcode/python/medium/p046_permute.py
kefirzhang/algorithms
549e68731d4c05002e35f0499d4f7744f5c63979
[ "Apache-2.0" ]
null
null
null
class Solution: def __init__(self): self.res = [] def permute(self, nums): self.backTrack(nums, []) return self.res def backTrack(self, nums, track): if len(nums) == len(track): self.res.append(track[:]) return for i in nums: if i ...
22.454545
39
0.506073
57
494
4.315789
0.385965
0.085366
0.081301
0
0
0
0
0
0
0
0
0.003226
0.37247
494
21
40
23.52381
0.790323
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cc9578bf937313ea3ce810099e43cb50d90651a
634
py
Python
ribosome/compute/ribosome.py
tek/ribosome-py
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
[ "MIT" ]
null
null
null
ribosome/compute/ribosome.py
tek/ribosome-py
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
[ "MIT" ]
null
null
null
ribosome/compute/ribosome.py
tek/ribosome-py
8bd22e549ddff1ee893d6e3a0bfba123a09e96c6
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Generic, TypeVar, Type from lenses import UnboundLens from amino import Dat from ribosome.data.plugin_state import PluginState D = TypeVar('D') CC = TypeVar('CC') C = TypeVar('C') class Ribosome(Generic[D, CC, C], Dat['Ribosome[D, CC, C]']): def __init__(...
21.862069
85
0.621451
85
634
4.411765
0.329412
0.048
0.042667
0.096
0
0
0
0
0
0
0
0
0.250789
634
28
86
22.642857
0.789474
0
0
0
0
0
0.104101
0
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cc96d6bfddb10586b88d9ad0d7b86bd5ca4e9aa
1,431
py
Python
pythonstartup.py
avisilver/util_scripts
ffe4ee4b7a7b907b7d93bef5ec96151d2cbf8508
[ "MIT" ]
null
null
null
pythonstartup.py
avisilver/util_scripts
ffe4ee4b7a7b907b7d93bef5ec96151d2cbf8508
[ "MIT" ]
null
null
null
pythonstartup.py
avisilver/util_scripts
ffe4ee4b7a7b907b7d93bef5ec96151d2cbf8508
[ "MIT" ]
null
null
null
# Add auto-completion and a stored history file of commands to your Python # interactive interpreter. Requires Python 2.0+, readline. Autocomplete is # bound to the Esc key by default (you can change it - see readline docs). # # Store the file in ~/.pystartup, and set an environment variable to point # to it: "export ...
31.108696
74
0.709294
199
1,431
4.964824
0.532663
0.032389
0.05668
0.036437
0
0
0
0
0
0
0
0.003451
0.190077
1,431
45
75
31.8
0.849008
0.425577
0
0.086957
0
0
0.06625
0.02875
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ccda61294b042b9301d3115e54f9eaad129e0a8
2,200
py
Python
core/cliqueIntersectionGraph.py
ongmingyang/some-max-cut
7ebabd06d3e46789a3672bd516adc48953ba135e
[ "MIT" ]
3
2018-03-16T17:25:23.000Z
2021-04-27T21:42:31.000Z
core/cliqueIntersectionGraph.py
ongmingyang/some-max-cut
7ebabd06d3e46789a3672bd516adc48953ba135e
[ "MIT" ]
null
null
null
core/cliqueIntersectionGraph.py
ongmingyang/some-max-cut
7ebabd06d3e46789a3672bd516adc48953ba135e
[ "MIT" ]
null
null
null
import sys from clique import Clique from cvxopt import spmatrix, amd from collections import defaultdict as dd import chompack as cp from util.graph import Graph LARGEST_CLIQUE_SIZE = 24 # # A CliqueIntersectionGraph is a graph (V,E), where V is a set of cliques, each # bag containing a clique, and (i,j) in E if cli...
33.333333
79
0.678636
331
2,200
4.413897
0.359517
0.041068
0.041068
0.034908
0.046543
0.046543
0.046543
0
0
0
0
0.002375
0.234545
2,200
65
80
33.846154
0.865202
0.325
0
0
0
0
0.07771
0
0
0
0
0
0
1
0.025641
false
0
0.153846
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ccdd8c975b584a486aac3e7fbb9b1d2ae39487f
4,586
py
Python
backend/src/baserow/contrib/database/airtable/tasks.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/airtable/tasks.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/airtable/tasks.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
import logging from django.conf import settings from baserow.config.celery import app logger = logging.getLogger(__name__) @app.task( bind=True, queue="export", soft_time_limit=settings.BASEROW_AIRTABLE_IMPORT_SOFT_TIME_LIMIT, ) def run_import_from_airtable(self, job_id: int): """ Starts the A...
35.276923
86
0.657872
531
4,586
5.531073
0.34275
0.026217
0.023153
0.03541
0.195097
0.120191
0.085121
0.062649
0.062649
0.062649
0
0.001211
0.279546
4,586
129
87
35.550388
0.887712
0.199738
0
0.02381
0
0
0.074813
0
0
0
0
0
0
1
0.02381
false
0
0.27381
0
0.297619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd0a4bbec748d6e33fb26e96ae01249982c0522
7,439
py
Python
d2lbook/notebook.py
naoufelito/d2l-book
bb281e1640aaf039b4d2d69bb9c8d6334a7cb98a
[ "Apache-2.0" ]
null
null
null
d2lbook/notebook.py
naoufelito/d2l-book
bb281e1640aaf039b4d2d69bb9c8d6334a7cb98a
[ "Apache-2.0" ]
1
2020-06-06T06:34:03.000Z
2020-06-06T07:01:56.000Z
d2lbook/notebook.py
naoufelito/d2l-book
bb281e1640aaf039b4d2d69bb9c8d6334a7cb98a
[ "Apache-2.0" ]
null
null
null
"""utilities to handle notebooks""" from typing import Union, List, Optional import copy import notedown import nbformat import nbconvert from nbformat import notebooknode from d2lbook import markdown from d2lbook import common def create_new_notebook(nb: notebooknode.NotebookNode, cells: Li...
41.099448
152
0.609894
1,027
7,439
4.211295
0.145083
0.042543
0.022659
0.024277
0.276994
0.12578
0.086936
0.069133
0.035607
0.024046
0
0.005376
0.274903
7,439
180
153
41.327778
0.79644
0.098938
0
0.176056
0
0.007042
0.068762
0.003929
0
0
0
0
0.007042
1
0.077465
false
0
0.056338
0
0.253521
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd1756adb8c57eb1928457d00bc92c25a43ba4c
1,204
py
Python
myamiweb/imcache/imcacheconfig.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
myamiweb/imcache/imcacheconfig.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
myamiweb/imcache/imcacheconfig.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
# config file for imcached # camera name pattern to cache. For example 'GatanK2' will restrict it # only to camera name containing the string camera_name_pattern = '' # time in seconds to wait between consecutive queries query_interval = 5 # limit query to later than this timestamp (mysql style: yyyymmddhhmmss) min...
23.607843
72
0.724252
168
1,204
5.113095
0.541667
0.034924
0.039581
0.041909
0.151339
0.100116
0.100116
0.100116
0
0
0
0.033597
0.159468
1,204
50
73
24.08
0.815217
0.45598
0
0.37931
0
0
0.425234
0.182243
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
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd1a6c109376dfdc24ad44b61222972d5c24dd2
3,737
py
Python
graphs/graphgenerator.py
andrew-lockwood/lab-project
e39a0f21966cdee519942cf2f94b7bab6ed2196e
[ "MIT" ]
1
2017-08-30T15:21:31.000Z
2017-08-30T15:21:31.000Z
graphs/graphgenerator.py
andrew-lockwood/lab-project-summer2016
e39a0f21966cdee519942cf2f94b7bab6ed2196e
[ "MIT" ]
null
null
null
graphs/graphgenerator.py
andrew-lockwood/lab-project-summer2016
e39a0f21966cdee519942cf2f94b7bab6ed2196e
[ "MIT" ]
1
2017-06-15T20:44:59.000Z
2017-06-15T20:44:59.000Z
import sqlite3 import matplotlib.pyplot as plt import re from collections import Counter db = "C:\\Users\\Andrew\\lab-project\\data\\frontiers_corpus.db" def wordvsline(): q = "SELECT wordcount, linecount FROM ArticleTXT" curr.execute(q) x,y = zip(*curr.fetchall()) mpl_fig = plt.figure() ax = mpl...
24.585526
85
0.54616
509
3,737
3.935167
0.259332
0.023964
0.047928
0.050924
0.546181
0.50674
0.480779
0.430354
0.402396
0.323015
0
0.030884
0.315494
3,737
151
86
24.748344
0.75215
0
0
0.377358
0
0
0.407388
0.015257
0
0
0
0
0
1
0.066038
false
0
0.037736
0
0.141509
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd1de8fe3c2b6efa630c25b86bb05e41fab354a
5,612
py
Python
peering_manager/constants.py
maznu/peering-manager
d249fcf530f4cc48b39429badb79bc203e0148ba
[ "Apache-2.0" ]
127
2017-10-12T00:27:45.000Z
2020-08-07T11:13:55.000Z
peering_manager/constants.py
maznu/peering-manager
d249fcf530f4cc48b39429badb79bc203e0148ba
[ "Apache-2.0" ]
247
2017-12-26T12:55:34.000Z
2020-08-08T11:57:35.000Z
peering_manager/constants.py
maznu/peering-manager
d249fcf530f4cc48b39429badb79bc203e0148ba
[ "Apache-2.0" ]
63
2017-10-13T06:46:05.000Z
2020-08-08T00:41:57.000Z
from collections import OrderedDict from devices.filters import ConfigurationFilterSet from devices.models import Configuration from devices.tables import ConfigurationTable from messaging.filters import ContactFilterSet, EmailFilterSet from messaging.models import Contact, ContactAssignment, Email from messaging.tabl...
31.351955
85
0.533678
316
5,612
9.335443
0.256329
0.027119
0.044746
0.021695
0.056271
0.030508
0
0
0
0
0
0.000572
0.376693
5,612
178
86
31.52809
0.842767
0.005168
0
0.111111
0
0
0.173718
0.062747
0
0
0
0
0
1
0
false
0
0.081871
0
0.081871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd2638aee801c7efa156f6936b153c75c517e46
465
py
Python
e2e_graphsage/utils/logging.py
mingruimingrui/E2EGraphSage
90de7befd3a8ced514697c073b4c64e96b63bdb0
[ "MIT" ]
null
null
null
e2e_graphsage/utils/logging.py
mingruimingrui/E2EGraphSage
90de7befd3a8ced514697c073b4c64e96b63bdb0
[ "MIT" ]
null
null
null
e2e_graphsage/utils/logging.py
mingruimingrui/E2EGraphSage
90de7befd3a8ced514697c073b4c64e96b63bdb0
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging def setup_logging(log_path, mode='w'): fmt = '%(asctime)s %(levelname)-4.4s %(filename)s:%(lineno)d: %(message)s' logging.root.handlers = [] logging.basicConfig( filename=log_path, filemode=mode, format=fmt, datefmt='%m...
24.473684
78
0.647312
55
465
5.254545
0.654545
0.048443
0
0
0
0
0
0
0
0
0
0.005435
0.208602
465
18
79
25.833333
0.779891
0
0
0
0
0.071429
0.167742
0.051613
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd2949cb17d74dce66873599c286cade86072c8
3,486
py
Python
dmipy/distributions/tests/test_bingham.py
AthenaEPI/mipy
dbbca4066a6c162dcb05865df5ff666af0e4020a
[ "MIT" ]
59
2018-02-22T19:14:19.000Z
2022-02-22T05:40:27.000Z
dmipy/distributions/tests/test_bingham.py
AthenaEPI/mipy
dbbca4066a6c162dcb05865df5ff666af0e4020a
[ "MIT" ]
95
2018-02-03T11:55:30.000Z
2022-03-31T15:10:39.000Z
dmipy/distributions/tests/test_bingham.py
AthenaEPI/mipy
dbbca4066a6c162dcb05865df5ff666af0e4020a
[ "MIT" ]
23
2018-02-13T07:21:01.000Z
2022-02-22T20:12:08.000Z
from numpy.testing import assert_almost_equal, assert_equal from dmipy.utils import utils import numpy as np from dmipy.utils.utils import ( rotation_matrix_100_to_theta_phi, rotation_matrix_around_100, rotation_matrix_100_to_theta_phi_psi ) from dmipy.distributions import distributions def test_rotation_100_...
35.938144
77
0.676133
548
3,486
3.925182
0.20073
0.026034
0.072524
0.04556
0.372385
0.355649
0.314272
0.291492
0.25802
0.234775
0
0.04494
0.214859
3,486
96
78
36.3125
0.740957
0.119908
0
0.287671
0
0
0
0
0
0
0
0
0.150685
1
0.082192
false
0
0.068493
0
0.150685
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd3066a814fddcf19dac7173c44fed139f2e632
669
py
Python
head_first_design_patterns/hofs/duck_dispenser.py
incolumepy-cursos/poop
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
[ "MIT" ]
null
null
null
head_first_design_patterns/hofs/duck_dispenser.py
incolumepy-cursos/poop
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
[ "MIT" ]
null
null
null
head_first_design_patterns/hofs/duck_dispenser.py
incolumepy-cursos/poop
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
[ "MIT" ]
null
null
null
__author__ = '@britodfbr' from head_first_design_patterns.hofs import duck from head_first_design_patterns.hofs import fly_behaviors from head_first_design_patterns.hofs import quack_behaviors def run(): # Instatiate ducks print("==== Model duck ====") model = duck.DuckHOF() model.perform_quack() ...
27.875
59
0.715994
83
669
5.433735
0.337349
0.159645
0.086475
0.126386
0.534368
0.396896
0.396896
0
0
0
0
0
0.167414
669
24
60
27.875
0.809695
0.023916
0
0.166667
0
0
0.102761
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0
0.222222
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd5abf591689acf3071f0da912c722b5ef681bb
1,279
py
Python
tests/test_zones_json.py
electricitymap/electricitymap-contrib
6572b12d1cef72c734b80273598e156ebe3c22ea
[ "MIT" ]
143
2022-01-01T10:56:58.000Z
2022-03-31T11:25:47.000Z
tests/test_zones_json.py
electricitymap/electricitymap-contrib
6572b12d1cef72c734b80273598e156ebe3c22ea
[ "MIT" ]
276
2021-12-30T15:57:15.000Z
2022-03-31T14:57:16.000Z
tests/test_zones_json.py
electricitymap/electricitymap-contrib
6572b12d1cef72c734b80273598e156ebe3c22ea
[ "MIT" ]
44
2021-12-30T19:48:42.000Z
2022-03-29T22:46:16.000Z
import json import unittest from electricitymap.contrib.config import ZONES_CONFIG ZONE_KEYS = ZONES_CONFIG.keys() class ZonesJsonTestcase(unittest.TestCase): def test_bounding_boxes(self): for zone, values in ZONES_CONFIG.items(): bbox = values.get("bounding_box") if bbox: ...
34.567568
89
0.656763
167
1,279
4.718563
0.365269
0.101523
0.072335
0.087563
0.088832
0.088832
0.088832
0.088832
0
0
0
0.009221
0.236904
1,279
36
90
35.527778
0.798156
0
0
0.071429
0
0
0.120407
0.035184
0
0
0
0
0.142857
1
0.107143
false
0
0.107143
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd609e71dc0ee42d0acf42ff022c5f15ae9992d
3,483
py
Python
app/bda_core/entities/training/word2vec_trainer.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
1
2019-05-25T12:12:39.000Z
2019-05-25T12:12:39.000Z
app/bda_core/entities/training/word2vec_trainer.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
app/bda_core/entities/training/word2vec_trainer.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
import gensim import numpy as np class Config: ''' This class represents the configuration for the Word2Vec model. ''' def __init__(self, dimension=150, hierarchical_softmax=0, negative_sampling=0, ns_exponent=0, sample=0, window_size=5, workers=3, use_skip_gram=1, min_count=2, epochs...
35.907216
116
0.681022
476
3,483
4.852941
0.264706
0.020779
0.019048
0.016883
0.072727
0.072727
0.0329
0
0
0
0
0.010266
0.244904
3,483
96
117
36.28125
0.868061
0.339937
0
0
0
0
0.015858
0
0
0
0
0
0
1
0.122449
false
0
0.040816
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd825fe40c8c6d189d67799fba8e31f6ba53c8a
642
py
Python
polls/migrations/0008_auto_20150918_1715.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
polls/migrations/0008_auto_20150918_1715.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
polls/migrations/0008_auto_20150918_1715.py
santeyio/phantastesproject
5ce1e2cb59e8283fe280e01d0e185be62cd4001a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('polls', '0007_vote'), ] operatio...
23.777778
76
0.605919
62
642
6.048387
0.612903
0.053333
0.085333
0.112
0
0
0
0
0
0
0
0.013072
0.285047
642
26
77
24.692308
0.803922
0.03271
0
0.2
0
0
0.050081
0
0
0
0
0
0
1
0
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd8a7fa6829673461545374eeacd667661ea155
4,863
py
Python
DemoFinal.py
sohinim006/Heroku-App-demo
875b894b48e8544f6dbe629635f195ccd97ba201
[ "MIT" ]
null
null
null
DemoFinal.py
sohinim006/Heroku-App-demo
875b894b48e8544f6dbe629635f195ccd97ba201
[ "MIT" ]
1
2020-06-02T02:53:57.000Z
2020-06-02T02:53:57.000Z
DemoFinal.py
sohinim006/Heroku-App-demo
875b894b48e8544f6dbe629635f195ccd97ba201
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import pickle # In[2]: data=pd.read_csv("wd.csv",encoding="ISO-8859-1") # In[3]: data # In[4]: data.fillna(0,inplace=True) #it fills NaN with O's # In[5]: data # In[6]: data.dtypes # In[7]: #conversion data['...
15.438095
112
0.499897
731
4,863
3.274966
0.259918
0.033417
0.048872
0.06015
0.214703
0.120718
0.041771
0.030911
0.030911
0.030911
0
0.0882
0.309891
4,863
314
113
15.487261
0.625149
0.121119
0
0.186813
0
0
0.100356
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.021978
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cd8ed3786032ec99ff11bc34e84132d3b428b08
1,926
py
Python
Classes/gaussian.py
sankarebarri/Python
0c39da1df74d74b7b0a3724e57b5205a7d88537f
[ "MIT" ]
null
null
null
Classes/gaussian.py
sankarebarri/Python
0c39da1df74d74b7b0a3724e57b5205a7d88537f
[ "MIT" ]
null
null
null
Classes/gaussian.py
sankarebarri/Python
0c39da1df74d74b7b0a3724e57b5205a7d88537f
[ "MIT" ]
null
null
null
import numpy as np import math class Gaussian: def __init__(self, mu=0, sigma=1): self.mean = mu self.stdev = sigma self.data = [] def calculate_mean(self): self.mean = np.mean(self.data) return self.mean def calculate_stdev(self,...
27.126761
81
0.574247
241
1,926
4.390041
0.248963
0.068053
0.056711
0.039698
0.069943
0.069943
0.069943
0.069943
0.069943
0
0
0.012967
0.319315
1,926
71
82
27.126761
0.79405
0
0
0.078431
0
0
0.021796
0
0
0
0
0
0
1
0.117647
false
0
0.039216
0.019608
0.27451
0.098039
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3cda167a85c43c6395a461abd5b9210a39f3e5bb
987
py
Python
setup.py
datagovau/ckanext-datagovau
902c80a9c3a07ad6bbd52a4b19dac8a3ec2686b9
[ "Apache-2.0" ]
1
2019-07-22T08:02:11.000Z
2019-07-22T08:02:11.000Z
setup.py
datagovau/ckanext-datagovau
902c80a9c3a07ad6bbd52a4b19dac8a3ec2686b9
[ "Apache-2.0" ]
null
null
null
setup.py
datagovau/ckanext-datagovau
902c80a9c3a07ad6bbd52a4b19dac8a3ec2686b9
[ "Apache-2.0" ]
6
2015-01-23T16:32:18.000Z
2021-06-27T03:42:18.000Z
from setuptools import find_packages, setup version = "1.0.0a1" # Keep in case we still need pylons...Just use the line below in place # of the install_requires argument in the call to setup(). # install_requires=['requests', 'feedparser', 'pylons', 'python-dateutil'], setup( name="ckanext-datagovau", version=...
32.9
94
0.690983
117
987
5.700855
0.700855
0.067466
0
0
0
0
0
0
0
0
0
0.00609
0.168186
987
29
95
34.034483
0.806334
0.274569
0
0
0
0
0.362869
0.101266
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0