hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d43861ee267d2e7cc1c652f83d727a7f664394e3
14,693
py
Python
aTools/animTools/animBar/subUIs/specialTools_subUIs/mirror.py
MKlimenko/aTools_python3
029b90eff77da95f589520adf2beaecd98f3bdd9
[ "Apache-2.0" ]
null
null
null
aTools/animTools/animBar/subUIs/specialTools_subUIs/mirror.py
MKlimenko/aTools_python3
029b90eff77da95f589520adf2beaecd98f3bdd9
[ "Apache-2.0" ]
null
null
null
aTools/animTools/animBar/subUIs/specialTools_subUIs/mirror.py
MKlimenko/aTools_python3
029b90eff77da95f589520adf2beaecd98f3bdd9
[ "Apache-2.0" ]
null
null
null
''' ======================================================================================================================== Author: Alan Camilo www.alancamilo.com Requirements: aTools Package ------------------------------------------------------------------------------------------------------------------------ To i...
45.772586
237
0.474307
7279b16d1ad570193a0c120b7d0ab1f8b54e628f
1,745
py
Python
qiskit_metal/toolbox_metal/exceptions.py
WiFisunset/qiskit-metal
f8155e5a695b0daf3af951c545b268b363dff536
[ "Apache-2.0" ]
null
null
null
qiskit_metal/toolbox_metal/exceptions.py
WiFisunset/qiskit-metal
f8155e5a695b0daf3af951c545b268b363dff536
[ "Apache-2.0" ]
null
null
null
qiskit_metal/toolbox_metal/exceptions.py
WiFisunset/qiskit-metal
f8155e5a695b0daf3af951c545b268b363dff536
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
30.614035
86
0.692264
3b6034128604097dfd7fc3e7713bf744aa3e4585
15,727
py
Python
tests/unit/test_gbq.py
DigitalCPR/pandas-gbq
81fa744c02a46f1455ff74a5e3afe33ad9303195
[ "BSD-3-Clause" ]
281
2017-02-09T18:19:01.000Z
2021-07-14T02:56:33.000Z
tests/unit/test_gbq.py
DigitalCPR/pandas-gbq
81fa744c02a46f1455ff74a5e3afe33ad9303195
[ "BSD-3-Clause" ]
339
2017-02-08T13:54:08.000Z
2021-07-08T17:47:59.000Z
tests/unit/test_gbq.py
DigitalCPR/pandas-gbq
81fa744c02a46f1455ff74a5e3afe33ad9303195
[ "BSD-3-Clause" ]
109
2017-02-10T10:02:15.000Z
2021-07-13T22:39:59.000Z
# Copyright (c) 2017 pandas-gbq Authors All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # -*- coding: utf-8 -*- import copy import datetime from unittest import mock import numpy import pandas from pandas import DataFrame import pytest from ...
32.426804
88
0.71355
c16c7082488e40e4011258cd38c3fde7627140be
3,691
py
Python
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_token_with_id_token_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_token_with_id_token_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/create_token_with_id_token_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class CreateTokenWithIdTokenResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute...
27.544776
91
0.582227
0a58a89c5b32dc5621c5f958ec8d2fa46d892305
7,709
py
Python
delete.py
mmarukaw/oci-bulk-operations
9dc5434ddbfcb80abaf250036d752e4d22e1c00b
[ "MIT" ]
1
2021-03-22T02:59:19.000Z
2021-03-22T02:59:19.000Z
delete.py
mmarukaw/oci-bulk-operations
9dc5434ddbfcb80abaf250036d752e4d22e1c00b
[ "MIT" ]
null
null
null
delete.py
mmarukaw/oci-bulk-operations
9dc5434ddbfcb80abaf250036d752e4d22e1c00b
[ "MIT" ]
null
null
null
# coding: utf-8 import sys, os, argparse, configparser, json import oci, utils from modules import * ### Read arguments ### parser = argparse.ArgumentParser() parser.add_argument("-p", "--profile", default="DEFAULT", help="profile name in settings.ini file. D...
46.161677
117
0.743676
cda1b24b39ab6dfd1e1ea1d6748cb64cfdd49a84
7,666
py
Python
cms/tests/no_i18n.py
samirasnoun/django_cms_gallery_image
7792aa06a60877d86c022e73b60d0d669e79cb74
[ "BSD-3-Clause" ]
1
2019-04-15T10:28:46.000Z
2019-04-15T10:28:46.000Z
cms/tests/no_i18n.py
samirasnoun/django_cms_gallery_image
7792aa06a60877d86c022e73b60d0d669e79cb74
[ "BSD-3-Clause" ]
null
null
null
cms/tests/no_i18n.py
samirasnoun/django_cms_gallery_image
7792aa06a60877d86c022e73b60d0d669e79cb74
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.urlresolvers import clear_url_caches from django.template import Template from djangocms_text_ckeditor.models import Text from cms.api import create_page from cms.models import Page, CMSPlugin from cms.test_utils.testcases import (SettingsOverrideTestCase, ...
47.320988
111
0.621184
1f96f8ea531c5e77f255fb7a646b5b76532ff3bb
3,169
py
Python
avashell/shell_osx.py
sampot/avashell
213f4636fcaf75fef155539854f96205d1b777ac
[ "BSD-3-Clause" ]
3
2015-09-16T13:42:20.000Z
2019-06-14T20:23:22.000Z
avashell/shell_osx.py
sampot/avashell
213f4636fcaf75fef155539854f96205d1b777ac
[ "BSD-3-Clause" ]
null
null
null
avashell/shell_osx.py
sampot/avashell
213f4636fcaf75fef155539854f96205d1b777ac
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, absolute_import, unicode_literals import os import logging import AppKit from Foundation import (NSDate, NSTimer, NSRunLoop, NSDefaultRunLoopMode, NSSearchPathForDirectoriesInDomains, NSMakeRect, NSLog, NSObject) from AppKit impor...
31.69
110
0.695803
ecd3099a15f5d82b21a7a9a847f47e5511578f81
7,797
py
Python
tests/test_locations.py
iluxonchik/locmess-server
a48802984b17948b318189711b5804ef747ae257
[ "MIT" ]
null
null
null
tests/test_locations.py
iluxonchik/locmess-server
a48802984b17948b318189711b5804ef747ae257
[ "MIT" ]
null
null
null
tests/test_locations.py
iluxonchik/locmess-server
a48802984b17948b318189711b5804ef747ae257
[ "MIT" ]
null
null
null
from locmess import settings from locmess.settings import logging import os import unittest from pony.orm import * from locmess.tables import Location import json from tests.base import BaseTestCase from locmess.exceptions import AuthorizationError class LocationTestCase(BaseTestCase): @db_session def test_...
48.428571
90
0.649994
eabb8c935af19a3e447b66dd860bdad8a99e9757
21
py
Python
core/__init__.py
Ryize/pyeasyvkbot
6f9383d63c417297022ef17cc677fab36357fa02
[ "Apache-2.0" ]
null
null
null
core/__init__.py
Ryize/pyeasyvkbot
6f9383d63c417297022ef17cc677fab36357fa02
[ "Apache-2.0" ]
null
null
null
core/__init__.py
Ryize/pyeasyvkbot
6f9383d63c417297022ef17cc677fab36357fa02
[ "Apache-2.0" ]
1
2022-02-12T09:19:12.000Z
2022-02-12T09:19:12.000Z
__version__ = 1.0.0
10.5
20
0.666667
03c42144a2a98c758ce4b94c71ccecf076bdaa20
2,779
py
Python
qiskit/circuit/controlledgate.py
sapmarvins/qiskit-terra
480145fbe0a01f9346e6cab60912c5be778317b9
[ "Apache-2.0" ]
3
2019-05-19T17:39:38.000Z
2020-01-28T19:59:18.000Z
qiskit/circuit/controlledgate.py
sapmarvins/qiskit-terra
480145fbe0a01f9346e6cab60912c5be778317b9
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
qiskit/circuit/controlledgate.py
sapmarvins/qiskit-terra
480145fbe0a01f9346e6cab60912c5be778317b9
[ "Apache-2.0" ]
1
2021-07-07T16:55:41.000Z
2021-07-07T16:55:41.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
37.554054
97
0.629723
3e8ba629ca636462eaf503a92d37442612e1ef45
359
py
Python
drafttopic/about.py
dr0ptp4kt/drafttopic
4763acfd3ebe98e287ba4485d4f5a8026eb55579
[ "MIT" ]
null
null
null
drafttopic/about.py
dr0ptp4kt/drafttopic
4763acfd3ebe98e287ba4485d4f5a8026eb55579
[ "MIT" ]
null
null
null
drafttopic/about.py
dr0ptp4kt/drafttopic
4763acfd3ebe98e287ba4485d4f5a8026eb55579
[ "MIT" ]
null
null
null
__name__ = "drafttopic" __version__ = "0.2.0" __author__ = "Aaron Halfaker, Sumit Asthana" __author_email__ = "ahalfaker@wikimedia.org, asthana.sumit23@gmail.com" __description__ = "A library for automatic detection of topics of new " +\ "drafts on Wikipedia based on WikiProjects." __url__ = "https://github.com/wik...
39.888889
74
0.760446
53246781a345cb307b275b0d13d9172b7206cc77
2,765
py
Python
gammapy/datasets/tests/test_io.py
vikasj78/gammapy
46deb872bbcbf36748df71e659dc3fa592f6dc27
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/tests/test_io.py
vikasj78/gammapy
46deb872bbcbf36748df71e659dc3fa592f6dc27
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/tests/test_io.py
vikasj78/gammapy
46deb872bbcbf36748df71e659dc3fa592f6dc27
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from numpy.testing import assert_allclose from gammapy.datasets import Datasets from gammapy.modeling.models import Models from gammapy.utils.testing import requires_data, requires_dependency from gammapy.modeling import Fit @requires_data() @requires_de...
34.5625
86
0.713562
0658f6af0d02e2015a3f25f9126f5b755fd37691
2,047
py
Python
src/dos_solver.py
JefferyWangSH/dos-solver
4c1b8b1b5e94127e00edbb40bb0d5037c6f94ea9
[ "MIT" ]
null
null
null
src/dos_solver.py
JefferyWangSH/dos-solver
4c1b8b1b5e94127e00edbb40bb0d5037c6f94ea9
[ "MIT" ]
null
null
null
src/dos_solver.py
JefferyWangSH/dos-solver
4c1b8b1b5e94127e00edbb40bb0d5037c6f94ea9
[ "MIT" ]
null
null
null
import time import numpy as np from dos_params import DosParams from grids import FrequencyGrids, MomentumGrids from model import FreePropagator, Kernel, GreenFunc class DosSolver: def __init__(self) -> None: self._freq_list = () self._dos_list = () self._timer = 0.0 def clear(sel...
29.666667
82
0.648266
3679356e3c6af5d4a703010c6e80886f812f04b4
1,959
py
Python
src/exporters/direct_exporter.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
1
2018-08-08T07:45:50.000Z
2018-08-08T07:45:50.000Z
src/exporters/direct_exporter.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
null
null
null
src/exporters/direct_exporter.py
jwpttcg66/ExcelToTransfer
3afc0cf088f4c991bbf4dc2d6d1f395a71cbc3c7
[ "Apache-2.0" ]
1
2020-01-10T05:03:44.000Z
2020-01-10T05:03:44.000Z
# -*- coding: utf-8 -*- import os import sys import traceback import xlsconfig import util from parsers import DirectParser from base_exporter import BaseExporter class DirectExporter(BaseExporter): def __init__(self, input_path, exts): super(DirectExporter, self).__init__(input_path, exts) self.parser_class = ...
23.60241
84
0.756508
f8895805cfa5632fb531df0dbf44148288eccb29
3,996
py
Python
run_locally.py
ahsieh53632/tyot
5516e8e7ba04d21426e693d0b645e25835896dc8
[ "MIT" ]
null
null
null
run_locally.py
ahsieh53632/tyot
5516e8e7ba04d21426e693d0b645e25835896dc8
[ "MIT" ]
null
null
null
run_locally.py
ahsieh53632/tyot
5516e8e7ba04d21426e693d0b645e25835896dc8
[ "MIT" ]
null
null
null
import csv import boto3 import json import numpy as np from cv2 import cv2 as cv import os from urllib.parse import unquote_plus import uuid with open('C:/Users/alex5/Desktop/credentials.csv', 'r') as c: next(c) r = csv.reader(c) for l in r: kid = l[2] s_kid = l[3] def detect_dump(curr, ...
30.976744
83
0.531532
6c22d14736fc3f4d32b6ef397c2ab3798c333dfc
2,909
py
Python
cose/messages/enccommon.py
BrianSipos/pycose
02627dee78519a9fce2def593b6e566c7e730545
[ "BSD-3-Clause" ]
null
null
null
cose/messages/enccommon.py
BrianSipos/pycose
02627dee78519a9fce2def593b6e566c7e730545
[ "BSD-3-Clause" ]
null
null
null
cose/messages/enccommon.py
BrianSipos/pycose
02627dee78519a9fce2def593b6e566c7e730545
[ "BSD-3-Clause" ]
null
null
null
import abc from typing import Optional, TYPE_CHECKING import cbor2 from cose import headers from cose.exceptions import CoseException from cose.keys.keyops import DecryptOp, EncryptOp from cose.keys.symmetric import SymmetricKey from cose.messages.cosemessage import CoseMessage if TYPE_CHECKING: from cose.keys.s...
31.619565
115
0.634239
1ab547960600763ddf83627ea01d13662eb4b10a
442
py
Python
app/core/migrations/0007_recipe_image.py
cvriel/recipe-app-api
9b41e53f2c5f5ac2e51e0ac56d77d8bc66be082f
[ "MIT" ]
null
null
null
app/core/migrations/0007_recipe_image.py
cvriel/recipe-app-api
9b41e53f2c5f5ac2e51e0ac56d77d8bc66be082f
[ "MIT" ]
null
null
null
app/core/migrations/0007_recipe_image.py
cvriel/recipe-app-api
9b41e53f2c5f5ac2e51e0ac56d77d8bc66be082f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-01 08:37 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0006_auto_20200531_1013'), ] operations = [ migrations.AddField( model_name='recipe', nam...
22.1
93
0.631222
e27f535bd8b65f27051dd9b1d61b58a76b84c86c
3,445
py
Python
vega/algorithms/nas/modnas/contrib/optim/skopt.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
vega/algorithms/nas/modnas/contrib/optim/skopt.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
vega/algorithms/nas/modnas/contrib/optim/skopt.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
34.79798
73
0.615675
633bfa79cd90f4580810aed0518e1db294b5ffc6
1,522
py
Python
hypervolume/dspsphv.py
GabrielAFS/spsp-jmetal
cc73e313c358c99dd3d58ff691230e23b71b4b67
[ "MIT" ]
3
2017-05-11T12:08:19.000Z
2019-06-03T17:51:55.000Z
hypervolume/dspsphv.py
GabrielAFS/spsp-jmetal
cc73e313c358c99dd3d58ff691230e23b71b4b67
[ "MIT" ]
2
2017-03-17T14:09:48.000Z
2018-02-22T12:41:45.000Z
hypervolume/dspsphv.py
GabrielAFS/spsp-jmetal
cc73e313c358c99dd3d58ff691230e23b71b4b67
[ "MIT" ]
4
2018-08-26T15:28:29.000Z
2020-06-27T14:36:08.000Z
import sys import os import csv from glob import glob from hypervolume import hypervolume as hv BASE_DIR = "results" def list_result_files(result_type="NOB", base_dir=BASE_DIR): path_pattern = "../{}/**/{}/*.csv".format(BASE_DIR, result_type) return glob(path_pattern, recursive=True) def dim(fname): ...
27.178571
107
0.611038
b2da8954bb1d3a847f2c1d3178aedf19184e23b0
105,422
py
Python
kapteyn/positions.py
kernsuite-debian/kapteyn
7f76896812c7670aa6803afe913868c15f2d0921
[ "BSD-3-Clause" ]
1
2018-08-27T18:44:00.000Z
2018-08-27T18:44:00.000Z
kapteyn/positions.py
kernsuite-debian/kapteyn
7f76896812c7670aa6803afe913868c15f2d0921
[ "BSD-3-Clause" ]
null
null
null
kapteyn/positions.py
kernsuite-debian/kapteyn
7f76896812c7670aa6803afe913868c15f2d0921
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #---------------------------------------------------------------------- # FILE: positions.py # PURPOSE: Provides functions for the conversion of positions to grids # AUTHOR: M.G.R. Vogelaar, University of Groningen, The Netherlands # DATE: Nov 20, 2009 # UPDATE: Nov 20, 2009 # VERSION: 0.1...
42.017537
257
0.57967
02e95c64292d611162eabf759e1d29c907aaf2c3
551
py
Python
yidianzixun/test.py
zfanai/scrapy-study
9db78e37e594166ecbf599a37771022a9c99e758
[ "Apache-2.0" ]
null
null
null
yidianzixun/test.py
zfanai/scrapy-study
9db78e37e594166ecbf599a37771022a9c99e758
[ "Apache-2.0" ]
null
null
null
yidianzixun/test.py
zfanai/scrapy-study
9db78e37e594166ecbf599a37771022a9c99e758
[ "Apache-2.0" ]
null
null
null
#encoding:utf8 from scrapy.selector import Selector from scrapy.http import HtmlResponse def func1(): body = '<html><body><span>good</span></body></html>' Selector(text=body).xpath('//span/text()').extract() response = HtmlResponse(url='http://example.com', body=body) Selector(response=response).xpat...
26.238095
64
0.640653
4322bff02aa45b72600d9689ad9e5dce9a56d596
792
py
Python
tracker/crawler/_abstract.py
gj94gj94ao4/dltracker
691f4286b5e83c598a611a40cfb83a5dc7c1dea6
[ "MIT" ]
null
null
null
tracker/crawler/_abstract.py
gj94gj94ao4/dltracker
691f4286b5e83c598a611a40cfb83a5dc7c1dea6
[ "MIT" ]
null
null
null
tracker/crawler/_abstract.py
gj94gj94ao4/dltracker
691f4286b5e83c598a611a40cfb83a5dc7c1dea6
[ "MIT" ]
null
null
null
from datetime import datetime from typing import List class DLCrawler(): def get_link(self) -> str: return self.link def get_name(self) -> str: return self.name def get_uid(self) -> str: return self.uid def get_dl_count(self) -> int: return self.dl_count def ge...
19.317073
43
0.611111
16ca7afcd74ee1806b66889c4b70b6dd00588542
307
py
Python
nnli/io/base.py
uclmr/adversarial-nli
7222b0fd2989fff237520c401d00249262f750dc
[ "MIT" ]
27
2018-08-27T07:30:10.000Z
2019-05-16T19:29:33.000Z
nnli/io/base.py
uclmr/adversarial-nli
7222b0fd2989fff237520c401d00249262f750dc
[ "MIT" ]
null
null
null
nnli/io/base.py
uclmr/adversarial-nli
7222b0fd2989fff237520c401d00249262f750dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import gzip import bz2 import logging logger = logging.getLogger(__name__) def iopen(path, *args, **kwargs): _open = open if path.endswith('.gz'): _open = gzip.open elif path.endswith('.bz2'): _open = bz2.open return _open(path, *args, **kwargs)
17.055556
39
0.612378
0560df1315576937dc5d3f54a7abff3298b9af8c
1,575
py
Python
projects/article_analysis.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
projects/article_analysis.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
projects/article_analysis.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
import csv import datetime class Article: def __init__(self, id: int, title: str, date: str, district: str, content: str, images: list, url: str): self.id = id self.title = title self.date = date self.district = district self.content = content self.images = images ...
35
122
0.584762
f2c2ec2f5e8e428974608eb8a8bd7d81fbc7c0f0
3,313
py
Python
tests/integration/alignment/test_gc_content_integration.py
yuzhenpeng/PhyKIT
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
[ "MIT" ]
null
null
null
tests/integration/alignment/test_gc_content_integration.py
yuzhenpeng/PhyKIT
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
[ "MIT" ]
null
null
null
tests/integration/alignment/test_gc_content_integration.py
yuzhenpeng/PhyKIT
167b9dfe0dd0bddd4b23492d9a3dc34e56debbd7
[ "MIT" ]
1
2021-07-30T01:39:30.000Z
2021-07-30T01:39:30.000Z
import pytest import sys from mock import patch, call from pathlib import Path from textwrap import dedent from phykit.phykit import Phykit here = Path(__file__) @pytest.mark.integration class TestGCContent(object): @patch("builtins.print") def test_gc_content0(self, mocked_print): expected_result =...
30.675926
76
0.589496
16656351e7a6c4ab34f26a9049d7f8a218a7cf71
1,706
py
Python
wxPython/locales/downloadLocalization.py
typeWorld/typeWorldApp
d731e1623dccd1f14a49886770715208bbdcc122
[ "Apache-2.0" ]
13
2018-03-10T09:08:56.000Z
2019-08-31T18:48:46.000Z
wxPython/locales/downloadLocalization.py
typeWorld/typeWorldApp
d731e1623dccd1f14a49886770715208bbdcc122
[ "Apache-2.0" ]
27
2020-01-30T12:42:18.000Z
2021-06-29T15:09:07.000Z
wxPython/locales/downloadLocalization.py
typeworld/guiapp
dd5a8176fe291778c1d393fa50dbe2a627e1153b
[ "Apache-2.0" ]
1
2019-08-31T10:12:45.000Z
2019-08-31T10:12:45.000Z
# -*- coding: utf-8 -*- import os from typeworld.client import request from ynlib.files import WriteToFile, ReadFromFile import json print("Calling server...") url = "https://type.world/downloadLocalization?authKey=8KW8jyBtEW3my2U" # url = "http://0.0.0.0/downloadLocalization?authKey=8KW8jyBtEW3my2U" success, conten...
24.371429
87
0.667644
3348cacb08d41110443f1efa9400d72abebc3d00
6,766
py
Python
getrequests.py
gideonjeffrey/sisensePY
6388352ace02c681909d2d751a4c2f432038e197
[ "MIT" ]
1
2021-10-21T22:41:34.000Z
2021-10-21T22:41:34.000Z
getrequests.py
gideonjeffrey/sisensePY
6388352ace02c681909d2d751a4c2f432038e197
[ "MIT" ]
null
null
null
getrequests.py
gideonjeffrey/sisensePY
6388352ace02c681909d2d751a4c2f432038e197
[ "MIT" ]
null
null
null
import sisenseconfig as config import requests import os def get_auth(): """ Returns the authentication token needed to access other REST API endpoints. """ url = config.base_url + "/api/v1/authentication/login" payload = { "username": config.sisense_credentials["username"], "pass...
34.697436
148
0.621194
4d985fc18a566f89db0eb54b94117914d54e4192
11,125
py
Python
tensorflow/python/ops/stateful_random_ops.py
a6802739/tensorflow
ca1f0ce1b9e82e9577a2439c1c40cf38d4694c40
[ "Apache-2.0" ]
2
2019-07-15T08:57:11.000Z
2020-08-26T12:35:02.000Z
tensorflow/python/ops/stateful_random_ops.py
shashvatshahi1998/tensorflow
a26413ef0a179dd93b5228b031de83dce97a8684
[ "Apache-2.0" ]
1
2019-03-10T00:46:46.000Z
2019-03-10T00:47:08.000Z
tensorflow/python/ops/stateful_random_ops.py
shashvatshahi1998/tensorflow
a26413ef0a179dd93b5228b031de83dce97a8684
[ "Apache-2.0" ]
1
2019-09-24T16:09:18.000Z
2019-09-24T16:09:18.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
34.549689
80
0.717213
c679875e54f87bc8dc07bdd171429de13f7af207
88
py
Python
game_states.py
tharvell/pyrogue
093bd63335b8a562a9b228a792d34c689c9bba3c
[ "Apache-2.0" ]
null
null
null
game_states.py
tharvell/pyrogue
093bd63335b8a562a9b228a792d34c689c9bba3c
[ "Apache-2.0" ]
null
null
null
game_states.py
tharvell/pyrogue
093bd63335b8a562a9b228a792d34c689c9bba3c
[ "Apache-2.0" ]
null
null
null
from enum import Enum class GameStates(Enum): PLAYERS_TURN = 1 ENEMY_TURN = 2
12.571429
23
0.693182
5083991691be1476de90c64bfced9c2d4d67c62c
3,437
py
Python
src/clikit/ui/help/application_help.py
finswimmer/clikit
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
[ "MIT" ]
78
2018-12-06T16:18:08.000Z
2022-03-18T01:44:06.000Z
src/clikit/ui/help/application_help.py
finswimmer/clikit
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
[ "MIT" ]
24
2019-05-11T16:40:06.000Z
2022-02-27T01:11:04.000Z
src/clikit/ui/help/application_help.py
finswimmer/clikit
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
[ "MIT" ]
17
2019-01-14T18:18:01.000Z
2022-03-07T23:05:46.000Z
from clikit.api.application import Application from clikit.api.args.format import ArgsFormat from clikit.api.args.format import ArgsFormatBuilder from clikit.api.args.format import Argument from clikit.api.command import Command from clikit.api.command import CommandCollection from clikit.ui.components import EmptyLine...
34.37
87
0.674134
98559452fa9d3ecffa4338e3d04fd702698440aa
25,535
py
Python
evennia/contrib/tutorial_world/intro_menu.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,544
2015-01-01T22:16:31.000Z
2022-03-31T19:17:45.000Z
evennia/contrib/tutorial_world/intro_menu.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,686
2015-01-02T18:26:31.000Z
2022-03-31T20:12:03.000Z
evennia/contrib/tutorial_world/intro_menu.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
867
2015-01-02T21:01:54.000Z
2022-03-29T00:28:27.000Z
""" Intro menu / game tutor Evennia contrib - Griatch 2020 This contrib is an intro-menu for general MUD and evennia usage using the EvMenu menu-templating system. EvMenu templating is a way to create a menu using a string-format instead of creating all nodes manually. Of course, for full functionality one must stil...
32.653453
97
0.667437
57fcd0bdebc0772ceee01d72e02aa0d771a2d9d8
1,149
py
Python
dash/index.py
jotavaladouro/motorwat_dashboard
92539807b8524dcded0d2658815a155eac61a27f
[ "MIT" ]
null
null
null
dash/index.py
jotavaladouro/motorwat_dashboard
92539807b8524dcded0d2658815a155eac61a27f
[ "MIT" ]
null
null
null
dash/index.py
jotavaladouro/motorwat_dashboard
92539807b8524dcded0d2658815a155eac61a27f
[ "MIT" ]
null
null
null
""" Create the base web page for DASH use: python dash/index.py """ import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app from apps import app_historical_map, app_realtime_map app.layout = html.Div([ dcc.Location(id='url', refresh=Fal...
25.533333
76
0.663185
9c607dc8cd78424c30cfee3c2fa70519d8148584
2,768
py
Python
HW1/solution.py
emiliev/Python
8d1fc34da89461ca45ee3cbd839c864ac062d8ca
[ "MIT" ]
null
null
null
HW1/solution.py
emiliev/Python
8d1fc34da89461ca45ee3cbd839c864ac062d8ca
[ "MIT" ]
null
null
null
HW1/solution.py
emiliev/Python
8d1fc34da89461ca45ee3cbd839c864ac062d8ca
[ "MIT" ]
null
null
null
def rotate_left(original_image): left_rotated_image = [] for row in range(len(original_image)): left_rotated_image.append([]) current_col = len(original_image) - row - 1 for col in range(len(original_image[row])): pixel = original_image[col][current_col] left_rot...
27.137255
69
0.625361
2755eddeac257a3443154bc6aa9b636aa8d8297b
1,686
py
Python
toolkit/src/TagStrip.py
builder08/enigma2-plugins
45583c69b807ce26d756a51973c81d877afe3694
[ "OLDAP-2.3" ]
null
null
null
toolkit/src/TagStrip.py
builder08/enigma2-plugins
45583c69b807ce26d756a51973c81d877afe3694
[ "OLDAP-2.3" ]
null
null
null
toolkit/src/TagStrip.py
builder08/enigma2-plugins
45583c69b807ce26d756a51973c81d877afe3694
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: utf-8 -*- from re import sub, finditer import six import six try: import htmlentitydefs iteritems = lambda d: six.iteritems(d) except ImportError as ie: from html import entities as htmlentitydefs iteritems = lambda d: d.items() unichr = chr def strip_readable(html): # Newlines are rendered as w...
24.085714
62
0.626928
0d18a8f4d08bee47f41ce5302212d43e18466cb5
1,682
py
Python
python/test/test_design_ff.py
thracesystems/powermeter-api
7bdab034ff916ee49e986de88f157bd044e981c1
[ "Apache-2.0" ]
null
null
null
python/test/test_design_ff.py
thracesystems/powermeter-api
7bdab034ff916ee49e986de88f157bd044e981c1
[ "Apache-2.0" ]
null
null
null
python/test/test_design_ff.py
thracesystems/powermeter-api
7bdab034ff916ee49e986de88f157bd044e981c1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ PowerMeter API API # noqa: E501 The version of the OpenAPI document: 2021.4.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import powermeter_api from powermeter_api.models.design_ff import DesignFF # ...
25.484848
74
0.557075
a4550e0fcf934df5442ea62076c16165be5e94d8
4,458
py
Python
catalyst/contrib/utils/dataset.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
1
2020-09-24T00:34:06.000Z
2020-09-24T00:34:06.000Z
catalyst/contrib/utils/dataset.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/utils/dataset.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
1
2020-09-24T00:34:07.000Z
2020-09-24T00:34:07.000Z
from typing import Callable, Dict, Tuple from collections import defaultdict import glob import itertools import os import pandas as pd from sklearn.model_selection import train_test_split DictDataset = Dict[str, object] def create_dataset( dirs: str, extension: str = None, process_fn: Callable[[str], o...
34.55814
78
0.615298
7893f3b6cbb6a3e0f631cb0ee2af7827895a8c0b
5,427
py
Python
nsenter/__init__.py
dalazx/python-nsenter
7c627ce0e9c70853e6eb0aefdc94086e47630d56
[ "Apache-2.0" ]
130
2015-03-03T02:01:48.000Z
2022-01-22T09:04:59.000Z
nsenter/__init__.py
dalazx/python-nsenter
7c627ce0e9c70853e6eb0aefdc94086e47630d56
[ "Apache-2.0" ]
17
2016-01-06T11:52:42.000Z
2022-02-16T10:40:44.000Z
nsenter/__init__.py
dalazx/python-nsenter
7c627ce0e9c70853e6eb0aefdc94086e47630d56
[ "Apache-2.0" ]
24
2015-07-16T11:23:26.000Z
2022-02-16T10:34:32.000Z
#!/usr/bin/env python """ nsenter - run program with namespaces of other processes """ import argparse import ctypes import ctypes.util import errno import os import logging from pathlib import Path try: from contextlib import ExitStack except ImportError: from contextlib2 import ExitStack NAMESPACE_NAMES = ...
30.835227
82
0.589644
f0f26ff418c5287c5297f2fee4792434eb08b36b
1,165
py
Python
setup.py
xdays/udemy-dl
9fa60bb93191c29dd76e981c6625b978f6b4245e
[ "MIT" ]
null
null
null
setup.py
xdays/udemy-dl
9fa60bb93191c29dd76e981c6625b978f6b4245e
[ "MIT" ]
null
null
null
setup.py
xdays/udemy-dl
9fa60bb93191c29dd76e981c6625b978f6b4245e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil from setuptools import setup, find_packages if not os.path.exists('scripts'): os.makedirs('scripts') if not os.path.exists('scripts/udemy-dl'): shutil.copyfile('udemy-dl.py', 'scripts/udemy-dl') setup( name='udemy-dl', version="0....
29.871795
54
0.620601
2cddbb346de443ee4b1063ba300f12101102fec5
242
py
Python
prediction_service/main.py
elnardu/i-hate-essays
6a3abdd8577979b17bb5b951d8f81594696720fd
[ "MIT" ]
2
2020-06-11T03:10:47.000Z
2020-09-14T19:50:22.000Z
prediction_service/main.py
elnardu/i-hate-essays
6a3abdd8577979b17bb5b951d8f81594696720fd
[ "MIT" ]
13
2019-04-23T19:36:11.000Z
2022-02-26T10:24:19.000Z
prediction_service/main.py
elnardu/i-hate-essays
6a3abdd8577979b17bb5b951d8f81594696720fd
[ "MIT" ]
2
2019-04-20T23:14:58.000Z
2021-04-12T15:31:45.000Z
# -*- coding: utf-8 -*- from flask.helpers import get_debug_flag from prediction_service.app import create_app # from conduit.settings import DevConfig, ProdConfig # CONFIG = DevConfig if get_debug_flag() else ProdConfig app = create_app()
26.888889
56
0.780992
4fe526dfb862573c0074977bea0bfa7b3e978a83
7,638
py
Python
methods/refinement.py
mdjong1/simpliPy
79196586b63e09a2dedac1d22622270ca646c52c
[ "MIT" ]
null
null
null
methods/refinement.py
mdjong1/simpliPy
79196586b63e09a2dedac1d22622270ca646c52c
[ "MIT" ]
null
null
null
methods/refinement.py
mdjong1/simpliPy
79196586b63e09a2dedac1d22622270ca646c52c
[ "MIT" ]
null
null
null
import random import sys import time import startin import numpy as np from multiprocessing import cpu_count, Process from scipy.spatial import KDTree TRIANGULATION_THRESHOLD = 0.2 DELTA_PRECISION = 1E4 class Vertex: def __init__(self, x, y, z): self.x = x self.y = y self.z = z ...
33.647577
159
0.562451
b13377322e2500ab9de8b3868ac9d3180cbbe3b1
2,415
py
Python
homedepot_scraper.py
manisharmagarg/scrapping_scripts
db072b17eff93a5470d8e7b68bd06943138ea7ee
[ "Apache-2.0" ]
null
null
null
homedepot_scraper.py
manisharmagarg/scrapping_scripts
db072b17eff93a5470d8e7b68bd06943138ea7ee
[ "Apache-2.0" ]
null
null
null
homedepot_scraper.py
manisharmagarg/scrapping_scripts
db072b17eff93a5470d8e7b68bd06943138ea7ee
[ "Apache-2.0" ]
null
null
null
# # Script for scrapping products from HomeDepot # import requests from bs4 import BeautifulSoup from utils import sleep_scrapper, get_request_headers class HomeDepotScraper: def __init__(self, product): self.product = product.replace(" ", "-") def run(self): base_url = 'https://www.homed...
34.5
93
0.52381
63fffabba943fb472b68e734aa48d0ebe15cf2d1
1,352
py
Python
tests/dataio_tests/test_annotations.py
andreashirley/Lolipop
658a05c55fe8950f75d7ef50f1d983e86bd6fedf
[ "MIT" ]
6
2020-04-18T15:43:19.000Z
2022-02-19T18:43:23.000Z
tests/dataio_tests/test_annotations.py
andreashirley/Lolipop
658a05c55fe8950f75d7ef50f1d983e86bd6fedf
[ "MIT" ]
5
2020-05-04T16:09:03.000Z
2020-10-13T03:52:56.000Z
tests/dataio_tests/test_annotations.py
cdeitrick/muller_diagrams
5b87b00a2c7ccbeeb3876bddb32e54aedf6bdf6d
[ "MIT" ]
3
2020-03-23T17:12:56.000Z
2020-07-24T22:22:12.000Z
from pathlib import Path import pytest import pandas from muller.dataio import annotations from tests import filenames folder_data = Path(__file__).parent.parent / "data" @pytest.fixture def infotable()->pandas.DataFrame: filename = filenames.real_tables['traverse'] table = pandas.read_table(filename).set_index('...
28.765957
110
0.713757
ef9a7fd86bb7560608ab2a4c5382108c580922aa
18,976
py
Python
modeltranslation/admin.py
yihuang/django-modeltranslation
9b3527ea9f41acc51951e46200458cae976422a2
[ "BSD-3-Clause" ]
null
null
null
modeltranslation/admin.py
yihuang/django-modeltranslation
9b3527ea9f41acc51951e46200458cae976422a2
[ "BSD-3-Clause" ]
null
null
null
modeltranslation/admin.py
yihuang/django-modeltranslation
9b3527ea9f41acc51951e46200458cae976422a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from copy import deepcopy import django from django.contrib import admin from django.contrib.admin.options import BaseModelAdmin, flatten_fieldsets, InlineModelAdmin from django import forms from modeltranslation import settings as mt_settings from modeltranslation.translator import translator...
44.440281
104
0.63554
907f5586a681341f41adaffbc7656ffd7466189f
49,679
py
Python
src/mem/slicc/symbols/StateMachine.py
Nirvedh/CoarseCoherence
167adef6fc0c7090d79d9b09b20c9bc41543d307
[ "BSD-3-Clause" ]
null
null
null
src/mem/slicc/symbols/StateMachine.py
Nirvedh/CoarseCoherence
167adef6fc0c7090d79d9b09b20c9bc41543d307
[ "BSD-3-Clause" ]
null
null
null
src/mem/slicc/symbols/StateMachine.py
Nirvedh/CoarseCoherence
167adef6fc0c7090d79d9b09b20c9bc41543d307
[ "BSD-3-Clause" ]
1
2020-07-28T15:19:36.000Z
2020-07-28T15:19:36.000Z
# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood # Copyright (c) 2009 The Hewlett-Packard Development Company # Copyright (c) 2013 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following ...
32.30104
126
0.556895
eb3069a02520c55683c2806e16490a7bc898b044
6,874
py
Python
system/core/generic_view.py
wendellpbarreto/geroc
bf1f653bbfa28ecfb432d98255dddd70997e0b34
[ "MIT" ]
null
null
null
system/core/generic_view.py
wendellpbarreto/geroc
bf1f653bbfa28ecfb432d98255dddd70997e0b34
[ "MIT" ]
2
2015-03-06T16:56:32.000Z
2019-06-18T20:29:07.000Z
system/core/generic_view.py
wendellpbarreto/fotec
6a5a317916f9743873e3db7bb91a3108a21f1912
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import json from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.core.paginator im...
28.641667
127
0.54888
d61e32cf5790b88406ce1c555c6a2ddc7647704e
4,571
py
Python
src/tests/unit/test_bookkeeping_models.py
mv-idatalytics/jenkins-byro
1be7f30a8a8c40adf93ea099e9d85cd28fc19783
[ "Apache-2.0" ]
null
null
null
src/tests/unit/test_bookkeeping_models.py
mv-idatalytics/jenkins-byro
1be7f30a8a8c40adf93ea099e9d85cd28fc19783
[ "Apache-2.0" ]
null
null
null
src/tests/unit/test_bookkeeping_models.py
mv-idatalytics/jenkins-byro
1be7f30a8a8c40adf93ea099e9d85cd28fc19783
[ "Apache-2.0" ]
null
null
null
from contextlib import suppress import pytest from django.utils.timezone import now from byro.bookkeeping.models import ( Account, AccountCategory, AccountTag, Booking, Transaction, ) from byro.bookkeeping.special_accounts import SpecialAccounts @pytest.mark.django_db def test_account_model_str(...
33.123188
87
0.73135
8f7d27894e6b00ddff549ca1803b7f045f6bf472
226
py
Python
dev/ideas/cython/testing_templates.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
dev/ideas/cython/testing_templates.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
dev/ideas/cython/testing_templates.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
from brian2 import * #brian_prefs.codegen.target = 'weave' brian_prefs.codegen.target = 'cython' G = NeuronGroup(2, 'v:boolean') M = StateMonitor(G, 'v', record=True) run(10*ms) G.v = True run(10*ms) print M.v[0]
18.833333
38
0.659292
3f1c1abfaf42c049f18927cc0e23cfbe65dec3d1
2,558
py
Python
app/recipe/test/test_tags_api.py
iamkaushal/recipe-app-api
660d5d834c5b74099f93eebbd05926ba693b4455
[ "MIT" ]
null
null
null
app/recipe/test/test_tags_api.py
iamkaushal/recipe-app-api
660d5d834c5b74099f93eebbd05926ba693b4455
[ "MIT" ]
null
null
null
app/recipe/test/test_tags_api.py
iamkaushal/recipe-app-api
660d5d834c5b74099f93eebbd05926ba693b4455
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class PublicTa...
30.094118
77
0.65559
b0a9592e5eedfb73f0b4c3f63d22fd7fb770018e
1,321
py
Python
backend/worker/feed.py
Mozzo1000/bigrss
0e8d155943667bb83ad4674df4a212fd477a45bc
[ "Apache-2.0" ]
null
null
null
backend/worker/feed.py
Mozzo1000/bigrss
0e8d155943667bb83ad4674df4a212fd477a45bc
[ "Apache-2.0" ]
11
2021-07-18T17:32:32.000Z
2022-03-01T20:04:54.000Z
backend/worker/feed.py
Mozzo1000/bigrss
0e8d155943667bb83ad4674df4a212fd477a45bc
[ "Apache-2.0" ]
null
null
null
import feedparser from sqlalchemy import create_engine, func from sqlalchemy.orm import sessionmaker from worker.models import Feeds, Entries import os from dotenv import load_dotenv load_dotenv() import ssl if hasattr(ssl, '_create_unverified_context'): ssl._create_default_https_context = ssl._create_unverified_...
34.763158
198
0.707797
c56c75791cb8f369ae318a24ceb8f28c183ce656
540
py
Python
plugins/penguin/Penguin.py
Aberdeener/slippers
14a2fa507b7898ec062f791bd2c24af67178d45e
[ "MIT" ]
null
null
null
plugins/penguin/Penguin.py
Aberdeener/slippers
14a2fa507b7898ec062f791bd2c24af67178d45e
[ "MIT" ]
null
null
null
plugins/penguin/Penguin.py
Aberdeener/slippers
14a2fa507b7898ec062f791bd2c24af67178d45e
[ "MIT" ]
1
2021-10-31T20:09:05.000Z
2021-10-31T20:09:05.000Z
from world.dataHandler.pluginManager.Plugin import Plugin class Penguin(Plugin): """ A plugin that enables essential player features. """ def __init__(self, users, rooms, packet): super(Penguin, self).__init__(users, rooms, packet) def heartbeat(self, data, user): user.send(["h", ...
24.545455
59
0.598148
a599e4cd38b5ccc58370670d04cada1b81eb65ce
25,936
py
Python
sdk/python/pulumi_azure/loganalytics/data_source_windows_performance_counter.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/loganalytics/data_source_windows_performance_counter.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/loganalytics/data_source_windows_performance_counter.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
52.715447
283
0.695057
5871c3191fe910f09f2d6b6397ad8706c5693c13
748
py
Python
instablog/blog/forms.py
dspshin/fastcampus-django
33371a83e6a4979be6c0135241d0f4fdc33fbd33
[ "MIT" ]
null
null
null
instablog/blog/forms.py
dspshin/fastcampus-django
33371a83e6a4979be6c0135241d0f4fdc33fbd33
[ "MIT" ]
null
null
null
instablog/blog/forms.py
dspshin/fastcampus-django
33371a83e6a4979be6c0135241d0f4fdc33fbd33
[ "MIT" ]
null
null
null
from django import forms from .models import Post from django.forms import ValidationError class PostForm(forms.Form): title = forms.CharField() content = forms.CharField(widget=forms.Textarea) class PostEditForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'content', 'tags', ) #fields = '__...
28.769231
61
0.708556
776b2fdf1552caa3df1bebb4cca21b7f4f029e84
61,678
py
Python
nova/db/sqlalchemy/models.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
1
2015-11-30T19:44:00.000Z
2015-11-30T19:44:00.000Z
nova/db/sqlalchemy/models.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
5
2018-04-12T16:44:34.000Z
2018-05-08T13:33:05.000Z
nova/db/sqlalchemy/models.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
3
2018-04-04T15:15:01.000Z
2018-04-19T18:14:25.000Z
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (...
38.645363
79
0.661614
5e19d8a7dc5fb69abf0b7f6e558aad15d29d374c
5,026
py
Python
frames/frame1/frame1.py
FlorianPix/opcua_client
9fae1dbddbb9be7a754766bd847cf0357985aae5
[ "MIT" ]
null
null
null
frames/frame1/frame1.py
FlorianPix/opcua_client
9fae1dbddbb9be7a754766bd847cf0357985aae5
[ "MIT" ]
null
null
null
frames/frame1/frame1.py
FlorianPix/opcua_client
9fae1dbddbb9be7a754766bd847cf0357985aae5
[ "MIT" ]
null
null
null
import functools from PyQt5 import QtGui from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QLabel, QSlider, QWidget, QHBoxLayout, QVBoxLayout, QPushButton class Frame1(QWidget): def __init__(self, parent): super(Frame1, self).__init__(parent) self.parent = parent self.sliders_widget...
35.9
134
0.626542
35f7f2dec5cf231d76aab0b1f9faa3c93cbc7b12
3,536
py
Python
indico/cli/event.py
pferreir/indico
f0d41c7aa1b38b0eab819297dd7b3b48f2ee85a0
[ "MIT" ]
null
null
null
indico/cli/event.py
pferreir/indico
f0d41c7aa1b38b0eab819297dd7b3b48f2ee85a0
[ "MIT" ]
1
2016-10-28T13:42:20.000Z
2016-10-28T13:42:20.000Z
indico/cli/event.py
pferreir/indico
f0d41c7aa1b38b0eab819297dd7b3b48f2ee85a0
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import sys import click from indico.cli.core import cli_group from indico.core import signals from indic...
40.181818
116
0.690894
2e2d1c00bc6ea13ad2a27cf100146d52c95b2d29
1,183
py
Python
chessGame.py
etchenko/ChessGame
c6614047a87be356ad4b8645232f92d6351b8eab
[ "MIT" ]
null
null
null
chessGame.py
etchenko/ChessGame
c6614047a87be356ad4b8645232f92d6351b8eab
[ "MIT" ]
8
2020-12-23T00:22:54.000Z
2020-12-23T02:37:45.000Z
chessGame.py
etchenko/ChessGame
c6614047a87be356ad4b8645232f92d6351b8eab
[ "MIT" ]
null
null
null
import chess import time class chessGame: def __init__(self, humanWhite, human, ai): self.game = chess.Board() self.humanWhite = humanWhite self.players = [human, ai] if humanWhite else [ai, human] self.times = [0, 0] def runGame(self): while not self.game.is_g...
30.333333
91
0.50634
57842791ad8577bc1f35d03f4b79ac48bcc88e9c
80
py
Python
src/learners/__init__.py
benellis3/REFIL
fe3d6ea5a6eb307128cf8a47ddc6e59cb126a52a
[ "MIT" ]
25
2020-07-20T01:44:12.000Z
2021-04-26T07:38:01.000Z
src/learners/__init__.py
benellis3/REFIL
fe3d6ea5a6eb307128cf8a47ddc6e59cb126a52a
[ "MIT" ]
1
2021-02-05T07:18:48.000Z
2021-02-05T07:18:48.000Z
src/learners/__init__.py
benellis3/REFIL
fe3d6ea5a6eb307128cf8a47ddc6e59cb126a52a
[ "MIT" ]
7
2020-08-05T21:12:11.000Z
2021-04-12T14:23:43.000Z
from .q_learner import QLearner REGISTRY = {} REGISTRY["q_learner"] = QLearner
16
32
0.75
f5ef7293eff94c5e4da64721fc93616cc55d31b3
6,232
py
Python
main.py
ryanwongsa/open-images-2019-challenge
b49e0933451c4bf9b31a9a8faf1bd8ba3dee1cc5
[ "Apache-2.0" ]
2
2020-04-03T23:02:00.000Z
2021-12-31T05:18:27.000Z
main.py
ryanwongsa/open-images-2019-challenge
b49e0933451c4bf9b31a9a8faf1bd8ba3dee1cc5
[ "Apache-2.0" ]
null
null
null
main.py
ryanwongsa/open-images-2019-challenge
b49e0933451c4bf9b31a9a8faf1bd8ba3dee1cc5
[ "Apache-2.0" ]
null
null
null
# from imgaug import augmenters as iaa # import torch.optim as optim # import torch # torch.backends.cudnn.benchmark = True # from dataloader import get_dataloader # from preprocess import transformer, img_transform, reverse_img_transform # from models import RetinaNet # from loss import FocalLoss # from train import...
30.54902
112
0.632221
f65dbe8abb04e844f3187800bcfc9bb44b16fd99
7,290
py
Python
bot/cogs/antispam.py
samip5/python-discord-bot
4555d90b60eedbb6a3032512277f307d69034f6f
[ "MIT" ]
null
null
null
bot/cogs/antispam.py
samip5/python-discord-bot
4555d90b60eedbb6a3032512277f307d69034f6f
[ "MIT" ]
null
null
null
bot/cogs/antispam.py
samip5/python-discord-bot
4555d90b60eedbb6a3032512277f307d69034f6f
[ "MIT" ]
null
null
null
import logging from datetime import datetime, timedelta from typing import List from discord import Colour, Member, Message, Object, TextChannel from discord.ext.commands import Bot from bot import rules from bot.cogs.moderation import Moderation from bot.cogs.modlog import ModLog from bot.constants import ( Anti...
40.054945
111
0.629218
f928ca71e25da702dde088f10d3dcb646cdd389b
23,145
py
Python
netbox/netbox/settings.py
glennmatthews/netbox
41361ce2a2cd8ace762be10d891f31572dcbec51
[ "Apache-2.0" ]
1
2021-09-22T16:00:14.000Z
2021-09-22T16:00:14.000Z
netbox/netbox/settings.py
glennmatthews/netbox
41361ce2a2cd8ace762be10d891f31572dcbec51
[ "Apache-2.0" ]
null
null
null
netbox/netbox/settings.py
glennmatthews/netbox
41361ce2a2cd8ace762be10d891f31572dcbec51
[ "Apache-2.0" ]
null
null
null
import importlib import logging import os import platform import re import socket import warnings from urllib.parse import urlsplit from django.contrib.messages import constants as messages from django.core.exceptions import ImproperlyConfigured, ValidationError from django.core.validators import URLValidator # # En...
33.887262
119
0.724908
d425b7a9ab2a16f90fd2aad4d723bd3dd594efac
4,733
py
Python
project/account/views.py
leehe228/Ecoverse
1554e4f44c8ba3cc60a0b7f2509f4d9b7a94099a
[ "CC-BY-4.0" ]
null
null
null
project/account/views.py
leehe228/Ecoverse
1554e4f44c8ba3cc60a0b7f2509f4d9b7a94099a
[ "CC-BY-4.0" ]
null
null
null
project/account/views.py
leehe228/Ecoverse
1554e4f44c8ba3cc60a0b7f2509f4d9b7a94099a
[ "CC-BY-4.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from .models import User, Ingame from django.contrib import auth from django.views.decorators.csrf import csrf_exempt from django.core.mail import EmailMessage import os import shutil @csrf_exempt def save(request): _name = request.GET['name...
24.025381
68
0.645045
cadff50878d120086113295e3cdf0c70773106ef
12,376
py
Python
scraper/pipelines.py
KuoRave/watch_spider
7bcda670ba64b509f0f1f944d1daf2ee62efe6b6
[ "MIT" ]
null
null
null
scraper/pipelines.py
KuoRave/watch_spider
7bcda670ba64b509f0f1f944d1daf2ee62efe6b6
[ "MIT" ]
null
null
null
scraper/pipelines.py
KuoRave/watch_spider
7bcda670ba64b509f0f1f944d1daf2ee62efe6b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html # import scrapy import MySQLdb import hashlib import json import requests import re import html class ScraperPipeline(object): ...
70.72
232
0.604961
34f83ca6f12823e11ed1aaa400753f86e30c9425
2,317
py
Python
tensorflow/python/training/server_lib_same_variables_no_clear_test.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
74
2020-07-06T17:11:39.000Z
2022-01-28T06:31:28.000Z
tensorflow/python/training/server_lib_same_variables_no_clear_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/training/server_lib_same_variables_no_clear_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
12
2020-07-08T07:27:17.000Z
2021-12-27T08:54:27.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
39.948276
80
0.726802
2cb71f84ce59eda3e082162163a29f2e9a4758a9
2,027
py
Python
python/osmosis_proto/cosmos/base/store/v1beta1/__init__.py
fabio-nukui/osmosis.proto
4780f22681881626b853109971602a6e29a3fb69
[ "Apache-2.0" ]
1
2022-02-22T06:18:40.000Z
2022-02-22T06:18:40.000Z
python/osmosis_proto/cosmos/base/store/v1beta1/__init__.py
fabio-nukui/osmosis.proto
4780f22681881626b853109971602a6e29a3fb69
[ "Apache-2.0" ]
null
null
null
python/osmosis_proto/cosmos/base/store/v1beta1/__init__.py
fabio-nukui/osmosis.proto
4780f22681881626b853109971602a6e29a3fb69
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # sources: cosmos/base/store/v1beta1/commit_info.proto, cosmos/base/store/v1beta1/snapshot.proto # plugin: python-betterproto from dataclasses import dataclass from typing import List import betterproto from betterproto.grpc.grpclib_server import ServiceBase ...
30.253731
96
0.743463
b759f2c64bc7c5865c2140bc5461035ec95d8b38
26,364
py
Python
example/myshop/migrations/commodity/0001_initial.py
andyzsf/django-shop
42a2463c39fe8e6136e104ee017c77f2222a6746
[ "BSD-3-Clause" ]
1
2019-03-22T15:20:18.000Z
2019-03-22T15:20:18.000Z
example/myshop/migrations/commodity/0001_initial.py
andyzsf/django-shop
42a2463c39fe8e6136e104ee017c77f2222a6746
[ "BSD-3-Clause" ]
13
2020-06-05T18:37:42.000Z
2022-03-11T23:22:46.000Z
example/myshop/migrations/commodity/0001_initial.py
andyzsf/django-shop
42a2463c39fe8e6136e104ee017c77f2222a6746
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-13 12:48 from __future__ import unicode_literals import cms.models.fields from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_fs...
113.637931
5,814
0.59274
97a4f5a405c8a9c55156fc1190b92de4aa8235bd
495
py
Python
users/migrations/0012_auto_20170111_1416.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
users/migrations/0012_auto_20170111_1416.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
users/migrations/0012_auto_20170111_1416.py
salazarpardo/redinnovacion
3f7c13af0af1887112a0492aea7782871fba0129
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('users', '0011_user_interests'), ] operations = [ migrations.AlterField( model_n...
23.571429
113
0.646465
471a5ed7465971fe53a493db8426c6e2da9189e9
5,840
py
Python
suspect/dag/dag.py
michaelbynum/suspect
efbfbc4a004d8e167fd4a7247b465b6569818433
[ "Apache-2.0" ]
14
2018-07-10T20:15:15.000Z
2022-02-10T09:55:45.000Z
suspect/dag/dag.py
michaelbynum/suspect
efbfbc4a004d8e167fd4a7247b465b6569818433
[ "Apache-2.0" ]
9
2019-10-11T15:27:15.000Z
2021-08-13T12:28:52.000Z
suspect/dag/dag.py
michaelbynum/suspect
efbfbc4a004d8e167fd4a7247b465b6569818433
[ "Apache-2.0" ]
4
2019-10-07T14:57:31.000Z
2021-08-20T19:17:53.000Z
# Copyright 2017 Francesco Ceccon # # 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 writ...
29.346734
77
0.599829
fa80865b5d9587f7470de0a7c02f0442f3cfd289
172
py
Python
examples/get_direct_messages.py
ctoth/twython
ccf20e32614e3124278bbc9aabeb77866d63e167
[ "MIT" ]
1,154
2015-01-02T02:39:41.000Z
2022-03-30T12:04:03.000Z
examples/get_direct_messages.py
antrofranc-ai/twython
0c405604285364457f3c309969f11ba68163bd05
[ "MIT" ]
213
2015-01-26T18:04:40.000Z
2021-12-31T00:29:52.000Z
examples/get_direct_messages.py
antrofranc-ai/twython
0c405604285364457f3c309969f11ba68163bd05
[ "MIT" ]
294
2015-01-04T22:33:20.000Z
2022-03-29T16:47:36.000Z
from twython import Twython, TwythonError twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET) get_list = twitter.get_direct_messages() print(get_list)
28.666667
71
0.831395
7eab0a528682cebde2600692f08c624c03cbaa9b
21,805
py
Python
src/modules/functions/create_mesh_2.5.py
Nobregaigor/FEBio-Python
1ad5578af00e44bd6def06ee17538ac5e4375a38
[ "MIT" ]
null
null
null
src/modules/functions/create_mesh_2.5.py
Nobregaigor/FEBio-Python
1ad5578af00e44bd6def06ee17538ac5e4375a38
[ "MIT" ]
null
null
null
src/modules/functions/create_mesh_2.5.py
Nobregaigor/FEBio-Python
1ad5578af00e44bd6def06ee17538ac5e4375a38
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import import xml.etree.ElementTree as ET from os.path import isfile, join from os import getcwd from scipy.spatial import distance ############################## # MACROS ############################...
27.991014
133
0.655079
9320f9787685cba03b54f40c2ede47d0757e76d5
14,180
py
Python
seg-256x256/model/unet_psp.py
DannisZgggg/kaggle-steel
b99f64d039c41e30040707de36d43053bf7cfd13
[ "MIT" ]
2
2019-10-27T12:20:43.000Z
2019-11-06T05:37:08.000Z
seg-256x256/model/unet_psp.py
DannisZgggg/kaggle-steel
b99f64d039c41e30040707de36d43053bf7cfd13
[ "MIT" ]
null
null
null
seg-256x256/model/unet_psp.py
DannisZgggg/kaggle-steel
b99f64d039c41e30040707de36d43053bf7cfd13
[ "MIT" ]
1
2019-11-06T05:37:07.000Z
2019-11-06T05:37:07.000Z
import torch import torch.nn as nn import torch.nn.functional as F from pretrainedmodels.models.senet import SENet from pretrainedmodels.models.senet import SEBottleneck from pretrainedmodels.models.senet import SEResNetBottleneck from pretrainedmodels.models.senet import SEResNeXtBottleneck from pretrainedmodels.model...
31.028446
117
0.569676
c4ca5ffe9aac462558ab48d5f4bf133be390cfb9
5,174
py
Python
xvr/knn.py
eruffaldi/xvraam
7eaf9f7ad044489772b345fe379ac2f0fd90ad44
[ "Apache-2.0" ]
null
null
null
xvr/knn.py
eruffaldi/xvraam
7eaf9f7ad044489772b345fe379ac2f0fd90ad44
[ "Apache-2.0" ]
null
null
null
xvr/knn.py
eruffaldi/xvraam
7eaf9f7ad044489772b345fe379ac2f0fd90ad44
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import re import sys import math import operator from bisect import insort from bisect import bisect class Point:pass class Node: #node.pointCount = len(points) #node.points = None #node.leftChild = None #node.rightChild = None def printOut(self,depth = 0): for i in range(0,dept...
29.397727
105
0.650174
7da4c573bd13aa464fcd7592f2b1725a43013a0f
6,097
py
Python
generics/population.py
sutolll/pyggen
92a4c46d38f142c54a024286980cdd339a5c7c1c
[ "MIT" ]
null
null
null
generics/population.py
sutolll/pyggen
92a4c46d38f142c54a024286980cdd339a5c7c1c
[ "MIT" ]
null
null
null
generics/population.py
sutolll/pyggen
92a4c46d38f142c54a024286980cdd339a5c7c1c
[ "MIT" ]
null
null
null
from random import Random from abc import ABCMeta, abstractmethod, abstractproperty from .chromosome import Chromosome class Population(metaclass=ABCMeta): """A generic controller class for genetic algorithms.""" @abstractproperty def ChromType(self) -> "Type[C]": "The class used to c...
38.588608
222
0.586354
5c5a8819a2df464c899f78a823f13352e285bd71
5,568
py
Python
venv/Lib/site-packages/networkx/algorithms/tests/test_graphical.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_graphical.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_graphical.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import pytest import networkx as nx def test_valid_degree_sequence1(): n = 100 p = 0.3 for i in range(10): G = nx.erdos_renyi_graph(n, p) deg = (d for n, d in G.degree()) assert nx.is_graphical(deg, method="eg") assert nx.is_graphical(deg, method="hh") def test_valid_degr...
33.542169
78
0.603807
f591ca7857b670c18aa3069a583003e33944e297
323
py
Python
distance/error_wrongvec.py
cathyhaha/DensityPeakCluster
89eb5f8a67011aea16e49e485474eb76f4319a9d
[ "MIT" ]
86
2016-01-02T04:35:15.000Z
2021-12-27T11:44:50.000Z
distance/error_wrongvec.py
tenglang123/DensityPeakCluster-2
9af56be896ef523ae07251ab09b6e9dc6c662316
[ "MIT" ]
1
2020-04-02T19:38:37.000Z
2020-04-02T19:39:18.000Z
distance/error_wrongvec.py
tenglang123/DensityPeakCluster-2
9af56be896ef523ae07251ab09b6e9dc6c662316
[ "MIT" ]
60
2016-01-20T03:15:28.000Z
2022-03-26T11:35:06.000Z
#! /usr/bin/env python #-*- coding: utf-8 -*- class WrongVecError(Exception): ''' Raised when an operation use empty or not same size vector. Attributes: value: error info ''' def __init__(self, value): self.value = value def __str__(self): return repr(self.val...
21.533333
63
0.591331
644670ebd0fc978c0b4e036627c1da62283f2b88
981
py
Python
app/__init__.py
yegoryakubovich/fsafe
3f94bf40d593e83e31665679483c80c24818c75d
[ "Apache-2.0" ]
null
null
null
app/__init__.py
yegoryakubovich/fsafe
3f94bf40d593e83e31665679483c80c24818c75d
[ "Apache-2.0" ]
null
null
null
app/__init__.py
yegoryakubovich/fsafe
3f94bf40d593e83e31665679483c80c24818c75d
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_jwt_extended import JWTManager from flask_login import LoginManager from app.errors import blueprint_errors from app.login import AccountLogin from app.main import blueprint_main from app.account import blueprint_account_ui, blueprint_account_api from app.models import models_create ...
27.25
92
0.79001
712c5f131b61deadbd2df0b5529fc2c63900f1c0
974
py
Python
setup.py
nvn-nil/blackwatch
7458783d61a9d41ba48b7bdc53712e62661c0804
[ "MIT" ]
null
null
null
setup.py
nvn-nil/blackwatch
7458783d61a9d41ba48b7bdc53712e62661c0804
[ "MIT" ]
null
null
null
setup.py
nvn-nil/blackwatch
7458783d61a9d41ba48b7bdc53712e62661c0804
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name="blackwatch", packages=["blackwatch", "blackwatch.commands", "blackwatch.handlers"], version="0.1.1", license="MIT", description="Watches a folder for file system events and run optional command (if required)", author="Naveen Anil", author_email...
37.461538
97
0.64271
c6b6b8d92c5a47632a65eedd58c1b6cc9f784bfa
1,585
py
Python
examples/model-creation/stator1-magnetIron5.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
21
2016-09-07T12:17:21.000Z
2022-01-08T11:43:24.000Z
examples/model-creation/stator1-magnetIron5.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
63
2016-09-11T12:04:48.000Z
2022-03-28T13:22:16.000Z
examples/model-creation/stator1-magnetIron5.py
dapu/femagtools
95eaf750adc2013232cdf482e523b3900ac6eb08
[ "BSD-2-Clause" ]
8
2017-07-12T13:05:57.000Z
2022-01-08T11:43:26.000Z
import femagtools def create_fsl(): machine = dict( name="PM 130 L4", lfe=0.1, poles=4, outer_diam=0.13, bore_diam=0.07, inner_diam=0.015, airgap=0.001, stator=dict( num_slots=12, stator1=dict( slot_rf1=0.057, ...
25.983607
65
0.485804
86b1227baf83096c1d84bafc4c959e0fb16343b9
12,157
py
Python
intersight/model/virtualization_iwe_virtual_machine_network_interface_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/virtualization_iwe_virtual_machine_network_interface_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/virtualization_iwe_virtual_machine_network_interface_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
55.259091
1,678
0.657235
9a04daab74e438f85a9b96c99f25e051b7fe3e0a
7,151
py
Python
alipay/aop/api/request/AlipayMobilePublicInfoModifyRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
32
2018-05-24T08:40:15.000Z
2019-04-04T20:54:55.000Z
alipay/aop/api/request/AlipayMobilePublicInfoModifyRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
7
2018-05-24T08:42:59.000Z
2020-09-06T23:18:46.000Z
alipay/aop/api/request/AlipayMobilePublicInfoModifyRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
13
2018-04-25T11:27:58.000Z
2021-03-15T12:22:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayMobilePublicInfoModifyRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._app_name = None ...
30.823276
156
0.619773
f9d2b57fda52a9c237eb25a17a423e308dc6e81d
3,140
py
Python
lib/google/cloud/_testing.py
Owen-Gillespie/HuntMaster
fcbf7b939122a943c706bfcbb38368b028802449
[ "MIT" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/.tox/py27gcp/lib/python2.7/site-packages/google/cloud/_testing.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
sdks/python/.tox/py27gcp/lib/python2.7/site-packages/google/cloud/_testing.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# Copyright 2014 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
27.54386
77
0.685669
e5aff532f7f0a28db42302fb2ca79bb940d19cfd
3,917
py
Python
calc_BertScore_ppl.py
Leon-Francis/NLPAdversaryGenerationAttack
a138b1c65589327b95e00ea2833bc10a01323426
[ "Apache-2.0" ]
null
null
null
calc_BertScore_ppl.py
Leon-Francis/NLPAdversaryGenerationAttack
a138b1c65589327b95e00ea2833bc10a01323426
[ "Apache-2.0" ]
null
null
null
calc_BertScore_ppl.py
Leon-Francis/NLPAdversaryGenerationAttack
a138b1c65589327b95e00ea2833bc10a01323426
[ "Apache-2.0" ]
null
null
null
from pytorch_pretrained_bert import GPT2LMHeadModel, GPT2Tokenizer import torch from collections import defaultdict from bert_score.utils import lang2model, model2layers, bert_cos_score_idf from transformers import AutoModel, AutoTokenizer import numpy as np import math import csv def pre_bertscore(device): token...
34.06087
86
0.573398
9c841a25160c9753a9115b1bb0943e9c61e6df0a
39,705
py
Python
evennia/prototypes/tests.py
Lisse24/evennia
c6aa94365bdb14aa94489f8b8e756234c58f7808
[ "BSD-3-Clause" ]
null
null
null
evennia/prototypes/tests.py
Lisse24/evennia
c6aa94365bdb14aa94489f8b8e756234c58f7808
[ "BSD-3-Clause" ]
null
null
null
evennia/prototypes/tests.py
Lisse24/evennia
c6aa94365bdb14aa94489f8b8e756234c58f7808
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests for the prototypes and spawner """ from random import randint import mock from anything import Something from django.test.utils import override_settings from evennia.utils.test_resources import EvenniaTest from evennia.utils.tests.test_evmenu import TestEvMenu from evennia.prototypes import spawner, pr...
50.323194
210
0.579499
a8b6da6543ba71042c68f0cd3685ce3ca98e8b47
1,992
py
Python
apis/search_engine/views.py
adiagarwalrock/Truecaller-backend-apis
7b5bca91151c91f20567a82040e8a6b9b02b3d50
[ "MIT" ]
null
null
null
apis/search_engine/views.py
adiagarwalrock/Truecaller-backend-apis
7b5bca91151c91f20567a82040e8a6b9b02b3d50
[ "MIT" ]
null
null
null
apis/search_engine/views.py
adiagarwalrock/Truecaller-backend-apis
7b5bca91151c91f20567a82040e8a6b9b02b3d50
[ "MIT" ]
null
null
null
from django.http.response import JsonResponse from django import template from django.db.models import Q from django.views.generic import ListView from rest_framework.generics import ListAPIView from rest_framework.filters import SearchFilter from itertools import chain from users.models import User, UserContact fro...
31.125
76
0.694277
2cb5fe61da0f62de0a48d03c78fedb236afe8b38
1,376
py
Python
pytorch_template/utils/logs.py
homaralex/Pytorch-Project-Template
abc56c3405c741942cb64ff9a231a197d70fe3bf
[ "MIT" ]
null
null
null
pytorch_template/utils/logs.py
homaralex/Pytorch-Project-Template
abc56c3405c741942cb64ff9a231a197d70fe3bf
[ "MIT" ]
null
null
null
pytorch_template/utils/logs.py
homaralex/Pytorch-Project-Template
abc56c3405c741942cb64ff9a231a197d70fe3bf
[ "MIT" ]
null
null
null
import logging from logging import Formatter from logging.handlers import RotatingFileHandler def setup_logging(log_dir=None): log_file_format = "[%(levelname)s] - %(asctime)s - %(name)s - : %(message)s in %(pathname)s:%(lineno)d" log_console_format = "[%(levelname)s]: %(message)s" # Main logger main...
39.314286
113
0.740552
10dc35b6244f060470bd437131f903926bb30a4b
3,600
py
Python
wdym.py
Jacfger/OneDriveHanlder
af2a0e370fbf1492203cd59b5c40365864ba11b4
[ "MIT" ]
null
null
null
wdym.py
Jacfger/OneDriveHanlder
af2a0e370fbf1492203cd59b5c40365864ba11b4
[ "MIT" ]
null
null
null
wdym.py
Jacfger/OneDriveHanlder
af2a0e370fbf1492203cd59b5c40365864ba11b4
[ "MIT" ]
null
null
null
''' What do you mean it doesn't fucking work? ''' import os import requests import json import msal import pickle with open('credentials.dict', 'rb') as f: _dict = pickle.load(f) AUTHORITY_URL = 'https://login.microsoftonline.com/{}'.format(_dict['tenant_id']) RESOURCE_URL = 'https://graph.microsoft.com' API...
37.113402
158
0.608611
c96d3ae5c5372b83766f38be32f2233a1e2bd6dc
566
py
Python
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/ble_broadcastnet_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/ble_broadcastnet_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/ble_broadcastnet_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
"""This is a basic sensor node that uses the internal temperature sensor and reports it every 10 seconds.""" import time import microcontroller import adafruit_ble_broadcastnet print("This is BroadcastNet sensor:", adafruit_ble_broadcastnet.device_address) while True: measurement = adafruit_ble_broa...
31.444444
97
0.756184
582cd595915f119d6143758f4ecb642015940f0d
12,116
py
Python
pyoperant/behavior/base.py
kaichensh/pyoperant
95e427604cdce07505bd6e3c1592883f45f4fac4
[ "BSD-3-Clause" ]
10
2015-02-21T22:58:43.000Z
2021-05-20T22:47:57.000Z
pyoperant/behavior/base.py
kaichensh/pyoperant
95e427604cdce07505bd6e3c1592883f45f4fac4
[ "BSD-3-Clause" ]
31
2015-02-17T16:43:15.000Z
2020-03-06T23:09:48.000Z
pyoperant/behavior/base.py
kaichensh/pyoperant
95e427604cdce07505bd6e3c1592883f45f4fac4
[ "BSD-3-Clause" ]
10
2015-07-02T18:55:02.000Z
2021-09-20T22:45:43.000Z
import logging, traceback import os, sys, socket import datetime as dt from pyoperant import utils, components, local, hwio from pyoperant import ComponentError, InterfaceError from pyoperant.behavior import shape import random try: import simplejson as json except ImportError: import json def _log_except_hoo...
36.939024
128
0.55175
df7c2531f548f1503cc001449babd6a23c8b2da1
829
py
Python
resnet18.py
zhengyhn/cifar-practice
df61b50554078b8b970a2f0a43159e9a3d3aa703
[ "MIT" ]
null
null
null
resnet18.py
zhengyhn/cifar-practice
df61b50554078b8b970a2f0a43159e9a3d3aa703
[ "MIT" ]
null
null
null
resnet18.py
zhengyhn/cifar-practice
df61b50554078b8b970a2f0a43159e9a3d3aa703
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from solver import Solver from resnet import ResNet, BlockType class ResNet18(ResNet): def add_res_layers(self): self._make_layers(BlockType.BASIC, 64, 64, 2) self._make_layers(BlockType.BASIC, 64, 128, 2) ...
36.043478
152
0.732207
d52600a27924be8297040ee94f6c1c467677bde4
4,234
py
Python
eval.py
dattasiddhartha/fast-power-spectrum-interpolation
91ad9b296a6b6ae10e0910b497bd9b2c801eb39a
[ "MIT" ]
1
2021-02-22T10:11:47.000Z
2021-02-22T10:11:47.000Z
eval.py
dattasiddhartha/fast-power-spectrum-interpolation
91ad9b296a6b6ae10e0910b497bd9b2c801eb39a
[ "MIT" ]
null
null
null
eval.py
dattasiddhartha/fast-power-spectrum-interpolation
91ad9b296a6b6ae10e0910b497bd9b2c801eb39a
[ "MIT" ]
null
null
null
import tensorflow as tf import os import time import pandas as pd import numpy as np from ast import literal_eval from sklearn.utils import shuffle from sklearn.metrics import * from tensorflow.keras import Sequential from tensorflow.keras.layers import * from tensorflow.keras import backend as K from model import * d...
49.232558
152
0.670524
0b3a7afc291bb0fb6224217e4591c9fdce2bb7b7
30,080
py
Python
lib/python3.8/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/acls/acls.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/acls/acls.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/argspec/acls/acls.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ############################################# # WARNING # ############################################# # # This file is auto generated by ...
55.80705
88
0.155053
cf58d615e49021d56217b08e9ff546783c459180
3,963
py
Python
tests/unit/sagemaker/workflow/test_retry.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/unit/sagemaker/workflow/test_retry.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/unit/sagemaker/workflow/test_retry.py
HappyAmazonian/sagemaker-python-sdk
bb7563f450113a3ba18a8e24cf6092f4325bb321
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
30.72093
96
0.639162
6b1c0ae829fb5f845d54cc47936fbe1b6199b6ae
3,784
py
Python
bebi103/tools.py
smsaladi/bebi103_utils
a13fc62efcd695b73dad3ce4941eea28b3c4120d
[ "MIT", "BSD-3-Clause" ]
null
null
null
bebi103/tools.py
smsaladi/bebi103_utils
a13fc62efcd695b73dad3ce4941eea28b3c4120d
[ "MIT", "BSD-3-Clause" ]
null
null
null
bebi103/tools.py
smsaladi/bebi103_utils
a13fc62efcd695b73dad3ce4941eea28b3c4120d
[ "MIT", "BSD-3-Clause" ]
null
null
null
import numpy as np import statsmodels.tools.numdiff as smnd def approx_hess(x, f, epsilon=None, args=(), kwargs={}): """ Parameters ---------- x : array_like value at which function derivative is evaluated f : function function of one array f(x, `*args`, `**kwargs`) epsilon : floa...
37.84
79
0.605708
a2e3dafee690eaf9b5312d9f463e7ce8aaa230ca
416
py
Python
Data Scientist Career Path/7. Summary Statistics/2. Mean Median Mode/2. Median/3. numpy.py
myarist/Codecademy
2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb
[ "MIT" ]
23
2021-06-06T15:35:55.000Z
2022-03-21T06:53:42.000Z
Data Scientist Career Path/7. Summary Statistics/2. Mean Median Mode/2. Median/3. numpy.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Scientist Career Path/7. Summary Statistics/2. Mean Median Mode/2. Median/3. numpy.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
9
2021-06-08T01:32:04.000Z
2022-03-18T15:38:09.000Z
# Import packages import numpy as np import pandas as pd # Read in author data greatest_books = pd.read_csv("top-hundred-books.csv") # Save author ages to author_ages author_ages = greatest_books['Ages'] # Use numpy to calculate the median age of the top 100 authors median_age = np.median(author_ages) print("The me...
29.714286
109
0.766827
8bd7d5488b47bee92715ec979ca0ffe2bb1bab7f
5,993
py
Python
sli/commands/createTemplate.py
PaloAltoNetworks/SLI
0bf0aa449e45fdfd6553d69776d4fe0e8b52675e
[ "Apache-2.0" ]
null
null
null
sli/commands/createTemplate.py
PaloAltoNetworks/SLI
0bf0aa449e45fdfd6553d69776d4fe0e8b52675e
[ "Apache-2.0" ]
2
2021-09-10T17:42:18.000Z
2021-09-10T18:57:59.000Z
sli/commands/createTemplate.py
PaloAltoNetworks/SLI
0bf0aa449e45fdfd6553d69776d4fe0e8b52675e
[ "Apache-2.0" ]
null
null
null
from .base import BaseCommand from sli.decorators import require_single_skillet, require_skillet_type from sli.tools import format_xml_string from lxml import etree import re from io import BytesIO class CreateTemplate(BaseCommand): sli_command = 'create_template' short_desc = 'Create an XML template from a ...
35.886228
90
0.538795
311736279d8b5682750d3b8cf8d085d237bcbd0a
812
py
Python
mdScreen.py
KumaTea/Dragalia-bot
4f66a7c3cbaedd38ce8c8d4069b5770ff34eb2ac
[ "MIT" ]
1
2021-06-18T04:23:27.000Z
2021-06-18T04:23:27.000Z
mdScreen.py
KumaTea/Dragalia-bot
4f66a7c3cbaedd38ce8c8d4069b5770ff34eb2ac
[ "MIT" ]
1
2020-03-23T16:04:58.000Z
2020-03-23T16:04:58.000Z
mdScreen.py
KumaTea/Dragalia-bot
4f66a7c3cbaedd38ce8c8d4069b5770ff34eb2ac
[ "MIT" ]
null
null
null
from io import BytesIO from time import sleep from botSession import get_driver, logger def get_screenshot(url, delay=1): try: logger.debug("Getting: %s" % url) driver = get_driver() driver.get(url) if 'nga' in url: images = driver.find_elements_by_xpath('//button[norma...
31.230769
88
0.575123
812e43f205a90f908f38dd7435f57147dd3b2cc2
1,373
py
Python
setup.py
aprabaka/google-maps-services-python
74989fa0bccbfa2e57d0f50757d326e251a0be1b
[ "Apache-2.0" ]
null
null
null
setup.py
aprabaka/google-maps-services-python
74989fa0bccbfa2e57d0f50757d326e251a0be1b
[ "Apache-2.0" ]
null
null
null
setup.py
aprabaka/google-maps-services-python
74989fa0bccbfa2e57d0f50757d326e251a0be1b
[ "Apache-2.0" ]
null
null
null
import sys import io from setuptools import setup if sys.version_info <= (2, 4): error = "Requires Python Version 2.5 or above... exiting." print >>sys.stderr, error sys.exit(1) requirements = ["requests>=2.20.0,<3.0"] # use io.open until python2.7 support is dropped with io.open("README.md", encoding=...
28.604167
68
0.643117
c92d892d8dc5d32c91b4c515c0dd1b6b331ea7b5
1,663
py
Python
frappe/desk/doctype/bulk_update/bulk_update.py
spa49/frappe
f0e6b01cc6d02f7e100d223309f2bc3167398087
[ "MIT" ]
null
null
null
frappe/desk/doctype/bulk_update/bulk_update.py
spa49/frappe
f0e6b01cc6d02f7e100d223309f2bc3167398087
[ "MIT" ]
null
null
null
frappe/desk/doctype/bulk_update/bulk_update.py
spa49/frappe
f0e6b01cc6d02f7e100d223309f2bc3167398087
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import _ from frappe.utils import cint class BulkUpdate(Document): pass @f...
24.101449
83
0.69092
e22139b092b0326be36c95f8ed07a5eb15254b70
1,371
py
Python
COSMIC/feature-extraction/comet/src/evaluate/atomic_evaluate.py
NouamaneTazi/conv-emotion
0c9dcb9cc5234a7ca8cf6af81aabe28ef3814d0e
[ "MIT" ]
488
2020-06-08T10:08:39.000Z
2022-03-31T08:50:02.000Z
COSMIC/feature-extraction/src/evaluate/atomic_evaluate.py
tae898/conv-emotion
6ada88d3334d8f70f56036e2454dcd371888e7a3
[ "MIT" ]
37
2019-01-15T14:45:26.000Z
2020-05-24T04:03:09.000Z
COSMIC/feature-extraction/src/evaluate/atomic_evaluate.py
tae898/conv-emotion
6ada88d3334d8f70f56036e2454dcd371888e7a3
[ "MIT" ]
154
2020-06-07T02:49:11.000Z
2022-03-23T14:01:22.000Z
import comet.src.train.batch as batch import comet.src.evaluate.evaluate as base_evaluate import numpy as np def make_evaluator(opt, *args): if opt.exp == "generation": return AtomicGenerationEvaluator(opt, *args) else: return AtomicClassificationEvaluator(opt, *args) class AtomicGenerationEv...
33.439024
71
0.664478
8819de87c0238e0bec157553acbb29a01f1af872
36,106
py
Python
h1/api/support_project_ticket_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/api/support_project_ticket_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
h1/api/support_project_ticket_api.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from h1.api_client import ApiClient, Endpoint as _Endpoint from h1.model_utils import ( # noqa: F401 check_allowe...
36.618661
122
0.458345
1278368ec687d0dca09f233f4b11ac477687263b
3,432
py
Python
products/management/commands/load_products.py
Ecmek/kiss_me
fbe01b19e09bcc1af2824c9d1a97189d588df12d
[ "MIT" ]
2
2021-10-19T08:38:39.000Z
2021-10-20T08:10:47.000Z
products/management/commands/load_products.py
Ecmek/kiss_me
fbe01b19e09bcc1af2824c9d1a97189d588df12d
[ "MIT" ]
null
null
null
products/management/commands/load_products.py
Ecmek/kiss_me
fbe01b19e09bcc1af2824c9d1a97189d588df12d
[ "MIT" ]
null
null
null
import os import random import time import requests from bs4 import BeautifulSoup from django.conf import settings from django.core.management.base import BaseCommand from products.models import Category, Product class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('url', ty...
49.73913
120
0.541667