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
e6b58e96fe19f7fa179d9b9171e094bdc16c019b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04012/s970832368.py
c7840201312991083417648a32c75345c801a6aa
[]
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
165
py
s = input() check = 0 flag = True for i in range(97,123): check =s.count(chr(i)) if check % 2 == 1 : flag = False if flag: print("Yes") else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
94b8ca4b415bdc70d33447a12a4fcf48e709706b
cbcf71723d9e2ddee84ebc17bdfafe6eadd8aa73
/backup/courses/migrations/0002_auto_20180330_2003.py
1307dcd3b5898c9790908e19defb5f07b651bedf
[]
no_license
tanveerahmad1517/coursewebsit
641ea451597ee910cd4c7399d0069b9c1f195ef6
f518252cd90aeca188cc9a75c8e554ffcf395254
refs/heads/master
2020-03-10T00:51:18.024567
2018-11-07T14:47:45
2018-11-07T14:47:45
129,093,030
1
0
null
null
null
null
UTF-8
Python
false
false
521
py
# Generated by Django 2.0 on 2018-03-30 15:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('courses', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "tanveerobjects@gmail.com" ]
tanveerobjects@gmail.com
bca551e720e8bf05673e6ec94d184ff22c6360db
f677ec7dafd40b4d1e9316275372f80a2d2a473e
/lampost/mud/action.py
9a236ed6094e4d93274946a428f2d4d611acf9e6
[ "MIT" ]
permissive
cookiezeater/Lampost-Mud
f5ac08e4bda5e4cdfa53f8147c5975fd23137c60
6f6adf0bdf5c6334484b9dc23e9e3d235e5df155
refs/heads/master
2021-01-15T23:06:30.678062
2015-09-04T21:19:42
2015-09-04T21:19:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
from collections import defaultdict from lampost.context import resource from lampost.gameops.action import make_action, convert_verbs, ActionError resource.m_requires(__name__, 'log') _mud_actions = {} resource.register('mud_actions', _mud_actions) imm_actions = set() def mud_action(verbs, msg_class=None, **kwar...
[ "genzgd@gmail.com" ]
genzgd@gmail.com
0865b23f84b6c6bbcd0c3dfd225ae579f6bbcd40
26a432237152b92c0547f5c63a1e035920fd7582
/blog/models.py
35d0406b8ee7dfcbe2370c0ef2694e9f4596b996
[]
no_license
kijames7/DjangoBlog
c1164eedaf7de7cb2fcc3c06a89a141d6a9bde39
d6525566f331d27b03c9395aa669032cc408f7de
refs/heads/master
2021-01-19T19:44:36.225008
2016-04-01T07:53:24
2016-04-01T07:53:24
55,214,272
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
from django.db import models # Create your models here. class Author(models.Model): name = models.CharField(max_length=50) email = models.EmailField(unique=True) bio = models.TextField() def __str__(self): return self.name class Category(models.Model): cat_name = models.CharField('category name',max_length=50...
[ "james@Jamess-MacBook-Pro.local" ]
james@Jamess-MacBook-Pro.local
1c228b89a3c6afe2a800d1307ceca5feab9e6c47
3a8c2bd3b8df9054ed0c26f48616209859faa719
/Challenges/memorizePhoneNumber.py
a236e27e9f8438c0b6733f6fba0a318e1ca8380e
[]
no_license
AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges
684f1ca2f9ee3c49d0b17ecb1e80707efe305c82
98fb752c574a6ec5961a274e41a44275b56da194
refs/heads/master
2023-09-01T23:58:15.514231
2021-09-10T12:42:03
2021-09-10T12:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,208
py
""" You are given a phone number as an array of n digits. To help you memorize the number, you want to divide it into groups of contiguous digits. Each group must contain exactly 2 or 3 digits. There are 3 kinds of groups: Excellent: A group that contains only the same digits. For example, 000 or 77. Good: A group of ...
[ "bennyhwanggggg@users.noreply.github.com" ]
bennyhwanggggg@users.noreply.github.com
3dc803c89b593500cc45937f31676e0ed30e8c86
9b113d2f759432c147ba880f04ff515c6739d2ac
/thunder/accounts/migrations/0002_user_is_staff.py
7bfaae1095ff2d5e5ac50a7f1c9ca31afe459922
[ "Apache-2.0" ]
permissive
liuansen/django-demo
eec88fc4b31ff960463b29746988ae12c9ef2bdd
7f13e723a7ec1f0689e40de67cc6a6b308f44ba9
refs/heads/master
2022-11-26T17:38:09.650913
2019-06-17T07:39:27
2019-06-17T07:39:27
192,091,184
1
0
Apache-2.0
2022-11-22T00:30:48
2019-06-15T14:59:30
Python
UTF-8
Python
false
false
561
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2019-01-07 07:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "616833686@qq.com" ]
616833686@qq.com
7f68a729966f3d085ba517c4e657499511e876b9
9c016161968de87315f1d5c7b7762194bd5e577b
/uproot_methods/classes/TVector2.py
75ec5dc7510ca431af9a5bde7c64c5da194470c1
[ "BSD-3-Clause" ]
permissive
kratsg/uproot-methods
ee285f899f743c4c214998b34ecc6b0f12d31e4e
ee773ce3d5e6aef401dc42d282e6296c3b6a42d0
refs/heads/master
2020-03-29T04:08:37.130974
2018-09-19T22:14:14
2018-09-19T22:14:14
149,517,357
0
0
BSD-3-Clause
2018-09-19T22:04:44
2018-09-19T22:04:43
null
UTF-8
Python
false
false
6,724
py
#!/usr/bin/env python # Copyright (c) 2018, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list ...
[ "jpivarski@gmail.com" ]
jpivarski@gmail.com
48693be5723d40ee6ade1a3e36e0bc456d8743aa
7507968c068ac84321f528d475b213fe3699c479
/app/scripts/set-jupyter-password.py
b28787f3425b70f98cd6af5699cce52d64daf30e
[ "Apache-2.0" ]
permissive
slifty/esper
4f734b453db1cc9d8b9c9df815447efc099065af
12e9c43a4bc11547073c04583cc4163409d127f9
refs/heads/master
2021-08-29T23:10:50.581417
2017-12-15T07:39:15
2017-12-15T07:39:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
import pexpect import os if 'JUPYTER_PASSWORD' not in os.environ: exit() JUPYTER_DIR = '/root/.jupyter' if not os.path.isdir(JUPYTER_DIR): os.mkdir(JUPYTER_DIR) p = pexpect.spawn('jupyter notebook password') p.expect('Enter password: ') p.sendline(os.environ['JUPYTER_PASSWORD']) p.sendline(os.environ['JUPYTE...
[ "wcrichto@cs.stanford.edu" ]
wcrichto@cs.stanford.edu
48b3699c37ed955959b9eb823a7520bb10faf1c5
7c188319690472dfec23d8fd78c979c1f291c70c
/coincidence_calculation_dag.py
c8ed221edd45c1fbd6278b1a88e1290052a95100
[]
no_license
bhokansonfasig/pycondor_scripts
705c79c4ad80582ae20a575192c347823ad6baa4
c85a3e0497cc824866a4fe7c32016a2d276d8759
refs/heads/master
2021-01-09T05:26:57.053873
2020-11-18T23:35:52
2020-11-18T23:35:52
80,770,069
0
0
null
null
null
null
UTF-8
Python
false
false
3,980
py
#! /usr/bin/env python # # coincidence_calculation_dag.py # Script for submitting many coincidence_calculator scripts to HTCondor in a dagman # # # Ben Hokanson-Fasig # Created 03/11/18 # Last edit 03/11/18 # from __future__ import division, print_function # Standard libraries import argparse import os.path # Cus...
[ "bhokansonfasig@gmail.com" ]
bhokansonfasig@gmail.com
428c92868d4e1a7b4335596b00b796c1b7ddeb20
1603f7bdaf8d5e8ba611598ee928e07eb2b2d1c0
/IT-Lab/assignment-4/codes/3.py
0ed47e919fe6ff8a42b25f07a843f13275dfb80f
[]
no_license
bawilliams3/college-assignments
7105aa8f427288eb74f1cc98efddf2010b27f04f
0ca732c46bdd6e7efe672b91f5df864669ab4766
refs/heads/master
2023-02-10T19:39:03.000975
2021-01-06T10:01:29
2021-01-06T10:06:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
def init(str): a = str[0].upper() for i in range(1, len(str)): if str[i] == " ": print(a, str[i + 1].upper()) str = "Ayush Dubey" init(str)
[ "ayushdubey70@gmail.com" ]
ayushdubey70@gmail.com
ec2cf3c5de47ed3d15a2e35ce709010a06765dc6
bc441bb06b8948288f110af63feda4e798f30225
/metadata_center_sdk/model/metadata_center/stream_metric_states_pb2.pyi
6474aa7019ab29823cb02ed09ca5ff199e2a6073
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
2,411
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
0fbb63bd4a8e6be728510d63e015bbe22888c888
d5f75adf5603927396bdecf3e4afae292143ddf9
/python/paddle/fluid/tests/unittests/auto_parallel/test_comm_cost.py
215385787880c3f6d92f2e63fc47651a0bc5f8f5
[ "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,973
py
# Copyright (c) 2022 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
04dcad9ab574e7c0be75f598f89e4979af93b0ff
a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f
/python3/module/cvx/dcp/attribute.py
040bb7a46b3bcdb696f58232b0e9598ede73246d
[]
no_license
jk983294/CommonScript
f07acf603611b4691b176aa4a02791ef7d4d9370
774bcbbae9c146f37312c771c9e867fb93a0c452
refs/heads/master
2023-08-21T17:50:19.036159
2023-08-16T00:22:03
2023-08-16T00:22:03
42,732,160
5
0
null
null
null
null
UTF-8
Python
false
false
366
py
import cvxpy as cp import numpy # attribute X = cp.Variable((5, 4)) A = numpy.ones((3, 5)) expression = A * X print("dimensions of X:", X.shape) # (5, 4) print("size of X:", X.size) # 20 print("number of dimensions:", X.ndim) # 2 print("dimensions of sum(X):", cp.sum(X).shape) # () print("dimens...
[ "jk983294@gmail.com" ]
jk983294@gmail.com
df3aa83d02013449cd4858e8e57a2e1999212577
8fe79b2f661a49a03a0d5abd929fd4faa0f53bea
/laboratory7/Controller.py
8c07d11994a9bd95b227ffb6a06df312650c623e
[]
no_license
VasilicaMoldovan/AI
03a58e28953ce6942ca141064412a9bcc4d4728c
6acaf44c9fbd5f419411d85727bc0d8b480118ab
refs/heads/master
2021-04-08T02:32:43.858389
2020-12-01T16:08:10
2020-12-01T16:08:10
248,730,402
0
0
null
null
null
null
UTF-8
Python
false
false
2,697
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 15 09:36:30 2020 @author: Vasilica """ from math import sqrt, isnan from Problem import Problem import numpy as np class Controller: def __init__(self, problem): self.__problem = problem def getError(self, actual, predicted): sum_error = 0....
[ "mvie2572@scs.ubbcluj.ro" ]
mvie2572@scs.ubbcluj.ro
7be19747bc6760b487b84fc6ce67e19b93d4099b
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5646553574277120_0/Python/cpu4500/denom.py
92b0e5b8342f61cccc3e77f445509aa61a846998
[]
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
1,397
py
import numpy as np def sum_coins(b, coins): s = 0 for i in xrange(len(coins)): if b[i] == '1': s += coins[i] return s def mark_denoms(num, coins, v): lenc = len(coins) lim = pow(2, lenc) for n in xrange(1, lim): b = bin(n)[2:][::-1] # pad with zeros b += "0" * (lenc - len(b)) idx = sum_coins(b, c...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
ab4a09f3c25175e4ee9f123e8f04d8198432f0a4
9cc76b1b1dd0064ab6613cbca6ce93bc179db355
/ros_ws/build/learning_ros_dependencies/moveit_msgs/catkin_generated/pkg.installspace.context.pc.py
fe118ef47311dfe0c0ea481c13ace3f1d432a392
[]
no_license
ABCaps35/learning_ros_ready_ws
1131c32b2ecadffa8dd186c9ebcfdba7284f30ad
1aa9c512d5006584e8bc84101a715e16a222a47d
refs/heads/main
2023-04-03T20:32:58.671255
2021-04-13T23:41:13
2021-04-13T23:41:13
357,715,306
1
0
null
null
null
null
UTF-8
Python
false
false
544
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;actionlib_msgs;sensor_msgs;geometry_msgs;trajectory_msgs;shape_msgs;object_recognit...
[ "acapelli345@gmail.com" ]
acapelli345@gmail.com
42a452aa8e550ba8b9b5dd0c1a73a54ec48e22b1
768058e7f347231e06a28879922690c0b6870ed4
/venv/lib/python3.7/site-packages/numba/core/registry.py
4b3626d29d284a53c046c5f95484133f038f026a
[]
no_license
jciech/HeisenbergSpinChains
58b4238281d8c158b11c6c22dd0da82025fd7284
e43942bbd09f6675e7e2ff277f8930dc0518d08e
refs/heads/master
2022-12-18T08:04:08.052966
2020-09-29T12:55:00
2020-09-29T12:55:00
258,476,448
0
0
null
null
null
null
UTF-8
Python
false
false
2,915
py
import contextlib from numba.core.descriptors import TargetDescriptor from numba.core import utils, typing, dispatcher, cpu # ----------------------------------------------------------------------------- # Default CPU target descriptors class _NestedContext(object): _typing_context = None _target_context = ...
[ "jan@multiply.ai" ]
jan@multiply.ai
da2351dd70ab58ebc18d80a0f77cde681fe82d54
dba522d0d9f1677672af03c81a0118565158c659
/Net/LineConnect.py
fdc0cfb6e99f30cf3fa115c24a8c254960ede875
[]
no_license
fossabot/LineAlpha-Full-Ver
c6fefbf0d1d69b744c2913e0e1fd51ade5f931d5
cabe9ab158d358ddb92195855ff07c7d483c6c20
refs/heads/master
2022-12-18T07:44:02.743358
2020-09-14T12:31:57
2020-09-14T12:31:57
295,410,125
0
0
null
2020-09-14T12:31:45
2020-09-14T12:31:44
null
UTF-8
Python
false
false
4,229
py
# -*- coding: utf-8 -*- import json import rsa from ..Gen import TalkService from ..Gen.ttypes import * from .LineServer import url from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from .LineTransport import LineTransport from ..Api.LineCallback import LineCallback ...
[ "noreply@github.com" ]
fossabot.noreply@github.com
aa34e6c6aa8371efa8bb6814efb0a76d2c5b9b27
a86293a2033c06410aa8ed19bcbce8ca55ea3c55
/src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/attribute_search_configuration_py3.py
8582fe1585becb208318262b3fd766a56ec232ce
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
ramotheonly/Dynamics365-CustomerInsights-Client-Libraries
a3ca28aa78d2b5509e65d9895ff4a0d42d05f611
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
refs/heads/main
2023-08-02T08:09:04.063030
2021-09-28T22:42:15
2021-09-28T22:42:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
[ "michaelajohnston@mac.com" ]
michaelajohnston@mac.com
d9d364c470cfcfcc8030af94aa94f4c8382d4e56
48a522b031d45193985ba71e313e8560d9b191f1
/baekjoon/python/8870.py
7369728bd27be2099a06b95321854fe065090f66
[]
no_license
dydwnsekd/coding_test
beabda0d0aeec3256e513e9e0d23b43debff7fb3
4b2b4878408558239bae7146bb4f37888cd5b556
refs/heads/master
2023-09-04T12:37:03.540461
2023-09-03T15:58:33
2023-09-03T15:58:33
162,253,096
4
1
null
null
null
null
UTF-8
Python
false
false
191
py
#TODO import sys n = int(sys.stdin.readline()) ret = 0 for s in range(1, n+1): for k in range(s, n+1): for i in range(k, n+1): ret = (ret+s*k//i) % 2010 print(ret)
[ "dydwnsekd123@gmail.com" ]
dydwnsekd123@gmail.com
d3d7c547ede2482c2ad59dc6e66d5e9a72b12c2e
20eee94bbdab84536d6308c6c1e46dd1d85ce1a5
/variable_scope_test.py
3a1d90cf3049cef36a29069078817192aeca23b2
[]
no_license
hccho2/hccho2FirstGitProject
d73fbfd4332c3d81f449e7506695435a0e739e80
fc454f210de6dbd93d047f3c263089a90690715c
refs/heads/master
2023-08-30T03:05:54.533544
2023-08-28T01:35:04
2023-08-28T01:35:04
87,028,484
7
1
null
null
null
null
UTF-8
Python
false
false
429
py
# -*- coding: utf-8 -*- import numpy as np import skimage.io as io import matplotlib.pyplot as plt import tensorflow as tf tf.reset_default_graph() def G(name,input): with tf.variable_scope(name,reuse=tf.AUTO_REUSE): out = tf.layers.dense(input,units=10) return out x1 = tf.placeholder(tf.f...
[ "noreply@github.com" ]
hccho2.noreply@github.com
dab240af6adc8f79725bd46461a80c07b8f8214a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02850/s384836888.py
f3481ff2085aa579f1d2e4d638166132921e37e8
[]
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
857
py
import sys input = sys.stdin.readline sys.setrecursionlimit(2147483647) class Edge: def __init__(self, to, id): self.to = to self.id = id N = int(input()) graph = {} ans = [0] * (N-1) def dfs(v, c=-1, p=-1): global graph, ans k = 1 for edge in graph[v]: nv = edge.to if nv...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c66c3d810bab917c1f7f9dc7040a59b37b36317c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03687/s591338614.py
db864d6db120976b763aeba88c36051e35621fe4
[]
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
693
py
def myAnswer(s:list) -> int: setS = set(s) if(len(setS) == 1): return 0 ans = 10**9 while len(setS) != 0: target = setS.pop() counter = 0 tmp = s[:] while True: pre = tmp.pop(0) N = len(tmp) for i in range(N): now = tmp.pop(0) if(pre...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1f50dd9939181f3d765b88857dec6ee074c8bf54
eef39fd96ef4ed289c1567f56fde936d5bc42ea4
/BaekJoon/Bronze2/1100.py
7ca5051440d1f755fd196ebe82f436d249269c7a
[]
no_license
dudwns9331/PythonStudy
3e17da9417507da6a17744c72835c7c2febd4d2e
b99b9ef2453af405daadc6fbf585bb880d7652e1
refs/heads/master
2023-06-15T12:19:56.019844
2021-07-15T08:46:10
2021-07-15T08:46:10
324,196,430
4
0
null
null
null
null
UTF-8
Python
false
false
894
py
# 하얀 칸 """ 2021-01-17 오후 7:09 안영준 문제 체스판은 8*8크기이고, 검정 칸과 하얀 칸이 번갈아가면서 색칠되어 있다. 가장 왼쪽 위칸 (0,0)은 하얀색이다. 체스판의 상태가 주어졌을 때, 하얀 칸 위에 말이 몇 개 있는지 출력하는 프로그램을 작성하시오. 입력 첫째 줄부터 8개의 줄에 체스판의 상태가 주어진다. ‘.’은 빈 칸이고, ‘F’는 위에 말이 있는 칸이다. 출력 첫째 줄에 문제의 정답을 출력한다. """ count = 0 for i in range(1, 9): line = input() if i % 2 ==...
[ "dudwns1045@naver.com" ]
dudwns1045@naver.com
dfe1288981d2da36ed164fecd92930e9d85e09d7
a74b980fd95d5d810315f181449fc9d1710e6923
/savecode/pythonpackages/tests/test_sqlite.py
c6f5a6df2c40fe3e1cbb083c61322c53b282bbf5
[ "Apache-2.0" ]
permissive
cbbbbbbbb/sspywork
b70f5539203b47b21eec2f0514ddca155affc2b8
8f05a6b91fc205960edd57f9076facec04f49a1a
refs/heads/master
2023-03-22T19:45:13.024076
2021-03-08T01:24:21
2021-03-08T01:24:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,860
py
"""sqlite test""" # -*- coding:utf-8 -*- import threading import time import traceback from commonbaby.mslog import MsFileLogConfig, MsLogLevels, MsLogManager MsLogManager.static_initial( dft_lvl=MsLogLevels.INFO, msficfg=MsFileLogConfig(fi_dir=r'./_serverlog')) logger = MsLogManager.get_logger("idownserver") f...
[ "shiyuegege@qq.com" ]
shiyuegege@qq.com
f7960ee36f4641f463cb61eb2b964f11c33b2068
4cbc8b81d197bc392d1b57856254300331b9738f
/python/teste_print.py
bc79e58ac5c74758c228d710a02fdf2665a3331e
[ "MIT" ]
permissive
vcatafesta/chili
87b9606f17cda645ba44cbf2bb4cc4637e18d211
5c734ac88454db76eb2f4e92c13364a5bbc7a93a
refs/heads/main
2023-09-01T01:39:09.457448
2023-08-29T21:23:28
2023-08-29T21:23:28
171,972,556
2
2
null
2019-02-22T01:38:49
2019-02-22T01:26:46
null
UTF-8
Python
false
false
696
py
scores = [("Rodney Dangerfield", -1), ("Marlon Brando", 1), ("You", 100)] for (name, score) in scores: print "Hello %s. Your score is % d" % (name, score) # or some might find this even more readable for (name, score) in scores: print "Hello %(nm)s. Your score is %(sc) d" % {"nm": name, "sc": score} x...
[ "vcatafesta@gmail.com" ]
vcatafesta@gmail.com
780010a1b1b2f7876d6f3676f420597215ea2021
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/easy/9_5.py
bf3e8b5e93166e4b412093de3b2aa32a158d759a
[]
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,890
py
Load testing using LOCUST Locust is an open source load testing tool. Load testing is a type of software testing that is conducted to check the tolerance/behavior of the system under a specific expected load. The target of locust is load-testing web sites and checking number of concurrent users a system can h...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
1652edd4c3747efb4783d476d5fbd2be9dddd7cc
8c8f08a1d0625c376fe6c8eed0b7d94585de9a15
/src/webmessage/migrations/0001_initial.py
d5ce52348f722d65fc5969d7c9019d835ceabe9d
[]
no_license
NobodyLikesZergs/mailru_track_web_2
c804108f11f71fccafbaf78ca38cd211fbf16845
27c5347876fed8930ab67cf0ca9ba65143b2b21e
refs/heads/master
2021-01-11T01:14:59.948168
2016-10-13T20:50:08
2016-10-13T20:50:08
70,682,961
0
0
null
2016-10-12T09:10:31
2016-10-12T09:10:31
null
UTF-8
Python
false
false
1,037
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-04 09:13 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('webchat', '0001_initial'), ] o...
[ "makaleks@live.ru" ]
makaleks@live.ru
5d37ddbdf8a634044a7ef1da092d0649172029ab
b06e21f2731fd1000fbe5694312aa9cebf543809
/ElectronPhononCoupling/tests/test_LiF_g2.py
30f27a1a15dde2e73410e84e9de3292cef0df372
[]
no_license
Maruf001/ElectronPhononCoupling
932be124a58b1d49ebbdb5655ea7e30fcf9b6e20
434be79b20397bcc8ab4789f7fbde9de55deca77
refs/heads/master
2023-03-17T09:42:27.631568
2021-01-06T21:37:06
2021-01-06T21:37:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,912
py
from os.path import join as pjoin from copy import copy from . import EPCTest, SETest from ..data import LiF_g2 as test # FIXME class Test_LiF_g2(SETest): common = dict( temperature = False, renormalization = False, broadening = False, self_energy = False, spectral_functi...
[ "gabriel.antonius@gmail.com" ]
gabriel.antonius@gmail.com
868be2877a85a8b54a78bfe5480066d2e84303ba
72be6500051e0dcf8b24a8586609454a94c73b8d
/apps/niamoto_data/migrations/0019_occurrenceobservations_rainfall.py
9938b9b7610b9d70580e1a553e8f0aa4ed604b7e
[]
no_license
CheckFly/niamoto-portal
e3e34c26ad6b4f45e505ec3d5c48f3052f08e16d
5e15a1cb13caefd9fa4f4bb4d74bd0b7d705aa58
refs/heads/master
2021-07-04T06:11:41.925705
2019-06-02T22:00:49
2019-06-02T22:00:49
200,769,538
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2017-01-19 06:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('niamoto_data', '0018_auto_20161215_1716'), ] operations = [ migrations.AddF...
[ "dimitri.justeau@gmail.com" ]
dimitri.justeau@gmail.com
a9e54e01313436d06d1e8dbb4f21d52fd9a9231d
105212e4d2d2175d5105e05552e29b300375e039
/TensorFlow_tutorials/TensorFlow_simulation_demos/Mandelbrot_demo.py
e1261e0eae4ace11c428700fc08e15a6bf4f5ba9
[]
no_license
Asher-1/AI
84f0c42651c0b07e6b7e41ebb354258db64dd0d1
a70f63ebab3163f299f7f9d860a98695c0a3f7d5
refs/heads/master
2022-11-26T07:24:37.910301
2019-05-30T13:04:31
2019-05-30T13:04:31
160,031,310
7
1
null
2022-11-21T22:02:53
2018-12-02T09:19:03
Jupyter Notebook
UTF-8
Python
false
false
1,563
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @author: Asher @time:2018/3/25 14:08 """ # 导入仿真库 import tensorflow as tf import numpy as np # 导入可视化库 # import PIL.Image # from io import BytesIO # from IPython.display import Image, display import matplotlib.pyplot as plt def DisplayFractal(a, fmt='jpeg'): """显示迭代...
[ "ludahai19@163.com" ]
ludahai19@163.com
555abece4d71e799a18ff8b00af46dd6de89ea16
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/GRR/Scripts/GrrGetHunt/GrrGetHunt.py
b8947a34a523ef96972d0e9fcc58340fcd2ebbd0
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
164
py
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 demisto.results(demisto.executeCommand("grr_get_hunt", demisto.args()))
[ "noreply@github.com" ]
demisto.noreply@github.com
b4fb9f5b74cea3550f2ef48cae41c7726d36f8bf
6b3ae09a44b187cf8bb0909b33e422a0ddea2a9e
/tests/test_io_text_orthography.py
99cabec543c81d808e0200458294346b73175cab
[ "MIT" ]
permissive
esteng/PolyglotDB
963bb48f7d38fb26e9e71dcc60927b47c101a114
32a0861a9559a71e99f13ad2c7f0c73c50f45a58
refs/heads/master
2020-05-29T11:46:30.187198
2016-06-15T20:34:59
2016-06-15T20:34:59
59,850,947
0
0
null
2016-10-18T18:58:22
2016-05-27T17:11:41
Python
UTF-8
Python
false
false
1,610
py
import pytest import os from polyglotdb.io import inspect_orthography from polyglotdb.exceptions import DelimiterError from polyglotdb import CorpusContext def test_load_spelling_no_ignore(graph_db, text_spelling_test_dir): spelling_path = os.path.join(text_spelling_test_dir, 'text_spelling.txt') parser ...
[ "michael.e.mcauliffe@gmail.com" ]
michael.e.mcauliffe@gmail.com
760bb0083709a0b6ad7c947c2bafd496cd2f2af1
9cec93a18ea94504947820205d0faae4d67ecd8d
/TTHAnalysis/python/tools/jetReCleanerExamples.py
9663fc4e48bd369bf0cb7cddbc13b81cc730777f
[]
no_license
DESY-CMS-SUS/cmgtools-lite
de88b1d5dc20a925ed5b7c7be69fa3ef677955c6
db52d50047178563a0eb7f5858ae100aa408ec68
refs/heads/8_0_25
2021-05-23T04:36:22.900460
2017-11-09T10:32:41
2017-11-09T10:32:41
60,184,794
3
9
null
2021-02-17T23:22:12
2016-06-01T14:37:18
Python
UTF-8
Python
false
false
6,572
py
from CMGTools.TTHAnalysis.treeReAnalyzer import Collection, deltaR from CMGTools.TTHAnalysis.tools.collectionSkimmer import CollectionSkimmer import ROOT, os class JetReCleaner_base: def __init__(self,label=""): self.label = "" if (label in ["",None]) else ("_"+label) self.vars = ("pt","eta","phi",...
[ "gpetruc@gmail.com" ]
gpetruc@gmail.com
bf072896d6e400e7db2237ccba5491061b9060dd
b23e2df299d53589d0b59916e91dc1d88c8d5d84
/example.py
579c4b4de81f21a9950cd9136ad662ad3b8f96c8
[]
no_license
codesharedot/credo-price
b8f188ad548ea0d1bfb3807505c2ee22199f730a
a769dd96a0063274e0f419b58aa61aa4f6f1f2fe
refs/heads/master
2020-08-10T07:30:14.805961
2019-10-10T22:05:37
2019-10-10T22:05:37
214,293,878
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
import requests import json from forex_python.converter import CurrencyRates import os c = CurrencyRates() rate = c.get_rate('USD', 'EUR') print(rate) credo_api_url = 'https://api.coinmarketcap.com/v1/ticker/credo/' response = requests.get(credo_api_url) response_json = response.json() print(response_json) for coin...
[ "codeto@sent.com" ]
codeto@sent.com
beb40b18da0dd26a06fdcaa474f27fbdffa1f650
2d0e5f5c6dd2e44ecf4166c81caff17f39c0c638
/매일 프로그래밍/20200202/solution.py
c811ec3f4bd5c04f08ba1cefd182e3e3630b7f58
[]
no_license
limkeunhyeok/daily-coding
17d120a9f499189be3250a501e73e312802508a9
960dad7758c99619da0a33c899d5d4d8d8ff524d
refs/heads/master
2022-04-30T22:32:54.173400
2022-04-16T13:15:49
2022-04-16T13:15:49
174,705,049
0
0
null
null
null
null
UTF-8
Python
false
false
768
py
# 간격(interval)로 이루어진 배열이 주어지면, 겹치는 간격 원소들을 합친 새로운 배열을 만드시오. # 간격은 시작과 끝으로 이루어져 있으며 시작은 끝보다 작거나 같습니다. def solution(intervals): answer = [] points = [] for arr in intervals: points += list(range(arr[0], arr[1] + 1)) points = list(set(points)) temp = [] for index in range(len(points) ...
[ "gorloom6425@naver.com" ]
gorloom6425@naver.com
cc2513911c76db904e5c9cbf077e379eda09f4d9
4626631c5e68a13ed4dde041212da39d344d74d9
/hpOneView/storage.py
5ceac397e94d09914f239dce4e48c7c8df3c5614
[ "MIT" ]
permissive
xod442/python-hpOneView
a1482677e3252dabf1e14f9349c119428331089f
b78fb81cba34992bb84ed3814aae04ce05ef913f
refs/heads/master
2021-01-18T05:53:42.466348
2015-08-11T15:59:16
2015-08-11T15:59:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,900
py
# -*- coding: utf-8 -*- """ storage.py ~~~~~~~~~~~~ This module implements settings HP OneView REST API """ __title__ = 'storage' __version__ = '0.0.1' __copyright__ = '(C) Copyright (2012-2015) Hewlett Packard Enterprise ' \ ' Development LP' __license__ = 'MIT' __status__ = 'Development' ### # (C)...
[ "troy@debdev.org" ]
troy@debdev.org
86a21abfcda4b1aaa69a2fc37b412c0239b73a43
096ccaca86872b03a137edf58221413073d770cb
/spiders/tesdorpf.py
0cd1a0fee30bba84725730ce4c2025df1816e3f9
[]
no_license
DH-heima/webscrapping
f142962b50deed2628052dd7a48098a4afbcbada
1dc8f81f45db0d4366391c3052c5ab36f4d4bc5d
refs/heads/master
2022-02-02T23:26:22.520064
2019-06-13T13:38:10
2019-06-13T13:38:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,593
py
from io import BytesIO from lxml import etree parser = etree.HTMLParser() from urllib.parse import quote_plus import requests_cache, imghdr from validators import validate_raw_files from create_csvs import create_csvs from ers import all_keywords_de as keywords, mh_brands from matcher import BrandMatcher from ers im...
[ "pierre.chevalier@epitech.eu" ]
pierre.chevalier@epitech.eu
d171d3418596e59a8f1566918c36da27762cdad7
6c7c008a4626fc77a408ab0ae9ea34d858bfc251
/trails/feeds/pony.py
bbb5008a22e18572517263332a5fdc9e54d83c8f
[ "MIT" ]
permissive
silverheartshafiq/maltrail
e53ff19c6674be98f3d8300d6e99837fb83a420c
819219527181ce4a85791156e80d10016cd6c867
refs/heads/master
2020-04-24T08:43:07.316096
2019-02-21T09:18:30
2019-02-21T09:18:30
171,839,662
0
0
MIT
2019-02-21T09:18:29
2019-02-21T09:18:28
null
UTF-8
Python
false
false
742
py
#!/usr/bin/env python """ Copyright (c) 2014-2019 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ import re from core.common import retrieve_content __url__ = "https://cybercrime-tracker.net/ccpmgate.php" __check__ = "/gate.php" __info__ = "pony (malware)" __reference__ = "cybercrime-...
[ "miroslav.stampar@gmail.com" ]
miroslav.stampar@gmail.com
825d744cc2b816c49caa2b0886ac625db04ac255
56cce3fee2e3d69d60958eb2aacc4f65fc3d2230
/src/pybgl/product_mixin.py
8be617c745bc114bbbcdacddbdfce9c425088f28
[ "BSD-3-Clause" ]
permissive
nokia/PyBGL
52c2f175d1dbccb15519f8a16de141845d0abaf3
707f2df32ede7d9a992ea217a4791da34f13e138
refs/heads/master
2023-08-08T04:46:24.931627
2023-08-03T16:31:35
2023-08-03T16:31:35
148,536,169
12
3
BSD-3-Clause
2023-08-03T16:31:36
2018-09-12T20:11:36
Python
UTF-8
Python
false
false
1,805
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of the pybgl project. # https://github.com/nokia/pybgl from pybgl.automaton import BOTTOM, Automaton, EdgeDescriptor class ProductMixin: def __init__(self, g12: Automaton, operator): self.map_product_vertices = dict() self.g12 = ...
[ "marc-olivier.buob@nokia-bell-labs.com" ]
marc-olivier.buob@nokia-bell-labs.com
10dae104503fc05dbc42ea9b1f06e0942c8562a5
bea82dcebdee1feddcb0b45e00db99ba208e45fb
/practice/14random_walks_and_more_about_data_visualization/birthday_problem.py
711e3a9ea14b31daca05334c21c618d80061e327
[]
no_license
LordBao666/MITLecture6.0002_introduction_to_computational_thinking_and_data_science
56f1916b3eb148b63dc5e4103d28a401c5ca790f
f368c85e784dfa249bbec90983c68601e4516aa0
refs/heads/master
2023-03-30T16:51:59.153885
2021-04-06T15:16:52
2021-04-06T15:16:52
348,566,063
0
0
null
null
null
null
UTF-8
Python
false
false
3,295
py
""" @Author : Lord_Bao @Date : 2021/3/20 """ import random def same_date(num_people, num_same): """ :param num_people: 测试人数。 :param num_same: 测试指标,即生日相等的人数 :return: 返回测试人数中,同一天的生日的最高人数 是否大于 测试指标、 这是采样!!!!!! e.g 假设num_people 为10 ,num_same 为 3。该函数返回的就是10人中,是否至少有3个人的生日在同一天。 是的化返回True,否则返回F...
[ "916900021@qq.com" ]
916900021@qq.com
65eacfa5fd125f2d84127ac7eec2389c25243da8
a5c094ebfd36e4b43b9d4a2f61b5a37812a1ff03
/src/gym_selfx/render/draw.py
f7eb6e9870586c3a8fc3dd34ee8247899a75163b
[ "MIT" ]
permissive
mountain/selfx
47d737baaa639f4ff001ac1f1715bcd67ab7f495
939fd4ed83d06d26aec15b606429fd75598cef80
refs/heads/master
2023-04-07T09:37:42.432853
2022-12-10T00:05:57
2022-12-10T00:05:57
191,362,875
7
3
MIT
2023-08-16T11:28:25
2019-06-11T12:00:47
Python
UTF-8
Python
false
false
5,802
py
# -*- coding: utf-8 -*- # # Python version Copyright (c) 2015 John Stowers # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use of this software. # Permission is granted to anyone to use this software for an...
[ "mingli.yuan@gmail.com" ]
mingli.yuan@gmail.com
fcca4b3d647d353de230a11c03610d03db3b31c4
4a06e92024030a0cee216825bee6d659e589f944
/hive/indexer/blocks.py
71aa9bb9544db57643c167fb9f51e3e5304e1587
[ "MIT" ]
permissive
tiotdev/hivemind
ba99962e11984715c2d0d4933275c40703071f95
4765989650b743fbb43ed02afc07c83e8f4a15ca
refs/heads/master
2020-04-21T07:13:33.333666
2019-03-27T15:24:39
2019-03-27T15:24:39
169,387,340
0
0
MIT
2020-04-05T17:39:16
2019-02-06T10:17:37
Python
UTF-8
Python
false
false
8,144
py
"""Blocks processor.""" import logging from hive.db.adapter import Db from hive.indexer.accounts import Accounts from hive.indexer.posts import Posts from hive.indexer.cached_post import CachedPost from hive.indexer.custom_op import CustomOp from hive.indexer.payments import Payments from hive.indexer.follow import ...
[ "roadscape@users.noreply.github.com" ]
roadscape@users.noreply.github.com
9650b953bf48ff69844f4d505df00d9978a03a49
9c82dc938056000e4b88c3e05a851f379d2d3bed
/devel/lib/python2.7/dist-packages/learning_actionlib/msg/_FibonacciResult.py
fb1130eccc110ac0dd77fc13bf5fd7be6f24beaf
[]
no_license
LongfeiProjects/ROS_Catkin_WS
971e65a49139c7f20869617da53b506ec9a996df
6a3390fd531ce498af634b83f9df18b9aae33c8e
refs/heads/master
2021-03-22T00:32:57.911668
2016-03-03T04:45:26
2016-03-03T04:45:26
45,441,951
0
2
null
null
null
null
UTF-8
Python
false
false
3,799
py
"""autogenerated by genpy from learning_actionlib/FibonacciResult.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class FibonacciResult(genpy.Message): _md5sum = "b81e37d2a31925a0e8ae261a8699cb79" _type = "learning_actionlib/FibonacciResult" _h...
[ "longfei.zhao@yahoo.com" ]
longfei.zhao@yahoo.com
e7a6b61d69f6efde1bd4318a3138e41f0bacee73
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_sperm.py
690578bfe35a6c4408888820bf2e97a004fda804
[ "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
415
py
#calss header class _SPERM(): def __init__(self,): self.name = "SPERM" self.definitions = [u'a sex cell produced by a man or male animal: ', u'informal for semen (= the liquid produced by the male sex organs that contains sperm)'] self.parents = [] self.childen = [] self.properties = [] self.jsondata...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e7d3461b5fae2b11cf3afd291d811480b48bf0aa
f7583188b39f53b9d3661912c10e64e70e80b3a8
/quant-stuff/gs-quant-master/gs_quant/analytics/processors/analysis_processors.py
86e8f772d7b1ecdb72983ba6a8d2fde0e948a593
[ "Apache-2.0" ]
permissive
masa4u/downloads-archive-3
0e96edb8b8e78e37258f896b833a658ec70e1ccb
b90f3ea87fca28f0f035122994e0bff2341df0fa
refs/heads/master
2023-04-27T22:11:33.349908
2021-05-10T05:05:07
2021-05-10T05:05:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
""" Copyright 2019 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
[ "bgoonz4212@gmail.com" ]
bgoonz4212@gmail.com
d1c182d825bd932bd58bc399f49c88d47117f5e3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_monster.py
e42f32cbb962e49f1f74d9429ff41a7b784e1cc8
[ "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
370
py
#calss header class _MONSTER(): def __init__(self,): self.name = "MONSTER" self.definitions = [u'very big: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[obj2] = {} self.jsondata[obj2]['proper...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
829acdd74d8983fb7d697b195815a539a258ac13
7d015f47e0d38f9fa11a34b13ed203b73cc2d2ba
/0x15-api/1-export_to_CSV.py
f82d49d6f075b2bb28a6cfa8a10f527df2f80dae
[]
no_license
eodenyire/holberton-system_engineering-devops-23
c103bbf9268db05619666231ab49aa3ebb66ebcf
89f02ea165322858921b66904a8245988b383674
refs/heads/master
2023-08-18T02:57:31.023569
2018-01-30T07:51:14
2018-01-30T07:51:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
#!/usr/bin/python3 """Script to get information from the TODO api endpoint as it pertains to a particular employee identified by ID.""" import csv import requests import sys todo_endpoint = "https://jsonplaceholder.typicode.com/todos" user_endpoint = "https://jsonplaceholder.typicode.com/users" def get_todos_by_use...
[ "andrew.birnberg@gmail.com" ]
andrew.birnberg@gmail.com
ceb18c46e219ea7d400cdd5576594ab240fb515f
4dcf41e11d13258fa240c849fe8ed81c36c761af
/cirq/aqt/aqt_device.py
616c3f627d1ed0c10d13e5d28ac2c7b08746b29a
[ "Apache-2.0" ]
permissive
1eedaegon/Cirq
717920bdc4ee265ca5c39abc84d1b136c25d0343
de0c5e855069bba71e55b070fc9b06f58c07a861
refs/heads/master
2020-08-28T14:21:01.531296
2019-10-25T22:59:12
2019-10-25T22:59:12
217,724,457
1
0
Apache-2.0
2019-10-26T14:55:14
2019-10-26T14:55:14
null
UTF-8
Python
false
false
7,078
py
# Copyright 2019 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "craiggidney+github+cirqbot@google.com" ]
craiggidney+github+cirqbot@google.com
f9cede8b8b2b03a877bd06d1b635572544e6a1d2
133ab0e162c38f2c174f6065c251f7ab6e44eac7
/test/api_poke.py
38acffc68860d35bf19ade1f47131b7c155093b6
[]
no_license
weijihao/wlnupdates
b3d1856bb65e97467e6807f3ab8abb236104ec2d
0825d354ade8cfbe40117662ee46704573453e16
refs/heads/master
2020-04-13T10:14:33.359175
2018-12-07T11:02:32
2018-12-07T11:02:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,380
py
import logSetup import json import webFunctions # if __name__ == "__main__": # logSetup.initLogging() MODES = [ 'get', 'get-artists', 'get-authors', 'get-genres', 'get-groups', 'get-publishers', 'get-tags', 'get-oel-releases', 'get-releases', 'get-translated-releases', 'get-oel-series', 'get-series',...
[ "something@fake-url.com" ]
something@fake-url.com
22cc013142784a19464aa7c938ac1b90819f859e
11aac6edab131293027add959b697127bf3042a4
/reachableNodes.py
464b86cccd6e7968fcad2660c0ed59b911e18dc5
[]
no_license
jdanray/leetcode
a76b3436002b31865967b757b73c85992636383b
fd736af3e79899b86dac89d4d925d5bd985944ad
refs/heads/master
2023-08-15T01:20:05.110565
2023-08-14T00:25:58
2023-08-14T00:25:58
148,686,493
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
# https://leetcode.com/problems/reachable-nodes-with-restrictions/ class Solution(object): def reachableNodes(self, n, edges, restricted): restricted = set(restricted) graph = collections.defaultdict(set) for (u, v) in edges: graph[u].add(v) graph[v].add(u) seen = set() stack = [0] while stack: ...
[ "jdanray@users.noreply.github.com" ]
jdanray@users.noreply.github.com
33810974339334cf8f9d705b437ca520ec839c0e
b9c33f67fa66839ee18930e2679ac8f3a1b450fe
/build/fmauch_universal_robot/ur10_e_moveit_config/catkin_generated/pkg.installspace.context.pc.py
0b2eccbe76ad4ee047002faf505f0f838ff83a18
[]
no_license
Haoran-Zhao/Ultrasound_and_UR3
e397e66207789c50b8fe7ca7c7be9ac9dfa6e2da
bb0e4b19216a4b21a1af4b6524f4ed98fee8d83c
refs/heads/master
2023-01-07T13:46:56.723360
2020-11-11T01:14:18
2020-11-11T01:14:18
274,579,555
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur10_e_moveit_config" PROJECT_SPACE_D...
[ "zhaohaorandl@gmail.com" ]
zhaohaorandl@gmail.com
d1eeeb7f9fe4e51847e4bda467776c66ae848bf0
709bd5f2ecc69a340da85f6aed67af4d0603177e
/saleor/order/migrations/0063_auto_20180926_0446.py
49d4236c67cd412afeca9cbf220c84c641bc8465
[ "BSD-3-Clause" ]
permissive
Kenstogram/opensale
41c869ee004d195bd191a1a28bf582cc6fbb3c00
5102f461fa90f2eeb13b9a0a94ef9cb86bd3a3ba
refs/heads/master
2022-12-15T02:48:48.810025
2020-03-10T02:55:10
2020-03-10T02:55:10
163,656,395
8
0
BSD-3-Clause
2022-12-08T01:31:09
2018-12-31T09:30:41
Python
UTF-8
Python
false
false
1,004
py
# Generated by Django 2.0.8 on 2018-09-26 09:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0062_auto_20180921_0949'), ] operations = [ migrations.AlterField( model_name='orderevent', name='type', ...
[ "Kenstogram@gmail.com" ]
Kenstogram@gmail.com
09a814455de03668c5222bf0df188a91ea64e109
77d445489bf42d641eb3c3aeab18d0aac7912a37
/AppDB/hypertable/test_hypertable2.py
6ad758bac5a6efbc0056d9fba12399887ab40d1c
[ "BSD-3-Clause" ]
permissive
mohitsethi/appscale
08574494e71c925a11ac6359af0eb5c0af3318a7
8d8cf664c36eae6e474923b4588e680b53fca564
refs/heads/master
2021-01-17T03:15:47.555515
2012-11-14T22:30:03
2012-11-14T22:30:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,081
py
import py_hypertable py_hypertable = py_hypertable.DatastoreProxy() columns = ["a","b","c"] data = ["1","2","3"] table_name = "hello" key = "1" print "key= " + key print "columns= " + str(columns) print "data= " + str(data) print "table= " + table_name print "PUT" print py_hypertable.put_entity(table_name, key, columns...
[ "shatterednirvana@gmail.com" ]
shatterednirvana@gmail.com
ffdf9a412d134a2974d096e09f13e7612d583a29
7437ad1203ff272a482e4a7c7266afdbc7a0e619
/lra/models/gpu_16g/linear_transformer_exp/cifar10/r1/config.py
76f36d46c3d7d73841b5969d906a21efecedfec3
[]
no_license
maximzubkov/spe
4ccc59d538a2cb4e5f9b0118ef79933eed0b8d95
d877feb0f6b935152e5431ce374606ba72c08d65
refs/heads/main
2023-08-23T02:08:14.253693
2021-10-05T17:25:36
2021-10-05T17:25:36
385,636,912
0
0
null
2021-10-05T17:25:37
2021-07-13T14:42:19
Jupyter Notebook
UTF-8
Python
false
false
2,009
py
# 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 # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
[ "zubkov.md@phystech.edu" ]
zubkov.md@phystech.edu
2ce9511a97d7656f5078b52357e45401ff6d5221
e0c8662a56d89730043146ddc340e9e0b9f7de72
/plugin/11e29f78-1596.py
89ecf78cd0947e922640644c55f527d24cf38eec
[]
no_license
izj007/bugscan_poc
f2ef5903b30b15c230b292a1ff2dc6cea6836940
4490f3c36d4033bdef380577333722deed7bc758
refs/heads/master
2020-09-22T17:20:50.408078
2019-01-18T09:42:47
2019-01-18T09:42:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
#coding:utf-8 from lib.curl import * # -*- coding: utf-8 -* #http://www.wooyun.org/bugs/wooyun-2010-085076,http://www.wooyun.org/bugs/wooyun-2010-086828,http://www.wooyun.org/bugs/wooyun-2010-086831,http://www.wooyun.org/bugs/wooyun-2010-086833,http://www.wooyun.org/bugs/wooyun-2010-086834, def assign(service, arg): ...
[ "yudekui@wsmtec.com" ]
yudekui@wsmtec.com
cf12548fefc34361610649871cb85ca3d17f1b01
b03f83a7ea6437b1f9bbfedfee73deb671be9653
/sprinter/formula/tests/test_template.py
16a3914784b2fa107fa4bf0cabe423ca68677276
[ "MIT" ]
permissive
GreenGremlin/sprinter
15b874fbc6c20a43d0a8a3bb94c81e6e531ca63a
f129f8de7b2100f554d0b36055b859c4f5dd1f03
refs/heads/develop
2021-01-19T07:06:50.334903
2016-02-23T21:12:52
2016-02-23T21:12:52
49,906,263
0
1
null
2016-01-18T21:23:53
2016-01-18T21:23:53
null
UTF-8
Python
false
false
2,616
py
from __future__ import unicode_literals import httpretty import os import shutil import tempfile from sprinter.testtools import FormulaTest source_config = """ [update_example] formula = sprinter.formula.template source = %(temp_dir)s/in.txt target = %(temp_dir)s/out.txt """ target_config = """ [simple_example] formu...
[ "tsutsumi.yusuke@gmail.com" ]
tsutsumi.yusuke@gmail.com
1a6eaef4367b336d7870b795dc593757ee81b899
6a41dd36ddd3e501b62ff253b40bf9bbbaa722c2
/간단한 파이썬 프로그램/polygon.py
736c5d5b10a49bd637225c4716d1414d7add5bb4
[]
no_license
skysamer/first_python
9ba79b194d838e0cdeab6f2e7a4207d71c73ed63
638622f51434eda65ef3300e3ce5db3a2a79db2a
refs/heads/master
2023-02-03T08:21:23.370285
2020-12-27T13:39:20
2020-12-27T13:39:20
307,953,829
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
import turtle as t def polygon(n): for x in range(n): t.fd(50) t.lt(360/n) def polygon2(n,a): for x in range(n): t.fd(a) t.lt(360/n) polygon(3) polygon(5) # 그림을 그리지 않고 거북이를 100만큼 이동시킵니다. t.up() t.fd(100) t.down() polygon2(3, 75) polygon2(5, 100)
[ "skyslayer123@naver.com" ]
skyslayer123@naver.com
11253aa7cbe8c15ff067e431554014aea164fe0d
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/framework/data/ConvertFileSystem.pyi
3140db6203ea76118da9b94f4b3859945cbe8573
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
3,053
pyi
from typing import List import ghidra import ghidra.framework.data.ConvertFileSystem import java.io import java.lang class ConvertFileSystem(object, ghidra.GhidraLaunchable): class MessageListener(object): def equals(self, __a0: object) -> bool: ... def getClass(self) -> java.lang.Cl...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
4930c0bed9781c2e2863981e362b444cb6645535
54d4b509e511d1d281e791688221ecb816f2fe88
/dicionarios/dicionario.py
b87777fa430aa9467ce9535a65fa85a730e6a014
[]
no_license
treinaweb/treinaweb-python-collections
285c1ee1afe54f57b7ce08f0a786a080f82037e4
6dc0c8cf54f00edf69c7224342bebfcf81cda1d4
refs/heads/master
2020-03-30T09:40:16.423932
2018-10-11T23:00:01
2018-10-11T23:00:01
151,086,808
2
0
null
null
null
null
UTF-8
Python
false
false
328
py
meu_dicionario = {1 : 'Fabio', 2 : 'Maria', 3 : 'João', 4 : 'José'} print(type(meu_dicionario)) meu_dicionario_2 = dict({1 : 'Fabio', 2 : 'Maria', 3 : 'João', 4 : 'José'}) print(type(meu_dicionario_2)) print(meu_dicionario[4]) for chave, valor in meu_dicionario.items(): print(f" A chave é {chave} e o valor {valor...
[ "fagnerpinheirosantos@gmail.com" ]
fagnerpinheirosantos@gmail.com
ac2557598d14a8b2eb18005f3dfb47c016fb27c4
d6568d4c3cf29ec5da430db2fdedb9023487134e
/configs.py
a241905a455d46bd9f4a265fd54dda63ac8f9036
[]
no_license
j-min/Adversarial_Video_Summary
7aba4135f57219af31b080696db67f8ceb6b527e
fb6d5bf70479373f96f2d944c672af8286c9bc89
refs/heads/master
2023-04-07T07:21:38.630603
2023-03-28T18:20:30
2023-03-28T18:20:30
110,589,567
253
67
null
null
null
null
UTF-8
Python
false
false
3,191
py
# -*- coding: utf-8 -*- import argparse from pathlib import Path import pprint project_dir = Path(__file__).resolve().parent dataset_dir = Path('/data1/jysung710/tmp_sum/360video/').resolve() video_list = ['360airballoon', '360parade', '360rowing', '360scuba', '360wedding'] save_dir = Path('/data1/jmcho/SUM_GAN/') sc...
[ "heythisischo@gmail.com" ]
heythisischo@gmail.com
67bdc20397684f2e7335ca322c2b75ebf829f1a4
07622a0fb38e843ab0eef4f69bb8fb25d107c06d
/pretrained_mol_sim/Theano-master/theano/tensor/tests/test_merge.py
a746c3f34dda4f0333b7adbf4af9c083a52cbf0a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
andreeadeac22/graph_coattention
fa59d77252625e4bee1cb9670e4a0fd0fec98135
23781fedaa942ca5614054f965cb7b6543e533fa
refs/heads/master
2023-08-08T01:51:51.368457
2020-02-19T04:56:59
2020-02-19T04:56:59
207,414,336
15
4
MIT
2023-07-22T15:47:39
2019-09-09T22:13:34
Python
UTF-8
Python
false
false
2,239
py
from __future__ import absolute_import, print_function, division import numpy from theano.gof.type import Type from theano.gof.graph import Variable, Apply, Constant from theano.gof.op import Op from theano.gof.opt import * from theano.gof.fg import FunctionGraph as Env from theano.gof.toolbox import * import theano.te...
[ "andreeadeac22@gmail.com" ]
andreeadeac22@gmail.com
3f799ca0a7b0e313884b05a1dd27c3cc13f529f3
3d4094bc2b372f93bb61bd6422c061552b06a775
/migen/pytholite/fsm.py
7bc6c4c227f5f62e7c1567098201b796e5c8c42d
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vic0/migen
efff647f925687f77acd926e36f1bba6b2e620f7
d6f7b4cee6a242d1962766f53a09b48871a188fc
refs/heads/master
2021-01-17T21:36:38.723171
2013-06-17T21:36:03
2013-06-17T21:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
from migen.fhdl import visit as fhdl from migen.genlib.fsm import FSM class AbstractNextState: def __init__(self, target_state): self.target_state = target_state # entry state is first state returned class StateAssembler: def __init__(self): self.states = [] self.exit_states = [] def assemble(self, n_state...
[ "sebastien@milkymist.org" ]
sebastien@milkymist.org
924182b2b4e656565bc908ced7ef983b8f21bb9a
c5dea14bc938dfc5d619f06963897d8c52625200
/msp.py
e701aa6926f759e55e0cf1ff1838c26bc573efbb
[]
no_license
bradbeattie/OfficeSim
958a10f9c9368b5782b3ff00ce52391c9080bb99
5b9c9bf2bc727fe0f096834792864f054e37df46
refs/heads/master
2020-04-30T01:37:46.182782
2019-03-19T14:50:20
2019-03-19T14:50:20
176,534,139
1
0
null
null
null
null
UTF-8
Python
false
false
1,883
py
#!/usr/bin/env python3 from collections import deque, namedtuple from pathfinding.core import heuristic from pathfinding.finder.finder import Finder import heapq import time class MinimumSpanningTree(Finder): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.heuristic = h...
[ "you@example.com" ]
you@example.com
85391701c6b68a512a4f34ffbf1634c60d5373a6
54aef785bcb729509af45347025e2c63bbd95e38
/dg_fn/typecheck.py
d21fe3ee9557ebdf4cbd311a0650f9245ecfb5db
[ "MIT" ]
permissive
d-gold/dg_fn
c19980b7e0045f8b920f914e4c37015b5a348ab1
2586402faaa8a1d1a4b3f16e997ab0059f89cb9c
refs/heads/master
2021-01-19T14:24:07.381631
2014-10-31T14:47:08
2014-10-31T14:47:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
780
py
import collections import config from types import GeneratorType from types import FunctionType def is_function(obj): """@todo: Docstring for is_function. :obj: @todo :returns: @todo """ return isinstance(obj, FunctionType) def is_gen(obj): """@todo: Docstring for is_gen. :obj: @todo ...
[ "autowitch@autowit.ch" ]
autowitch@autowit.ch
ae7b2ee2c052e83a5b3034e3bdfa042494112a8d
3efe2059de4c7efd1f58a385656d19098b7efd63
/deepiu/tools/classification-inference.py
005d802fe9ae0eddc99879c01e0b338b5c5e0971
[]
no_license
yangyaoyunshu/image-caption-ai-challenger2017
5d2e82b2f8d70ac6d4eb7a0e70f6b406e551189b
7f2c556587ea1e5c4583fe3b12b8d40c5a2aa2cc
refs/heads/master
2021-08-31T22:48:55.886186
2017-12-23T07:27:04
2017-12-23T07:27:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================== # \file classification-inference.py # \author chenghuige # \date 2017-11-10 15:32:56.988358 # \Description # ==============================================...
[ "29109317@qq.com" ]
29109317@qq.com
b6f7344ecd5ba6ce6be5fa984710b5a6f5c75229
621dfccf1ace31bcf48cd1e7cc80b8dbd556b21b
/03_bigdata/02_Standardization_Analysis/2_Excel/10_pandas_column_by_name_all_worksheets.py
3fa5d8218a1b05fe1ece42552de3adbc5296f016
[]
no_license
hansangwoo1969/iot_python2019
35d90997b442845d1f5fa5a6119d5352a8dbe46f
e1ea46bb4afcc33e1fc28b43e845759d8688098b
refs/heads/master
2020-06-14T22:19:47.647686
2019-09-19T07:40:16
2019-09-19T07:40:16
195,142,246
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
import pandas as pd # input_file = sys.argv[1] # output_file = sys.argv[2] input_file = 'sales_2013.xlsx' output_file = 'output_files/10output_pandas.xls' data_frame = pd.read_excel(input_file, sheet_name=None, index_col=None) column_output = [] for worksheet_name, data in data_frame.items(): column_output.appe...
[ "you@example.com" ]
you@example.com
6aa31a025a01a18cada5c8c08fb6207c8f607e7f
134c429df7d5c4d067d9761cb1435992b048adaf
/notes/0832/0832.py
d70947957aadde34bd55aea7b6a3ae0960180eb1
[]
no_license
PaulGuo5/Leetcode-notes
65c6ebb61201d6f16386062e4627291afdf2342d
431b763bf3019bac7c08619d7ffef37e638940e8
refs/heads/master
2021-06-23T09:02:58.143862
2021-02-26T01:35:15
2021-02-26T01:35:15
177,007,645
1
0
null
null
null
null
UTF-8
Python
false
false
395
py
class Solution: def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]: def flip(nums): return nums[::-1] def invert(nums): res = [] for n in nums: res.append(1) if n == 0 else res.append(0) return res res = [] ...
[ "zhg26@pitt.edu" ]
zhg26@pitt.edu
b9cf0b89dc509c98fd99750fda9c99fa168adda7
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/ashvin/icml2020/hand/pen/demo_bc4.py
511999e071214ed507d4cac46df3f83f3c391384
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
2,285
py
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict(...
[ "alexanderkhazatsky@gmail.com" ]
alexanderkhazatsky@gmail.com
b96a691be9bf43d42cb3803766ef3330a15f8b1f
2c190caa30c907a7177bfa588bce8c55158e03f7
/examples/demo_cyma57_numpy.py
5b9c53f7b384e2c3fae915c0298c0e25c4d42bed
[]
no_license
PythonOptimizers/HSL.py
4ee86a5bc0f4ce731d5bc704aa4dd1a6870fc2ec
4456d20a193749e16df9317059903da8888923bd
refs/heads/master
2020-12-30T21:57:52.617301
2017-09-19T08:28:16
2017-09-19T08:28:16
43,091,560
5
0
null
2017-09-19T08:28:18
2015-09-24T20:32:41
Python
UTF-8
Python
false
false
1,074
py
"""Exemple from MA57 spec sheet: http://www.hsl.rl.ac.uk/specs/ma57.pdf.""" import sys import numpy as np from hsl.solvers.src._cyma57_numpy_INT32_FLOAT64 import NumpyMA57Solver_INT32_FLOAT64 n = 5 nnz = 7 A = np.array([[2.0, 3.0, 0, 0, 0], [0, 0, 4.0, 0, 6.0], [0, 0, 1, 5, 0], [0, 0, 0, 0, 0], [0, 0, 0...
[ "sylvain.arreckx@gmail.com" ]
sylvain.arreckx@gmail.com
c79ffaeb263eecefdb9ae48f44034d33f1a0fdf0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03449/s367389051.py
881c4d5812aa46e6c354fe582596f03e103ac910
[]
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
377
py
n=int(input()) a=[[int(i) for i in input().split()] for j in range(2)] sentou=[] usiro=[] for i in range(n): if i==0: sentou.append(a[0][0]) usiro.append(a[1][-1]) else: sentou.append(a[0][i]+sentou[-1]) usiro.append(a[1][-i-1]+usiro[-1]) usiro=usiro[::-1] ans=[] for i in ran...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
95c145c1a6f3e7aab87055b335dd9a17f3903236
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/io_curve_gcode/__init__.py
f13f9f54da7edac8a53529973f63b59945de89a4
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,165
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
661ba502f10dd7fad41e6347036320a07f9aacb5
391a40002b63daff8bb056b2f0b2ae3f7ee52bb3
/项目/16组_基于YOLO_V3的目标识别系统/YOLO3/Darknet.py
b71c798953d6983c147ca8fcc8524c18774285d1
[]
no_license
realllcandy/USTC_SSE_Python
7b40f0e4ae3531fc41683fd19f71a58ce3815cdb
3ac15a95e8a99491c322481a70c14b6ab830082f
refs/heads/master
2023-03-17T21:30:19.068695
2020-10-10T06:15:28
2020-10-10T06:15:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,395
py
from __future__ import division from Parse_config import parse_config from Parse_config import create_modules from util import * class Darknet(nn.Module): def __init__(self, cgfile): super(Darknet, self).__init__() self.blocks = parse_config(cgfile) self.net_info, self.module_list = creat...
[ "321699849@qq.com" ]
321699849@qq.com
0764433513ccd090a92cb26093a3447152ee3e64
27f51d85ca25d4d0db9b26cb8b932b281e041f65
/cw/object_hierarchies/from_table.py
fb3df612be15f4b352270f8b30bb5cefa721fd2a
[ "MIT" ]
permissive
aarondewindt/cw
2bbb9b66b0e8e02055208a71ef92e0fa97c0d589
6be9770da0f0fc34ea47d7ab83e6929c4823e98a
refs/heads/master
2023-05-28T04:59:24.099091
2021-03-30T20:55:31
2021-03-30T20:55:31
170,211,817
2
0
MIT
2021-11-01T13:55:23
2019-02-11T22:19:11
Python
UTF-8
Python
false
false
4,958
py
import re from pathlib import PurePosixPath from itertools import groupby, islice import numpy as np from typing import Dict, Union, Any from cw.tree_node import TreeNode # Regular expressions matching the naming scheme of ndarrays. ndarray_re = re.compile(r"^\s*(\w+?)((?:_\d+)+)\s*$") def tables_to_object_hierarc...
[ "aaron.dewindt@gmail.com" ]
aaron.dewindt@gmail.com
621d6245168b41a79ddcfce479071ba64f10ef49
55ae369a3ef1593ff31a76847deb2a0d33898895
/mango/orders.py
8a9fbb9c6a72ceef5ddc22f99dddc06629661958
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Investin-pro/mango-explorer
63afb2ad4fb272f5640d18d3df367a6877b3a99a
4760bd5f9d7067e24c12941d3d7d113b1a7173ef
refs/heads/master
2023-07-31T23:23:00.590654
2021-10-01T17:13:18
2021-10-01T17:13:18
402,579,362
1
3
MIT
2021-10-02T16:31:43
2021-09-02T22:31:31
Python
UTF-8
Python
false
false
6,145
py
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
[ "geoff@knife.opgeek.lan" ]
geoff@knife.opgeek.lan
1a7f49d252262cf4f5342dc5526ae7df3940ed69
f0b90daf26aa393ef260aeee0ac8a9e767378b09
/icsbep/pu-sol-therm-004/openmc/case-10/generate_materials.py
408eb9f841a5423f4deff32ac3b0262d125f7f73
[]
no_license
ragusa/benchmarks
4567e8567bd00def7ea4918636c3f300eb9ce10b
41b2e4424129cbfd0664fd5877e0476b16dcba67
refs/heads/master
2020-03-23T09:05:21.329997
2018-05-24T18:13:19
2018-05-24T18:13:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
import openmc mats = openmc.Materials() mat = openmc.Material(1) mat.name = "Plutonium nitrate solution" mat.set_density('sum') mat.add_nuclide('Pu239', 8.6298e-05) mat.add_nuclide('Pu240', 2.7676e-06) mat.add_nuclide('N14', 3.0060e-03) mat.add_nuclide('H1', 5.9494e-02) mat.add_nuclide('O16', 3.7440e-02) mat.add_elem...
[ "paul.k.romano@gmail.com" ]
paul.k.romano@gmail.com
d99ab296471734666c928b93c47adb43e1b01cb4
11ca0c393c854fa7212e783a34269f9dae84e8c7
/Python/53. 最大子序和.py
5aef6a8e42fedeb4357acd5a50c412e178cc55d7
[]
no_license
VictoriqueCQ/LeetCode
dc84d81163eed26fa9dbc2114bba0b5c2ea881f4
a77b3ead157f97f5d9599badb4d4c5da69de44ba
refs/heads/master
2021-06-05T06:40:24.659909
2021-03-31T08:31:51
2021-03-31T08:31:51
97,978,957
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
class Solution: def maxSubArray(self, nums: List[int]) -> int: size = len(nums) f = [0]*size for i in range(size): f[i] = max(f[i-1]+nums[i],nums[i]) if i else nums[0] return max(f) # for i in range(1, len(nums)): # nums[i] = max(nums[i - 1] + nums[i],...
[ "1997Victorique0317" ]
1997Victorique0317
760ca32687f45e85ad5d8ef044fe9dee3efb3806
5deea8f084b99e3636f2ebd6a78dc8bb0e7be719
/app/lib/overrides/common/__init__.py
7da85458dd259d282e8c317c9d2246a923bde09d
[ "Apache-2.0" ]
permissive
cisco-sso/mh2-poc
f39c3b78e85a7504bf97e2d1d48f03754428146e
a476c9e119e2e15834dc04242504049b9fc7e8e5
refs/heads/master
2020-04-25T06:08:35.199462
2019-02-25T20:36:16
2019-02-25T20:36:16
172,569,616
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
# from cert_manager_configs import cert_manager_configs # from cert_manager import cert_manager # from dex import dex # from elasticsearch_curator import elasticsearch_curator # from elasticsearch_exporter import elasticsearch_exporter # from elasticsearch import elasticsearch # from external_dns import external_dns # ...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
73135e18349335c1ec2ce511946a5b1caf7c49e5
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/FiltersAndTransformers/Scripts/URLDecode/URLDecode_test.py
50aa5184251ed807f2800c680873a5ffa6aac5b3
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
551
py
from CommonServerPython import * from URLDecode import main import pytest @pytest.mark.parametrize("url,res", [ ('https:%2F%2Fexample.com', 'https://example.com'), ('https://example.com/?test%20this', 'https://example.com/?test this'), ]) def test_main(mocker, url, res): mocker.patch.object(demisto, 'args...
[ "noreply@github.com" ]
demisto.noreply@github.com
5bdbb837a600b26052c3b243e2f3de71d343a724
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/slxos/v17r_2_00/interface/ethernet/fcoeport/__init__.py
f6cf5f2ddb01cd7fac894c1896592c41c6b81bb2
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,230
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
a64489a63abd33ac5d7d969dc5e56a03c88fef72
e174e13114fe96ad2a4eeb596a3d1c564ae212a8
/Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_08_Code/4375OS_08_26_anderson_normality_test.py
eca79670b5fde3d4f04bfed103f040e548c02246
[]
no_license
Kevinqian0501/python_books
c1a7632d66dceb46db439f7cbed86d85370aab42
0691e4685af03a296aafb02447e3585db55ce461
refs/heads/master
2021-08-30T19:27:03.985464
2017-12-19T05:56:31
2017-12-19T05:56:31
104,145,012
1
0
null
null
null
null
UTF-8
Python
false
false
559
py
""" Name : 4375OS_08_26_Anderson_normality_test.py Book : Python for Finance Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 12/26/2013 email : yany@canisius.edu paulyxy@hotmail.com """ from matplotlib.finance import quotes_historical_yahoo from scipy i...
[ "kevin@Qians-MacBook-Pro.local" ]
kevin@Qians-MacBook-Pro.local
aaecc346793adb3049b2cd3aaff6187664b8d483
47c39800fa6f928e0d13f26727ba52bda2aa6ff0
/venv/Lib/site-packages/aliyunsdkrds/request/v20140815/DeleteHostAccountRequest.py
2cbe5b940b9cfadae26e1e2f2b569c42e82b02a3
[ "MIT" ]
permissive
dddluke/zhihuipingtai
952ed5f9a4011cb4fb2765a0571c978af784d708
4e46e01440f8c270c05259ac0f38bd56dd04016c
refs/heads/master
2023-03-09T03:32:47.807760
2021-02-26T02:36:10
2021-02-26T02:36:10
341,816,381
0
0
null
null
null
null
UTF-8
Python
false
false
2,363
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "lukeli0306@gmail.com" ]
lukeli0306@gmail.com
02af74f4a29c6196e2b244897585c90b4de5ef4b
3319aeddfb292f8ab2602840bf0c1e0c2e5927be
/python/prime_fork.py
cedd0bf463d8c6abe68980d31cbe32a85f97c67b
[]
no_license
slaash/scripts
4cc3eeab37f55d822b59210b8957295596256936
482fb710c9e9bcac050384fb5f651baf3c717dac
refs/heads/master
2023-07-09T12:04:44.696222
2023-07-08T12:23:54
2023-07-08T12:23:54
983,247
4
2
null
null
null
null
UTF-8
Python
false
false
875
py
#!/usr/bin/python3 import math import sys import os import time import resource min=int(sys.argv[1]) max=int(sys.argv[2]) def is_prime(n): prim=1 for i in range(2,int(math.sqrt(n))+1): if n % i == 0: prim=0 break if prim == 1: crt_pid=os.getpid() print(str(crt_pid)+" returned: "+str(n)) return 0 par...
[ "rmoisa@yahoo.com" ]
rmoisa@yahoo.com
15b0bb70da619df0472a6257e3e59dfa490506c9
a1192c09f1fd18f75278a4fea6daa0d4e9ebc9d0
/src/oscar/apps/promotions/admin.py
ed306c224e52a1de921e8f59c57183a43a41cfcb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
abirafdirp/django-oscar-jne
d201439569a64720622aaa8dd84ce248981eedd4
70272b842316e8df57b0bc8a0dc669c3af4ec8f9
refs/heads/master
2020-04-15T07:16:15.086429
2016-03-12T13:11:52
2016-03-12T13:11:52
50,660,159
3
3
null
null
null
null
UTF-8
Python
false
false
1,056
py
from django.contrib import admin from oscar.apps.promotions.models import Image, MultiImage, RawHTML, \ HandPickedProductList, OrderedProduct, AutomaticProductList, TabbedBlock, \ PagePromotion, KeywordPromotion, SingleProduct class OrderProductInline(admin.TabularInline): model = OrderedProduct class ...
[ "abirafdiraditya@gmail.com" ]
abirafdiraditya@gmail.com
e379d00a9c82b1968e6e39de2261cb910b0b96a0
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_chart_format15.py
0b9db557714fd2ec39b200bf43bdee7b34b5d62c
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
1,493
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
b14438ae29d90a802dd789e9b52ddc9f2f162bd6
3b93339109b69d1da43bbfbc17d40700594828a5
/tests/test_rankbm25.py
9cacb61b590d390820b308def6796e0e08c9ca11
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
shibing624/text2vec
b6fda0958eddc436c936e25c1d373ab368c4e1f7
c761ffc17b2eca0eb3795169f4d6acd4573c8f20
refs/heads/master
2023-07-20T01:38:21.139689
2023-07-17T08:31:19
2023-07-17T08:31:19
221,121,871
2,882
286
Apache-2.0
2023-08-07T04:16:13
2019-11-12T03:27:57
Python
UTF-8
Python
false
false
1,785
py
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import sys import unittest sys.path.append('..') from text2vec.utils.rank_bm25 import BM25Okapi from text2vec.utils.tokenizer import segment class RankTestCase(unittest.TestCase): def test_en_topn(self): """测试en文本bm25 topn"""...
[ "shibing624@126.com" ]
shibing624@126.com
e32c2d5ab8e528c7c4ac977dfc5613a162234b2c
8bdce915174678a90a6be811ea91b50930b9d26a
/elk/shares/analysis/new_stock_change_analysis.py
b5aa28cc1f4229488c7278d64809ae804e59118e
[]
no_license
CharlesBird/Resources
daefffef8fb3735e656cd0a3bf400d5e2ff85cc0
517ac7b7992a686fa5370b6fda8b62663735853c
refs/heads/master
2022-12-15T02:54:56.530940
2020-02-29T14:33:43
2020-02-29T14:33:43
109,668,108
1
1
null
2022-12-08T05:04:25
2017-11-06T08:34:30
Jupyter Notebook
UTF-8
Python
false
false
498
py
from elasticsearch import Elasticsearch import tushare as ts from datetime import datetime from pprint import pprint es = Elasticsearch(['47.103.32.102:9200']) TOKEN = '137e3fc78e901b8463d68a102b168b2ea0217cb854abfad24d4dc7f7' pro = ts.pro_api(TOKEN) sh_list_datas = pro.stock_basic(exchange='', list_status='', field...
[ "1016784928@qq.com" ]
1016784928@qq.com
2d3fa65a4864ae40e51ab272bbe29ffff39d68d3
9d994684359b96ded45c64281b5feca8db58dad5
/Python/800 - IV/551A.py
aa9c8b75dec28681cac6add03a2c787cc6a2022d
[]
no_license
KuroKousuii/Codeforces
7f38c67914ff6a1adb2d325d9f316e5fd122e463
80f5d46e2c7364ba52184bbf567e012235940be4
refs/heads/main
2023-07-17T14:24:41.713893
2021-09-05T18:51:39
2021-09-05T18:51:39
376,141,153
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
x = int(input()) ans = 1 arr = [*map(int, input().split())] for i in range(x): start = 1 for j in range(x): if arr[i] < arr[j]: start += 1 print(start, end=" ") print()
[ "84732337+KuroKousuii@users.noreply.github.com" ]
84732337+KuroKousuii@users.noreply.github.com
b4a3e0119573cbd3366666cd99c31bbb348732f2
7d4e8492de331f8bed4ef625132a3c8bb1e44b3e
/src/helpers/data_load_helper.py
b6d687dc6e8be8b27abc2c9a0e75f42628769342
[ "ISC" ]
permissive
uk-gov-mirror/dwp.dataworks-behavioural-framework
f6d1d7a94a2b18be659acd444ae8d88615e4a162
d7c143c0fc0c4ae9e86ece34ccc1a480df1f65ad
refs/heads/master
2023-04-09T01:09:37.313078
2021-04-14T15:43:44
2021-04-14T15:43:44
356,707,701
0
0
null
null
null
null
UTF-8
Python
false
false
4,797
py
import os import datetime from helpers import console_printer, template_helper def generate_arguments_for_historic_data_load( correlation_id, topics, s3_base_prefix, s3_suffix, default_topic_list, skip_earlier_than, skip_later_than, ): """Works out the topics needed for snapshot sender...
[ "noreply@github.com" ]
uk-gov-mirror.noreply@github.com
a95fd9b252c6a9aef8b741ea3b6f2077d542ae9c
b83752ae43ed3e08b17fa6911c13885fec1ed0b5
/InterviewQuestion/easy.py
d833d614535a8ca893a92d18dc82c1f46b04f4eb
[]
no_license
ephremworkeye/python-advanced
f25cf4f939d53f29a588722e482b6f2923a035f4
5ba305f221433b904323182ca18d85111d14bfd0
refs/heads/master
2023-07-31T00:11:35.288263
2021-09-23T10:59:44
2021-09-23T10:59:44
393,608,304
0
0
null
null
null
null
UTF-8
Python
false
false
767
py
def majority_element_indexes(lst): ''' Return a list of the indexes of the majority element. Majority element is the element that appears more than floor(n / 2) times. If there is no majority element, return [] >>> majority_element_indexes([1, 1, 2]) [0, 1] >>> majority_element_indexes([...
[ "ephremworkeye@gmail.com" ]
ephremworkeye@gmail.com
675c3f2d3fe7c16a47d1d6e4ed147df6f7fc4eb0
1ae3c8844ffd15bbb214a007b0b754431e4eb820
/setup.py
1b06a3e0fdf246f19753f59aeee5b5aa244266d1
[ "BSD-3-Clause", "BSD-2-Clause", "Apache-2.0" ]
permissive
SpectralAngel/django-select2-forms
37356482ea828e2316c3109c4966ace4f2e0c337
a1e7b48ade3b0a6bfbb3dbf5ddb880634b56da08
refs/heads/master
2021-01-18T00:56:16.161479
2015-12-03T16:21:34
2015-12-03T16:21:34
17,144,563
0
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup_kwargs = {} try: setup_kwargs['long_description'] = open('README.rst').read() except IOError: # Us...
[ "fdintino@theatlantic.com" ]
fdintino@theatlantic.com
c6854028c1c854f9823cc931e521b72d013b6fc3
68459c9f5ef5847079f373ee59c535327890bb2c
/PatientModule/admin.py
9456e3d9da2db8c526a085624bfcc85d7f68a506
[]
no_license
sanathsasi01/EcCovid
4dc34a5c72ea363c0ff0d75624b389f6050775a1
b21038d2265d5363f1069ca8ebdb555e19891dd1
refs/heads/master
2023-05-01T05:18:29.463143
2021-05-11T09:58:37
2021-05-11T09:58:37
365,087,803
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(PatientDetails) admin.site.register(Beds) # admin.site.register(bedCount) admin.site.register(FreeBeds)
[ "sanathsasi01@gmail.com" ]
sanathsasi01@gmail.com
c7e5725f4180ea2af34ce127356f310f29e6410c
6fbaa8d9e06eec449a228b9767166d7026b917d4
/Combat/data.py
1f713ef39986e0286a2155d72e844969cc890736
[]
no_license
BrokenShell/PW-DiscordBot
86a3f30359476e248501af2f613ac013eb416ba8
97790a25afc071c00b70030e0a40e58d11824463
refs/heads/master
2022-12-09T13:40:51.465051
2020-09-05T23:03:53
2020-09-05T23:03:53
293,138,244
0
6
null
null
null
null
UTF-8
Python
false
false
1,064
py
""" Data Model for Discord Bot """ from os import getenv from typing import List from pymongo import MongoClient class DataModel: def _connect(self): """ MongoDB Table Connection """ db = MongoClient( f"mongodb+srv://{getenv('MONGODB_USER')}:{getenv('MONGODB_PASS')}" f"@{g...
[ "webmaster@sharpdesigndigital.com" ]
webmaster@sharpdesigndigital.com
b841db80d9a13cf21d3d606d92aa945cf7d8a0f7
37dad1d64aa5f05311f9281e0c48af8cadb8e1b1
/mylib/openpose.py
4956bae606939fbafc47115484b8726ff50ad274
[]
no_license
nainauy/Detect-Hand-Grasping-Object
1008acc5a8fad5046f0b7aa28e9ce71f25e5d1ec
5257f9881747a7d56b6015e77d66517abb215941
refs/heads/master
2021-05-19T12:56:52.831945
2019-04-19T21:54:10
2019-04-19T21:54:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,073
py
import numpy as np import cv2 import sys, os, time, argparse, logging import simplejson import argparse import math CURR_PATH = os.path.dirname(os.path.abspath(__file__))+"/" # Openpose ============================================================== sys.path.append(CURR_PATH + "../tf-pose-estimation") from tf_pose.n...
[ "felixchenfy@gmail.com" ]
felixchenfy@gmail.com
9237414c6b0b1f7380a077644b65acb4e20307cd
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/important_man_or_early_way/hand_or_big_government/problem/see_part/own_group/time.py
85ff8a4c722c7de152e5218f8e2db8d6cb4559b1
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
#! /usr/bin/env python def large_fact_and_place(str_arg): want_case_in_own_hand(str_arg) print('few_place') def want_case_in_own_hand(str_arg): print(str_arg) if __name__ == '__main__': large_fact_and_place('right_time')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
a8520764cc51603c97d98b8dccdc4b3e2e4463ad
84cf3908371c9d346a3798e682389eb1a2692a99
/backend/raspy_field_26162/urls.py
b307e62e68651c559347d873b9262ca71548014b
[]
no_license
crowdbotics-apps/raspy-field-26162
85e9c88ee2c2a5ae2063264601eb684c08d406a5
edbc9aa1198cad09eca869541e595454a9dc97dc
refs/heads/master
2023-04-27T13:25:41.449954
2021-05-05T16:48:24
2021-05-05T16:48:24
364,645,590
0
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
"""raspy_field_26162 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
03e7651977bd58571673a6fe4806e3d264bd8db3
792ae5d2a5c17af4f2ccfa582e3aeec569a6809a
/532. K-diff Pairs in an Array.py
0bb439ae360ed565b3412197213c60206cf80f54
[]
no_license
ADebut/Leetcode
396b8b95ad5b5e623db2839bbfdec861c4c1731f
7333d481e00e8c1bc5b827d1d4ccd6e4d291abd7
refs/heads/master
2020-07-05T18:48:27.504540
2019-10-28T10:51:43
2019-10-28T10:51:43
202,735,925
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
class Solution: def findPairs(self, nums: List[int], k: int) -> int: if (len(nums) < 2 or k < 0): return 0 count = 0 nums.sort() right = 0; for i in range(len(nums)): if (i > 0 and nums[i] == nums[i - 1]): continue ...
[ "chen758@usc.edu" ]
chen758@usc.edu
c4fd29805691979948d88f775ff088b7be085553
6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a
/azure-cognitiveservices-search-visualsearch/azure/cognitiveservices/search/visualsearch/models/image_knowledge_py3.py
637dc7e91a512d1856c7ae5899c35b500bdbe13d
[ "MIT" ]
permissive
ashirey-msft/azure-sdk-for-python
d92381d11c48f194ec9f989f5f803db614fb73f2
e04778e13306dad2e8fb044970215bad6296afb6
refs/heads/master
2020-03-23T06:05:39.283442
2018-09-15T00:18:26
2018-09-15T00:18:26
141,188,192
0
1
MIT
2018-07-16T20:02:52
2018-07-16T20:02:52
null
UTF-8
Python
false
false
2,288
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 ...
[ "noreply@github.com" ]
ashirey-msft.noreply@github.com
1966a75d2154970b448f956360acf37fa4e7115b
71ed291b47017982a38524b4ff8fe94aa947cc55
/Array/LC414. Third Maximum Number.py
64ff5c9fd66ddb6739767d005c10d680a4a605d5
[]
no_license
pingting420/LeetCode_Algorithms
da83b77e8f37bd4f461b0a7e59c804871b6151e5
f8786864796027cf4a7a8b0ad76e0b516cd99b54
refs/heads/main
2023-07-17T22:46:08.803128
2021-09-02T22:06:38
2021-09-02T22:06:38
375,401,021
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
#sort #loc:should consider the situation that the number smaller than 3 def thirdMax(nums): #set can help us delete the duplicte number nums = list(set(nums)) nums.sort() if len(nums)<3: return nums[-1] else: return nums[-3]
[ "bellapingting@gmial.com" ]
bellapingting@gmial.com
2ed65ccdb34e6a493af9b66a4eaaa90eb364cb85
3f9e0e830a8472a37dafab95641eaed4c6dd1ac9
/newpandas/root_to_txt.py
5449bb22ee36be9af8e82ef5b9e33925b569175d
[]
no_license
robertej19/dvpip_ana
c475af97befa0eb5eb662f5f6c3333a5f44fcb71
486452ac0628dcde98b1cee329bbc23dc772aa26
refs/heads/main
2023-04-10T06:02:34.037258
2021-04-23T13:35:41
2021-04-23T13:35:41
335,967,722
0
0
null
null
null
null
UTF-8
Python
false
false
3,211
py
#!/usr/bin/python import uproot from icecream import ic import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt import subprocess import os import time import shutil from shutil import copyfile #This project from src.utils import filestruct from src.utils import query_maker from src.utils i...
[ "robertej@mit.edu" ]
robertej@mit.edu