hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
41da78eeb82897161300840746eef404c63146f0
7,485
py
Python
test_farbfeld.py
jmp/farbfeld
08cb56957624cfe3a1fe872390aa3252226e57cd
[ "MIT" ]
2
2020-02-01T14:59:15.000Z
2021-11-03T12:39:10.000Z
test_farbfeld.py
jmp/farbfeld
08cb56957624cfe3a1fe872390aa3252226e57cd
[ "MIT" ]
5
2019-01-26T11:58:58.000Z
2019-08-31T08:16:59.000Z
test_farbfeld.py
jmp/farbfeld
08cb56957624cfe3a1fe872390aa3252226e57cd
[ "MIT" ]
null
null
null
# pylint: disable=missing-docstring import io import unittest import farbfeld class ReadTest(unittest.TestCase): def test_read_empty_data(self): self.assertRaises( farbfeld.InvalidFormat, farbfeld.read, io.BytesIO(b''), ) def test_read_header_only(self): ...
30.303644
76
0.501536
7,400
0.988644
0
0
0
0
0
0
1,680
0.224449
41dae6ca6afa36e98373f82982a75e2c50d8cc74
571
py
Python
DigitRecognition/go-test.py
shifuture/kaggle-join
8cc8fb6042982cba1d9a0eced1488c5a13557e80
[ "MIT" ]
null
null
null
DigitRecognition/go-test.py
shifuture/kaggle-join
8cc8fb6042982cba1d9a0eced1488c5a13557e80
[ "MIT" ]
null
null
null
DigitRecognition/go-test.py
shifuture/kaggle-join
8cc8fb6042982cba1d9a0eced1488c5a13557e80
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- import csv import numpy as np def loadTestData(): l=[] with open('./data/test.csv') as file: lines=csv.reader(file) for line in lines: l.append(list(e if e=='0' else 1 for e in line)) #remove csv head l.remove(l[0]) data=n...
24.826087
70
0.595447
0
0
0
0
0
0
0
0
118
0.206655
41dc7c7b8b8afe1b3ff6333c9f01816fc91e0652
54,070
py
Python
src/funcFit/TutorialExampleSanity.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
98
2015-01-01T12:46:05.000Z
2022-02-13T14:17:36.000Z
src/funcFit/TutorialExampleSanity.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
46
2015-02-10T19:53:38.000Z
2022-01-11T17:26:05.000Z
src/funcFit/TutorialExampleSanity.py
mirofedurco/PyAstronomy
b0e5806a18bde647654e6c9de323327803722864
[ "MIT" ]
38
2015-01-08T17:00:34.000Z
2022-03-04T05:15:22.000Z
from __future__ import print_function, division import unittest import os class ExampleSanity(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def sanity_firstExample(self): # Import numpy and matplotlib from numpy import arange, sqrt, exp, pi, random, ones import mat...
32.435513
103
0.597263
53,675
0.992695
0
0
167
0.003089
0
0
26,718
0.494137
41de05126656eb0665e6b6dd493d706236d85602
2,905
py
Python
virtual_machines/update-matching-table.py
AmoVanB/chameleon-end-host
573e1dccdaf4ca2bebedc96a7b902e622c50acab
[ "Apache-2.0" ]
null
null
null
virtual_machines/update-matching-table.py
AmoVanB/chameleon-end-host
573e1dccdaf4ca2bebedc96a7b902e622c50acab
[ "Apache-2.0" ]
null
null
null
virtual_machines/update-matching-table.py
AmoVanB/chameleon-end-host
573e1dccdaf4ca2bebedc96a7b902e622c50acab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """ This script, to be used by VM 0, sends a configuration message to the virtual switch to create a particular tagging and shaping rule. Author: Amaury Van Bemten <amaury.van-bemten@tum.de> """ from scapy.all import * import sys # import scapy config from scapy.all import conf as scapyconf # dis...
40.915493
161
0.683649
0
0
0
0
0
0
0
0
725
0.24957
41df73d109c0b036f4dc5a0fd33804ce5856c662
1,351
py
Python
radSeqAmp/_versioninfo.py
msettles/radSeqAmp
a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f
[ "Apache-2.0" ]
null
null
null
radSeqAmp/_versioninfo.py
msettles/radSeqAmp
a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f
[ "Apache-2.0" ]
null
null
null
radSeqAmp/_versioninfo.py
msettles/radSeqAmp
a89d1aa12601dcd7aba0e83b2ae28fc3ff76989f
[ "Apache-2.0" ]
null
null
null
# _versioninfo.py # # gets the version number from the package info # checks it agains the github version import sys from pkg_resources import get_distribution, parse_version try: _dist = get_distribution('radSeqAmp') version_num = _dist.version except: version_num = 'Please install this project with setup...
40.939394
123
0.763138
0
0
0
0
0
0
0
0
540
0.399704
41df8366d44990c149549ad5a6aecb5e9bc2fcdb
5,835
py
Python
weekly_degradation.py
rajeevratan84/LTE-KPI-Anomaly-Detection
b5d3ce261f75b94956867645fd3479c0b2eb0cd8
[ "MIT" ]
null
null
null
weekly_degradation.py
rajeevratan84/LTE-KPI-Anomaly-Detection
b5d3ce261f75b94956867645fd3479c0b2eb0cd8
[ "MIT" ]
null
null
null
weekly_degradation.py
rajeevratan84/LTE-KPI-Anomaly-Detection
b5d3ce261f75b94956867645fd3479c0b2eb0cd8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from configuration.settings import Conf from database.sql_connect import SQLDatabase from KPIForecaster.forecaster import KPIForecaster from datetime import datetime import pandas as pd import numpy as np import time import sys import os.path def findDegradation(df, weeks = 3): df_prev = df.s...
35.150602
119
0.656041
0
0
0
0
0
0
0
0
2,217
0.379949
41e2290afea8242f9b3ad627b8896fc8296f5d30
110
py
Python
basis/cli/commands/logout.py
kvh/basis
8d109ff5ccf2c30b1a11406827d2c1620691ad95
[ "BSD-3-Clause" ]
11
2020-05-29T20:56:48.000Z
2021-09-22T15:44:42.000Z
basis/cli/commands/logout.py
kvh/basis
8d109ff5ccf2c30b1a11406827d2c1620691ad95
[ "BSD-3-Clause" ]
null
null
null
basis/cli/commands/logout.py
kvh/basis
8d109ff5ccf2c30b1a11406827d2c1620691ad95
[ "BSD-3-Clause" ]
null
null
null
from basis.cli.services import auth def logout(): """Log out of your Basis account""" auth.logout()
15.714286
39
0.663636
0
0
0
0
0
0
0
0
35
0.318182
41e4a272d03b82c913d673af1e5e15ff825ef623
2,074
py
Python
blockade/komand_blockade/actions/add_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
blockade/komand_blockade/actions/add_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
blockade/komand_blockade/actions/add_user/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: USER_EMAIL = "user_email" USER_NAME = "user_name" USER_ROLE = "user_role" class Output: API_KEY = "api_key" EMAIL = "email" MESSAGE = "message" NAME = "name" ROLE = "role" SUCCESS = "success" ...
18.192982
57
0.486982
1,988
0.958534
0
0
0
0
0
0
1,582
0.762777
41e5525e7a720e9de54e83ab3802a2d8a16f8134
7,937
py
Python
starthinker/tool/example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
138
2018-11-28T21:42:44.000Z
2022-03-30T17:26:35.000Z
starthinker/tool/example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
36
2019-02-19T18:33:20.000Z
2022-01-24T18:02:44.000Z
starthinker/tool/example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
54
2018-12-06T05:47:32.000Z
2022-02-21T22:01:01.000Z
########################################################################### # # 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/l...
32.528689
164
0.643442
0
0
0
0
0
0
0
0
4,986
0.628197
41e5c2cff74537381853da7d7af093ed89964ce8
1,080
py
Python
services/test_companies_match.py
devx3/hero-testes-tech-talk
604641f41c18cd9f9f2b59c8c25cf0a2fc6adfcb
[ "MIT" ]
null
null
null
services/test_companies_match.py
devx3/hero-testes-tech-talk
604641f41c18cd9f9f2b59c8c25cf0a2fc6adfcb
[ "MIT" ]
3
2021-09-24T01:23:38.000Z
2021-09-28T22:15:29.000Z
services/test_companies_match.py
devx3/hero-testes-tech-talk
604641f41c18cd9f9f2b59c8c25cf0a2fc6adfcb
[ "MIT" ]
1
2021-09-29T13:18:39.000Z
2021-09-29T13:18:39.000Z
from unittest import mock, TestCase from unittest.mock import Mock from services.companies_match import CompaniesMatch from services.mock import RESPONSE_MOCK class TestCompaniesMatch(TestCase): @mock.patch('services.companies_match.requests.get') def test_if_response_is_ok(self, mock_get): """Retur...
38.571429
85
0.730556
918
0.85
0
0
871
0.806481
0
0
181
0.167593
41e6ee84a456c6b5415e417d61175deacfc9d081
2,618
py
Python
src/plot_weighted_graph.py
suning-opensource/frustrated-random-walk
7de559c20e96567a61853668f36d786b126ed57f
[ "Apache-2.0" ]
18
2020-12-24T04:26:21.000Z
2022-03-24T07:32:39.000Z
src/plot_weighted_graph.py
kiminh/frustrated-random-walk
7de559c20e96567a61853668f36d786b126ed57f
[ "Apache-2.0" ]
1
2021-05-07T06:47:34.000Z
2021-05-07T06:47:34.000Z
src/plot_weighted_graph.py
kiminh/frustrated-random-walk
7de559c20e96567a61853668f36d786b126ed57f
[ "Apache-2.0" ]
8
2020-10-22T23:51:55.000Z
2021-08-24T06:36:19.000Z
#!/usr/bin/env python """ ============== Weighted Graph ============== An example using Graph as a weighted network. """ # Author: Aric Hagberg (hagberg@lanl.gov) import matplotlib.pyplot as plt import networkx as nx def readEdgeFile(edgeFileName, pageRankFileName): import os assert(os.path.exists(edgeFileNam...
31.542169
151
0.559587
0
0
0
0
0
0
0
0
504
0.192513
41ec186af56971b756995a21107e22571cd744ca
1,980
py
Python
src/util/TournamentGenerationSelector.py
athoslag/Evolutiva
408c71d89969f445fe8054666f18492a6ff26fb8
[ "MIT" ]
null
null
null
src/util/TournamentGenerationSelector.py
athoslag/Evolutiva
408c71d89969f445fe8054666f18492a6ff26fb8
[ "MIT" ]
null
null
null
src/util/TournamentGenerationSelector.py
athoslag/Evolutiva
408c71d89969f445fe8054666f18492a6ff26fb8
[ "MIT" ]
null
null
null
import operator import random from src.domain.Individual import Individual from src.util.AbstractGeneration import AbstractGeneration ''' Seletor #2 - Método de seleção por torneio A seleção por torneio sorteia aleatoriamente dois indivíduos e seleciona para participar da próxima geração aquele com melhor avaliação....
35.357143
94
0.660101
1,641
0.824209
0
0
0
0
0
0
422
0.211954
41eda4e4dba365b6d5b2482768194356e609bc8f
596
py
Python
scraper/collect_image_stats/get_domains_and_urls.py
martinGalajdaSchool/object-detection
2c72b643464a89b91daac520a862ebaad2b3f9f0
[ "Apache-2.0" ]
2
2019-12-11T05:50:39.000Z
2021-12-06T12:28:40.000Z
scraper/collect_image_stats/get_domains_and_urls.py
martinGalajdaSchool/object-detection
2c72b643464a89b91daac520a862ebaad2b3f9f0
[ "Apache-2.0" ]
19
2019-12-16T21:23:00.000Z
2022-03-02T14:59:12.000Z
scraper/collect_image_stats/get_domains_and_urls.py
martin-galajda/object-detection
2c72b643464a89b91daac520a862ebaad2b3f9f0
[ "Apache-2.0" ]
null
null
null
import csv def get_domains_and_urls(): domains = [] urls = [] with open('./scraper/foto-domains-2019-03.csv', 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') row_idx = 0 for row in csvreader: if row_idx == 0: row_idx += 1 ...
22.923077
68
0.486577
0
0
0
0
0
0
0
0
106
0.177852
41ee3ae8e8b92e612ac4608c7da1d0e996a06da5
3,583
py
Python
patches_tool/constants.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
2
2015-06-15T02:16:33.000Z
2022-02-23T07:10:38.000Z
patches_tool/constants.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
7
2016-05-13T06:39:45.000Z
2016-05-20T02:55:31.000Z
patches_tool/constants.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
4
2015-11-02T04:02:50.000Z
2021-05-13T17:06:00.000Z
__author__ = 'nash.xiejun' import os class FileName(object): PATCHES_TOOL_CONFIG_FILE = 'patches_tool_config.ini' class CfgFilePath(object): HYBRID_CLOUD_CONFIG_FILES = 'hybrid_cloud_config_files' # 'neutron-l2-proxy.json' NEUTRON_L2_PROXY_JSON_FILE = 'neutron-l2-proxy.json' # '/etc/neut...
44.234568
117
0.718113
3,518
0.981859
0
0
0
0
0
0
803
0.224114
41eef09d352b027d57f768a34a0d9c5369b206e4
1,919
py
Python
samples/physics-mecanum/src/physics.py
sarosenb/pyfrc
9376b86dad6fab209bb4e904fead1155dda7a68b
[ "MIT" ]
null
null
null
samples/physics-mecanum/src/physics.py
sarosenb/pyfrc
9376b86dad6fab209bb4e904fead1155dda7a68b
[ "MIT" ]
null
null
null
samples/physics-mecanum/src/physics.py
sarosenb/pyfrc
9376b86dad6fab209bb4e904fead1155dda7a68b
[ "MIT" ]
null
null
null
# # See the notes for the other physics sample # from pyfrc import wpilib from pyfrc.physics import drivetrains class PhysicsEngine(object): ''' Simulates a 4-wheel robot using Tank Drive joystick control ''' # Specified in feet ROBOT_WIDTH = 2 ROBOT_HEIGHT = 3 ROBOT_STARTI...
30.951613
91
0.593538
1,801
0.93851
0
0
0
0
0
0
978
0.50964
41efa0b1f23a58e01d79993abae419de0e29ae35
5,994
py
Python
fonts/diamonstealth64_8x14.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
6
2020-07-11T16:59:19.000Z
2021-07-16T19:32:49.000Z
ports/esp32/user_modules/st7735_mpy/fonts/diamonstealth64_8x14.py
d4niele/micropython
a1f7b37d392bf46b28045ce215ae899fda8d8c38
[ "MIT" ]
1
2020-04-14T03:14:45.000Z
2020-04-14T03:14:45.000Z
fonts/diamonstealth64_8x14.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
null
null
null
"""converted from ..\fonts\DiamonStealth64_8x14.bin """ WIDTH = 8 HEIGHT = 14 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x18\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\ b'\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x6c\x6c\xfe\x6c\x6...
57.085714
60
0.704705
0
0
0
0
0
0
0
0
5,719
0.954121
41efccef82f28d187c0597489e64c7649630dd85
864
py
Python
TreeDFS/SumPathNumbers.py
Feez/Algo-Challenges
6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e
[ "MIT" ]
2
2019-12-03T05:29:35.000Z
2020-01-19T19:22:11.000Z
TreeDFS/SumPathNumbers.py
Feez/Algo-Challenges
6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e
[ "MIT" ]
null
null
null
TreeDFS/SumPathNumbers.py
Feez/Algo-Challenges
6b5f919b4e2c9ba9ed9b7c5d7697fe73740c139e
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right def dfs(self, total=0): total = (total * 10) + self.val if self.left is None and self.right is None: return total left = 0 rig...
22.153846
78
0.586806
519
0.600694
0
0
0
0
0
0
29
0.033565
41f244af008573d038af8edc1801e70f08cd96ac
1,730
py
Python
src/src/modules/ZeroOptimizer.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
src/src/modules/ZeroOptimizer.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
src/src/modules/ZeroOptimizer.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
import torch EPS = 1e-32 class ZeroOptimizer(torch.optim.SGD): def step(self): lr = self.param_groups[0]["lr"] with torch.no_grad(): for group in self.param_groups: for p in group["params"]: if p.grad is not None: p.grad = ca...
23.69863
89
0.509249
338
0.195376
0
0
0
0
0
0
81
0.046821
41f5bd3c227b6e90d9957fe3e9834571a6c5a926
2,010
py
Python
python_lesson_4/python_lesson_4_homework_lightplus.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
null
null
null
python_lesson_4/python_lesson_4_homework_lightplus.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
1
2020-04-24T10:19:24.000Z
2020-04-24T10:19:24.000Z
python_lesson_4/python_lesson_4_homework_lightplus.py
cubecloud/simple_python
2bc4ee1720214293dabfa5dbe661a49246c38842
[ "MIT" ]
null
null
null
# задача # В файле с логами найти дату самого позднего лога (по метке времени): log_file_name = 'log' # Вариант 1 # # открываем и читаем файл with open(log_file_name, 'r', encoding='utf-8') as text_file: max_date_str = '' # Читаем строку и сравниваем for line in text_file: if line[:23] > max_date_s...
31.904762
107
0.678109
0
0
0
0
0
0
0
0
1,537
0.594584
41f650c872145facc783efbfb2b0dadcd4920f2a
18,278
py
Python
sappy/m4a.py
SomeShrug/SapPy
cee216bc5f89f0479748efdbeb75c4781d95b0f7
[ "MIT" ]
4
2018-04-21T15:43:50.000Z
2018-07-10T17:11:31.000Z
sappy/m4a.py
SomeShrug/SapPy
cee216bc5f89f0479748efdbeb75c4781d95b0f7
[ "MIT" ]
null
null
null
sappy/m4a.py
SomeShrug/SapPy
cee216bc5f89f0479748efdbeb75c4781d95b0f7
[ "MIT" ]
1
2018-04-08T03:00:06.000Z
2018-04-08T03:00:06.000Z
# -*- coding: utf-8 -*- """Data-storage containers for internal use.""" import copy import math from collections import OrderedDict, deque from enum import IntEnum from random import random from typing import Dict, List, NamedTuple, Union, Tuple, Deque from .config import (BASE_FREQUENCY, PSG_SQUARE_FREQUENCY, PSG_SQU...
28.875197
80
0.585239
16,784
0.918262
0
0
3,264
0.178575
0
0
2,653
0.145147
41f7aa5d337d6a6a04c73fadceef0f5775c6ce5a
4,076
py
Python
examples/manifold/plot_swissroll.py
jlopezNEU/scikit-learn
593495eebc3c2f2ffdb244036adf57fab707a47d
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
examples/manifold/plot_swissroll.py
ashutoshpatelofficial/scikit-learn
2fc9187879424556726d9345a6656884fa9fbc20
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
examples/manifold/plot_swissroll.py
ashutoshpatelofficial/scikit-learn
2fc9187879424556726d9345a6656884fa9fbc20
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
""" =================================== Swiss Roll And Swiss-Hole Reduction =================================== This notebook seeks to compare two popular non-linear dimensionality techniques, T-distributed Stochastic Neighbor Embedding (t-SNE) and Locally Linear Embedding (LLE), on the classic Swiss Roll dataset. Then...
33.966667
86
0.692345
0
0
0
0
0
0
0
0
2,338
0.573602
41f7f839e3be35c24720ab38c662be95d99e2886
2,044
py
Python
INF101/TP/TP9/2.9.3.py
Marshellson/UGA_IMF
eb293deabcc5ef6e45617d8c5bb6268b63b34f21
[ "MIT" ]
1
2021-09-21T21:53:17.000Z
2021-09-21T21:53:17.000Z
INF101/TP/TP9/2.9.3.py
Marshellson/UGA_INF
eb293deabcc5ef6e45617d8c5bb6268b63b34f21
[ "MIT" ]
null
null
null
INF101/TP/TP9/2.9.3.py
Marshellson/UGA_INF
eb293deabcc5ef6e45617d8c5bb6268b63b34f21
[ "MIT" ]
null
null
null
''' Author: JIANG Yilun Date: 2021-12-01 13:01:29 LastEditTime: 2021-12-01 13:30:06 LastEditors: JIANG Yilun Description: FilePath: /INF_101/INF101/TP/TP9/2.9.3.py ''' import random def initiale()->dict: nombre_de_personnes = int(input("Entrez le nombre de personnes: ")) dict_personnes = {} for i in ran...
29.623188
103
0.666341
0
0
0
0
0
0
0
0
386
0.188845
41f845926aa3ec217a14d9100d2e6f115eb277d1
322
py
Python
HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTriggerOffline/Exotica/python/analyses/hltExoticaLowPtTrimuon_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-23T09:25:45.000Z
2021-11-23T09:25:45.000Z
import FWCore.ParameterSet.Config as cms LowPtTrimuonPSet = cms.PSet( hltPathsToCheck = cms.vstring( ), recMuonLabel = cms.InputTag("muons"), # -- Analysis specific cuts minCandidates = cms.uint32(3), # -- Analysis specific binnings parametersDxy = cms.vdouble(50, -2.500, 2.500), ...
26.833333
56
0.65528
0
0
0
0
0
0
0
0
65
0.201863
41fa41d8007e097936f791c465cb628fb82b64ed
3,021
py
Python
see/test/hooks_manager_test.py
nethunterslabs/see
da9387950d5db7c30ad8a5d1ba12e884afe8b1bb
[ "Apache-2.0" ]
null
null
null
see/test/hooks_manager_test.py
nethunterslabs/see
da9387950d5db7c30ad8a5d1ba12e884afe8b1bb
[ "Apache-2.0" ]
null
null
null
see/test/hooks_manager_test.py
nethunterslabs/see
da9387950d5db7c30ad8a5d1ba12e884afe8b1bb
[ "Apache-2.0" ]
null
null
null
import copy import mock import unittest from see import Hook from see import hooks CONFIG = { "configuration": {"key": "value"}, "hooks": [ { "name": "see.test.hooks_manager_test.TestHook", "configuration": {"foo": "bar"}, }, {"name": "see.test.hooks_manager_te...
31.14433
83
0.64482
2,658
0.879841
0
0
0
0
0
0
548
0.181397
41fa5f1eb0cd72600e9f03de9938096cc411d598
538
py
Python
api/works/migrations/0004_auto_20181201_2130.py
urbrob/hackathon-2018
3261b176304c7fb1a4ed97a3e7a1ac10b1d0608f
[ "MIT" ]
null
null
null
api/works/migrations/0004_auto_20181201_2130.py
urbrob/hackathon-2018
3261b176304c7fb1a4ed97a3e7a1ac10b1d0608f
[ "MIT" ]
12
2018-12-01T12:41:36.000Z
2022-03-11T23:35:55.000Z
api/works/migrations/0004_auto_20181201_2130.py
urbrob/hackathon-2018
3261b176304c7fb1a4ed97a3e7a1ac10b1d0608f
[ "MIT" ]
1
2018-12-01T16:41:13.000Z
2018-12-01T16:41:13.000Z
# Generated by Django 2.0.2 on 2018-12-01 21:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('works', '0003_auto_20181201_2104'), ] operations = [ migrations.RemoveField( model_name='test', name='file', ...
22.416667
73
0.565056
445
0.827138
0
0
0
0
0
0
121
0.224907
41fab0cdfc218549b2a3694e2626d8da1755a58e
10,467
py
Python
massloss_glacier2latlongrid.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
25
2019-06-12T21:08:24.000Z
2022-03-01T08:05:14.000Z
massloss_glacier2latlongrid.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
2
2020-04-23T14:08:00.000Z
2020-06-04T13:52:44.000Z
massloss_glacier2latlongrid.py
Wang518hongyu/PyGEM
1c9fa133133b3d463b1383d4792c535fa61c5b8d
[ "MIT" ]
24
2019-06-12T19:48:40.000Z
2022-02-16T03:42:53.000Z
""" Analyze MCMC output - chain length, etc. """ # Built-in libraries from collections import OrderedDict import datetime import glob import os import pickle # External libraries import cartopy import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.pyplot import MaxNLocator from matplotlib.lines impo...
41.868
123
0.651572
0
0
0
0
0
0
0
0
2,302
0.219929
41fc333b33ca8b6f1db8177902d0d972f89bd8ec
3,233
py
Python
corehq/apps/auditcare/migrations/0003_truncatechars.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/auditcare/migrations/0003_truncatechars.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/auditcare/migrations/0003_truncatechars.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 2.2.16 on 2021-04-01 20:23 import corehq.util.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auditcare', '0002_uniques'), ] operations = [ migrations.AlterField( model_name='accessaudit', ...
44.902778
110
0.62759
3,113
0.962883
0
0
0
0
0
0
1,579
0.488401
5100323735b98828e50f67b34742d19a272551ac
6,781
py
Python
tests/infrastructures/repositories/test_user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
tests/infrastructures/repositories/test_user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
tests/infrastructures/repositories/test_user_repository.py
harokki/fastapi-authenticated
baca823d3489739843b4df68f57fa785da7bf50d
[ "MIT" ]
null
null
null
from app.domains.entities.role import Role from app.domains.entities.user import User from app.domains.entities.user_role import UserRole from app.schemas.user import UserCreateSchema from tests.conftest import DbFixtureType SQLALCEMY_DATABASE_URL = "sqlite:///./test.db" def test_find_by_user_id(db: DbFixtureType): ...
29.354978
80
0.663766
0
0
0
0
0
0
0
0
979
0.142483
510071411b69aed8738cceefd50874bfee413c3c
146
py
Python
python/reverse_string.py
jendama/training-kit
738b9743e1f3948bc867f420f75efa47d0971217
[ "MIT" ]
null
null
null
python/reverse_string.py
jendama/training-kit
738b9743e1f3948bc867f420f75efa47d0971217
[ "MIT" ]
null
null
null
python/reverse_string.py
jendama/training-kit
738b9743e1f3948bc867f420f75efa47d0971217
[ "MIT" ]
null
null
null
a = "HACKTOBERFEST" # reverse by slicing inverse print(a[::-1]) # reverse text b = "I Love Fosti" b = b.split(" ")[::-1] print(" ".join(b))
10.428571
28
0.575342
0
0
0
0
0
0
0
0
77
0.527397
5100b17784b04cdb6c2f4076aaca2a9b3a839c93
56,140
py
Python
entry/main.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/main.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
entry/main.py
way864/BattleTracker
7204d613165b1c461ee301e5078cd4e2b7a072c4
[ "MIT" ]
null
null
null
import math import random import json import copy from tkinter.constants import COMMAND from zipfile import ZipFile import PIL.Image from PIL import ImageTk import tkinter as tk from tkinter import ttk, font, messagebox from ttkthemes import ThemedStyle from tooltip import * from event_manager import EventManager fro...
48.271711
159
0.59658
55,332
0.985607
0
0
0
0
0
0
5,466
0.097364
51033cdbbaedcb29f8ed65dc37e4cdc367f17763
1,411
py
Python
qrtt/technical/rsi.py
leopoldsw/qrtt
271f23888847f9a0a9a7da360be22c5000b058ab
[ "MIT" ]
null
null
null
qrtt/technical/rsi.py
leopoldsw/qrtt
271f23888847f9a0a9a7da360be22c5000b058ab
[ "MIT" ]
null
null
null
qrtt/technical/rsi.py
leopoldsw/qrtt
271f23888847f9a0a9a7da360be22c5000b058ab
[ "MIT" ]
null
null
null
""" RSI CALCULATION The very first calculations for average gain and average loss are simple n-period averages: First Average Gain = Sum of Gains over the past n periods / n. First Average Loss = Sum of Losses over the past n periods / n The second, and subsequent, calculations are based on the prior average...
34.414634
114
0.66832
0
0
0
0
0
0
0
0
752
0.532955
51040493dd07307ebedc78ed9f4e2afac76edbf4
1,394
py
Python
ext/numdoc.py
kawaken/typescript-guide
e3f6731e370fb834f4f292ff5806556e203c9233
[ "CC0-1.0" ]
456
2019-06-11T15:48:52.000Z
2022-03-28T06:44:10.000Z
ext/numdoc.py
kawaken/typescript-guide
e3f6731e370fb834f4f292ff5806556e203c9233
[ "CC0-1.0" ]
18
2019-06-13T19:33:24.000Z
2022-02-27T21:31:26.000Z
ext/numdoc.py
kawaken/typescript-guide
e3f6731e370fb834f4f292ff5806556e203c9233
[ "CC0-1.0" ]
62
2019-06-12T10:11:14.000Z
2022-03-29T07:31:09.000Z
# coding:utf-8 from docutils import nodes, utils from sphinx.util.nodes import split_explicit_title from sphinx import addnodes from sphinx.writers.latex import LaTeXTranslator from six import u def numdoc_role(name, rawtext, text, lineno, inliner, options={}, content=[]): """Role for making latex ref to the doc h...
33.190476
78
0.652798
0
0
0
0
0
0
0
0
282
0.201717
51047009ea571a8e1f957cb448ebd1d72b071fc4
2,679
py
Python
build/lib/bandwidth/voice/bxml/verbs/redirect.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
5
2020-11-04T14:29:37.000Z
2022-02-23T20:33:07.000Z
build/lib/bandwidth/voice/bxml/verbs/redirect.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
3
2021-07-23T18:48:48.000Z
2022-03-15T14:59:07.000Z
build/lib/bandwidth/voice/bxml/verbs/redirect.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
8
2020-04-14T09:22:53.000Z
2022-03-11T10:46:06.000Z
""" redirect.py Representation of Bandwidth's redirect BXML verb @copyright Bandwidth INC """ from lxml import etree from .base_verb import AbstractBxmlVerb REDIRECT_TAG = "Redirect" class Redirect(AbstractBxmlVerb): def __init__(self, redirect_url=None, redirect_method=None, tag=None, username=None, passwo...
41.215385
103
0.695035
2,488
0.928705
0
0
0
0
0
0
1,001
0.373647
5105155b27194145a1c2533733e5d9490dd7a885
132
py
Python
numba_stream/__init__.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
numba_stream/__init__.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
numba_stream/__init__.py
jackd/numba-stream
79a12616a4a5b3107d8e9c17dc98cdeb79b2430a
[ "Apache-2.0" ]
null
null
null
from . import grid, lif, neighbors, ragged, utils __all__ = [ "grid", "utils", "ragged", "neighbors", "lif", ]
13.2
49
0.537879
0
0
0
0
0
0
0
0
37
0.280303
510589bac3c231ff9dfff00d74d2b2a73850d0b7
934
py
Python
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotTemporaryStatesEnum.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotTemporaryStatesEnum.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Tekla/Structures/ModelInternal_parts/dotTemporaryStatesEnum.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class dotTemporaryStatesEnum(Enum): """ enum dotTemporaryStatesEnum,values: DOT_TEMPORARY_STATE_ACCEPTED (8),DOT_TEMPORARY_STATE_ACTIVE (6),DOT_TEMPORARY_STATE_DELETED (3),DOT_TEMPORARY_STATE_DM_ONGOING (4),DOT_TEMPORARY_STATE_MODIFIED (2),DOT_TEMPORARY_STATE_NEW (1),DOT_TEMPORARY_STATE_ORIGINAL (7),DOT_TEMPORARY_S...
58.375
424
0.826552
933
0.998929
0
0
0
0
0
0
420
0.449679
5106aa713d6626d3d954ada527f0fad7a1c15261
1,872
py
Python
modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py
OpenFAST/openfast-regression
7892739f47f312ce014711192fd70253ea40c8e8
[ "Apache-2.0" ]
null
null
null
modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py
OpenFAST/openfast-regression
7892739f47f312ce014711192fd70253ea40c8e8
[ "Apache-2.0" ]
null
null
null
modules/aerodyn/ad_EllipticalWingInf_OLAF/Main_PostPro.py
OpenFAST/openfast-regression
7892739f47f312ce014711192fd70253ea40c8e8
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt # Local import weio import welib.fast.fastlib as fastlib # --- Reference simulations OmniVor / AWSM ref20 = weio.read('AnalyticalResults/Elliptic_NumReference20.csv').toDataFrame() ref40 = weio.read('AnalyticalResults/Elliptic_NumReference40.csv'...
39
128
0.631944
0
0
0
0
0
0
0
0
954
0.509615
510acc236531ba47fd115389b56d91a1e8269505
15,135
py
Python
venv/lib/python2.7/site-packages/plotnine/data/__init__.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/plotnine/data/__init__.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/plotnine/data/__init__.py
nuriale207/preprocesspack
cc06a9cb79c5e3b392371fcd8d1ccf7185e71821
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import pandas as pd from pandas.api.types import CategoricalDtype __all__ = ['diamonds', 'economics', 'economics_long', 'midwest', 'mpg', 'msleep', 'presidential', 'seals', 'txhousing', 'luv_colours', ...
29.331395
78
0.611034
0
0
0
0
0
0
0
0
12,992
0.85671
510be31bb9c422b20d34df7cba9b6a88cf0c6ddf
235
py
Python
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
1
2015-05-31T10:42:36.000Z
2015-11-03T17:52:06.000Z
accounts/forms.py
medfiras/Bazinga
2f77b70a3fe627410ddf0a5be0f074de5e0dccdd
[ "Apache-2.0" ]
null
null
null
from userena.forms import EditProfileForm from userena import views as userena_views class CustomEditProfileForm(userena_views.EditProfileForm): class Meta(EditProfileForm.Meta): exclude = EditProfileForm.Meta.exclude + ['privacy']
39.166667
59
0.834043
149
0.634043
0
0
0
0
0
0
9
0.038298
510ca732ab0febae2e491cf6527efb03bb28960e
2,400
py
Python
Pension & Commutation Calculator/SignUp.py
Abhijit-007a/Pension_And_Commutation_Calculator
787467af25286fa26f50a2c025711992eb445c8f
[ "Apache-2.0" ]
1
2021-09-19T11:47:44.000Z
2021-09-19T11:47:44.000Z
Pension & Commutation Calculator/SignUp.py
Abhijit-007a/Pension_And_Commutation_Calculator
787467af25286fa26f50a2c025711992eb445c8f
[ "Apache-2.0" ]
null
null
null
Pension & Commutation Calculator/SignUp.py
Abhijit-007a/Pension_And_Commutation_Calculator
787467af25286fa26f50a2c025711992eb445c8f
[ "Apache-2.0" ]
null
null
null
#importing all the tkinter modules. from tkinter import * from tkinter import messagebox from PIL import Image, ImageTk import mysql.connector as sql win = Tk() #defining basic geometry and characteristics of the window. win.geometry("1000x700") image = Image.open('SignUpImage.png') photo_image = ImageTk.Pho...
25.806452
101
0.635833
0
0
0
0
0
0
0
0
817
0.340417
510ef8a7510ae1de9af9073513790cd07023ac0b
26,324
py
Python
wikidata_research/dictionary/dictionary_evaluation.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
wikidata_research/dictionary/dictionary_evaluation.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
wikidata_research/dictionary/dictionary_evaluation.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
# module to evaluate the property dictionary import json # global variable for the path to the dictionary path_to_json_dictionary = "data/property_dictionary.json" # overload method # # recommended == true # query only those references or qualifiers, that are intended by Wikidata # .. for References: these are prop...
48.83859
128
0.584334
0
0
0
0
0
0
0
0
8,805
0.334486
510f0704162b83a55e2da583192211cbda73f8f2
2,987
py
Python
Test13_talking_robot/Test13_preprocess.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test13_talking_robot/Test13_preprocess.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test13_talking_robot/Test13_preprocess.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
# coding=utf-8 import os import random import sys conv_path = 'dgk_shooter_min.conv' if not os.path.exists(conv_path): print('数据集不存在') exit() # 数据集格式 """ E M 畹/华/吾/侄/ M 你/接/到/这/封/信/的/时/候/ M 不/知/道/大/伯/还/在/不/在/人/世/了/ E M 咱/们/梅/家/从/你/爷/爷/起/ M 就/一/直/小/心/翼/翼/地/唱/戏/ M 侍/奉/宫/廷/侍/奉/百/姓/ M 从/来/不/曾/遭/此/大/祸/ M 太/后/的/万...
24.08871
153
0.546368
0
0
0
0
0
0
0
0
2,590
0.623045
510f5b8577eceaa2d67a2069c8c286b003c41202
2,371
py
Python
rescape_region/models/project.py
calocan/rescape-region
8cb0c4d5e2f4c92939eb9a30473808decdb4bef2
[ "MIT" ]
1
2021-05-08T12:04:23.000Z
2021-05-08T12:04:23.000Z
rescape_region/models/project.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
15
2021-04-06T18:05:04.000Z
2022-03-12T00:22:35.000Z
rescape_region/models/project.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
null
null
null
import reversion from django.contrib.auth import get_user_model from django.contrib.gis.db.models import SET_NULL, CASCADE, Q from django.db.models import ( CharField, ForeignKey, ManyToManyField, UniqueConstraint) from django.db.models import JSONField from safedelete.models import SafeDeleteModel from rescap...
45.596154
117
0.710671
1,879
0.792493
0
0
1,901
0.801771
0
0
964
0.40658
510fb73823084b9ff3de955296518a2eb7c922e4
540
py
Python
wiktts/__init__.py
pettarin/wiktts
37f9a865ec01604c36a3ab15325f62d8c26e4484
[ "MIT" ]
5
2016-06-02T04:52:11.000Z
2018-08-01T20:05:37.000Z
wiktts/__init__.py
pettarin/wiktts
37f9a865ec01604c36a3ab15325f62d8c26e4484
[ "MIT" ]
null
null
null
wiktts/__init__.py
pettarin/wiktts
37f9a865ec01604c36a3ab15325f62d8c26e4484
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ TBW """ from __future__ import absolute_import from __future__ import print_function import io __author__ = "Alberto Pettarin" __copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)" __license__ = "MIT" __email__ = "alberto@albertopettarin.it" __version__...
20.769231
75
0.748148
0
0
0
0
0
0
0
0
191
0.353704
510fcdad15a6c8447153e32692aae7694f685210
2,456
py
Python
oxe-api/test/resource/user/test_update_user.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/user/test_update_user.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/user/test_update_user.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
from test.BaseCase import BaseCase class TestUpdateUser(BaseCase): @BaseCase.login @BaseCase.grant_access("/user/update_user") def test_ok(self, token): self.db.insert({ "id": 14, "email": "myemail@test.lu", "password": "MySecret2!", "is_admin": 0, ...
30.7
86
0.506107
2,418
0.984528
0
0
2,369
0.964577
0
0
480
0.19544
51106aa7bc640784a651d3a06d5663b7d7680ea4
2,834
py
Python
addons/mixins.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
1
2018-07-10T07:03:12.000Z
2018-07-10T07:03:12.000Z
addons/mixins.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
null
null
null
addons/mixins.py
kilinger/marathon-rocketchat-hubot
682454b90265eb2c66ea222cf0c970370816a9e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: (c) 2015 by the xxxxx Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function from hubot.utils.mesos import clean_container_path class AddonsMixin(object): addon_name = "addon" addon_de...
30.473118
104
0.623853
2,578
0.909668
0
0
0
0
0
0
322
0.11362
511493f52cb1eeb1e8430922732560c6965e53e7
5,069
py
Python
flexmatcher/classify/nGramClassifier.py
austinkwillis/flexmatcher
c771cea696014f62bf919ecf678835d8c655d04f
[ "Apache-2.0" ]
28
2017-07-19T19:02:56.000Z
2022-01-11T10:40:06.000Z
flexmatcher/classify/nGramClassifier.py
austinkwillis/flexmatcher
c771cea696014f62bf919ecf678835d8c655d04f
[ "Apache-2.0" ]
253
2018-02-10T22:22:16.000Z
2022-03-27T18:43:17.000Z
flexmatcher/classify/nGramClassifier.py
austinkwillis/flexmatcher
c771cea696014f62bf919ecf678835d8c655d04f
[ "Apache-2.0" ]
10
2018-02-21T06:41:30.000Z
2022-02-20T12:18:46.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import division from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import HashingVectorizer from sklearn.model_selection import StratifiedKFold from sklearn import linear_model from...
44.858407
79
0.64924
4,687
0.92464
0
0
0
0
0
0
2,334
0.460446
5116e871b3a1ab4846b46b9fec5ed8c06b14c048
3,001
py
Python
experiment/test/nngen.py
seonglae/commit-autosuggestions
49c0ab65f20bda835b7537e042ffc9d338a0d482
[ "Apache-2.0" ]
303
2020-08-27T06:59:55.000Z
2022-03-18T17:50:16.000Z
experiment/test/nngen.py
seonglae/commit-autosuggestions
49c0ab65f20bda835b7537e042ffc9d338a0d482
[ "Apache-2.0" ]
4
2020-12-01T15:06:46.000Z
2021-11-10T17:38:19.000Z
experiment/test/nngen.py
seonglae/commit-autosuggestions
49c0ab65f20bda835b7537e042ffc9d338a0d482
[ "Apache-2.0" ]
11
2020-11-08T01:52:30.000Z
2021-10-03T18:45:45.000Z
# encoding=utf-8 import os import time import fire from typing import List from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity from nltk.translate.bleu_score import sentence_bleu def load_data(path): """load lines from a file""" with open(path, 'r...
35.305882
96
0.671776
0
0
0
0
0
0
0
0
780
0.259913
51183bc6bdbf292c7756f837673e942a502dd193
237
py
Python
torchtraps/__init__.py
winzurk/torchtraps
9a15a2f723a4cddea7efc187f84956b27eb36f2f
[ "MIT" ]
null
null
null
torchtraps/__init__.py
winzurk/torchtraps
9a15a2f723a4cddea7efc187f84956b27eb36f2f
[ "MIT" ]
3
2021-09-08T01:49:02.000Z
2022-03-12T00:21:18.000Z
torchtraps/__init__.py
winzurk/torchtraps
9a15a2f723a4cddea7efc187f84956b27eb36f2f
[ "MIT" ]
null
null
null
"""Top-level package for Torch Traps.""" __author__ = """Zac Winzurk""" __email__ = 'zwinzurk@asu.edu' __version__ = '0.1.0' # from .coco_camera_traps_loader import * # from .imagenet import imagenet_classes # from .lightning import *
23.7
41
0.725738
0
0
0
0
0
0
0
0
189
0.797468
511bd43634ea3f540136626b6213102cf02c3ef9
7,711
py
Python
odrive/Firmware/fibre/python/fibre/utils.py
kirmani/doggo
f5aadba2a5b664f2d383bca0b35155d65363c498
[ "MIT" ]
null
null
null
odrive/Firmware/fibre/python/fibre/utils.py
kirmani/doggo
f5aadba2a5b664f2d383bca0b35155d65363c498
[ "MIT" ]
3
2020-02-26T00:07:53.000Z
2022-02-26T05:18:31.000Z
odrive/Firmware/fibre/python/fibre/utils.py
kirmani/doggo
f5aadba2a5b664f2d383bca0b35155d65363c498
[ "MIT" ]
null
null
null
import sys import time import threading import platform import subprocess import os try: if platform.system() == 'Windows': import win32console # TODO: we should win32console anyway so we could just omit colorama import colorama colorama.init() except ModuleNotFoundError: print...
33.672489
114
0.611983
6,483
0.840747
0
0
0
0
0
0
2,360
0.306056
51201b8f267ec7a2dece0fc4da0d42b14f47ffba
2,720
py
Python
2021/day09/main.py
ingjrs01/adventofcode
c5e4f0158dac0efc2dbfc10167f2700693b41fea
[ "Apache-2.0" ]
null
null
null
2021/day09/main.py
ingjrs01/adventofcode
c5e4f0158dac0efc2dbfc10167f2700693b41fea
[ "Apache-2.0" ]
null
null
null
2021/day09/main.py
ingjrs01/adventofcode
c5e4f0158dac0efc2dbfc10167f2700693b41fea
[ "Apache-2.0" ]
null
null
null
def search_low(matrix): positions = [] for i in range(len(matrix)): for j in range(len(matrix[i])): if (j > 0): if (matrix[i][j] >= matrix[i][j-1]): continue if (j < len(matrix[i])-1): if (matrix[i][j] >= matrix[i][j+1]): ...
30.561798
124
0.516176
0
0
0
0
0
0
0
0
82
0.030136
51219e777435d891fa05113f0da030e18ce7d68a
4,364
py
Python
handwrite/sheettopng.py
sakshamarora1/handwrite
628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29
[ "MIT" ]
null
null
null
handwrite/sheettopng.py
sakshamarora1/handwrite
628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29
[ "MIT" ]
null
null
null
handwrite/sheettopng.py
sakshamarora1/handwrite
628c53f9fbca0bf9731e0ebc7d6c8ca2525f1b29
[ "MIT" ]
null
null
null
import os import sys import itertools import cv2 # Seq: A-Z, a-z, 0-9, SPECIAL_CHARS ALL_CHARS = list( itertools.chain( range(65, 91), range(97, 123), range(48, 58), [ord(i) for i in ".,;:!?\"'-+=/%&()[]"], ) ) class SheetToPNG: def __init__(self): pass def c...
36.366667
104
0.592117
3,662
0.839138
0
0
0
0
0
0
1,371
0.314161
5121b7e379746aac2a670977c3fda4d01dade4a4
1,261
py
Python
2021/Day 7/solution.py
theleteron/advent-of-code
45900a8c14a966e4ecbe699e6423072254d09d95
[ "MIT" ]
1
2021-12-02T18:28:28.000Z
2021-12-02T18:28:28.000Z
2021/Day 7/solution.py
theleteron/advent-of-code
45900a8c14a966e4ecbe699e6423072254d09d95
[ "MIT" ]
null
null
null
2021/Day 7/solution.py
theleteron/advent-of-code
45900a8c14a966e4ecbe699e6423072254d09d95
[ "MIT" ]
null
null
null
class Day(): def __init__(self, data_path): with open(data_path, "r") as file: for line in file: self.positions = [(int(position)) for position in line.strip().split(',')] def part1(self): fuel_cost = -1 for target in range(min(self.positions), max(self.posi...
32.333333
109
0.569389
1,115
0.884219
0
0
0
0
0
0
25
0.019826
5121cc545c9a55cdbb8d25e3c6ef3ab3548b3342
849
py
Python
dataflows/processors/deduplicate.py
cschloer/dataflows
78a683b5d202512c06021ff6be8ac7f60ef1cd9b
[ "MIT" ]
160
2018-06-13T23:16:26.000Z
2022-03-11T21:26:44.000Z
dataflows/processors/deduplicate.py
cschloer/dataflows
78a683b5d202512c06021ff6be8ac7f60ef1cd9b
[ "MIT" ]
164
2018-07-08T13:05:30.000Z
2021-09-30T08:54:59.000Z
dataflows/processors/deduplicate.py
cschloer/dataflows
78a683b5d202512c06021ff6be8ac7f60ef1cd9b
[ "MIT" ]
41
2018-08-07T08:05:30.000Z
2021-12-18T04:34:06.000Z
from dataflows import PackageWrapper, ResourceWrapper from ..helpers.resource_matcher import ResourceMatcher def deduper(rows: ResourceWrapper): pk = rows.res.descriptor['schema'].get('primaryKey', []) if len(pk) == 0: yield from rows else: keys = set() for row in rows: ...
26.53125
62
0.599529
0
0
733
0.863369
0
0
0
0
20
0.023557
512428cd6c69268176ef05fa7a8650131e018089
563
py
Python
vendor/mo_logs/log_usingNothing.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_logs/log_usingNothing.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_logs/log_usingNothing.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import, divis...
20.107143
75
0.694494
174
0.309059
0
0
0
0
0
0
316
0.561279
51277cbf373e68b6520295ae14d8965cded5385d
158
py
Python
basic_system/routing.py
JagerCox/basic-project-django2-channels2-gunicorn-dahpne
5329a06d251706f6f02cf202dff04959982d8214
[ "MIT" ]
3
2019-04-08T12:51:57.000Z
2021-07-28T16:54:41.000Z
basic_system/routing.py
JagerCox/basic-project-django2-channels2-gunicorn-dahpne
5329a06d251706f6f02cf202dff04959982d8214
[ "MIT" ]
null
null
null
basic_system/routing.py
JagerCox/basic-project-django2-channels2-gunicorn-dahpne
5329a06d251706f6f02cf202dff04959982d8214
[ "MIT" ]
1
2019-04-08T12:52:00.000Z
2019-04-08T12:52:00.000Z
from django.urls import path from .consumers import ChatConsumer websocket_urlpatterns = [ path('ws/<str:room_name>/', ChatConsumer, name='consumer'), ]
22.571429
63
0.746835
0
0
0
0
0
0
0
0
31
0.196203
5127e82ffefa06ac56296824a5c55b26831611d6
3,679
py
Python
examples/development/simulate_policy.py
iclavera/cassie
f2e253bf29fa0f872974188aed1fdfbe06efc37e
[ "MIT" ]
null
null
null
examples/development/simulate_policy.py
iclavera/cassie
f2e253bf29fa0f872974188aed1fdfbe06efc37e
[ "MIT" ]
11
2020-01-28T22:32:20.000Z
2022-03-11T23:37:57.000Z
examples/development/simulate_policy.py
iclavera/cassie
f2e253bf29fa0f872974188aed1fdfbe06efc37e
[ "MIT" ]
null
null
null
import argparse from distutils.util import strtobool import json import os import pickle import tensorflow as tf import numpy as np from softlearning.policies.utils import get_policy_from_variant from softlearning.samplers import rollouts def parse_args(): parser = argparse.ArgumentParser() parser.add_argume...
34.383178
109
0.589562
0
0
0
0
0
0
0
0
1,025
0.278608
5128aaf3cd26118d6b07e1e07b47d69c770a4e85
79
py
Python
pathfinder/__init__.py
dsp/aa-pathfinder
1fdb43948921922d60b8b489b53b33b8ea929d31
[ "MIT" ]
null
null
null
pathfinder/__init__.py
dsp/aa-pathfinder
1fdb43948921922d60b8b489b53b33b8ea929d31
[ "MIT" ]
null
null
null
pathfinder/__init__.py
dsp/aa-pathfinder
1fdb43948921922d60b8b489b53b33b8ea929d31
[ "MIT" ]
null
null
null
default_app_config = "pathfinder.apps.PathfinderConfig" __version__ = "0.1.0"
19.75
55
0.78481
0
0
0
0
0
0
0
0
41
0.518987
51297e9b178ac6da2a46669f12b122f74df2ecf7
415
py
Python
settings/live.py
mhfowler/abridgedmaps
d0802bd6955714d174d208bea809191bff4615b3
[ "MIT" ]
null
null
null
settings/live.py
mhfowler/abridgedmaps
d0802bd6955714d174d208bea809191bff4615b3
[ "MIT" ]
null
null
null
settings/live.py
mhfowler/abridgedmaps
d0802bd6955714d174d208bea809191bff4615b3
[ "MIT" ]
null
null
null
from settings.common import * DEBUG=True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'mydatabase', } } # Honor the 'X-Forwarded-Proto' header for request.is_secure() SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Allow all host headers ALLOWED_HO...
18.863636
62
0.684337
0
0
0
0
0
0
0
0
234
0.563855
512a41bacb1cddefe094cb3758285c75286428d1
680
py
Python
labelgame/migrations/0011_auto_20170822_1902.py
capriciash/civicu_app
102a40fb771a9d9b37878da02ea66a0920006d8c
[ "MIT" ]
null
null
null
labelgame/migrations/0011_auto_20170822_1902.py
capriciash/civicu_app
102a40fb771a9d9b37878da02ea66a0920006d8c
[ "MIT" ]
null
null
null
labelgame/migrations/0011_auto_20170822_1902.py
capriciash/civicu_app
102a40fb771a9d9b37878da02ea66a0920006d8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-23 02:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('labelgame', '0010_auto_20170822_1857'), ] operations = [ migrations.AlterFi...
28.333333
199
0.598529
522
0.767647
0
0
0
0
0
0
223
0.327941
512cb58d8316e571507a93e75a64d19559f26b6b
2,762
py
Python
models/tag.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
1
2020-11-29T23:00:27.000Z
2020-11-29T23:00:27.000Z
models/tag.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
18
2020-08-05T11:59:31.000Z
2022-03-15T03:48:40.000Z
models/tag.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
null
null
null
import re import discord from sqlalchemy import ( Column, String, BigInteger, Integer, Boolean, update, delete, ) from sqlalchemy.ext.hybrid import hybrid_property from models.base import Base, PendulumDateTime from util import safe_mention IMAGE_URL_REGEX = r"https?:\/\/.*\.(jpe?g|png|gi...
30.351648
85
0.633599
2,435
0.881608
0
0
235
0.085083
605
0.219044
226
0.081825
512d55659640ebb6a556347baa4a333ef9d98192
1,478
py
Python
tests/highlevel/highlink-schema-tf.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
tests/highlevel/highlink-schema-tf.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
tests/highlevel/highlink-schema-tf.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
from seamless.highlevel import Context, Cell, Transformer ctx = Context() ctx.v = lambda a: 42 ctx.v.a = "test" ctx.v_schema = Cell() ctx.v_schema.celltype = "plain" ctx.translate() ctx.link(ctx.v.schema, ctx.v_schema) ctx.translate() ctx.v_schema.set({'type': 'object', 'properties': {'a': {'type': 'integer'}}}) ctx.c...
28.423077
78
0.691475
0
0
0
0
0
0
0
0
329
0.222598
512e099f596e3955243cf492631352af559a94af
246
wsgi
Python
pastr.wsgi
hossainalhaidari/pastr
49417cbe6ef64c763cda41ada6d42ef8d643d081
[ "MIT" ]
3
2019-01-16T14:01:20.000Z
2019-09-29T14:16:26.000Z
pastr.wsgi
hossainalhaidari/pastr
49417cbe6ef64c763cda41ada6d42ef8d643d081
[ "MIT" ]
null
null
null
pastr.wsgi
hossainalhaidari/pastr
49417cbe6ef64c763cda41ada6d42ef8d643d081
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os from dotenv import load_dotenv load_dotenv() sys.path.insert(0, os.getenv('PASTR_PATH', 'App Path')) from pastr import app as application application.secret_key = os.getenv('SECRET_KEY', 'Secret Key')
24.6
62
0.768293
0
0
0
0
0
0
0
0
68
0.276423
512ea83053328520e513cb86e1b1a689945a30dc
1,174
py
Python
check_data_integrity/fix/fixer/fixer.py
mpmuc84/helper-scripts
573353827d94f65efe763a93770ba75bcda90fff
[ "BSD-2-Clause" ]
4
2018-10-11T09:48:39.000Z
2019-11-12T06:17:17.000Z
check_data_integrity/fix/fixer/fixer.py
mpmuc84/helper-scripts
573353827d94f65efe763a93770ba75bcda90fff
[ "BSD-2-Clause" ]
26
2017-11-10T15:46:03.000Z
2021-08-13T12:02:27.000Z
check_data_integrity/fix/fixer/fixer.py
mpmuc84/helper-scripts
573353827d94f65efe763a93770ba75bcda90fff
[ "BSD-2-Clause" ]
21
2017-10-12T11:47:37.000Z
2021-05-05T13:07:59.000Z
from abc import ABCMeta, abstractmethod class Fixer: """ Abstract class defining the methods every subclass has to implement for fixing inconsistent data. """ __metaclass__ = ABCMeta @abstractmethod def fix(self, opencast_url, digest_login, event_id): """ Fix the given event. ...
26.088889
101
0.636286
1,131
0.963373
0
0
955
0.813458
0
0
748
0.637138
5130a25d5ed3634e87ef47dcbe79178f60a2783b
4,454
py
Python
Desktop-App/UI-Based App/Result_MLP.py
EddieKaleb/CricAI
2ce714c7dfe1495b9f579d87490ab40914670f02
[ "MIT" ]
9
2018-09-25T06:19:52.000Z
2021-10-06T11:06:01.000Z
Desktop-App/UI-Based App/Result_MLP.py
govind-bisht03/CricAI
fa497197627ec769d9a9be6c9f1ddeab3c826f7e
[ "MIT" ]
21
2017-11-23T19:44:29.000Z
2020-10-17T11:26:46.000Z
Desktop-App/UI-Based App/Result_MLP.py
govind-bisht03/CricAI
fa497197627ec769d9a9be6c9f1ddeab3c826f7e
[ "MIT" ]
29
2017-12-11T10:24:22.000Z
2020-10-16T13:04:13.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Result_MLP.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWi...
44.989899
150
0.691513
3,965
0.890211
0
0
0
0
0
0
701
0.157387
51311102d9e729c7834446c830b3c543962cbf40
5,283
py
Python
xray/train.py
kibernetika-ai/image_captioning
e0248758d293d7dabc0cfdbed4568de06a20d048
[ "MIT" ]
null
null
null
xray/train.py
kibernetika-ai/image_captioning
e0248758d293d7dabc0cfdbed4568de06a20d048
[ "MIT" ]
null
null
null
xray/train.py
kibernetika-ai/image_captioning
e0248758d293d7dabc0cfdbed4568de06a20d048
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import argparse import os import shutil import matplotlib.pyplot as plt import numpy as np from PIL import Image import tensorflow as tf from xray import model slim = tf.contrib.slim tf.logging.set_verbosity(tf.logging.INFO) log = tf.logging def cal...
33.226415
113
0.658906
0
0
0
0
0
0
0
0
1,511
0.286012
5133c8da0c788e7f385523bfdad1962d8bd3df18
280
py
Python
testCreateDb.py
chaya7282/flask-shop-master
9d1aedd6e39d4cac2b3c5585257415eee2558b71
[ "BSD-3-Clause" ]
1
2021-08-17T08:14:47.000Z
2021-08-17T08:14:47.000Z
testCreateDb.py
chaya7282/flask-shop-master
9d1aedd6e39d4cac2b3c5585257415eee2558b71
[ "BSD-3-Clause" ]
null
null
null
testCreateDb.py
chaya7282/flask-shop-master
9d1aedd6e39d4cac2b3c5585257415eee2558b71
[ "BSD-3-Clause" ]
1
2021-08-17T08:14:48.000Z
2021-08-17T08:14:48.000Z
# -*- coding: utf-8 -*- """Click commands.""" from flask_script import Manager from flaskshop import random_data import flaskshop import flaskshop.commands as commands app= flaskshop.create_app() manager = Manager(app) if __name__ == "__main__": manager.run() manager.se
21.538462
37
0.735714
0
0
0
0
0
0
0
0
54
0.192857
513455e1e49a2cc7f2af7ad92dbc3662b0e294bf
761
py
Python
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
day-4.py
shadowfool/advent-of-code-2017
9f2312c2cef9891c3bdb7c970eccc4eb48f714df
[ "MIT" ]
null
null
null
input = [line.rstrip() for line in open('./inputs/day4.txt')] badWords = 0 for line in input: dictionary = {} words = line.split(' ') for word in words: print(words) if word in dictionary: badWords = badWords + 1 break dictionary[ word ] = 1 print(len(input) - badWords) # ---- CHAL...
21.742857
82
0.599212
0
0
0
0
0
0
0
0
54
0.070959
513b7781461e774c4edea5cc00a442a4bd33ae7d
51
py
Python
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
gym-voilier-v2-discrete/gym_voilier/envs/__init__.py
pfontana96/smart-sailboat
25b2a524b2601b3f8e72092d7a34beb849b617db
[ "MIT" ]
null
null
null
from gym_voilier.envs.voilier_env import VoilierEnv
51
51
0.901961
0
0
0
0
0
0
0
0
0
0
513c933b5d0724d79a4413fb53c8512d831f68a7
7,464
py
Python
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
prd_score_classifier.py
DrLSimon/precision-recall-distributions-icml19
364188eaa26ac1bf39ebf038136c79aeee97da3a
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torch.optim as optim from prdataset import * from torch.utils.data import DataLoader from torchvision import transforms import tqdm from models import * from inception_torch import InceptionV3 cuda = torch.cuda.is_availab...
36.950495
143
0.624732
4,161
0.557476
0
0
0
0
0
0
344
0.046088
5141a9a0670c91a2b930b40b597fedf7c7054b49
8,906
py
Python
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
6
2015-04-05T01:28:23.000Z
2022-02-06T17:29:47.000Z
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-01-05T23:07:10.000Z
2022-03-30T17:52:45.000Z
lambdaproject/settings/base.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-02-06T17:29:53.000Z
2022-02-26T17:23:09.000Z
import os # Path to your LambdaCast instance (no / behind the path) try: from local import ABSOLUTE_PATH except ImportError: ABSOLUTE_PATH = os.path.dirname(os.path.abspath(__file__)) + "/../.." # Domain your instance should use, for example: 'http://example.com' (no / behind the path) try: from local imp...
33.355805
126
0.717045
0
0
0
0
0
0
0
0
6,414
0.720189
514411ea3d0032d20f78be6935784f8081b90d34
2,072
py
Python
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
null
null
null
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
1
2020-11-18T19:15:50.000Z
2020-11-24T02:21:33.000Z
sentiment_classifier/process.py
dang-trung/stocktwits-sentiment-classifier
5b6a75abce3a6b701da81f616a0e5b63e9c0dba6
[ "MIT" ]
null
null
null
"""Text Pre-processing. This module process text messages based on Chen et al. (2019). Added some steps (such as escaping HTML symbols, or having a more detailed list of stop and negative words). """ import html import re import string import pandas as pd # Repeated chars more than 3 times repeat_regex = r'(\w)\1{2...
29.183099
79
0.642857
0
0
0
0
0
0
0
0
1,071
0.515896
514491bebe24982f7e39bca4c4425c0e236edb60
2,062
py
Python
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
6
2015-08-21T08:43:25.000Z
2021-12-29T16:16:59.000Z
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
2
2019-03-25T10:16:18.000Z
2022-01-11T19:14:01.000Z
fredo/editor/brush_dialog.py
yasiupl/FreDo
73bdc380dd82df171fe63998f0affa092e30759a
[ "BSD-3-Clause" ]
2
2020-10-29T06:15:03.000Z
2021-12-29T16:42:28.000Z
from PySide.QtGui import QDialog from ..gui.brush_dialog import Ui_BrushDialog from PySide.QtGui import QPixmap from PySide.QtCore import Qt from ..brushes import SquareBrush import math class BrushDialog(QDialog): def __init__(self, parent=None, brush=None): super(BrushDialog, self).__init__(parent) ...
34.366667
79
0.679922
1,872
0.907856
0
0
0
0
0
0
170
0.082444
5144c4d72df0f27c405d9c186efa2f5400ee41ce
332
py
Python
Tarea1b_SpaceWars/hitmarker.py
salistito/Computer-Graphics
f56b453609bbe8496f504f438770fde992af68fe
[ "MIT" ]
null
null
null
Tarea1b_SpaceWars/hitmarker.py
salistito/Computer-Graphics
f56b453609bbe8496f504f438770fde992af68fe
[ "MIT" ]
null
null
null
Tarea1b_SpaceWars/hitmarker.py
salistito/Computer-Graphics
f56b453609bbe8496f504f438770fde992af68fe
[ "MIT" ]
null
null
null
""" Sebastián Salinas, CC3501, 6/05/20 Tarea1b """ # Importamos algunos modulos import math # Función para evaluar la colisión entre 2 objetos def hitmarker(x1,y1,x2,y2): distancia = math.sqrt((x1-x2)**2 + (y1-y2)**2) # Ecuación de la distancia if distancia < 0.075: #0.075 return True else: ...
25.538462
77
0.665663
0
0
0
0
0
0
0
0
164
0.488095
51457008bd685f3f5dea47108bc2573ac5535321
1,510
py
Python
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
src/lib/osta.py
anroots/osta-exporter
14b05bb905b9df59f9e62e72b33c64a890eb973b
[ "Apache-2.0" ]
null
null
null
from json import JSONDecodeError import requests import sys class Osta: def __init__(self, logger, api_url): self.api_url = api_url self.logger = logger def get_user_items(self, user_id): self.logger.debug('Starting collection of osta.ee meters') query_params = { ...
32.826087
141
0.609272
1,446
0.957616
0
0
292
0.193377
0
0
400
0.264901
5146d58c84bb7104d16ee9a9d1a76b8231e89082
224
py
Python
nyaggle/experiment/__init__.py
harupy/nyaggle
132a93079e364d60b5598de77ab636a603ec06a4
[ "MIT" ]
null
null
null
nyaggle/experiment/__init__.py
harupy/nyaggle
132a93079e364d60b5598de77ab636a603ec06a4
[ "MIT" ]
null
null
null
nyaggle/experiment/__init__.py
harupy/nyaggle
132a93079e364d60b5598de77ab636a603ec06a4
[ "MIT" ]
null
null
null
from nyaggle.experiment.experiment import Experiment, add_leaderboard_score from nyaggle.experiment.averaging import average_results from nyaggle.experiment.run import autoprep_gbdt, run_experiment, find_best_lgbm_parameter
56
90
0.892857
0
0
0
0
0
0
0
0
0
0
5146da738f04b9b9d8f97c34d071f17da9198bde
794
py
Python
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
1,128
2019-09-11T01:38:09.000Z
2022-03-31T17:06:56.000Z
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
45
2019-09-11T05:39:53.000Z
2021-12-05T17:52:07.000Z
configs/fdf/deep_privacy_v1.py
skoskjei/DP-ATT
eb7380099f5c7e533fd0d247456b4a418529d62b
[ "MIT" ]
185
2019-09-11T02:15:56.000Z
2022-03-23T16:12:41.000Z
_base_config_ = "base.py" model_size = 512 model_url = "http://folk.ntnu.no/haakohu/checkpoints/step_42000000.ckpt" models = dict( scalar_pose_input=False, max_imsize=128, conv_size={ 4: model_size, 8: model_size, 16: model_size, 32: model_size, 64: model_size//2,...
18.465116
72
0.540302
0
0
0
0
0
0
0
0
84
0.105793
514737538b6050cbe92637918e942f1823b10292
1,699
py
Python
server/weather/RestWeatherProvider.py
EveryOtherUsernameWasAlreadyTaken/BIS
e132ce42dcc74e634231398dfecb08834d478cba
[ "MIT" ]
3
2019-07-09T08:51:20.000Z
2019-09-16T17:27:54.000Z
server/weather/RestWeatherProvider.py
thomasw-mitutoyo-ctl/BIS
08525cc12164902dfe968ae41beb6de0cd5bc411
[ "MIT" ]
24
2019-06-17T12:33:35.000Z
2020-03-27T08:17:35.000Z
server/weather/RestWeatherProvider.py
EveryOtherUsernameWasAlreadyTaken/BIS
e132ce42dcc74e634231398dfecb08834d478cba
[ "MIT" ]
1
2020-03-24T17:54:07.000Z
2020-03-24T17:54:07.000Z
import json import logging import threading from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer log = logging.getLogger(__name__) class RestWeatherProvider(threading.Thread): """ The RestWeatherProvider serves the collected weather data using a simple http server. The weather data can be obtai...
30.339286
114
0.669806
1,552
0.913479
0
0
0
0
0
0
525
0.309005
5147aa629fe9091066db83d5ac4d5067803255bc
359
py
Python
src/dev.py
Inigoperez/Proyecto_Interfaces
4a2b98cd499fabf3789301e9eb488297bebfcf2a
[ "MIT" ]
null
null
null
src/dev.py
Inigoperez/Proyecto_Interfaces
4a2b98cd499fabf3789301e9eb488297bebfcf2a
[ "MIT" ]
null
null
null
src/dev.py
Inigoperez/Proyecto_Interfaces
4a2b98cd499fabf3789301e9eb488297bebfcf2a
[ "MIT" ]
null
null
null
if __name__ == '__main__': from dotenv import load_dotenv load_dotenv() from config import StageConfig from util import route from util.commands import commands else: from .config import StageConfig from .util import route from .util.commands import commands app = route(config=StageCo...
22.4375
46
0.732591
0
0
0
0
0
0
0
0
10
0.027855
51493c53717606761bb6b13240fa86406df2fac3
985
py
Python
cms/tests.py
royaleagle-dev/djangoblog
624a17972772d54fc44d5a480fe42011c9b272fa
[ "Apache-2.0" ]
null
null
null
cms/tests.py
royaleagle-dev/djangoblog
624a17972772d54fc44d5a480fe42011c9b272fa
[ "Apache-2.0" ]
null
null
null
cms/tests.py
royaleagle-dev/djangoblog
624a17972772d54fc44d5a480fe42011c9b272fa
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from . models import Post, Tag, Category def createCategory(title): return Category.objects.create(title = title) def createTag(name): return Tag.objects.create(name = name) def createPost(title, body, author, postState): tag = Tag.objects.create(name = 'NewT') post = Post.object...
29.848485
119
0.73401
523
0.530964
0
0
0
0
0
0
100
0.101523
514976db1636eff4f1c2e435911894cc18620e2c
1,531
py
Python
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
1
2019-03-17T11:26:36.000Z
2019-03-17T11:26:36.000Z
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
null
null
null
test/test_solver.py
akiFQC/pyqubo
6a8033365562756328577eda42e255853e760488
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Recruit Communications Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.452381
98
0.665578
817
0.533638
0
0
181
0.118223
0
0
653
0.426519
514a79000a503d03dd773bda6a965fb3b20a7db7
737
py
Python
solution/viz/clean_words.py
GabrielMissael/solution
aff33732d04efedb60c1ebc70fd5108ae5cc558e
[ "MIT" ]
null
null
null
solution/viz/clean_words.py
GabrielMissael/solution
aff33732d04efedb60c1ebc70fd5108ae5cc558e
[ "MIT" ]
null
null
null
solution/viz/clean_words.py
GabrielMissael/solution
aff33732d04efedb60c1ebc70fd5108ae5cc558e
[ "MIT" ]
null
null
null
import re import unicodedata import nltk from nltk.corpus import stopwords import pandas as pd def clean_words(text_DataFrame:pd.DataFrame): """ A simple function to clean up the data. All the words that are not designated as a stop word is then lemmatized after encoding and basic regex parsing are per...
33.5
75
0.683853
0
0
0
0
0
0
0
0
254
0.34464
514a92812de5f63e1e53a1ba432f40d277ebdbba
780
py
Python
imagemodel/common/predictor.py
tenkeyless/imagemodel
360c672117b5ccb1bfb3d6771b0720fa1a1f513c
[ "MIT" ]
null
null
null
imagemodel/common/predictor.py
tenkeyless/imagemodel
360c672117b5ccb1bfb3d6771b0720fa1a1f513c
[ "MIT" ]
null
null
null
imagemodel/common/predictor.py
tenkeyless/imagemodel
360c672117b5ccb1bfb3d6771b0720fa1a1f513c
[ "MIT" ]
null
null
null
from typing import Optional import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.python.distribute.tpu_strategy import TPUStrategy class Predictor: def __init__( self, model: Model, predict_dataset: tf.data.Dataset, predict_dataset_desc...
32.5
75
0.694872
616
0.789744
0
0
0
0
0
0
0
0
514b2ccf532fafc08943123f355c409988b89713
6,778
py
Python
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
reporter.py
Danielto1404/ssat-msp-make-transfer
36731ab79ba517d6c66516054ebd6179674a953e
[ "MIT" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.729032
121
0.627176
5,900
0.870463
0
0
0
0
0
0
1,621
0.239156
514d5df2cbf6b921babea277704186e66c61af98
3,700
py
Python
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm.py
rajatenzyme/Coding-Journey-
65a0570153b7e3393d78352e78fb2111223049f3
[ "MIT" ]
null
null
null
''' Dijkstra's algorithm for weighted undirected graph ''' from collections import deque class Dijkstra: def __init__(self, graph): self.vertex_visited = list() self.distance = {} self.graph = graph self.source = None self.queue_size = 0 self.min_queue = deque() ...
33.333333
104
0.526216
3,121
0.843514
0
0
0
0
0
0
563
0.152162
514d67f48ef86730369a1f20030702bb95bc30ac
33,053
py
Python
ServerFiles/FrontFollowingNetwork.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
2
2021-11-13T14:16:06.000Z
2022-01-12T06:07:32.000Z
ServerFiles/FrontFollowingNetwork.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
null
null
null
ServerFiles/FrontFollowingNetwork.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
3
2021-08-30T04:40:39.000Z
2022-01-09T11:34:04.000Z
#-*- coding: UTF-8 -*- import sys,os pwd = os.path.abspath(os.path.abspath(__file__)) father_path = os.path.abspath(os.path.dirname(pwd) + os.path.sep + "..") sys.path.append(father_path) import tensorflow as tf from tensorflow import keras import numpy as np import os from typing import Tuple import random from Networ...
55.365159
184
0.587571
14,722
0.445029
0
0
0
0
0
0
3,391
0.102506
514d779997818ca67945865e73aa82b847c739ae
3,302
py
Python
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
12
2018-06-28T13:40:53.000Z
2022-01-07T12:46:15.000Z
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
6
2019-04-29T16:55:38.000Z
2022-03-04T17:00:15.000Z
docs/_build/html/_downloads/152c7b8f9bc6f2cd3750f0cb8ddc0be4/lesson_2_a.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
5
2019-04-21T15:42:55.000Z
2021-08-16T10:53:30.000Z
#<hide> """ filtergraph: Streaming part | Decoding part | (LiveThread:livethread) -->> (AVThread:avthread) --> {InfoFrameFilter:info_filter} """ #</hide> #<hide> import time from valkka.core import * #</hide> """<rtf> Let's consider the following filtergraph: :: Streami...
31.447619
214
0.657783
0
0
0
0
0
0
0
0
2,772
0.839491
514e969fdf154b0e8e5327483cdde2b37efd808d
44,964
py
Python
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
3
2015-08-02T09:03:28.000Z
2017-12-06T09:26:14.000Z
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
5
2015-08-17T01:16:35.000Z
2015-09-16T21:51:27.000Z
cheshire3/normalizer.py
cheshire3/cheshire3
306348831ec110229c78a7c5f0f2026a0f394d2c
[ "Python-2.0", "Unlicense" ]
6
2015-05-17T15:32:20.000Z
2020-04-22T08:43:16.000Z
# -*- coding: utf-8 -ü- import os import re import types try: from zopyx.txng3.ext import stemmer as Stemmer except ImportError: Stemmer = None from cheshire3.baseObjects import Normalizer from cheshire3.exceptions import ( ConfigFileException, MissingDependencyException ) class SimpleNormalizer(No...
33.134856
79
0.455231
44,408
0.987591
0
0
0
0
0
0
17,653
0.392586
514e96ff8378de7f403d3d5b87b39b9cacaa544f
1,976
py
Python
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
tests/tests_auth.py
wolfram74/flask_exploration
6c83eee93830792969b8c6b4dbbbf6708c08ef9d
[ "MIT" ]
null
null
null
import unittest from flask.ext.testing import TestCase from project import app, db from project.models import User, BlogPost from base import BaseTestCase class FlaskTestCase(BaseTestCase): # def setUp(self): # self.tester = app.test_client(self) # self.good_cred = dict(username='admin', password=...
37.283019
96
0.671053
1,771
0.896255
0
0
0
0
0
0
379
0.191802
514fd7037382f0059f2a8f6642dd4dde72119752
1,024
py
Python
calendar_manager/accounts/views/signin.py
greyhub/calendar_manager
837a0d938fdd58684279fb32f8a50805bb306fe1
[ "MIT" ]
6
2021-11-23T19:52:55.000Z
2022-03-30T13:45:05.000Z
calendar_manager/accounts/views/signin.py
greyhub/calendar_manager
837a0d938fdd58684279fb32f8a50805bb306fe1
[ "MIT" ]
null
null
null
calendar_manager/accounts/views/signin.py
greyhub/calendar_manager
837a0d938fdd58684279fb32f8a50805bb306fe1
[ "MIT" ]
1
2021-11-23T10:14:54.000Z
2021-11-23T10:14:54.000Z
from django.views.generic import View from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from accounts.forms import SignInForm class SignInView(View): """ User registration view """ template_name = 'accounts/signin.html' form_class = SignInForm def get(...
32
63
0.621094
847
0.827148
0
0
0
0
0
0
107
0.104492
5150d680a6e92b183496e1677c8274249125d1ee
3,794
py
Python
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
magmap/settings/logs.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
null
null
null
# MagellanMapper logging """Logging utilities.""" import logging from logging import handlers import pathlib class LogWriter: """File-like object to write standard output to logging functions. Attributes: fn_logging (func): Logging function buffer (list[str]): String buffer. """...
29.874016
77
0.624671
964
0.254085
0
0
0
0
0
0
2,054
0.541381
5151eb6104a2efda27edf90bc5d40eacc7c63499
3,322
py
Python
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
src/training/har_train.py
sanglee/MC-ATON
8393cdb20957bf2fe11633c062aa7979ca389cc4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Created : 2021/10/28 17:12 # @Author : Junhyung Kwon # @Site : # @File : har_train.py # @Software : PyCharm import os import torch import torch.nn.functional as F from torch import nn, optim from torch.optim.lr_scheduler import MultiStepLR from tqdm.au...
30.477064
118
0.621915
0
0
0
0
0
0
0
0
355
0.106863
51523224ed1784558c61cf16ca3f354c9e20fd86
1,741
py
Python
brainTeasers/numberOfLines/unitTests.py
christopher-henderson/Experiments
d970249a4895424cb5ff5b557948f3a4bda4879c
[ "MIT" ]
null
null
null
brainTeasers/numberOfLines/unitTests.py
christopher-henderson/Experiments
d970249a4895424cb5ff5b557948f3a4bda4879c
[ "MIT" ]
null
null
null
brainTeasers/numberOfLines/unitTests.py
christopher-henderson/Experiments
d970249a4895424cb5ff5b557948f3a4bda4879c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from functools import wraps from lines import getNumLines assertion = 0 exception = 0 passed = 0 def Test(function): @wraps(function) def wrapper(*args, **kwargs): global assertion global exception global passed try: ...
24.521127
92
0.570936
0
0
0
0
1,415
0.812751
0
0
93
0.053418
515285c60dcab2bc55d78dce23f2882c85fc837c
279
py
Python
print-var.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
5
2015-11-15T19:08:31.000Z
2015-11-27T02:34:28.000Z
print-var.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
null
null
null
print-var.py
christoga/python
1395b3177e7baf46677a7a7a4ae89d2488c6f0fa
[ "MIT" ]
null
null
null
my_name = 'Andre Christoga' my_age = 11 # Really, this is my age # my_height = 150 # Centimeter # my_weight = 32 # Kilogram # my_eyes = "Brown" # my_teeth = "White" print "Oh, Hello there." print "My name is " + my_name print "My age is 11" print "I know, too young to code?"
23.25
36
0.670251
0
0
0
0
0
0
0
0
210
0.752688
5153b4798f2410a6aa6709c5a6328570a85d91d6
3,052
py
Python
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
2
2021-07-02T20:10:48.000Z
2021-07-13T20:51:18.000Z
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
3
2021-06-24T13:27:21.000Z
2021-07-30T15:37:43.000Z
src/blip_sdk/extensions/artificial_intelligence/ai_model/ai_model_extension.py
mirlarof/blip-sdk-python
f958149b2524d4340eeafad8739a33db71df45ed
[ "MIT" ]
3
2021-06-23T19:53:20.000Z
2022-01-04T17:50:44.000Z
from lime_python import Command from ...extension_base import ExtensionBase from .content_type import ContentType from .uri_templates import UriTemplates class AIModelExtension(ExtensionBase): """Extension to handle Blip Analytics Services.""" async def get_models_async( self, skip: int = 0, ...
27.495495
79
0.564548
2,895
0.948558
0
0
0
0
2,766
0.906291
1,045
0.342398
5155a6295dbb373ee9af2abbcd7551a82f2a7146
1,683
py
Python
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
src/datajunction/console.py
DataJunction/datajunction
d2293255bb7df0e5144c7e448a0ca2b590b6c20f
[ "MIT" ]
null
null
null
""" DataJunction (DJ) is a metric repository. Usage: dj compile [REPOSITORY] [-f] [--loglevel=INFO] [--reload] Actions: compile Compile repository Options: -f, --force Force indexing. [default: false] --loglevel=LEVEL Level for logging. [default: INFO] --relo...
23.054795
63
0.608437
0
0
0
0
0
0
710
0.421866
619
0.367796
5156148de28f4156b72965f292cfcca3cbc248dc
3,617
py
Python
main.py
yappy2000d/MoodBot
b62fc96fb15aa6f7bc95696f7a1614f1f50614dd
[ "MIT" ]
null
null
null
main.py
yappy2000d/MoodBot
b62fc96fb15aa6f7bc95696f7a1614f1f50614dd
[ "MIT" ]
null
null
null
main.py
yappy2000d/MoodBot
b62fc96fb15aa6f7bc95696f7a1614f1f50614dd
[ "MIT" ]
null
null
null
import os from ai import model, process, vectorizer from youtube import comment, getid, video from linebot import LineBotApi, WebhookHandler from linebot.exceptions import InvalidSignatureError from linebot.models import MessageEvent, TextMessage, TextSendMessage SECRET = os.environ['SECRET'] TOKEN = os.environ['TOK...
31.72807
170
0.592756
0
0
0
0
3,433
0.868894
0
0
802
0.202987
5159402d19245aba61bb579f188067d4ee6bc977
274
py
Python
vivit/extensions/secondorder/sqrt_ggn/dropout.py
PwLo3K46/vivit
937642975be2ade122632d4eaef273461992d7ab
[ "MIT" ]
1
2021-06-07T05:15:22.000Z
2021-06-07T05:15:22.000Z
vivit/extensions/secondorder/sqrt_ggn/dropout.py
PwLo3K46/vivit
937642975be2ade122632d4eaef273461992d7ab
[ "MIT" ]
2
2021-08-10T12:45:37.000Z
2021-08-10T12:49:51.000Z
vivit/extensions/secondorder/sqrt_ggn/dropout.py
PwLo3K46/vivit
937642975be2ade122632d4eaef273461992d7ab
[ "MIT" ]
null
null
null
from backpack.core.derivatives.dropout import DropoutDerivatives from vivit.extensions.secondorder.sqrt_ggn.sqrt_ggn_base import SqrtGGNBaseModule class SqrtGGNDropout(SqrtGGNBaseModule): def __init__(self): super().__init__(derivatives=DropoutDerivatives())
30.444444
81
0.821168
123
0.448905
0
0
0
0
0
0
0
0
5159b6cde26f7df203594b171f65dbf811705a8e
1,286
py
Python
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
4
2015-03-30T22:46:35.000Z
2020-09-08T02:03:53.000Z
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
21
2015-02-03T23:12:36.000Z
2017-09-15T21:03:24.000Z
phonon/registry.py
akellehe/phonon
4b61fd6042af1bec7bc949bcc713a0dd0fcfcefb
[ "MIT" ]
2
2016-08-14T20:18:52.000Z
2019-09-30T16:02:22.000Z
import sys import collections import tornado class Registry(object): def __init__(self, max_entries=10000, ioloop=None): self.models = collections.OrderedDict() self.timeouts = {} self.ioloop = ioloop or tornado.ioloop.IOLoop.current() self.max_entries = max_entries def regis...
28.577778
75
0.618974
1,057
0.821928
0
0
0
0
0
0
0
0
515bc2e00165e4793cb2c05d11188ceed1d51545
1,672
py
Python
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
3
2020-11-04T19:34:47.000Z
2021-06-30T04:13:55.000Z
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
null
null
null
project_template/account/permission.py
AdityaBhalsod/django-rest-api-template
ae530c9c246d074707e26d9c4d6c2f15177bd1f7
[ "Apache-2.0" ]
1
2021-01-31T19:30:59.000Z
2021-01-31T19:30:59.000Z
# -*- coding: utf-8 -*- from rest_framework import permissions from account.models import BlackList class BlacklistPermission(permissions.BasePermission): """ Global permission check for blacklisted IPs. """ def has_permission(self, request, view): ip_address = request.META["REMOTE_ADDR"] ...
35.574468
78
0.641746
1,566
0.936603
0
0
0
0
0
0
371
0.22189
515c32b2748b2c0d803dfa8b97d5d1d27008566b
1,498
py
Python
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
006_multiples.py
mkduer/code-nibbles
3482b5159bc0fdc18079bf2de27a47a77ae4753a
[ "Apache-2.0" ]
null
null
null
from helpers import Helpers import numpy as np def multiples(numbers: [int]) -> [int]: """ Multiplies all of the values in the list excepting the value at the current index e.g. original numbers = [4, 1, 6] returns the multiples = [6, 24, 4] where the first value is the product of 1 * 6 and does not i...
31.208333
85
0.695594
0
0
0
0
0
0
0
0
501
0.334446