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
aafbdb21c87f6b9bcfb133a11bf516bbee634e83
d5f75adf5603927396bdecf3e4afae292143ddf9
/python/paddle/fluid/tests/unittests/test_custom_grad_input.py
2d12243de52c0603918edf5a2945617621b5d4f0
[ "Apache-2.0" ]
permissive
jiweibo/Paddle
8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4
605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74
refs/heads/develop
2023-07-21T03:36:05.367977
2022-06-24T02:31:11
2022-06-24T02:31:11
196,316,126
3
2
Apache-2.0
2023-04-04T02:42:53
2019-07-11T03:51:12
Python
UTF-8
Python
false
false
6,613
py
# Copyright (c) 2021 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
jiweibo.noreply@github.com
3d64a5bfed4cc338ce7b38db5ada112fe517c445
dfd51748ba20c9af87925f30db1cd283fb5554f6
/invenio_rdm_records/services/components/relations.py
0b83ec0fe8c3975b0baf477b1c3e2ba6486a11da
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
ppanero/invenio-rdm-records
6daf38464755b04d33fd706148b7001a3c2500a9
b4bcc2e16df6048149177a6e1ebd514bdb6b0626
refs/heads/master
2023-06-07T22:14:07.678463
2022-04-01T13:06:46
2022-04-01T13:06:46
206,281,822
0
0
MIT
2022-03-24T09:20:25
2019-09-04T09:25:28
Python
UTF-8
Python
false
false
683
py
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """RDM service component for metadata.""" from copy import copy from invenio_drafts_resources.services.recor...
[ "lars.holm.nielsen@cern.ch" ]
lars.holm.nielsen@cern.ch
5be296e2bc7bd3fdd5941a9aa4e3e8e66ecaa693
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/search_his_meetings_response.py
9079e05888af9d2c2ce545a7033572d3306fef6e
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,130
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class SearchHisMeetingsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
d94e881b7392a797a21413588260985a5b523625
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/digitaltwins/azure-mgmt-digitaltwins/generated_samples/digital_twins_put_with_public_network_access.py
f83ed93ccc50f1aa7c7d34e29e6c867c534c64f5
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,775
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 ...
[ "noreply@github.com" ]
Azure.noreply@github.com
f7cd7780e8a21e7a258c04a2754208c931442142
00edbfdc13b5cba7bd4f52bccda63dd7f09a5961
/gen.py
e108c6a1a086c30e1293b46be447ec5901d00ffb
[ "Apache-2.0" ]
permissive
hercules261188/dvcyaml-schema
796f7b6900baf9e0ce4b9102d3386b0326f95763
724d2ba40d13978334f53f988b19b2b7510bad97
refs/heads/master
2022-12-03T02:52:20.193279
2020-08-16T06:16:01
2020-08-16T06:16:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,994
py
"""schema.json generator.""" # flake8: noqa: D1 # pylint: disable=unused-import,missing-class-docstring,too-few-public-methods try: from typing import TypedDict except ImportError: from typing_extensions import TypedDict # noqa: F401 from typing import Any, Dict, Optional, Set, Union from pydantic import Ba...
[ "noreply@github.com" ]
hercules261188.noreply@github.com
150bc75088e264799314b9e8e52e15be34713791
3c7eceeae8c5472ea9d5dc54d910730de935b8e9
/api/user/migrations/0002_auto_20200331_1553.py
ced7c3c8164dfc7da5e4f076cc74b98b1f71bb82
[]
no_license
mkwiatek770/mind-battle
dd827556801b9b70f8a400e58c0de31a46f6d3b5
158b8c50df5b5eed671f33fab722ebd9d1309070
refs/heads/master
2023-01-20T18:10:41.716987
2020-04-10T18:25:52
2020-04-10T18:25:52
247,666,836
0
0
null
2023-01-05T17:07:53
2020-03-16T09:56:18
Python
UTF-8
Python
false
false
541
py
# Generated by Django 3.0.4 on 2020-03-31 13:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('quiz', '0004_auto_20200331_1154'), ('user', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='QuestionUser', ...
[ "michalkwiatek9@o2.pl" ]
michalkwiatek9@o2.pl
cddf927dc8b21ae937d56ad44c750b23f38b46ba
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2783/60617/307453.py
ed312ac679931cc10b43d59691abd88befc03747
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,345
py
def Berland_cardGame(): n=int(input()) turn=list() if n==15: print("aawtvezfntstrcpgbzjbf") exit() elif n==12: print("fcgslzkicjrpbqaifgweyzreajjfdo") exit() for i in range(0, n): turn.append(input().split(" ")) if n==10 and turn[0]==['qdplghhx', '-649']: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
aaced4595be61166c67bc9e708fcdcf08989b133
45dd427ec7450d2fac6fe2454f54a130b509b634
/homework_6/a2.py
43866c4d2513ffd176bec3aca244d43524336665
[]
no_license
weka511/smac
702fe183e3e73889ec663bc1d75bcac07ebb94b5
0b257092ff68058fda1d152d5ea8050feeab6fe2
refs/heads/master
2022-07-02T14:24:26.370766
2022-06-13T00:07:36
2022-06-13T00:07:36
33,011,960
22
8
null
null
null
null
UTF-8
Python
false
false
3,544
py
''' Path sampling: A firework of algorithms This program encompasses both version of the program from step A2. Function 'evolve' carries out the Markov Chain Monte Carlo evolution, 'plot' produces the graphs, and 'compare' allows us to judge whether the distributions match. ''' import random, math, pylab ...
[ "simon@greenweaves.nz" ]
simon@greenweaves.nz
b907f96478917192ab46c9bd004800704b20c2dd
25f79d934fe25d67f5f9bcf464c52736e684a532
/singlecell/pipeline/map_patient_virus.py
eef68d84aecb45e9b4643fd3631259d378debba5
[ "MIT" ]
permissive
iosonofabio/Zanini_et_al_DENV_patients_2018
f6e581a9db773fad49e491830fe36ab4b33a5c03
9d68c929d9d09d12ced9ade2d07673af2d142aa0
refs/heads/master
2023-02-20T18:44:22.603678
2018-09-23T18:27:28
2018-09-23T18:27:28
140,030,431
0
0
null
null
null
null
UTF-8
Python
false
false
5,081
py
# vim: fdm=indent ''' author: Fabio Zanini date: 03/06/18 content: Pipeline for virus mapping within patients AFTER the rough virus reads have been identified in the Snakemake pipeline. The thing is Snakemake is VERY slow to construct that graph ;-) ''' import os import sys import n...
[ "fabio.zanini@fastmail.fm" ]
fabio.zanini@fastmail.fm
1979fca7aa9b1817738c9706a16ba34f22f64692
4908b1d34d69c1cb652f25049552562574e1075f
/2020/Day-22/Crab_Combat/example.py
25da40021ae28995dac1a997eebd358fed3a5fe5
[ "MIT" ]
permissive
sreekesari-vangeepuram/adventofcode
3d4ad98a25a30640182d928538b421e00ad8259d
645531be0208affe042ac0328105b9ef3cfc9dbf
refs/heads/main
2023-07-26T13:36:03.036721
2021-08-11T08:27:25
2021-08-11T08:27:25
317,850,039
1
0
MIT
2021-08-11T08:27:26
2020-12-02T12:08:13
Go
UTF-8
Python
false
false
973
py
#!/usr/bin/env python from typing import List, Tuple def play_space_cards(p1: List[int], p2: List[int]) -> Tuple[str, List[int]]: b1, b2 = 0, 0 # buffer spaces for both players to space their cards while len(p1) !=0 and len(p2)!= 0: b1, b2 = p1.pop(0), p2.pop(0) if b1 > b2: p1.exte...
[ "kesari.vangeepuram@gmail.com" ]
kesari.vangeepuram@gmail.com
39d331e59d88c829c46113d50cfb446786f0fdfa
0d78474be6255f053d69d081d69caed76e46fe48
/aol/facilities/models.py
faab6649b33bb74829f6a6998b92ca45b8eba82b
[]
no_license
conwayb/aol
5eff86ce1addaeb82d6437d1f548409e2b962e6e
d29538a502d028574e142baca508db5bfc4430ca
refs/heads/master
2020-04-05T21:32:20.035371
2016-11-04T23:59:04
2016-11-04T23:59:04
12,762,715
0
0
null
null
null
null
UTF-8
Python
false
false
3,885
py
import requests from django.contrib.gis.db import models from django.contrib.gis.gdal import CoordTransform, SpatialReference from django.contrib.gis.geos import Point from django.db import transaction class FacilityManager(models.Manager): def to_kml(self, bbox): return Facility.objects.all().extra( ...
[ "mdj2@pdx.edu" ]
mdj2@pdx.edu
a292f0646f44750049a15d70ad355287e0aa934b
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/0301-0400/0388-Longest Absolute File Path/0388-Longest Absolute File Path.py
a86a2ef91fb97202c7e1d7bd2e4cdf25e89d83c6
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
544
py
class Solution: def lengthLongestPath(self, input: str) -> int: lens = [0] maxLen = 0 for line in input.splitlines(): name = line.lstrip('\t') level = len(line) - len(name) if '.' in name: maxLen = max(maxLen, lens[level] + len(name)) ...
[ "jiadaizhao@gmail.com" ]
jiadaizhao@gmail.com
e18b0d3d437476da904df18390cea2ad2363d612
2b9397e9e26f7d97ce6983d36c9842ac773b70c6
/workforce/migrations/0009_auto_20181015_0646.py
c4953694528ecce12900a7fff2ae42803176183d
[]
no_license
eakDev/aip-1
288ed7d7b8cf65c74b510f4f4e45292e3342796d
3db2520e3c246e25e2cfa62e395a3ba6ebe37252
refs/heads/main
2023-05-02T08:57:42.449727
2021-05-23T10:16:59
2021-05-23T10:16:59
386,578,482
1
0
null
2021-07-16T09:15:22
2021-07-16T09:15:22
null
UTF-8
Python
false
false
509
py
# Generated by Django 2.1.1 on 2018-10-15 06:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('workforce', '0008_projectsite'), ] operations = [ migrations.AlterField( model_name='employeepr...
[ "clyde.khayad@gmail.com" ]
clyde.khayad@gmail.com
0a545d6d5673a0f28df670d76f65a70863e87890
8c451e438739d741a127342e93727f3bac80b63e
/contributions/HARMONY 2021/test_gen_sedml.py
49fdc9d82e9772c2f6ac6a3f3baf4415b563de11
[]
no_license
SED-ML/sedml-test-suite
a5d6c5858e81d615fa0ba7bcaa7d3af90ae55c47
853d8cdac8987bdf9b901936c3c8888455602212
refs/heads/master
2023-06-14T00:02:58.086947
2021-07-07T23:45:57
2021-07-07T23:45:57
47,284,156
0
2
null
null
null
null
UTF-8
Python
false
false
4,424
py
r""" #################################################################################################### tellurium 2.2.1 -+++++++++++++++++- Python Environment for Modeling and Simulating Biological Systems .+++++++++++++++. .+++++++++++++. Homepage: http://telluri...
[ "lpsmith@uw.edu" ]
lpsmith@uw.edu
8a0848652a216c54c6483dd93481724a0b600cde
1d70bed8b3e7314cac8a1b5cb8e20a98924d0746
/gdp and stock predicton/modules.py
6d2685b1da0a102bf5bcb75c678ec0dfd2a0d57a
[]
no_license
bateikoEd/dipl_program
02d46f2342d2814ed58181f38f9a781effeedd05
0b885c436cda096c80fe2b445337dc7e0bf16ba0
refs/heads/main
2023-07-24T05:42:05.509338
2021-09-06T06:36:18
2021-09-06T06:36:18
344,238,800
0
0
null
null
null
null
UTF-8
Python
false
false
3,647
py
import pandas as pd from sklearn.model_selection import StratifiedKFold, KFold from sklearn.model_selection import cross_val_score import numpy as np from sklearn.metrics import r2_score # from sklearn.metrics import mean_absolute_percentage_error from statsmodels.stats.stattools import durbin_watson from sklearn.metri...
[ "bateiko0713@gmail.com" ]
bateiko0713@gmail.com
8d3a150e92b97edc73a1af8bcfa9566c2296219c
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/.install/.backup/lib/surface/pubsub/subscriptions/seek.py
718094747211caab81d5b553f97be853d2cb982b
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
3,886
py
# Copyright 2016 Google Inc. 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 applicable law or ag...
[ "toork@uw.edu" ]
toork@uw.edu
5a57d709e68b57343a2f490cf6f527c2a7bb2503
e18c84358b2a80159b37dcea39debfbbdaa66395
/backend/api/views/image_c.py
0dcc38ac99342faa71280bd72d3802a93a490817
[ "MIT" ]
permissive
chunyenHuang/Disfactory
49d404609b73783ac488be9430d9cf518fc19f64
52985f7aadc8ca56344f80000b5e943bea99f83d
refs/heads/master
2021-01-03T01:54:40.415165
2020-01-22T04:09:29
2020-01-22T04:09:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
from django.conf import settings from django.http import HttpResponse, JsonResponse import django_q.tasks from rest_framework.decorators import api_view from ..models import Image from .utils import ( _is_image, _get_image_original_date, ) @api_view(['POST']) def post_image(request): f_image = request.FI...
[ "stegben.benjamin@gmail.com" ]
stegben.benjamin@gmail.com
a788ecad5cc912d6405ede696a2f16263c295b76
8126d1bc2afe0925a24fce039d0f02a3bd7acbae
/pytraj/c_action/__init__.py
de635542285540646e5470bb9b3a11a2de034598
[ "BSD-2-Clause" ]
permissive
rafwiewiora/pytraj
54fb6fe07a754f65b865dd161f64c7af15fc3926
91a019ea406081ccf0043170cc64c48b4a5ea04a
refs/heads/master
2021-01-20T17:33:05.974254
2016-03-11T21:25:32
2016-03-11T21:25:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
"""""" from __future__ import absolute_import from . import c_action actionlist = [] for act in c_action.__dict__.keys(): if 'Action' in act: actionlist.append(act) __all__ = actionlist __doc__ = "\n".join(__all__)
[ "hainm.comp@gmail.com" ]
hainm.comp@gmail.com
cfa8945289850ff63e497fcc908de2732efb4faf
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/battle/event/hunter_respawn.py
d81a741d398ce19a72f4ca18421e45b81afc015c
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
1,419
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/event/hunter_respawn.py import BigWorld from gui.Scaleform.daapi.view.battle.event.boss_teleport import EventBossTeleportView from gui.Scaleform.daapi.view.meta.EventHunterRespawnViewMeta import Event...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
182d2c133c867b48df3b915ff9cc056dcdba61d5
f03e50ab105c8dd97bda374fa2d604d480b85fb3
/apps/projects/models.py
ca45800eb9e00a783cdea3dae4a0abef2f2c4541
[]
no_license
callowayproject/callowaysite
9717b7d934ef142b5e6b8fa1e0c93651382198bb
eb25d208586a7dc9ffb88660b07ad942ba9fe231
refs/heads/master
2022-12-15T11:38:57.787801
2019-07-14T13:21:13
2019-07-14T13:21:13
730,944
1
0
null
2022-11-22T00:40:56
2010-06-20T19:50:00
CSS
UTF-8
Python
false
false
1,511
py
import datetime from django.db import models from django.core.files.images import get_image_dimensions from projects.settings import LOGO_STORAGE, PROJECT_TYPES, STATUSES class Project(models.Model): """Something that we work on""" name = models.CharField(blank=True, max_length=255) description = models...
[ "coreyoordt@gmail.com" ]
coreyoordt@gmail.com
3f0334e74a172b28d97ef4fe5641f86b7070ca66
9426f2e4f25c85c351a4d1b8855fe7d4cfd35210
/fardel_ecommerce/order/models.py
43289b3f939406b8fb0777a2648784f5577f747c
[]
no_license
FardelCMS/fardel_ecommerce
52e4eaebb243c863f0dd6af22be093f4c90af8cd
d4221a7f4f7812d3e491234fc4cca6b828665ae3
refs/heads/master
2021-08-01T01:52:22.809056
2021-07-29T09:58:11
2021-07-29T09:58:11
229,290,203
0
0
null
null
null
null
UTF-8
Python
false
false
4,175
py
import datetime from ..checkout.models import Cart, CartLine from sqlalchemy import func from sqlalchemy.dialects.postgresql import JSONB, UUID from flask_sqlalchemy import BaseQuery from flask_jwt_extended import current_user from fardel_ecommerce.product.models import ProductVariant from fardel.ext import db cl...
[ "s.hamzelooy@gmail.com" ]
s.hamzelooy@gmail.com
1f65100839d9ff8b15648173db4bdc566eb7e7b4
439e3b0fcc8959483bc35ff9c1229ce240037bbe
/tests/test_kanwa.py
db033372d8214dbf5ebd4d6f1563242af952d467
[ "MIT" ]
permissive
403JFW/kakasi-utils
16fe27265f1b7f05045e4370cf19de080c649e8f
698b6fc8d812637473dc941b36d9ccff87410d0c
refs/heads/master
2021-01-02T09:54:13.425825
2014-04-15T00:55:51
2014-04-15T00:55:51
17,693,614
3
0
null
2014-05-12T06:39:36
2014-03-13T03:37:09
Python
UTF-8
Python
false
false
1,754
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import os import unittest from kakasi_utils.kanwa import Kanwa class TestKanwa(unittest.TestCase): def test_merge(self): """Test merge""" # Get dict file paths data_dir = os.path.dirname(os.path.realpath(__file__)) + '/' ...
[ "miyazaki.dev@gmail.com" ]
miyazaki.dev@gmail.com
c6ce9e4a4ce2934670386105b410efd371bb56c3
87140007e96872d3611f0778eb0eebe5799616d7
/runs/1000KB/src2-tgt1/seq-nobro-iter08000.cfg.py
d889d92141bd83f110aee7e52fd487b910171abe
[ "MIT" ]
permissive
janpawellek/broeval
49499fa302abff916ffced201034d3b9394503cd
57e31aa6e354d0bba88103b44910483e8d982d00
refs/heads/master
2021-01-11T12:19:13.619220
2016-12-20T16:23:27
2016-12-20T16:23:27
76,468,134
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# Write results to this file OUTFILE = 'runs/1000KB/src2-tgt1/seq-nobro-iter08000.result.csv' # Source computers for the requests SOURCE = ['10.0.0.1', '10.0.0.3'] # Should Bro be enabled on the source machines? SOURCE_BRO = [False, False] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'] # Sho...
[ "pawellek@stud.uni-heidelberg.de" ]
pawellek@stud.uni-heidelberg.de
afd9ffeb1bc993d9503161429c26f6b38e550db9
3dbbde1aa96fc09e9aab885cf3713e86f3572dec
/gs-vtoi/bin/glacier
6e1a948d2c394d1ca44797d1d7fd32027f7bc0eb
[]
no_license
bopopescu/gs-vtoi
6223d6dbf47e89292bd0e79e24e5664450e28cf6
f12b802976d0020179d1b40b0b5e3af5b72d55cc
refs/heads/master
2022-11-24T16:31:36.804869
2018-07-31T08:30:56
2018-07-31T08:30:56
282,551,982
0
0
null
2020-07-26T01:09:10
2020-07-26T01:09:09
null
UTF-8
Python
false
false
5,288
#!/Users/Sang/OneDrive/Developments/gs-vtoi/gs-vtoi/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2012 Miguel Olivares http://moliware.com/ # # 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 Softw...
[ "sy0414@gmail.com" ]
sy0414@gmail.com
82fd235db118646fc86003f4b9b8c9456cea7a02
c5758c1f4c880f4530df1a5ffb4c30ee2da445ee
/pytracking/vot_ep/sk3x3_meanmax_adaptive/vot_wrapper_sk3x3_meanmax_adaptive_ep0024.py
23ccb4ec2fc0650043d494e0655d884737572b61
[]
no_license
bfjei2825401/d3s
6d662fc301181a0e3ad831b0db6111e3cf8f4097
32140a3c67252f0e98cbfbf6ad6d2a79267c221b
refs/heads/master
2023-02-27T09:57:25.692878
2021-01-27T14:20:57
2021-01-27T14:20:57
297,217,521
0
0
null
2020-09-21T03:23:09
2020-09-21T03:23:09
null
UTF-8
Python
false
false
2,523
py
import pytracking.vot as vot import sys import cv2 import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "0" from pytracking.tracker.segm_sk3x3_meanmax_adaptive import SegmSK3x3MeanMaxAdaptive from pytracking.parameter.segm_sk3x3_meanmax_adaptive import default_params_ep as vot_...
[ "752958525@qq.com" ]
752958525@qq.com
66eb41b497be5f43356f205ce49307cd2e618a2e
63ba933a294865f65409635f62e0f1d59f725f37
/src/linkedLists/flatten.py
4b148dc9198652a6473dde5fda7746be4087ad87
[ "CC0-1.0" ]
permissive
way2arun/datastructures_algorithms
fc4302bdbb923ef8912a4acf75a286f2b695de2a
4ea4c1579c28308455be4dfa02bd45ebd88b2d0a
refs/heads/master
2021-12-07T04:34:35.732026
2021-09-30T12:11:32
2021-09-30T12:11:32
203,658,808
1
0
null
2020-08-08T15:55:09
2019-08-21T20:23:46
Python
UTF-8
Python
false
false
3,212
py
""" https://leetcode.com/explore/challenge/card/july-leetcoding-challenge/545/week-2-july-8th-july-14th/3386/ You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a separate doubly linked list. These child lists may have one...
[ "way2aru@yahoo.com" ]
way2aru@yahoo.com
03c9b8c1400c21f8f1f1f697eace517cba3fabce
f0b75bd94f133a13f469f429a696f26be3be9862
/week 2/.history/python_second_assignment_20200204154901.py
ca2a7780d18decaa9aca7b5410cab8eda6e90bd4
[]
no_license
dechavez4/Python_handin_assignments
023350fabd212cdf2a4ee9cd301306dc5fd6bea0
82fd8c991e560c18ecb2152ea5a8fc35dfc3c608
refs/heads/master
2023-01-11T23:31:27.220757
2020-05-22T10:33:56
2020-05-22T10:33:56
237,179,899
0
0
null
2022-12-30T20:14:04
2020-01-30T09:30:16
Python
UTF-8
Python
false
false
1,447
py
# Exercise 1 # Create a python file with 3 functions: # A. def print_file_content(file) that can print content of a csv file to the console import csv from sys import argv import platform filename = argv[1] def print_file_content(file): with open(filename) as csv_file: content = csv_file.readlines()...
[ "chavezgamingv2@hotmail.com" ]
chavezgamingv2@hotmail.com
667a6a1286fe0c8a7c4877e2d9a1aab0a9a79399
c3ff891e0e23c5f9488508d30349259cc6b64b4d
/python练习/django exercise/FormsDemo/first/views.py
ebcd835469f1f68f965b5e54504c5e8ab9bab17f
[]
no_license
JacksonMike/python_exercise
2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53
7698f8ce260439abb3cbdf478586fa1888791a61
refs/heads/master
2020-07-14T18:16:39.265372
2019-08-30T11:56:29
2019-08-30T11:56:29
205,370,953
0
0
null
null
null
null
UTF-8
Python
false
false
2,089
py
from django.shortcuts import render, HttpResponse from django.core.exceptions import ValidationError from django.forms import widgets from first.models import UserInfo from django import forms # Create your views here. def register(request): if request.method == "GET": form = UserForm() return ren...
[ "2101706902@qq.com" ]
2101706902@qq.com
3f89fb97ec5363fc81efe42ce4a627e34436e809
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_suite.py
5d9059953940881ade58e572a6b7dde68f38bcfb
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
#calss header class _SUITE(): def __init__(self,): self.name = "SUITE" self.definitions = [u'a set of connected rooms, especially in a hotel: ', u'a set of furniture for one room, of matching design and colour: ', u'a piece of music with several parts, usually all in the same key', u'a set of related software (...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1bdd34e88fd6277b360b09b84201d96e1a50fe44
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/python_all/143_15.py
8d67528a49ea0ab7b49f24cfcb96309e98a02750
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
2,669
py
Python | Check if string ends with any string in given list While working with strings, their prefixes and suffix play an important role in making any decision. For data manipulation tasks, we may need to sometimes, check if a string ends with any of the matching strings. Let’s discuss certain ways in which t...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
6447b4421e3a2256c272226eb874c95411fda479
8dffff5ff7f2645a50fd9846198e12e4c96a91da
/18-letter-count.py
ab86a66578554a66e0cb43fd008cdfbc21744bb6
[]
no_license
akshaypawar2508/Coderbyte-pythonSol
b233c5ee0c34e0413a26b24b423dae45342b9ade
5c7d2028fe09fd02aad7808f88abc40fdea0f81e
refs/heads/master
2022-01-03T09:44:18.635060
2014-07-31T13:32:08
2014-07-31T13:32:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
def LetterCountI(str): for word in str.split(): for i in range(len(word)): if word[i] in word[i+1:]: return word return -1 # keep this function call here # to see how to enter arguments in Python scroll down print LetterCountI(raw_input())
[ "xzhu15@illinois.edu" ]
xzhu15@illinois.edu
0b3eeb02095fbf2030db653bc03576071c4a956a
9672fa478478085b69c7ef8f02eaa7fa0bc7767b
/symphony/cli/pyinventory/graphql/fragment/service_endpoint.py
f22a4f54006c151f24a0aaab059869fd9813ff4f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
julianchr/magma
437a1d86490ff5f1d279cf2cd3243bbd3f22f715
f0b2ed7e08314208133cf722921d6e6ab7853825
refs/heads/master
2022-09-21T21:45:14.678593
2020-05-28T22:47:52
2020-05-28T22:49:52
267,723,888
0
0
NOASSERTION
2020-05-29T00:07:02
2020-05-29T00:07:01
null
UTF-8
Python
false
false
1,352
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass from datetime import datetime from gql.gql.datetime_utils import DATETIME_FIELD from gql.gql.graphql_client import GraphqlClient from gql.gql.client import OperationException from gql.gql.reporter import FailedOper...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f5d319d69486e544284d5a391d18304dd20f00fe
d29fd8ac20bf53f366821892bf5a80005a9cef36
/tests/apps/pages_directory.py
2d096f87c51ae88ef0ebd1ac72dc6772f44a26cb
[ "MIT" ]
permissive
T4rk1n/dazzler
d325ff664c6e310374f08cea84bd53aa1ca2ca43
69c49422dc19c910445ab265b1d3481041de8f43
refs/heads/master
2023-02-11T02:39:08.423597
2021-12-06T03:16:49
2021-12-06T03:34:25
191,060,792
19
7
MIT
2023-01-23T11:02:57
2019-06-09T22:16:59
Python
UTF-8
Python
false
false
146
py
from dazzler import Dazzler app = Dazzler(__name__) app.config.pages_directory = 'page_dir' if __name__ == '__main__': app.start('--debug')
[ "t4rk@outlook.com" ]
t4rk@outlook.com
c72e3c3dcb8a88238fa6b42cb63e1df026e8c669
d2d6bbb76fd92ad596b0476b37ac8dd5cf08df14
/1.9 LISTAS.py
a97405df71a8abca906f6bf2d182f2441b9b24db
[]
no_license
edneyefs/curso_python
b917d8f2c405173af901287dab86264ff937aaa6
2c862ad62223b7c3bd0ea7d7410a9b69c38d814d
refs/heads/master
2022-12-14T21:29:59.875637
2020-08-21T12:42:07
2020-08-21T12:42:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
lista = [] print(type(lista)) print(dir(lista)) print(help(lista)) print(len(lista))#contador lista.append(1) lista.append(5) print(len(lista)) nova_lista = [1, 4, 'Ana', 'Bia'] #print(nova_lista) nova_lista.remove(4) #print(nova_lista) nova_lista.reverse() print(nova_lista) lista = [1, 5, 'Rebeca', 'Guilherme', 3.14...
[ "edneysilva20@hotmail.com" ]
edneysilva20@hotmail.com
c77de50c1bc3274824ecd3f3cc23faa27d6840d7
4c3dd270440c48a0a8e87d1937844371476f7cef
/resource_wrangler/scripts/download_mods.py
cb42130c64e1983371fe8880c460d6c88f9945b7
[]
no_license
Soartex-Modded/Resource-Wrangler
f84726bf5ffb246d8562149fb6cc0a613a4f4043
36c6f7059bb876e034c99d5e02fca1cf81888dac
refs/heads/master
2023-01-25T00:34:22.900581
2020-11-29T23:00:35
2020-11-29T23:00:35
309,116,894
2
1
null
null
null
null
UTF-8
Python
false
false
6,085
py
import json import math import os import requests from sqlalchemy import Table, Column, Integer, String, MetaData from sqlalchemy import create_engine from sqlalchemy.sql import select def download_mods(mods_dirs, database_path, mod_limit=100): """ Collect the top mods from CurseForge into mods_dirs :pa...
[ "shoeboxam@gmail.com" ]
shoeboxam@gmail.com
ca016bd689fb246e19dc877a574e00c0cd0e1ec1
2b6e1b7bd7065229054b4cdecd40daa5e251c22d
/src/models/dqn.py
4195fc5933776981002b4d8d68a69c1ac3b934bb
[]
no_license
raufer/deep-q-learning
b9be99c41829e8d62cd350cd279e5ddc135e7809
c31b8803a45bcf1f22f1c4552daf48b9a284dd5c
refs/heads/main
2023-06-19T06:01:49.867163
2021-07-20T13:35:30
2021-07-20T13:35:30
379,271,213
0
0
null
null
null
null
UTF-8
Python
false
false
3,506
py
import torch import torch.nn as nn import torch.nn.functional as F from src.config import config class DQN(nn.Module): """ Assumption: the environment is deterministic so all equations presented here are also formulated deterministically for the sake of simplicity. In the reinforcement learning lite...
[ "raufer92@gmail.com" ]
raufer92@gmail.com
548980782c09a047bbcc43b0e12a6dae822cdcc6
ed1d841dbd836f5a02a8b2c22bcc92380f28d11b
/seed.py
9b08aa64301e4ced1c79ad9d8a6e7a7e4658118c
[]
no_license
GraceDurham/ratings
b063389f368f0b3994f0771ca4cac46555a04a10
2e628c2a824ca5a10879a15282cd60e21695322b
refs/heads/master
2020-05-23T07:59:29.310561
2017-02-03T02:00:36
2017-02-03T02:00:36
80,483,352
0
0
null
null
null
null
UTF-8
Python
false
false
3,894
py
"""Utility file to seed ratings database from MovieLens data in seed_data/""" from sqlalchemy import func from model import User from model import Rating from model import Movie from datetime import datetime from model import connect_to_db, db from server import app def load_users(): """Load users from u.user i...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
c885620223bab7b3b759d52fbf738145d6690444
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/rtctrl/setrtmetricdef.py
f5d55b1458f3e0a5d0f447271471db818060c777
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
5,969
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
135f69897b740742d615a59e60256e99b761d86d
1346ea1f255d3586442c8fc1afc0405794206e26
/알고리즘/day24/babygincompare.py
0506c4570d0fcac76a84ab75a16604fe95dd74ec
[]
no_license
Yun-Jongwon/TIL
737b634b6e75723ac0043cda9c4f9acbc2a24686
a3fc624ec340643cdbf98974bf6e6144eb06a42f
refs/heads/master
2020-04-12T00:41:03.985080
2019-05-01T07:55:25
2019-05-01T07:55:25
162,208,477
0
0
null
null
null
null
UTF-8
Python
false
false
1,649
py
def player1babygin(): for i in range(len(player1_data)-2): for j in range(i+1,len(player1_data)-1): for k in range(j+1,len(player1_data)): candi=sorted([player1_data[i],player1_data[j],player1_data[k]]) if (candi[1]-1==candi[0] and candi[1]+1== ca...
[ "dmdmdkdk@daum.net" ]
dmdmdkdk@daum.net
1c25fdc3c71bd1c13e880d528341cc4b0e788efd
f54d702c1289b2b78f423850d7fedba6c9378126
/Mathematics/Fundamentals/handshake.py
b505905cd0327f05e06069e006057674fa76dc6a
[ "MIT" ]
permissive
ekant1999/HackerRank
81e6ac5bec8307bca2bd1debb169f2acdf239b66
084d4550b4eaf130837ab26a4efdbcaf8b667cdc
refs/heads/master
2020-05-02T09:19:10.102144
2016-10-27T04:10:28
2016-10-27T04:10:28
177,868,424
0
0
MIT
2019-03-26T21:04:17
2019-03-26T21:04:17
null
UTF-8
Python
false
false
243
py
# Python 2 # Enter your code here. Read input from STDIN. Print output to STDOUT t = int(raw_input()) for i in range(t): n = int(raw_input()) handshakes = n*(n-1)/2 # Note this is nC2 i.e. n "choose" 2 print handshakes
[ "ugali_guy@hotmail.com" ]
ugali_guy@hotmail.com
501ce999fd6452c28544240627deb50e62312876
fce83f1b55b8894afab9eb58ae8b4ba2e26eb86b
/examples/GAN/DCGAN.py
e9df6b36319476aea07fd240e26005c998a75385
[ "Apache-2.0" ]
permissive
PeisenZhao/tensorpack
b65d451f6d4a7fe1af1e183bdc921c912f087586
6ca57de47e4a76b57c8aa2f0dad87c1059c13ac0
refs/heads/master
2021-05-05T01:46:05.209522
2018-01-31T05:29:37
2018-01-31T05:29:37
119,641,372
1
0
null
2018-01-31T05:52:07
2018-01-31T05:52:06
null
UTF-8
Python
false
false
5,554
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: DCGAN.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> import glob import numpy as np import os import argparse from tensorpack import * from tensorpack.utils.viz import stack_patches from tensorpack.tfutils.scope_utils import auto_reuse_variable_scope from tensorpack...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
df113094854ba04a033632a46969612a2810a824
aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4
/Q03__/04_Range_Sum_Query_2D_Immutable/Solution.py
5a36350496b38c5b518c880e49d6cd71aaf91e13
[ "Apache-2.0" ]
permissive
hsclinical/leetcode
e9d0e522e249a24b28ab00ddf8d514ec855110d7
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
refs/heads/main
2023-06-14T11:28:59.458901
2021-07-09T18:57:44
2021-07-09T18:57:44
319,078,569
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
from typing import List class NumMatrix: def __init__(self, matrix: List[List[int]]): self.matrix = matrix self.n = len(matrix) if self.n != 0: self.m = len(matrix[0]) else: self.n = 0 def sumRegion(self, row1: int, col1: int, row2: int, col2: int) -> i...
[ "luhongisu@gmail.com" ]
luhongisu@gmail.com
9e6d61a3743d70fc652f40ee1dce7897a9019284
0000c8f4a481000676463f81d55c2ea21862cbd5
/not-yet-done-examples.py
d2d8e2a9c2d8f5293eea6153628712f8ddbc0858
[]
no_license
robertej19/813
b5ca9b51504e002189861bc0e1230bd43c5f6005
f1417f05e9d08d5693d6ecd8363d1dd7552d2e12
refs/heads/master
2022-12-18T14:36:26.644424
2020-09-21T13:58:06
2020-09-21T13:58:06
292,097,780
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
Here is my code for doing the fit and plotting: 8:51 popt, pcov = curve_fit(gauss, xval, yval, sigma=yerror,p0 = [100, 3300, 140],absolute_sigma=False) xx = np.arange(xmin,xmax) plt.plot(xx, gauss(xx, *popt), label='fit') One line method to load a CSV data file into python with numpy import numpy as np data=[*zip(*np...
[ "robertej@mit.edu" ]
robertej@mit.edu
749ebd1fc73831af5d53749d304aa4f0729f1cf8
0ca0fc2c2aad412d9e2936d5d01fb1abc1539ee4
/apps/cart/forms.py
bead7dbbce173bcc6584e87b86d1c9a91dad31e7
[ "MIT" ]
permissive
yeboahd24/python202
1f399426a1f46d72da041ab3d138c582c695462d
35963db9a4ad5fcd567ce1e98c673f1a2ed2abef
refs/heads/master
2023-05-06T04:14:19.336839
2021-06-02T01:22:44
2021-06-02T01:22:44
309,841,303
4
0
null
null
null
null
UTF-8
Python
false
false
430
py
from django import forms class CheckoutForm(forms.Form): first_name = forms.CharField(max_length=255) last_name = forms.CharField(max_length=255) email = forms.EmailField(max_length=255) phone = forms.CharField(max_length=255) address = forms.CharField(max_length=255) zipcode = forms.CharField(...
[ "yeboahd24@gmail.com" ]
yeboahd24@gmail.com
18a1ef9adc1cffb62a94ab625de750a18568e630
ea544b339809095d2c383b542248f530990c31d5
/env/lib/python3.6/site-packages/pip/_vendor/html5lib/treewalkers/base.py
ba04ae2bb9cec5cf9fc1e3ea2a220624ca47aea1
[ "BSD-3-Clause" ]
permissive
724686158/NosqlEXP3
5fab1a9e131c6936b5b61e0f1c86eea2c889294a
e29f2807f075831377456b47cf8c9ce0c8d65c30
refs/heads/master
2020-04-09T01:40:54.370782
2019-01-25T13:04:04
2019-01-25T13:04:04
159,912,368
0
0
null
null
null
null
UTF-8
Python
false
false
7,476
py
from __future__ import absolute_import, division, unicode_literals from xml.dom import Node from ..constants import namespaces, voidElements, spaceCharacters __all__ = ["DOCUMENT", "DOCTYPE", "TEXT", "ELEMENT", "COMMENT", "ENTITY", "UNKNOWN", "TreeWalker", "NonRecursiveTreeWalker"] DOCUMENT = Node.DOCUMEN...
[ "solitarius.holic@gmail.com" ]
solitarius.holic@gmail.com
e8493a1b631c82cd20a805041411a0ddabce63d0
5e5b8a66d35be6b86d3754069613fe49108a700d
/scripts/webquestions-preprocessing/paraphrase_rules.py
b8ff50290c2c4c922205a06b3aa5feddffdd7d10
[ "CC-BY-4.0" ]
permissive
saraswat/graph-parser
e77f9880f38d1d23cf5aebb149be997d9c715745
da8800503174dce0590a55b817cd024354e41d9e
refs/heads/master
2021-01-11T09:01:50.414615
2016-12-23T13:17:59
2016-12-23T13:17:59
77,409,845
1
0
null
2016-12-26T22:26:28
2016-12-26T22:26:28
null
UTF-8
Python
false
false
3,122
py
''' Created on 26 May 2014 @author: siva ''' import json import re import sys for line in sys.stdin: line = json.loads(line) # print line # sentence = line['sentence'] sentence = " ".join([word["word"] for word in line["words"]]) if re.search(" do \?$", sentence): # what did Einstein...
[ "siva@sivareddy.in" ]
siva@sivareddy.in
e0f9e0cc67afaf29f291926c9c6aa95c05deb166
5792baf9e18ad91816cc42f4725b099a4dce7b7b
/HackerRank/Strings/Python sWap cASE.py
9e524564145bac64f1ed70970b832d5b588f495a
[]
no_license
deepakorantak/Python
83b6782db0b5428d47fbc29193076e8ed5f5e285
9781133ce5a5c6f87efb5d4aa132a63ba1290f76
refs/heads/master
2020-03-23T19:55:30.075700
2019-02-19T06:24:42
2019-02-19T06:24:42
142,010,440
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
def swap_case(s): return str.swapcase(s) if __name__ == '__main__': s = input() if len(s) > 0 and len(s) <= 1000: result = swap_case(s) print(result)
[ "DeepaNKorantak@Gmail.com" ]
DeepaNKorantak@Gmail.com
d226826efc7925a38771ffa80e803b71f8684253
288a00d2ab34cba6c389b8c2444455aee55a8a95
/tests/test_overwrites.py
6be0434f5d59a65c73dba6e837e5662c22636de7
[ "BSD-2-Clause" ]
permissive
JohannesBuchner/pystrict3
ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb
18b0dd369082422f9bf0f89c72e7acb53a49849c
refs/heads/master
2023-08-14T06:37:37.954880
2023-07-13T11:16:38
2023-07-13T11:16:38
268,571,175
1
1
null
null
null
null
UTF-8
Python
false
false
406
py
import ast from hypothesis import given from hypothesis.strategies import text from pystrict3lib import assert_unknown, preknown def test_assert_unknown(): node = ast.parse("print('hello world')").body[0] known = {} assert_unknown("name", known, node, "filename") def test_assert_known(): node = ast.parse("print(...
[ "johannes.buchner.acad@gmx.com" ]
johannes.buchner.acad@gmx.com
50509f1fcaee6a8db649657d24ee5a29044b19e6
6932a9ae700a623f16a3aef417d0598cf6d4f389
/karasu_speak.py
c8c028b30786e6c5b67abc979a0d40f60e63f06a
[ "MIT" ]
permissive
MuAuan/hirakegoma
9f1a252d913749a2c16ae5bd7a8870550048d26d
861879af1016c25b7a14bcabe543bfba47fd57f3
refs/heads/master
2020-04-27T20:12:25.315594
2019-03-24T12:38:30
2019-03-24T12:38:30
174,649,241
0
1
null
null
null
null
UTF-8
Python
false
false
2,935
py
# -*- coding: utf-8 -*- import cv2 import pyaudio import sys import time import wave import pydub from pydub import AudioSegment import moviepy.editor as mp import datetime import os from vgg16_like import model_family_cnn from keras.preprocessing import image import matplotlib.pyplot as plt import keras import numpy a...
[ "noreply@github.com" ]
MuAuan.noreply@github.com
be9cf6de41337a706ff9fa46d7816b99d1f552a0
b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a
/CAIL2021/slsb/main.py
f67c06674df00f1d0948662b5528d9c5174dd6c3
[ "Apache-2.0" ]
permissive
Tulpen/CAIL
d6ca9981c7ea2603ae61675ba330a9614cd9398d
c4cfa98ab4ecedbce34a7a5a186830486047540c
refs/heads/master
2023-04-23T20:07:56.774530
2021-04-16T13:18:36
2021-04-16T13:18:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,066
py
"""Test model for SMP-CAIL2020-Argmine. Author: Tsinghuaboy tsinghua9boy@sina.com Usage: python main.py --model_config 'config/bert_config.json' \ --in_file 'data/SMP-CAIL2020-test1.csv' \ --out_file 'bert-submission-test-1.csv' python main.py --model_config 'config/rnn_c...
[ "bangtech@sina.com" ]
bangtech@sina.com
10c5cd8101cff8672ef60125ceffa4769b4d7c27
21682f70ff130169d8800a06b1a6d8bf7f46e45a
/functions/decoraters/variablelengthargument/demo.py
15d8a2f86e7c77c3241c3e719adc2bc1555f7f55
[]
no_license
Aravind2595/MarchPythonProject
03c3aeee40f5ff2c635861ac29f31a7633499d51
9aa9241632b7f96e7e1cb33b3adb7b8def36f1f8
refs/heads/master
2023-05-05T04:16:45.556737
2021-05-20T08:43:52
2021-05-20T08:43:52
368,791,704
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
def add(*args): #muttiple argument passing ;it will also accept 0 argument res=0 #* is important not 'args' eg: *hai or *arg= for num in args:#argument will be stored in tuple format res+=num return res print(add(10,20,30,40))
[ "nairaravind95@gmail.com" ]
nairaravind95@gmail.com
d0bbe41af3a825c8397a6ae8f3261c2be29c4625
15960f0aa40915ddc93cd5c8a840a4abfb167cf1
/groups/models.py
0fae1fa57df655ee1187afa7e7aea983641ef30c
[]
no_license
phouse512/piper
74d815fd443482abc80418dbed678b1431e17eb9
70f651db8af4edb625f6ba249556d3c2d04a350b
refs/heads/master
2022-05-04T20:36:56.354336
2018-12-19T04:28:23
2018-12-19T04:28:23
40,972,739
0
0
null
2018-11-17T16:56:21
2015-08-18T13:13:15
Python
UTF-8
Python
false
false
399
py
from django.db import models from users.models import User class Group(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=30) class Meta: db_table = 'groups' class GroupMembership(models.Model): id = models.AutoField(primary_key=True) user = models.ForeignKey(User) g...
[ "philiphouse2015@u.northwestern.edu" ]
philiphouse2015@u.northwestern.edu
62d885e2dfc1f0c0f22c2711cb0bcfabeb0641b3
0942ec9cdda81f754d05ae9893605769ed5c1111
/flask-video-streaming/camera_pi.py
f94a07a7875d2c5f6778403d01ea02da3986608e
[ "MIT" ]
permissive
sourceperl/rpi.webcam.pi3
f9fa061bc05bab9720c9e372c96f65e431ad5673
ea8559ca93f771250961a63fbe0f7acc3a7a2338
refs/heads/master
2020-12-25T14:38:24.234521
2016-07-21T14:56:01
2016-07-21T14:56:01
63,687,773
1
1
null
null
null
null
UTF-8
Python
false
false
1,607
py
import time import io import threading import picamera class Camera(object): thread = None # background thread that reads frames from camera frame = None # current frame is stored here by background thread last_access = 0 # time of last client access to the camera def initialize(self): if ...
[ "loic.celine@free.fr" ]
loic.celine@free.fr
34179ff136b9b68223fd42cb9f5fbe54e95a88de
af0dcf80a36da4ac6894dc517ad1870f702c3122
/azure-mgmt-web/azure/mgmt/web/models/csm_publishing_profile_options.py
99b9542ab7d50b0a1d29b9d31f8743561ff5afa3
[ "Apache-2.0" ]
permissive
FlavioAlexander/azure-sdk-for-python
4c6151ca17886f9e4d47e1ccc469859abdedca5a
8c7416749f9a5697e0311bc9af8fe5c0d524ca03
refs/heads/master
2021-01-24T02:34:37.194767
2016-07-03T23:47:23
2016-07-03T23:47:23
62,738,173
0
1
null
2016-07-06T16:54:12
2016-07-06T16:54:10
null
UTF-8
Python
false
false
1,346
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
a560d10713bc976b978431314f53a75111c1555a
3aa8222bb2edc93c9202ccbcf6f331cdf73cd5a2
/FundRatingNSDL/nsdl_extraction/setup.py
ac0e1546b51b54b85c28ad5f48c2c3952b296cc5
[]
no_license
pavithra-ft/ft-automation
a977809823e587efd596b02e3a8286f887d12116
946e1c35b785bfc3ea31d5903e021d4bc99fe302
refs/heads/main
2023-04-24T19:54:28.478577
2021-05-11T17:53:08
2021-05-11T17:53:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
# Automatically created by: scrapyd-deploy from setuptools import setup, find_packages setup( name='project', version='1.0', packages=find_packages(), entry_points={'scrapy': ['settings = nsdl_extraction.settings']}, )
[ "64137264+pavithra-ft@users.noreply.github.com" ]
64137264+pavithra-ft@users.noreply.github.com
460f676c069089996fb607db849fb892c0b4ab8a
c2e16633921d1efe584d93d769eaa7892a2fd8f3
/list,advanced/Messaging.py
aa33649a6ed9732f8fa8110516c633e59d131daa
[]
no_license
yosifnandrov/softuni-stuff
bd53d418fe143ea4633a5488c1f80648da0b9ef7
2a76e5aee2029edf901634750d28cf153d73ece3
refs/heads/main
2023-04-17T19:53:30.254790
2021-05-06T11:33:39
2021-05-06T11:33:39
364,884,782
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
number = input().split() message = input() def get_sum(n): sum = 0 for i in n: sum += int(i) return sum for i in number: summary = get_sum(i) for l in range(len(message)): if l == summary: print(message[l], end="") message = message[0:l:] + message[l + 1::] ...
[ "yosif1993@abv.bg" ]
yosif1993@abv.bg
c5420358fb87484239026919e290e881a7b4c6c4
2ce0c37ac7d9beeac23db688f97a1f502b92d13a
/store/models/store.py
878b20d11d588de233e55c8908f1c894374734b0
[]
no_license
AmrElsayedEG/inventory-system
0cdb0634b33117b13bfcae8642f979448d831369
d4bc483612c3b721918d75f24ab0d7fa29b78ce3
refs/heads/main
2023-08-20T22:32:25.113740
2021-10-04T08:55:44
2021-10-04T08:55:44
413,344,692
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
from django.db import models class Store(models.Model): name = models.CharField(max_length=100) address = models.CharField(max_length=200) coordinates = models.JSONField(blank=True, null=True) def __str__(self) -> str: return self.name
[ "elsayed.amr50@gmail.com" ]
elsayed.amr50@gmail.com
1e4fc17bed5f3bca085566203de7580dbe427874
b5187b5ffd53a2cdc8ec6ed94effc39702c1ea31
/loyalty_app/loyalty/doctype/sales_list/sales_list.py
3f630555c69f95a1f081ba33f89e1bac9d77c915
[ "MIT" ]
permissive
vignesharumainayagam/engagex-loyalty_app-backup-
946a7f75c5ae5cce33313142a0b4e6ba29d67cb6
4c326c5f7b22572146f0b946d6498e85ac22a143
refs/heads/master
2020-03-11T18:00:14.106005
2018-04-19T05:36:06
2018-04-19T05:36:06
130,163,935
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
# -*- coding: utf-8 -*- # Copyright (c) 2018, Loyalty and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Sales_list(Document): pass
[ "vigneshwaran@valiantsystems.com" ]
vigneshwaran@valiantsystems.com
53b2af0868849bff57dbd8b705257e3f2690e172
a88d9c0176f5e4c0d0bd9664270e000ebb5edbd9
/component/tile/sensor_tile.py
9b549723c7bbb0854467b7bcc1072e972e246aa2
[ "MIT" ]
permissive
sandroklippel/fcdm
fb81c73fc6bd1cf296f9301272923c3627474d3f
5a54e6352bb574ba409be38882ff0d13b3473b7a
refs/heads/master
2023-08-19T22:05:52.055545
2021-08-24T11:23:40
2021-08-24T11:23:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,828
py
from datetime import datetime as dt from sepal_ui import sepalwidgets as sw import ipyvuetify as v from component import parameter as cp from component.message import cm class SensorTile(sw.Tile): def __init__(self, model): # create adjustable variables end and start self.end = dt.n...
[ "pierrick.rambaud49@gmail.com" ]
pierrick.rambaud49@gmail.com
ea02622ccae8492548b091136b268bf259b5cebd
23ec6adce704bff40d04cd6fc0ba446375405b68
/Non Leetcode Solutions/linked_list_py.py
378d3a34b439b5b394c573f968a35ed1cc2897d6
[]
no_license
amoghrajesh/Coding
1845be9ea8df2d13d2a21ebef9ee6de750c8831d
a7dc41a4963f97dfb62ee4b1cab5ed80043cfdef
refs/heads/master
2023-08-31T10:10:48.948129
2023-08-30T15:04:02
2023-08-30T15:04:02
267,779,618
0
0
null
null
null
null
UTF-8
Python
false
false
1,952
py
class Node(object): def __init__(self,data,next_node=None): self.data=data self.next_node=next_node def get_next(self): return self.next_node def set_next(self,next_node): self.next_node=next_node def get_data(self): return self.data def set_data(self,data): ...
[ "amoghrajesh1999@gmail.com" ]
amoghrajesh1999@gmail.com
c4be81c83c88067b9cf207fdeb2ab275f44e2c08
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/F4iemEeFfsaFoMpAF_4.py
786cba909da3a937ac21071a5cc1d90693d4e336
[]
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
776
py
""" This is a list of single characters with an unwanted character at the end: ["H", "e", "l", "l", "o", "!", "\0"] You could also just type "Hello!" when initializing a variable, creating the string "Hello!" Create a function that will return a string by combining the given character list, not including the ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
6068e0dfbaa8b3e02df630a1f8f2d8551b444403
2eaecdb1ed42170463993b8b2285296c5ef2231d
/apps/ciudad/admin.py
d7e080b95887458bf100d3a8e00e6edfdc8c6041
[]
no_license
ivanfdaza/tribunaleclesiasticoIIS
9639fc66a2c99baa45b8276f4a1e035bdf294e2e
acb164ab8464b71d0461acf03bdd5e3386b57893
refs/heads/master
2022-11-21T10:32:14.925326
2020-07-23T16:21:26
2020-07-23T16:21:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from django.contrib import admin # Register your models here. from apps.ciudad.models import Ciudad, Departamento admin.site.register(Ciudad) admin.site.register(Departamento)
[ "you@example.com" ]
you@example.com
88be1a8dbca36a3704310ed5d08336575231773d
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_pragma263.py
bc6b11402b4ca6da63e2f0bf7495b508300d9153
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,624
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=15 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
0efe388f3e3a95551a15c6e5f3c3ac7d3ae444c5
b9062ed0431544160161a270fe669858c3ca9633
/blog/migrations/0003_auto_20191101_2319.py
f9b453d4abd8102f08dc12a51a8acc1e12851805
[]
no_license
sd8917/LearnDjango
350f73ed7077d0b3ac9aa2f1e0fd7d05f67faf05
87a9c6c5932f685a01ad6125faf81ac94a1fac5d
refs/heads/master
2022-12-03T18:18:13.770896
2019-11-05T06:35:32
2019-11-05T06:35:32
219,081,219
1
0
null
2022-11-22T04:36:24
2019-11-02T00:14:05
Python
UTF-8
Python
false
false
443
py
# Generated by Django 2.2.6 on 2019-11-01 17:49 import ckeditor_uploader.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20191101_1435'), ] operations = [ migrations.AlterField( model_name='blo...
[ "sudhanshuraj8917@gmail.com" ]
sudhanshuraj8917@gmail.com
d45b2df2ceb71ae350e9d6a317ee4e09741e503e
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_207/507.py
3881fca5b62b736452cde9286a5ba5618161c3b5
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,981
py
def validate(s): pass def solver(line): n,r,o,y,g,b,v = line t1 = b - o t2 = y - v t3 = r - g if t1 < 0 or t2 < 0 or t3 < 0: return "IMPOSSIBLE" if 0 in [t1,t2,t3]: if line[1:].count(0) == 4: L = [(r,'R'),(o,'O'),(y,'Y'),(g,'G'),(b,'B'),(v,'V')] ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
3a206f6d8e955b15bbd61988b40ea1f668583f18
8ef5a09d76a11c56963f18e6a08474a1a8bafe3c
/algorithm/dp_subset_sum.py
44580f16c302081909155ac156cefc69cf012378
[]
no_license
roiei/algo
32c4677649c7666db148f6183fbfbf66c8b1969f
ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec
refs/heads/master
2022-04-01T19:21:27.768675
2022-02-19T06:15:29
2022-02-19T06:15:29
169,021,154
0
0
null
null
null
null
UTF-8
Python
false
false
1,898
py
nums = [34, 4, 12, 5, 2] target = 9 #target = 40 def dfs(nums, depth, n, target): if target == 0: return True if depth == n or target < 0: return False res = dfs(nums, depth + 1, n, target - nums[depth]), res += dfs(nums, depth + 1, n, target), return any(res) ...
[ "hyoukjea.son@hyundai.com" ]
hyoukjea.son@hyundai.com
832974b9068a90cd72f7987a17131faae3924d37
f3bd271bf00325881fb5b2533b9ef7f7448a75ec
/xcp2k/classes/_cell3.py
c1150112a0c843de3db8f2c0d137662bf75a7671
[]
no_license
obaica/xcp2k
7f99fc9d494859e16b9b0ea8e217b0493f4b2f59
6e15c2c95658f545102595dc1783f5e03a9e6916
refs/heads/master
2020-07-15T17:27:43.378835
2019-02-11T16:32:24
2019-02-11T16:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
from xcp2k.inputsection import InputSection from _cell_ref1 import _cell_ref1 class _cell3(InputSection): def __init__(self): InputSection.__init__(self) self.A = None self.B = None self.C = None self.Abc = None self.Alpha_beta_gamma = None self.Cell_file_na...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
9aff07ad32360b10ae281e93532a2f1af7a967f5
7826681647933249c8949c00238392a0128b4a18
/cosypose/simulator/__init__.py
6242dfa1c761870f2a85f43957247c13b7b53277
[ "MIT" ]
permissive
imankgoyal/cosypose
b35678a32a6491bb15d645bc867f4b2e49bee6d2
fa494447d72777f1d3bd5bd134d79e5db0526009
refs/heads/master
2022-12-09T11:18:23.188868
2020-08-31T15:34:02
2020-08-31T15:34:02
291,834,596
2
0
MIT
2020-08-31T22:06:12
2020-08-31T22:06:11
null
UTF-8
Python
false
false
173
py
from .body import Body from .camera import Camera from .base_scene import BaseScene from .caching import BodyCache, TextureCache from .textures import apply_random_textures
[ "labbe.yann1994@gmail.com" ]
labbe.yann1994@gmail.com
49254eb20c5905f20020b227a913eea9b9007358
457c673c8c8d704ec150322e4eeee2fde4f827ca
/Programming Basic/First_Steps_in_coding_lab/07_Projects_Creation.py
ccf04b1496f502d612f560496cd25f03a08b4d0e
[]
no_license
xMrShadyx/SoftUni
13c08d56108bf8b1ff56d17bb2a4b804381e0d4e
ce4adcd6e8425134d138fd8f4b6101d4eb1c520b
refs/heads/master
2023-08-02T03:10:16.205251
2021-06-20T05:52:15
2021-06-20T05:52:15
276,562,926
5
1
null
2021-09-22T19:35:25
2020-07-02T06:07:35
Python
UTF-8
Python
false
false
191
py
architect = input() amount_projects = int(input()) total_time = amount_projects * 3 print(f'The architect {architect} will need {total_time} hours to complete {amount_projects} project/s.')
[ "daredevil91138@gmail.com" ]
daredevil91138@gmail.com
98e60fc6389398e16d76d7de6e665ef79eac8947
dcc36a7744d657e15385803fcd13335685a595af
/quantdigger/demo/test_backtest.py
9500f1a4557b50deac1f9ee32fcf107612863f33
[]
no_license
timedcy/quantdigger
777c28ba96d7dba1cb491a634f46e3968f3232bb
bc492811c796caaad3801d379bb485c1986d4619
refs/heads/master
2021-01-22T01:27:52.102183
2015-11-08T04:35:37
2015-11-08T04:35:37
45,767,058
1
0
null
2015-11-08T04:36:13
2015-11-08T04:36:13
null
UTF-8
Python
false
false
2,362
py
# -*- coding: utf-8 -*- from quantdigger.engine.execute_unit import ExecuteUnit from quantdigger.indicators.common import MA, BOLL from quantdigger.engine.strategy import TradingStrategy from quantdigger.util import pcontract, stock from quantdigger.digger import deals import plotting #def average(series, n): #""...
[ "dingjie.wang@foxmail.com" ]
dingjie.wang@foxmail.com
03dde1a263827b35b7aaa86f9f7835c933b700cc
48f73b5b78da81c388d76d685ec47bb6387eefdd
/scrapeHackerrankCode/codes/find-point.py
fc6157b3e72153e83bf8e16e66b00a8c13227285
[]
no_license
abidkhan484/hacerrankScraping
ad0ceda6c86d321d98768b169d63ea1ee7ccd861
487bbf115117bd5c293298e77f15ae810a50b82d
refs/heads/master
2021-09-18T19:27:52.173164
2018-07-18T12:12:51
2018-07-18T12:12:51
111,005,462
2
1
null
null
null
null
UTF-8
Python
false
false
251
py
# Accepted # Python 3 def find_point(x1, y1, x2, y2): print((2*x2-x1), (2*y2-y1)) for _ in range(int(input().strip())): x1, y1, x2, y2 = input().split() x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2) find_point(x1, y1, x2, y2)
[ "abidkhan484@gmail.com" ]
abidkhan484@gmail.com
6924472770c9b64625e91f5425599c76f151c774
e3946d91dc5fe71989c2f4b6390232865fcb5d1b
/fjord/flags/spicedham_utils.py
2e87b27ba33d4e350010c6253dd663f313cda103
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
zeusintuivo/fjord
61b632fd6df0e1b3508e628fe4f682a937cc0244
3bd227004d369df1fdc39f06acff12ebc8f0fe34
refs/heads/master
2021-01-16T18:28:52.564638
2014-09-24T21:02:51
2014-09-24T21:02:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,166
py
import json import os import re import threading from spicedham import Spicedham from spicedham.backend import BaseBackend from fjord.flags.models import Store class FjordBackend(BaseBackend): def __init__(self, config): pass def reset(self): Store.objects.all().delete() def get_key(se...
[ "willkg@mozilla.com" ]
willkg@mozilla.com
e95625894d5cba62471ce44e67b02160ea805c8f
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/shangtai/codejamC.py
be3aad06742fb467f6074f6d0a440327d6d7dc65
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
999
py
T = int(raw_input()) N, J = map(int, raw_input().split()) def is_prime(n): if n == 2 or n == 3: return True if n < 2 or n%2 == 0: return False if n < 9: return True if n%3 == 0: return False r = int(n**0.5) f = 5 while f <= r: if n%f == 0: return False if n%(f+2) == 0: return False f +=6 re...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
ae5b5e91cf43266b95ffaeb5f1795e03a00655ff
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part003803.py
26d534cc630c79581554130b81c7f37de6f38777
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
5,094
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
2b2ecf4b17dd2b31fbfbf57f46f019b2b1eb04ec
c903382b1c2d170ca5a00a4482ee23be94da76d8
/quokka/core/admin/views.py
b7dff6308251262454ea8aa0e2499378eaebf24c
[ "MIT" ]
permissive
alyoung/quokka
63c74ff913fe3d3b5ebdef38d9d267b149a6c9c1
a38749379f01c01cc887838999efa364dea5de04
refs/heads/master
2021-01-17T22:56:34.760694
2013-11-22T21:42:50
2013-11-22T21:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,499
py
# Create customized index view class from flask import current_app from quokka.core.models import Content from quokka.utils.routing import expose from quokka.core.widgets import TextEditor, PrepopulatedText from .ajax import AjaxModelLoader from .models import BaseIndexView, BaseView, ModelAdmin, BaseContentAdmin cl...
[ "rochacbruno@gmail.com" ]
rochacbruno@gmail.com
5ba3eb2c99cb4886c0d71494e016a22abad98aee
acbe6bd6cefaf8b12070d7258dab30e4f7fcebed
/ui/style.py
c5b1d5ee83c7a5fb029f0f3becf8dba8c57a3b3b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RogueScholar/debreate
02c98c5a78d33041798410f0e3b99e80fda65d00
dfe9bcac7333a53082b3a2ae169806cf604d59f6
refs/heads/master
2023-06-07T11:49:03.821969
2023-04-28T02:14:25
2023-04-28T02:14:25
253,707,766
0
0
MIT
2023-05-28T15:24:17
2020-04-07T06:34:47
Python
UTF-8
Python
false
false
1,267
py
# ****************************************************** # * Copyright © 2016-2023 - Jordan Irwin (AntumDeluge) * # ****************************************************** # * This software is licensed under the MIT license. * # * See: LICENSE.txt for details. * # ********************************...
[ "antumdeluge@gmail.com" ]
antumdeluge@gmail.com
9a6666ffe7fd9c01862329091ec04e6fb5b1e21a
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/rna-transcription/a033dd3f296e4281ad7fae26e02d0a4d.py
612ab04228445c3976c52b87575abb7b15c6a2a3
[]
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
262
py
DNA_TO_RNA = { 'G' :'C', 'C' : 'G', 'T' : 'A', 'A' : 'U', } def to_rna(dna): rna = '' for c in dna: if c not in DNA_TO_RNA: raise ValueError("illegal nucleotide '%s' in dna" % c) rna = rna + DNA_TO_RNA[c] return rna
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
53a392751a75f85027707c09f1f615efa1879fc4
1705e97ef5613685e142e3f78a2057399b09858c
/Code/asiportal/asiapp/wsgi.py
d3acec3485332c8d95214dd8fcb36efc399cc96e
[]
no_license
FIU-SCIS-Senior-Projects/Academic-Success-Initiative---ASI-PantherCentric-1.0
0b956175efb031022ed32412195531c7f0c162c5
8ee64b58e2634384d5905defd3701a453b49b966
refs/heads/master
2022-11-24T00:07:52.458186
2017-08-02T01:36:32
2017-08-02T01:36:32
91,715,982
0
0
null
2022-11-22T01:31:04
2017-05-18T16:37:10
SQLPL
UTF-8
Python
false
false
389
py
""" WSGI config for asiapp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
[ "jakedlopez@gmail.com" ]
jakedlopez@gmail.com
b31c59a0010e457b6542772a973b3e6da56bfc29
9cfd73a998d842d767071b26cefe0eb8efe39e90
/learning_rates.py
3b8df2efc6fd82922d321b26d58e4bf9e17144c4
[]
no_license
boyko11/LogReg-DLAI
829e9b4e6b8dd23d6f3b5f0f68550d83c080104d
d222f6501ec4f0ea427f42706bb98c28c832fdb8
refs/heads/master
2022-11-23T19:26:10.052482
2020-08-02T17:57:24
2020-08-02T17:57:24
284,513,600
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
from logistic_regression import model import data_service import matplotlib.pyplot as plt import numpy as np train_set_x, train_set_y, test_set_x, test_set_y, _ = data_service.load_and_preprocess_data() learning_rates = [0.01, 0.001, 0.0001] models = {} for i in learning_rates: print ("learning rate is: " + str(i)...
[ "boyko11@gmail.com" ]
boyko11@gmail.com
aa3d3d73ed130154ffeca62917f6d42d463b92b8
3eb99709809a493c46a79171ef9774aa4261b59d
/脚本/llianli/cfapp_ei.py
0ca3d8cf2ee5e729d313f8426799f897d4cd36f7
[]
no_license
bingwin/tencent
c831a5b344f597a06c7a7b179d4f67d668198c90
ea5dc5ff398d85cfdf4df056dc8b4064e66fb5fb
refs/heads/master
2020-07-28T21:44:00.281933
2016-05-28T03:21:31
2016-05-28T03:21:31
209,548,176
1
0
null
2019-09-19T12:29:21
2019-09-19T12:29:21
null
UTF-8
Python
false
false
6,718
py
#!/usr/bin/env python #-*- coding: utf-8 -*- # ****************************************************************************** # 程序名称: cfapp_ei.py # 功能描述: cfapp每日访问的事件n数目 # 输入参数: yyyymmdd 例如:20151208 # 目标表名: # 数据源表: teg_mta_intf::ieg_lol # 创建人名: llianli # 创建日期: 2015-12-08 # 版本说明: v1.0...
[ "996346098@qq.com" ]
996346098@qq.com
967f4507e9be93893f9db9e8ab04d072e7c1c49c
16ac02b8f427bd622af1564f1236e4913ed63521
/Codes/Version 1.6/force_raised_gaussian.py
003e679b1563108f7216fab5e0a3d0cd04424273
[ "MIT" ]
permissive
gharib85/Brownian-dynamics-in-a-time-varying-force-field
20660665747310e1201e8ca7d404acc15ec7a3bd
1dce268fcc4f27e066be0ec0b511178cbc1437c5
refs/heads/main
2023-08-16T03:47:51.957137
2021-10-23T19:09:50
2021-10-23T19:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,593
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on March 6, 2021 @author: asif """ import numpy as np import pylab as py import matplotlib as plt ro = 2e-6 tfinal = 12 xrange_limit = 30e-6 # Max and min of x axis range for plotting animation zlow_limit = -10e-6 zhigh_limit = 30e-6 r_active = 0 n_o...
[ "39745895+zaman13@users.noreply.github.com" ]
39745895+zaman13@users.noreply.github.com
2a499fd7e7b8c5bbf2617bae35a047e99b8d6b08
637ec65429e817c6c12fc66bad299a9ff831ca3c
/supplier_management/supplier_management/doctype/supplier_product_info/supplier_product_info.py
a6f4b09f223a966bb66a2fb4d123987e1b8b7488
[ "MIT" ]
permissive
ashish-greycube/supplier_management
292ca4d956fdc8659e630ec9a8280d0b77037f25
c6f32c383f3d6e9a459903652a42341beb7f8482
refs/heads/master
2020-09-02T22:05:23.001424
2020-01-08T07:03:05
2020-01-08T07:03:05
219,316,260
0
1
null
null
null
null
UTF-8
Python
false
false
277
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, GreyCube Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class SupplierProductInfo(Document): pass
[ "mr.ashish.shah@gmail.com" ]
mr.ashish.shah@gmail.com
698615984a24120282d332cfef57d98cdf075fb5
0c325cf7a68ef51067ed8db566d525a20de5b635
/python/xlrd_and_xlwt/xlrd_test.py
ff5eb4eb3632e68644309cd097ce90b78ddb3c9c
[]
no_license
alinzel/NOTES
2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241
3e0594641a605580e920d0b08a251fbc99f34e2f
refs/heads/master
2023-01-08T22:48:30.762625
2020-01-17T09:14:47
2020-01-17T09:14:47
175,339,492
0
0
null
2022-12-27T15:01:19
2019-03-13T03:28:08
HTML
UTF-8
Python
false
false
3,865
py
# TODO xlrd--一个从excel文件中读取和格式化数据信息的库,无论是xls还是xlsx文件 import xlrd # 打开excel文件,返回实例对象-<xlrd.book.Book object at 0x000001ED41180898> excel = xlrd.open_workbook(r"./excel/2017年人员电子档案.xlsx") #r-->保持原始字符串,不转义 # 获取sheet的名字,返回名字列表-['2017-6-22', '测试'] sheet_names = excel.sheet_names() # 获取sheet对象,返回对象列表-[<xlrd.sheet.Sheet obj...
[ "944951481@qq.com" ]
944951481@qq.com
65f5d5d7db31e03fff05009390b6ac2b06cc7f29
5d58fa1d54855f18bad5688de4459af8d461c0ac
/plugins/callback/yaml.py
40bc0191f254fdf8b7a04ea6c86e06ff50051353
[]
no_license
nasirhm/general
b3b52f6e31be3de8bae0414da620d8cdbb2c2366
5ccd89933297f5587dae5cd114e24ea5c54f7ce5
refs/heads/master
2021-01-04T07:03:21.121102
2020-02-13T20:59:56
2020-02-13T20:59:56
240,440,187
1
0
null
2020-02-14T06:08:14
2020-02-14T06:08:13
null
UTF-8
Python
false
false
4,855
py
# (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' callback: yaml type: stdout short_description: ...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
233d0ec4819d640232d4c681a2454a1e0e5966e1
23d25497d30accc7125f6068ad7c55ebcbea0160
/Python/10828.py
a809aac64a520ee155f389f3eeaf52107078f583
[]
no_license
ParkJeongseop/Algorithm
460689e064529d65e8612493a5d338305ec6311e
388d092ee8b07b7ea76e720053c782790563515b
refs/heads/master
2023-08-30T23:19:46.029510
2023-08-09T11:08:56
2023-08-09T11:08:56
149,557,160
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
import sys; input = lambda:sys.stdin.readline().rstrip() n = int(input()) a = [] for _ in range(n): cmd = input().split() if cmd[0] == 'push': a.append(cmd[1]) elif cmd[0] == 'pop': if a: print(a.pop()) else: print(-1) elif cmd[0] == 'size': print...
[ "parkjeongseop@parkjeongseop.com" ]
parkjeongseop@parkjeongseop.com
11754e433ee8f5985f0ae11f9bae4e8dc50213e1
6e8f2e28479566dbaa338300b2d61f784ff83f97
/.history/code/tensorboard_utils_20210411113117.py
69315f5c5b16b26260ed37152698eb1eba53cc5e
[]
no_license
eeng5/CV-final-project
55a7d736f75602858233ebc380c4e1d67ab2b866
580e28819560b86f6974959efb1d31ef138198fc
refs/heads/main
2023-04-09T21:28:21.531293
2021-04-21T19:57:22
2021-04-21T19:57:22
352,703,734
0
0
null
null
null
null
UTF-8
Python
false
false
7,424
py
""" Project 4 - CNNs CS1430 - Computer Vision Brown University """ import io import os import re import sklearn.metrics import numpy as np import tensorflow as tf from matplotlib import pyplot as plt import hyperparameters as hp def plot_to_image(figure): """ Converts a pyplot figure to an image tensor. """ ...
[ "natalie_rshaidat@brown.edu" ]
natalie_rshaidat@brown.edu
4fbe70fbf88650d84fb87c57199e97908cac72f3
1bf7673846aedb5beed2d065f971f2985f70df1b
/lib/stashcache_tester/output/githubOutput.py
e82f08f5b95658cef25fec44fc13f3b8251cb8d3
[]
no_license
StashCache/stashcache-tester
31ee90945186821f9bb0979c7bee942037ae05e7
5031d294050e9c6419c360e804654850efcfa32c
refs/heads/master
2020-12-25T14:12:41.392207
2017-02-23T17:55:51
2017-02-23T17:55:51
40,491,284
0
2
null
2017-02-23T17:55:52
2015-08-10T15:51:17
Python
UTF-8
Python
false
false
6,685
py
import logging import json import time import shutil import os import sys from tempfile import NamedTemporaryFile from stashcache_tester.output.generalOutput import GeneralOutput from stashcache_tester.util.Configuration import get_option from stashcache_tester.util.ExternalCommands import RunExternal class GithubO...
[ "djw8605@gmail.com" ]
djw8605@gmail.com
5c49e0ec04fe15cf08be854625cc496120e28c5f
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/keyboard/keyboard/_keyboard_event.pyi
9c511fdccf59bc88a0fc4b133c00ab9036b835c7
[ "MIT", "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
827
pyi
from typing_extensions import Literal from ._canonical_names import canonical_names as canonical_names, normalize_name as normalize_name KEY_DOWN: Literal["down"] KEY_UP: Literal["up"] class KeyboardEvent: event_type: Literal["down", "up"] | None scan_code: int name: str | None time: float | None ...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
cce9c2c02347ccae443d5f1e8dbebf712c264d0e
73e277935ef28fd05935c93a3f155c9cc6dc6de7
/ctf/crypto/quad_residue/Cipolla.py
e07aed34561ff03170436108e72f4b49b2beca9e
[]
no_license
ohmygodlin/snippet
5ffe6b8fec99abd67dd5d7f819520e28112eae4b
21d02015492fb441b2ad93b4a455dc4a145f9913
refs/heads/master
2023-01-08T14:59:38.618791
2022-12-28T11:23:23
2022-12-28T11:23:23
190,989,347
1
0
null
null
null
null
UTF-8
Python
false
false
3,165
py
#python3 #https://learnblockchain.cn/article/1520 def square_root_of_quadratic_residue(n, modulo): """Square root of quadratic residue Solve the square root of quadratic residue using Cipolla's algorithm with Legendre symbol Returns: int -- if n is a quadratic residue, retur...
[ "laitaizong@gmail.com" ]
laitaizong@gmail.com
4144585f59160e7268a01a9b954689f44dcc5460
44a6e88da453a2e368b014e403843b0c955f21f4
/utils/make_mock_solid_dir.py
49e00504ae9b25d4b9a7a94ae096e077cf8d7ffc
[ "Artistic-2.0" ]
permissive
golharam/genomics
a26b1f9366203ec059cc2e49281909bfc16e6ab4
ca0c7c239b0f04353e2f2fa897db9c24a1211596
refs/heads/master
2020-08-06T10:28:21.604129
2019-09-27T07:51:41
2019-09-27T07:51:41
212,943,378
0
0
Artistic-2.0
2019-10-05T04:25:24
2019-10-05T04:25:23
null
UTF-8
Python
false
false
1,728
py
#!/usr/bin/env python # # make_mock_solid_dir.py: make mock SOLiD directory for test purposes # Copyright (C) University of Manchester 2011 Peter Briggs # ######################################################################## # # make_mock_solid_dir.py # #######################################################...
[ "peter.briggs@manchester.ac.uk" ]
peter.briggs@manchester.ac.uk
6f1f8161ba95d3088ba7f50b93a121664fb1a322
57abd17391c6ef691509dae512c102f6635dab9b
/tensorflow_datasets/scripts/create_new_dataset.py
6e57f703111ebe42c66b6fd4f7d3415e908e0bac
[ "Apache-2.0" ]
permissive
SinghKislay/datasets
434e50eb3b8584849192f3cabe7305429cc62363
bc09dd59826975f57c861da4bea23fa5d63d61cf
refs/heads/master
2020-05-02T22:27:34.771036
2019-04-10T18:14:41
2019-04-10T18:14:41
176,097,632
0
0
Apache-2.0
2019-03-17T12:25:56
2019-03-17T12:25:55
null
UTF-8
Python
false
false
6,919
py
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets Authors. # # 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 appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
9442061d1c5d28bd09a835998a2e53cfa07e48e2
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/meta/EventBoardsAwardsOverlayMeta.py
219372a39b6b37e617c2e86dffba37acfa9ed26a
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
736
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/EventBoardsAwardsOverlayMeta.py from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent class EventBoardsAwardsOverlayMeta(BaseDAAPIComponent): def changeFilter(self, id...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
fe0bd2ceaf4493e021a319b6698c83f78f07f01e
dce2e3b11804fdb141feaa48299fa8cd751f0e5d
/2.两数相加.py
ad357aa9fedb490291ad6f56660209fd8858a61c
[]
permissive
Cosmos-Break/leetcode
bf056efb6f3eb6448df7fb3fc4869992a3e7eb48
9f5f3d24e35b0a482ed40594ea665e9068324dcc
refs/heads/main
2023-06-26T04:29:25.135826
2021-07-19T12:29:29
2021-07-19T12:29:29
293,397,157
0
0
MIT
2020-09-07T01:55:39
2020-09-07T01:55:38
null
UTF-8
Python
false
false
785
py
# # @lc app=leetcode.cn id=2 lang=python3 # # [2] 两数相加 # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: head = ListNode(l...
[ "438854233@qq.com" ]
438854233@qq.com
cffddf3d75c1e1ce6fff97c1711d232a66a1205a
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/exercises/1901100012/d07/mymodule/stats_word.py
02ebfde584c7e1c929c260f80257d92f7a50d67b
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
2,934
py
en_text=''' The Zen of Python,by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although ...
[ "40155646+seven-tears@users.noreply.github.com" ]
40155646+seven-tears@users.noreply.github.com
78ce0f7dcfae56d27b83005282d451663d29798d
a11d83fced34854664fac72e18d48fde6aa967e4
/0x02-python-import_modules/102-magic_calculation.py
0162921f0da03b752aab68a8227e86622fb4338e
[]
no_license
afarizap/holbertonschool-higher_level_programming
ffe0bf1440726c952f4dd28b908eabc4ccb5225b
ad39e58f9cb20cba4b9e2c14075f216097588f47
refs/heads/master
2023-03-30T15:39:35.184484
2021-03-22T22:55:24
2021-03-22T22:55:24
259,437,040
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
#!/usr/bin/python3 def magic_calculation(a, b): from magic_calculation_102 import add, sub if a < b: c = add(a, b) for i in range(4, 6): c = add(c, i) return c return sub(a, b) if __name__ == '__main__': import dis dis.dis(magic_calculation)
[ "afarizap@gmail.com" ]
afarizap@gmail.com
038a56b6976ac7b4e464d15987f277155fce3956
09cead98874a64d55b9e5c84b369d3523c890442
/py200703_python1/day13_py200814/output_1.py
5599e7b1ca607505095d6c9b8c9ce7737df9672c
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
""" output format() output formatting with placeholders string.format() string template placeholder """ x = 1 + 3*4 y = 2 + 5*6 # not recommended print('x=', x, ',', 'y=', y) # recommended print("x={} , y={}") print("x={} , y={}".format(x, y)) print("x={},y={}".format(x, y)) print("x={}, y={}".format(x, y))
[ "lada314@gmail.com" ]
lada314@gmail.com
82aed50d228c4f45ff91dae2b61a13a01bd7bd66
87eed57b13eba5fc10756e705821a2fc861a198e
/bfg9000/platforms/host.py
65e15de4fb2bd1e765b040415f4de4a8f23600cb
[ "BSD-3-Clause" ]
permissive
jimporter/bfg9000
379ac2d9debb822defacc6c5e31d7b65468f0973
876966cc82b5520a7bddf88c2a57716c5579b5ba
refs/heads/master
2023-08-04T06:29:44.669098
2023-08-01T03:13:46
2023-08-01T03:13:46
31,297,691
87
21
BSD-3-Clause
2020-08-06T06:38:10
2015-02-25T04:47:12
Python
UTF-8
Python
false
false
334
py
from .core import _get_platform_info, _platform_info, Platform class HostPlatform(Platform): pass def platform_info(*args, **kwargs): return _platform_info('host', *args, **kwargs) def from_json(value): return _get_platform_info('host', value['genus'], value['species'], v...
[ "jporter@mozilla.com" ]
jporter@mozilla.com
2f23cbd42dee001993bc154511cf225da4760ce6
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/caaa5d634f104a58a218ff663dfc926195e3acaf-<test_notify_sentry_app_and_plugin_with_same_slug>-bug.py
2bb03ab90a78aded197d894082a935887a555e3a
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
def test_notify_sentry_app_and_plugin_with_same_slug(self): event = self.get_event() self.create_sentry_app(organization=event.organization, name='Notify', is_alertable=True) plugin = MagicMock() plugin.is_enabled.return_value = True plugin.should_notify.return_value = True rule = self.get_rule(...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
2fedba0cbdc8a5b29280723b6940c2f71a7bda36
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03546/s442051818.py
0f991e8c96376c793a2bab1a38286d3a650be9e2
[]
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
324
py
h, _ = map(int, input().split()) r = range(10) c = [[int(i) for i in input().split()] for _ in r] for k in r: for i in r: for j in r: c[i][j] = min(c[i][j], c[i][k] + c[k][j]) else: a = [[int(i) for i in input().split()] for _ in range(h)] print(sum(c[i][1] for i in sum(a, []) if i != ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
27c6f04530538b5ac8c71908ab91361f20ecc16b
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4013/codes/1671_1079.py
c3bb6e4c00135c7fac261439e8a41a85fc6fb9ce
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
627
py
# Ao testar sua solução, não se limite ao caso de exemplo. from math import * # Leitura dos lados do triangulo a, b, and c a = float(input ("Lado 1: ")) b = float(input ("Lado 2: ")) c = float(input ("Lado 3: ")) print("Entradas:", a, ",", b, ",", c) # Testa se pelo menos uma das entradas eh negativa if ((a > 0) o...
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br