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
c5a6a90601b89c76dc19f9acfb6301c34c546b88
c77625eca982bac81ce97630e1e1273e022490ad
/week3-tools/homework/2.py
1235685eed0df95d6a6b0d3266e511babc8ce38a
[]
no_license
benzitohhh/cs212-style
7b66a5b948f828b0ccece6c22ad49c3eed2d202b
0cefe0fd374e2a3c84ecf15d1ac657392aacfcf1
refs/heads/master
2021-01-23T19:45:43.506797
2012-06-03T23:53:16
2012-06-03T23:53:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,363
py
# -------------- # User Instructions # # Write a function, inverse, which takes as input a monotonically # increasing (always increasing) function that is defined on the # non-negative numbers. The runtime of your program should be # proportional to the LOGARITHM of the input. You may want to # do some research into...
[ "immanuel_ben@yahoo.co.uk" ]
immanuel_ben@yahoo.co.uk
4ff54e46cbaa3c0b6a6d782c56c49dde9d7f46f9
a643281b09ddc4e4c1e04faddbf54ee4f373c74a
/chapter_15_PDF_DOCX/custom_invite.py
6e574e545b7084992362f519db2d2931a496e211
[]
no_license
mkoundo/Automate_the_Boring_Stuff
5036d983d30282231552710087a9445262179653
0b03a8918e5c9a5aaa4d21ef9c85361cfab435bb
refs/heads/master
2022-12-02T17:00:16.295787
2020-08-17T09:22:23
2020-08-17T09:22:23
280,481,892
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
#! python3 # custom_invite.py # Author: Michael Koundouros """ Write a program that would generate a Word document with custom invitations. Since Python-Docx can use only those styles that already exist in the Word document, you will have to first add these styles to a blank Word file and then open that file with Pytho...
[ "michael.koundouros@outlook.com" ]
michael.koundouros@outlook.com
56f6b0931deacd8bce5f8851e5e3be6a274d9362
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/pytorch/source/caffe2/python/layers/batch_distill_lr_loss.py
c4a367956922eb1cf747a09c56d7b5deb34e742b
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
7,084
py
## @package batch_distill_lr_loss # Module caffe2.python.layers.batch_distill_lr_loss from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, schema from caffe2.python.layers.layers import ( ...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
6c653971a68f7ccaaa4be290ad468be14023ef48
746cd1d11eb24e7a987f2dd4db72b68a8e0a5b99
/android/external/adt-infra/build/scripts/slave/recipes/syzygy/coverage.py
c7375c5f3a9102d61605ec5e1e3bc1abf464aa05
[]
no_license
binsys/BPI-A64-Android7
c49b0d3a785811b7f0376c92100c6ac102bb858c
751fadaacec8493a10461661d80fce4b775dd5de
refs/heads/master
2023-05-11T18:31:41.505222
2020-07-13T04:27:40
2020-07-13T12:08:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Buildbot recipe definition for the various Syzygy coverage builder. To be tested using a command-line like: /build/scripts/tools/run_recipe.py syzygy/...
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
2feb27f933d79a2daa4173fe023eddbd30a8aa14
72f9c5c099fe07073a4a619c2d843a44aa69343e
/state-of-the-art algorithm/affine_transform_optimize.py
5b2455e2fb0e5db5478ea1a1dbc6dde2d595e9dc
[]
no_license
fixernhc/radar_mti
4d1fb80193bb316a7822df6557900ca2fb040610
4213025d0305f453d1ff1dee3c5ff2fa77636077
refs/heads/master
2023-05-24T19:19:45.150242
2021-06-11T20:13:36
2021-06-11T20:13:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,941
py
import torch import torchvision import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np from torch import nn, optim, cuda, cos, sin from torch.utils.data import Dataset, DataLoader from torch.autograd import Variable import matplotlib.pyplot as plt import natsort import wand...
[ "nakorn.vistec@gmail.com" ]
nakorn.vistec@gmail.com
4317463ecd73adcd2602a4702b3ccc8e39b72717
38b0b9679d10010d2edd169840ec0036f1df3b9e
/models/city.py
52181c39893bf28aef39fe105a76024ec72f3127
[]
no_license
Simonster04/AirBnB_clone
0be961d9aeca1c7b78bac6d3628d1143f5b55fe7
a0ac7a887d27033697d7d25b95fd8048b36433de
refs/heads/master
2021-01-04T13:17:50.430628
2020-03-02T16:55:19
2020-03-02T16:55:19
240,567,835
0
1
null
null
null
null
UTF-8
Python
false
false
312
py
#!/usr/bin/python3 """ Contains City class """ from models.base_model import BaseModel class City(BaseModel): """class City that inherits from BaseModel""" state_id = "" name = "" def __init__(self, *args, **kwargs): """ initialize City """ super().__init__(*args, **kwargs)
[ "simon.pahe@gmail.com" ]
simon.pahe@gmail.com
aa7f053adc2fb10ba11fe656e97ae19f155393d8
d456096948cc1dcc43907985cc0896579ba6dd3d
/python/final2.py
f1192633d0e75e6fb50fbe56c97bfbfb5afe68d6
[]
no_license
Brijesh-kumar-sharma/learning
f465bde3f9f722ab946b22145b7138123586c446
14e86d7477d14b8dff7d8225ee150baac9e4ef0a
refs/heads/main
2023-02-16T20:47:30.506495
2021-01-20T22:58:13
2021-01-20T22:58:13
331,270,579
2
2
null
null
null
null
UTF-8
Python
false
false
2,808
py
# Python program to find the largest number # that can be mode from elements of the # array and is divisible by 3 # Number of digits def solution(arr): n = len(arr) ans1=largest3Multiple(arr, n) ans=concatenate(j) if(ans1==True): return ans else: return 0 def concate...
[ "123@gmail.com" ]
123@gmail.com
c748236a0e6d349255ef91e478c666923008639e
463c053bcf3f4a7337b634890720ea9467f14c87
/python/ray/tests/test_runtime_env_conda_and_pip_3.py
0303fa786622163f64633b4e985153d644fd4969
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
pdames/ray
e8faddc4440976211a6bcead8f8b6e62c1dcda01
918d3601c6519d333f10910dc75eb549cbb82afa
refs/heads/master
2023-01-23T06:11:11.723212
2022-05-06T22:55:59
2022-05-06T22:55:59
245,515,407
1
1
Apache-2.0
2023-01-14T08:02:21
2020-03-06T20:59:04
Python
UTF-8
Python
false
false
6,061
py
import os import pytest import sys import time from ray._private.test_utils import ( wait_for_condition, check_local_files_gced, generate_runtime_env_dict, ) import ray from unittest import mock if not os.environ.get("CI"): # This flags turns on the local development that link against current ray ...
[ "noreply@github.com" ]
pdames.noreply@github.com
233a1e1550443158862d3caa4fed464ac058f81f
1df9b7ff43c9e1316cdeb8defad7f64e4ffc4b06
/lint_rules/ardana_sudo_in_top_level_rule.py
21b4be14dc4977ce6bb2018ae548e1c9a087bb2a
[ "Apache-2.0" ]
permissive
ArdanaCLM/ardana-dev-tools
3701e681b1aaa5b8987f2ab05ff418ff922924f0
fde6e354351bf6dc19187d40e75aa5376a7b0f87
refs/heads/master
2022-11-07T01:48:38.878491
2022-10-06T17:13:28
2022-10-06T17:13:28
105,183,965
3
11
Apache-2.0
2022-10-26T16:16:50
2017-09-28T18:20:50
Shell
UTF-8
Python
false
false
1,561
py
# # (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP # (c) Copyright 2017 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
[ "nicolas.bock@suse.com" ]
nicolas.bock@suse.com
60860345d40d3fd1458fb62009a055295405a8a1
f68eda51246c95597def569224f3b56d4c3700e7
/top/api/rest/LogisticsAddressModifyRequest.py
98cc7e5c7b8023814b6e279f5c6e937fe67578c2
[ "MIT", "BSD-3-Clause" ]
permissive
stoensin/taobao-openapi
47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f
202a9df2085229838541713bd24433a90d07c7fc
refs/heads/main
2023-07-17T02:17:51.527455
2021-08-25T15:08:49
2021-08-25T15:08:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
''' Created by auto_sdk on 2018.07.26 ''' from top.api.base import RestApi class LogisticsAddressModifyRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.addr = None self.cancel_def = None self.city = None self.contact_id = None self...
[ "samzong.lu@gmail.com" ]
samzong.lu@gmail.com
ac7447818344e6904dff31b166f57f069c83d371
4c0328c7fa7805cdd196cf890695ec1a8a438a5f
/devel/lib/python2.7/dist-packages/pal_motion_model_msgs/msg/_MotionModelList.py
c1d79ced194f54dd2ce45db1a237eaad4e1b6996
[]
no_license
SebsBarbas/iRob_KTH
d98dfce8692bdd4d32ce3a4d72daa8d022976c0a
c164c9d12efcab56b4871fc5bb5538df5849a42e
refs/heads/main
2023-01-23T10:49:59.073113
2020-12-04T18:49:53
2020-12-04T18:49:53
318,595,723
0
0
null
null
null
null
UTF-8
Python
false
false
5,492
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pal_motion_model_msgs/MotionModelList.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import pal_motion_model_msgs.msg class MotionModelList(genpy.Message): _md5su...
[ "ssbl@kth.se" ]
ssbl@kth.se
e4ce6c230c52670af6dfcf7cd34db5701ae8747c
c63d4b6c1d61b88bebc8dee773e704db4457b94a
/link.py
6578c44bccd37f90a3e6be369e9231f5581c2833
[]
no_license
drewp/href
be625c17ac766f3726540fa0d1b9a357710c4416
fd76d667c092f7f0e21c6c4b95faee974ab7c785
refs/heads/master
2022-07-28T17:11:05.784109
2020-07-12T20:35:41
2020-07-12T20:35:41
8,795,344
0
0
null
2022-07-08T19:09:26
2013-03-15T09:00:13
Python
UTF-8
Python
false
false
2,593
py
import urllib.parse import urllib.request import urllib.parse import urllib.error from dateutil.tz import tzlocal class NotFound(ValueError): pass class Links(object): def __init__(self, db): self.coll = db['links'] def insertOrUpdate(self, doc): if not doc['href']: raise Va...
[ "drewp@bigasterisk.com" ]
drewp@bigasterisk.com
2e9468ec0210a0f8fdebc600281cf73a45274af5
11b9623a8acd968cc683ba8ff8f7527043f6e80b
/fit_nr_band/examine_band_mc.py
fceb1765cd6e072d60c1bd219ece2f4404364731
[]
no_license
mdanthony17/xenon1t
ecae2d2ed0873874d32c02d048f75f8833dc4c47
3f56e102fe9af85c8784f0171714d0af777db556
refs/heads/master
2020-12-25T05:44:52.213533
2017-08-24T13:12:07
2017-08-24T13:12:07
63,275,516
0
1
null
null
null
null
UTF-8
Python
false
false
5,024
py
#!/usr/bin/python import sys, array, os sys.path.insert(0, '..') import matplotlib matplotlib.use('QT4Agg') import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.patches as mpatches import ROOT as root from rootpy.plotting import Hist, Hist2D, Canvas, Legend import config_xe1t import num...
[ "mda2149@columbia.edu" ]
mda2149@columbia.edu
d1d618104ca6fdc160bb7f65429ba62683d708bd
86f3973554eb61b12528835851cbdc96aba9ccc0
/io_scene_xray/formats/level/exp/geom.py
c94d927aa8865aacc86b34898a09ea036f8d20cb
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
PavelBlend/blender-xray
02d68e424ae9088221bafc1d0d9019690323d9da
a3abb9eb805182eec8ed8de4058dd744aee0e291
refs/heads/develop
2023-09-03T15:10:56.022070
2023-08-22T17:50:23
2023-08-22T17:50:23
20,459,902
150
40
BSD-2-Clause
2023-08-10T15:01:24
2014-06-03T21:12:53
Python
UTF-8
Python
false
false
6,210
py
# standart modules import os # addon modules from . import header from .. import fmt from .... import utils from .... import rw def _write_geom_swis(geom_writer): swis_writer = rw.write.PackedWriter() swis_writer.putf('<I', 0) # swis count geom_writer.put(fmt.Chunks13.SWIS, swis_writer) def _write_g...
[ "stalkermodkytia@yandex.ru" ]
stalkermodkytia@yandex.ru
7701a1e30eabebdb5a0729666eb1901ff0911fed
a61ebd1507eeaa334aff44800b022ef0a258752a
/Code/CodeChef/servant.py
bc7aee978e8bdf9841eacba1ada6af5b82a02df9
[ "MIT" ]
permissive
Jimut123/competitive_programming
14ce0ab65414e6086763519f95487cddc91205a9
b4cdebaceee719c1a256921829ebafda11c515f5
refs/heads/master
2023-03-05T15:42:57.194176
2022-04-08T08:53:26
2022-04-08T08:53:26
156,541,142
1
0
null
2019-05-29T17:10:28
2018-11-07T12:09:55
C++
UTF-8
Python
false
false
160
py
T = int(input()) for i1 in range(T): item = int(input()) if item < 10: print("What an obedient servant you are!") else: print("-1")
[ "jimutbahanpal@yahoo.com" ]
jimutbahanpal@yahoo.com
796a53536fba0ce7a713603ab72befc68941ec7a
86bcaa6d007748a6f4fc16d5fd6ccfb9def2d2ed
/tools/socket_server.py
71c98621439961b1d22994529e2bcccf42becc16
[ "MIT" ]
permissive
mini338/mpf
1063bb8cc4582299a10121238b9cdd4fa5fea062
b4877a66b06a87e9c54fd593ae585dcd6486b291
refs/heads/master
2021-01-17T08:22:41.755921
2015-12-01T09:59:17
2015-12-01T09:59:17
47,421,521
1
0
null
2015-12-04T18:19:55
2015-12-04T18:19:55
null
UTF-8
Python
false
false
1,103
py
import socket import sys def handle_command( cmd ): print( "Received command " + cmd ) # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Bind the socket to the port server_address = ('localhost', 5050) print >>sys.stderr, 'starting up on %s port %s' % server_address sock.bind(se...
[ "brian@missionpinball.com" ]
brian@missionpinball.com
7ed0bf2314b14bc88d62fe8465db6a9916e31eb0
3e805766bbe504ae23e876aede9472dcede89f99
/tech/web/fullstack/Backend/Django/shortcut/utils/location.py
f414db26308d09cf2cd308132651ece74be06543
[ "MIT" ]
permissive
vimm0/auto-script
a20c1ee38f39f3299cc63aed5f647d6e73181e52
2392dd22087ccbbdd8f3e833df26a4ca6eb31bd4
refs/heads/master
2021-03-31T00:21:33.964259
2020-05-02T17:28:51
2020-05-02T17:28:51
124,433,500
1
1
null
2018-08-17T18:17:34
2018-03-08T18:45:51
Java
UTF-8
Python
false
false
1,251
py
from django.db import models from django.conf import settings from django import forms """ USAGE: location = LocationField(blank=True, max_length=255) """ class LocationPickerWidget(forms.TextInput): class Media: """ Place assets to static folder """ css = { 'all'...
[ "vimmrana0@gmail.com" ]
vimmrana0@gmail.com
8fe21bc34b527015d143faa7de7440dab2334c5f
f22ca9aecda111a019502b462ce6772cb22d9425
/swagger_client/models/inline_response20082_result.py
ee7511f402585ac0f60495e7d7ce08b85e470e89
[]
no_license
sivanv-unbxd/a2c-sdk-pim
cac05bc6335ddc3c4121d43e2dc476a6fec14965
51a07a0b7f90d74569ad14b47b174da7ac1fc374
refs/heads/main
2023-05-29T05:45:32.279821
2021-06-09T03:52:11
2021-06-09T03:52:11
375,218,584
0
0
null
null
null
null
UTF-8
Python
false
false
3,284
py
# coding: utf-8 """ Swagger API2Cart API2Cart # noqa: E501 OpenAPI spec version: 1.1 Contact: contact@api2cart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class InlineResponse20082Result(object): """NOTE: This...
[ "sivanv@unbxd.com" ]
sivanv@unbxd.com
35ac05c4a6159bc59a22a6cf225fd46bfe14070c
6375b7e4dfe11ced7dcd3fad1a7a2de9a504910d
/exc14_input_and_argv.py
7bbae171fa85874cbef8a36ca8c3922ad9ed7f6b
[]
no_license
yaowenqiang/lpthw
b65e6b8ce576e7caa5cfba5570550e546d1e0549
4bbd7ebb4e8c570a39bf9c55df9bd97e4f86e1e5
refs/heads/master
2020-04-01T10:57:32.959389
2019-05-01T09:27:25
2019-05-01T09:27:25
153,140,026
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
from sys import argv script, user_name = argv prompt = "> " print(f"Hi, {user_name},I'm the {script} script.") print("I'd like to ask you a few quastions.") print(f"Do you like me {user_name}?") likes = input(prompt) print(f"Where do you live {user_name}?") lives = input(prompt) print("What kind of computer do you ha...
[ "yaowenqiang111@163.com" ]
yaowenqiang111@163.com
b64573dcdca6887a73c266deb5862144b9805094
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/grazie/StringLiterals.py
4493152e8743732f9d19f60b6833747b4cfe6cb7
[ "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
1,264
py
# TODO add f-Strings support oneTypo = "It is <warning descr="EN_A_VS_AN">an</warning> friend of human" oneSpellcheckTypo = "It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human" fewTypos = "It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings" ignoreTe...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
dfe6e8e1a60ef89ba1474d2c591e1439106a6603
8454441f899c3beb9fcea26cffc2f4c3cf75ff6a
/common/code/snippets/gdb/log_changes.py
4c26911b6a28c303b03a6523d9c05c888efdd5d3
[ "MIT" ]
permissive
nevesnunes/env
4a837e8fcf4a6a597992103e0a0c3d0db93e1c78
f2cd7d884d46275a2fcb206eeeac5a8e176b12af
refs/heads/master
2023-08-22T15:49:35.897161
2023-08-15T13:51:08
2023-08-15T13:51:08
199,400,869
9
6
MIT
2023-06-22T10:59:51
2019-07-29T07:24:47
Python
UTF-8
Python
false
false
6,049
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import gdb import operator cs_instances = [] # This module helps generate a complete log of the call stack of a breakpoint. # It can also record the value of some variables. # Get a table horizontal line def get_hline(length): s = '' for x in range(0, length): ...
[ "9061071+nevesnunes@users.noreply.github.com" ]
9061071+nevesnunes@users.noreply.github.com
c33a4614e776c380a65cf45ad3cfb2d3bd100337
d973df1e60d17b2c4ac6430ec29cce7fd139c3ec
/08-flask/web-dev-for-data-scientists/exercises/flask-btc/data.py
528cc366dba73cfbf84f58154cf4f8f83dbef137
[ "MIT" ]
permissive
dushyantkhosla/viz4ds
49153414f10bfa0b577fa5e076ef6c697298146a
05a004a390d180d87be2d09873c3f7283c2a2e27
refs/heads/master
2022-06-28T14:21:47.116921
2019-10-22T10:34:16
2019-10-22T10:34:16
133,490,301
0
0
MIT
2022-06-21T21:30:16
2018-05-15T09:08:30
Jupyter Notebook
UTF-8
Python
false
false
1,219
py
import sqlite3 import requests def get_rates(): results = {} try: bitstamp = requests.get( 'https://www.bitstamp.net/api/v2/ticker/btcusd/') results['bitstamp'] = float(bitstamp.json()['bid']) kraken = requests.get( 'https://api.kraken.com/0/public/Ticker?pair=X...
[ "dushyant.khosla@pmi.com" ]
dushyant.khosla@pmi.com
ec1a4bfdcf0d5057c23c4c020aed39c3b2e1b4d4
a6ed0c42659f54f88024a9171c353e7cbe51328e
/Python/Django/loginreg/apps/regapp/migrations/0003_auto_20171017_0709.py
b6e79d8f6327e2ee7378a68fc486d437a7595365
[]
no_license
tomama1/Practice
c4a44a044fe67b3f4eb34dca0a0dd9ea38f4c766
8adecd0ee985db06497578a11d067ac16502da7b
refs/heads/master
2021-09-05T04:32:42.020673
2018-01-24T05:51:16
2018-01-24T05:51:16
104,159,010
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-10-17 07:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('regapp', '0002_user_password'), ] operations = [ migrations.AlterField( ...
[ "matthewtoma123@gmail.com" ]
matthewtoma123@gmail.com
f2dc1b1b2db443d115b5abca193f0f414400c61e
ed0ee3d5ca7a67545d379a769e34fd06037ac7d2
/drones/urls.py
4b21360e3b1efbf843614966dcb8bf7787a31128
[]
no_license
lifeofperfect/Drone-competition
b2a16a578b5097081fcb55144f7295107bdbd453
b091f7666d97c70e50826d6b14f25851afdee3e4
refs/heads/master
2022-06-11T02:33:19.456003
2020-05-05T01:32:07
2020-05-05T01:32:07
261,335,899
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
from django.urls import path from drones import views urlpatterns = [ path('drone-categories/', views.DroneCategoryList.as_view(), name=views.DroneCategoryList.name), path('drone-categories/<int:pk>/', views.DroneCategoryDetail.as_view(), name=views.DroneCategoryDetail.name), path('drones/', views.DroneL...
[ "perfect.igbadumhe@gmail.com" ]
perfect.igbadumhe@gmail.com
bfecfcbe5b99c612d0f93dbbeee3e74c2517d308
2c02fe74f67b5cdc51a09bf7b8029ba7cc0188aa
/patchCLS/test.py
afb3c484575020e0d63306adbcc2ae8ce9ea5861
[ "MIT" ]
permissive
codingPingjun/SuspiciousRegionWSI
d27dc665b2eaaab7206faac96df8f175a3b054d1
91473d842e1a21268440eb330eb146739b556cdc
refs/heads/master
2020-07-30T13:03:30.135077
2019-09-03T01:31:00
2019-09-03T01:31:00
210,243,991
1
0
MIT
2019-09-23T01:57:14
2019-09-23T01:57:13
null
UTF-8
Python
false
false
1,240
py
# -*- coding: utf-8 -*- import os, sys import argparse import torch import torch.backends.cudnn as cudnn from train_eng import validate_model from patchloader import val_loader def set_args(): parser = argparse.ArgumentParser(description='Thyroid Classification') parser.add_argument('--seed', typ...
[ "chenpingjun@gmx.com" ]
chenpingjun@gmx.com
bb0a9e2dcdee4c874310ad1a71ffdc4751a324a2
bb11350c9f600d0021d81f7f6ee8c2cc5961a5f0
/ZKDEMO/21_flame_sensor_module/21_flame_senspr.py
37be6108273e23b8fb8a3d70a38f44c37914813b
[]
no_license
atiger808/raspberry-tutorial
045178877a456908aa8ce764aad62159d674ae79
e877939fd1c72e09ce20497f08d854872588e1ef
refs/heads/master
2022-12-25T19:35:08.378370
2020-10-14T09:56:15
2020-10-14T09:56:15
303,970,623
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
# coding=utf-8 ''' LM393模块 配合PCF8591模块 做 雨水检测 接口分别为:A0, D0, VCC, GND A0 对应 PCF8591模块的AIN0 D0 对应 GPIO接口 VCC 接 5v GND 接 地线 ''' import PCF8591 as ADC import time import RPi.GPIO as GPIO import math DO = 17 def setup(): GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) ADC.setup(0x48) GPIO.setup(DO, GPIO.I...
[ "atiger0614@163.com" ]
atiger0614@163.com
da28398fbb5fe7b1291ca338ae568516c4872cdc
77db6591c5884204d6016bfa89b33691bac38813
/rcbc/admin.py
a273ce4af58b2a1eddf3c578f91e503cb02c02c2
[]
no_license
jbukoski/iltf-signal-webmap-suite
4fc0aafa977e911a1071872f7adbaf2e7d0da37c
b8374e9cfcc80501a8f632721a7cb9b76e668f6b
refs/heads/master
2021-03-27T11:20:37.174667
2020-12-31T18:03:20
2020-12-31T18:03:20
79,853,039
1
0
null
null
null
null
UTF-8
Python
false
false
258
py
from django.contrib import admin from django.contrib.admin import AdminSite from . import models class rcbcAdmin(AdminSite): site_header = 'Red Cliff Band of the Lake Superior Chippewa' site_url = '/rcbc/' rcbc_admin = rcbcAdmin(name='rcbc_admin')
[ "jacob.bukoski@yale.edu" ]
jacob.bukoski@yale.edu
654f7bb9e61fd240409c9f3c7c5e56e47cc536e1
0fa2697dc0894a8920380df0024fd32b138aaf47
/py_data_struc/py6_4.py
54e907c5c5bc2e0616e8ce27aeb8042caffc8357
[]
no_license
QI-Xiao/qxfluentpy
cc7489c636cc9e387140d4fdb9d8fc50d8b6819e
33f5d26b341c237bacce37cd1db91a2fc8baa0a6
refs/heads/master
2020-05-07T09:15:51.913271
2019-11-29T16:09:37
2019-11-29T16:09:37
180,369,865
0
0
null
null
null
null
UTF-8
Python
false
false
2,007
py
# myTree = ['a', ['b', ['d',[],[]], ['e',[],[]]], ['c', ['f',[],[]], []]] # print(myTree) # print('left subtree = ', myTree[1]) # print('root = ', myTree[0]) # print('right subtree = ', myTree[2]) # # # def BinaryTree(r): # return [r, [], []] # # def insertLeft(root, newBranch): # t = root.pop(1) # if len(t...
[ "524290558@qq.com" ]
524290558@qq.com
5105e52f98ed84b79ff269851378c5a40a8a88ff
52a4d282f6ecaf3e68d798798099d2286a9daa4f
/new/see.py
fe557c2a3f54092dbbfc7bee22afdd9584a41bff
[ "MIT" ]
permissive
bkovitz/FARGish
f0d1c05f5caf9901f520c8665d35780502b67dcc
3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21
refs/heads/master
2023-07-10T15:20:57.479172
2023-06-25T19:06:33
2023-06-25T19:06:33
124,162,924
5
1
null
null
null
null
UTF-8
Python
false
false
2,053
py
# see.py -- Functions to run experiments, i.e. to "see" something from typing import Union, List, Tuple, Dict, Set, FrozenSet, Iterator, \ Iterable, Any, NewType, Type, ClassVar, Sequence, Callable, Hashable, \ Collection, Sequence, Literal, Protocol, Optional, TypeVar, IO, \ runtime_checkable from pprint ...
[ "bkovitz@indiana.edu" ]
bkovitz@indiana.edu
48b63198a8ead831578b3009bbc21ff97163e61f
9d278285f2bc899ac93ec887b1c31880ed39bf56
/ondoc/doctor/migrations/0283_doctorclinictiming_custom_deal_price.py
c86388d49326d3bfb4ada6484e7043ce2a98252d
[]
no_license
ronit29/docprime
945c21f8787387b99e4916cb3ba1618bc2a85034
60d4caf6c52a8b70174a1f654bc792d825ba1054
refs/heads/master
2023-04-01T14:54:10.811765
2020-04-07T18:57:34
2020-04-07T18:57:34
353,953,576
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# Generated by Django 2.0.5 on 2019-07-25 11:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('doctor', '0282_doctorclinictiming_insurance_fees'), ] operations = [ migrations.AddField( model_name='doctorclinictiming', ...
[ "sonamsinha@policybazaar.com" ]
sonamsinha@policybazaar.com
5784d8ec802bef65043ea4f3a90fe73731566251
1eba03a3a7b5f6133dfcbc7a0ab9c73f950a79d8
/algorithms/116. Populating Next Right Pointers in Each Node/python/solution.py
0869a5e6ec1d4c8bda3fb1ef4a00e715ec37bce0
[]
no_license
GTxx/leetcode
ab640cad726111a5fd78ecfbc02f75a61112bc2c
b7f85afe1c69f34f8c6025881224ae79042850d3
refs/heads/master
2021-06-15T18:43:41.358275
2021-05-08T08:15:05
2021-05-08T08:15:05
70,294,841
1
0
null
null
null
null
UTF-8
Python
false
false
754
py
# Definition for a Node. class Node: def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None): self.val = val self.left = left self.right = right self.next = next class Solution: def connect(self, root: 'Node') -> 'Node': if not r...
[ "xiongxiong1986@gmail.com" ]
xiongxiong1986@gmail.com
3efa8a2b00aba54f482ba77ef8f3ad981a187f7e
acb501c11f31e47a727c8233b29a049c36bb46ac
/zounds/timeseries/test_constantrate.py
3aece4414c4570aee1fd964394f4f84a3e640c12
[ "MIT" ]
permissive
JohnVinyard/zounds
2c89c35ce9542f61a1d36c36a77944dfb65e59cc
fc4ed6f9c2ba5db5ba379b5b106dc23c045f1dc0
refs/heads/master
2022-12-09T19:55:01.055460
2020-03-05T12:50:05
2020-03-05T12:50:05
54,522,542
23
8
MIT
2022-12-08T00:34:47
2016-03-23T01:55:04
Python
UTF-8
Python
false
false
1,491
py
import unittest2 from .constantrate import ConstantRateTimeSeries from zounds.core import ArrayWithUnits, IdentityDimension from zounds.timeseries import TimeDimension, Seconds, Milliseconds, TimeSlice import numpy as np class ConstantRateTimeSeriesTests(unittest2.TestCase): def test_raises_when_not_array_with_u...
[ "john.vinyard@gmail.com" ]
john.vinyard@gmail.com
22b136c8a0dddfd8b4ab44beb2d11396df0bec6a
0ff6dcb439a8d92a7c384cfd7f4f4796a394088a
/drfutils/tests/test_serializers.py
88a49b545bdfc92c9c30f29e931392a83fedd49b
[]
no_license
ployst/drf-utils
7285329e2983e59ad19febabb512b278cffa8c78
8ae3afc80124f840ce29c9913aab6c0e27a68218
refs/heads/master
2021-07-15T05:10:21.706722
2021-03-22T10:23:38
2021-03-22T10:23:38
47,344,241
0
0
null
2021-03-22T10:22:17
2015-12-03T16:21:12
Python
UTF-8
Python
false
false
4,253
py
from unittest import TestCase from unittest.mock import Mock from rest_framework import fields, serializers from ..serializers import ( DynamicFieldsSerializerMixin, ExpandableFieldsSerializerMixin, SubSerializer, ) class CreatorSerializer(serializers.Serializer): name = fields.CharField() other...
[ "carles@barrobes.com" ]
carles@barrobes.com
215056e46f37cc1da3eb72cceedda51abdd0cda5
032a0c939d96d0e5307dbce86e11faf7060f4ed9
/lte/gateway/python/scripts/sms_cli.py
c4584e4a089a1e872af1a9b86e7c3a2d54801135
[ "BSD-3-Clause" ]
permissive
radha0018/magma
cac9ff3491dd2661e5dc0aa1f9a304a5428e2d2a
8436966a4bb3cf7fdc3f567704062b6f9568db25
refs/heads/master
2023-05-05T08:26:07.132969
2021-05-27T18:44:44
2021-05-27T18:44:44
371,097,174
0
2
NOASSERTION
2021-05-26T16:26:21
2021-05-26T16:15:53
Go
UTF-8
Python
false
false
2,171
py
#!/usr/bin/env python3 """ Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BAS...
[ "noreply@github.com" ]
radha0018.noreply@github.com
b3e15fba0594bc5b837263733cea02f3190b9c27
e2c99310fecced655cac34bc494d255744e77e4f
/camera_server/led_driver.py
554584323254d70917c9c9da14a67670b07bed1d
[]
no_license
stfc-aeg/timeslice-camera
2532b440efdbb2965b16ca68f0d444ea17f1174e
868648f4c6ffadb60e0f6d91e835583d545f2099
refs/heads/master
2022-12-08T22:18:33.092074
2022-12-02T12:55:16
2022-12-02T12:55:16
166,972,587
0
0
null
2022-12-02T12:52:59
2019-01-22T10:13:10
Python
UTF-8
Python
false
false
2,484
py
import importlib import threading import time class LedDriver(object): GreenLed = 19 RedLed = 26 OFF = 0 RED = 1 GREEN = 2 YELLOW = 3 def __init__(self, simulate=False): if not simulate: self.gpio = importlib.import_modu...
[ "tim.nicholls@stfc.ac.uk" ]
tim.nicholls@stfc.ac.uk
19764049b4d17c5beb95008b433bc33895769e39
491980a6d5936d09bc1bb9b9124729c02f3b1724
/soup.py
91fa8504bfb622e0ba0b810e7f8afc6a30c9bc99
[]
no_license
larryback/hello
2dc8506dcc20af615feff1f29d2b889bbb1142bb
e0937cd616c1dc7795d887ea88613ef399d7b17d
refs/heads/master
2020-04-04T23:15:36.303348
2019-05-02T08:48:31
2019-05-02T08:48:31
156,352,391
1
0
null
null
null
null
UTF-8
Python
false
false
754
py
# 모듈을 읽어 들입니다. from urllib import request from bs4 import BeautifulSoup # urlopen() 함수로 기상청의 전국 날씨를 읽습니다. target = request.urlopen("http://www.kma.go.kr/weather/forecast/mid-term-rss3.jsp?stnId=108") # BeautifulSoup를 사용해 웹 페이지를 분석합니다. soup = BeautifulSoup(target, "html.parser") # location 태그를 찾습니다. for location in...
[ "41230266+larryback@users.noreply.github.com" ]
41230266+larryback@users.noreply.github.com
03b2f23d2757fad8b46cab6be4fdbaaaaf3ef33f
f284404ea66c196a1ea71b40965df9f934b45579
/tohu/v6/base.py
e2af962cb79e90d0c3913ca68098c08153a4af7b
[ "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
maxalbert/tohu
44afe1c9e00612f862725f8292f5bd67e8fabeb1
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
refs/heads/master
2023-01-09T00:42:03.280102
2019-06-16T22:56:26
2019-06-16T22:56:26
103,514,619
1
0
MIT
2022-12-26T20:58:20
2017-09-14T09:37:44
Python
UTF-8
Python
false
false
5,948
py
import hashlib from abc import ABCMeta, abstractmethod from itertools import islice from random import Random from tqdm import tqdm from .item_list import ItemList from .logging import logger __all__ = ['SeedGenerator', 'TohuBaseGenerator', 'PrimitiveGenerator'] class SeedGenerator: """ This class is used ...
[ "maximilian.albert@gmail.com" ]
maximilian.albert@gmail.com
e3e572c265cbc960f9c3b458ab80b1d05f33c2e7
efc55d73f1425ac90d227209b70867f4dd487c5c
/Chapter4/Aurora/src/test/python/apache/aurora/client/api/test_updater_util.py
48926c3695dbcf38abd33b2d58a64d8e1ea1cdd3
[ "Apache-2.0", "MIT" ]
permissive
PacktPublishing/Mastering-Mesos
9f6171b449ad96222ce18ad3e3f3c6cdfe8fdbf3
88dddb51ed9ad070340edb33eef9fd12745b9f8a
refs/heads/master
2023-02-08T18:51:28.227621
2023-01-30T10:09:39
2023-01-30T10:09:39
58,921,823
12
6
MIT
2022-12-14T20:22:53
2016-05-16T09:52:00
Java
UTF-8
Python
false
false
2,458
py
# # 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 # distributed under ...
[ "root@msgin.vvv.facebook.com" ]
root@msgin.vvv.facebook.com
9b2df1273f127c9935654376dbcb15a1ce17f64a
e14bd4d5cf2c29241365c4d8bd83dacde95e28b5
/LoggerConsole.py
2ef99cbfc18cd38a8352953e4fc6c4d43c4f365d
[]
no_license
pns845/Selenium
1c8aab5038ec1b768c6167f817f8590105130de1
e3811291a70429bfd64f5c85b5efa3b6db6b517f
refs/heads/master
2022-11-12T18:45:05.047406
2020-06-21T16:07:20
2020-06-21T16:07:20
269,676,973
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
import logging class LoggerConsole(): def test(self): #Create loggers logger = logging.getLogger(LoggerConsole.__name__) #create handlers c_handler = logging.StreamHandler() c_handler.setLevel(logging.INFO)#set level f_handler = logging.FileHandler('testfile...
[ "noreply@github.com" ]
pns845.noreply@github.com
f6ebc61f91a10c775752e51d0ab39f99bf9cffbf
c85edb98d25d5981a62c0314bcad9c76c7c322a0
/slowcopy.py
7d8d536c825082a5f98c92d14bab14838d01d9a2
[]
no_license
rashley2712/webLogger
32b3c037248c522ca7e34b7f8f2afaedc1a72a8f
a5663a28edc32fb1b4287e8536d06601e2fba40f
refs/heads/master
2021-09-15T22:42:55.354876
2018-06-11T23:02:15
2018-06-11T23:02:15
112,726,388
0
0
null
null
null
null
UTF-8
Python
false
false
3,918
py
#!/usr/bin/env python3 import argparse, os, sys, re, time, shutil, math import configHelper, generalUtils defaultConfiguration = { 'delay': 10, "SearchString": ".*.(fits|fits.gz|fits.fz|fit)" } if __name__ == "__main__": parser = argparse.ArgumentParser(description='Copies a list of files from one directory to a...
[ "rashley@gmail.com" ]
rashley@gmail.com
e449f0cb6f6f48803d5be94defba814652e8a412
bb150497a05203a718fb3630941231be9e3b6a32
/framework/e2e/jit/test_LeakyReLU_base.py
11777c8d8a472c34c97d05b5a5f085100c7473c1
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
626
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test jit cases """ import os import sys sys.path.append(os.path.abspath(os.path.dirname(os.getcwd()))) sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils")) from utils.yaml_loader import Ya...
[ "825276847@qq.com" ]
825276847@qq.com
1a124e04bca5cc0c8fe2de7777ae479949620e3f
14d8418ca5990217be67aee89fdaa310db03fbba
/models/aws_ec2_scheduled_events_collector_attribute.py
31ef0cb1376ccadf76b6a5cc8b3a308f5cf773a5
[ "Apache-2.0" ]
permissive
sachanta/lm-sdk-python
3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0
e476d415c7279457f79b5d032a73d950af2fe96b
refs/heads/master
2023-08-03T08:39:42.842790
2021-09-13T07:20:56
2021-09-13T07:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,620
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
[ "bamboo@build01.us-west-1.logicmonitor.net" ]
bamboo@build01.us-west-1.logicmonitor.net
385a37961de7925f25629a88a36c1a0d63f41217
fb91c53b311cf191bc0f3a4efe5b1a0ba197944e
/city/models.py
c4d0e1b0f345e7feb2cb562f76451bc0e2678298
[ "MIT" ]
permissive
fraferra/PlayCity
e0ba878c52a321afbdbba68d25717b29a5dd3109
2bf97c30599b686ca0e642d1ebaf73fc99705291
refs/heads/master
2021-01-19T16:26:24.955470
2014-08-08T21:56:08
2014-08-08T21:56:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
from django.db import models from datetime import date from django import forms from django.contrib.auth.models import User,UserManager from django.utils import timezone from django.db.models.signals import post_save from django.utils.translation import ugettext as _ from social_auth.models import UserSocialAuth from...
[ "fraferra@cisco.com" ]
fraferra@cisco.com
a2c48d9c884f1975d9e79e1e159ddc7e2cb51f45
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/atbash-cipher/4a9bb83810cd468a9cf64a87a31ea17f.py
4f743b7cfd974765f6dc65040ac11985476bcac0
[]
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
676
py
alphabet = 'abcdefghijklmnopqrstuvwxyz' ciphered = alphabet[::-1] def chunks(items, chunk_length): return [items[i:i + chunk_length] for i in xrange(0, len(items), chunk_length)] def translate(alpha, cipher, sequence, chunk_length=1, delim=''): translated = '' for char in sequence: if char.isalpha...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
d600ce73b5c09ba644bf7875deae4843bf119281
27fe2941eff2160f38c70c2159ff7dc7709f3a04
/Deep learning framework/Opencv/Feature matching.py
2593be4ab6e9be5778820ec9e19db4df04c2983e
[]
no_license
505555998/DL-data-processing-methods
1c759b8da98626abd4ce17a91ca779aa6578508f
afd230726341058b40167554f9cdb0a681ae35dc
refs/heads/master
2020-07-28T15:59:41.159182
2019-04-19T01:05:00
2019-04-19T01:05:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
import numpy as np import cv2 from matplotlib import pyplot as plt MIN_MATCH_COUNT = 10 img1 = cv2.imread('box.png', 0) # queryImage img2 = cv2.imread('box_in_scene.png', 0) # trainImage # Initiate SIFT detector sift = cv2.xfeatures2d.SIFT_create() # find the keypoints and descriptors with SIFT kp1, des1 = sift.d...
[ "897158662@qq.com" ]
897158662@qq.com
a55aa82e219b0b660c2a15fe43b7a3d3261614c5
24b79d18bc9b522c86d65d7601d7012fe29b0693
/Revision/emp_constructor.py
06a199802b1a70bfcbac390ed1bf48e20d18d6bc
[]
no_license
meenapandey500/Python_program
409fafa2e8f50edfbf30ddfbdf85b47569bf229c
2bcb5fd51aebb4dca4bcc31a26e6b05a3603d5f0
refs/heads/main
2023-03-18T11:49:58.302858
2021-03-19T09:29:24
2021-03-19T09:29:24
349,359,162
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
class Employee: def __init__(self): #__init__() constructor function : it is call automatic in main #or anywhere when create the object of class in main program or anywhere self.__Emp_no=101 #private variable self.__Emp_name="Meena Pandey" #private variable self.__Salary=67000 ...
[ "noreply@github.com" ]
meenapandey500.noreply@github.com
82ecfe48f91670afdbde7c93fa521fd6b74af8fc
31b509d7bdeb70dd43db6a611de3e59c7cd43f6c
/fit_model_RF_fitting.py
9881621f23c1c0e45a4be78120b8643015c1bfaf
[]
no_license
GGXH/stanford_sd_project
f5aac0519faff714ee36ea75ff967e06a17db9af
978c91a3be8b79f5926fa038cbfa425b06e66979
refs/heads/master
2021-01-10T17:30:47.901918
2015-12-04T05:37:24
2015-12-04T05:37:24
45,790,176
0
0
null
null
null
null
UTF-8
Python
false
false
7,565
py
import sys from pymongo import MongoClient import numpy as np from sklearn import linear_model from sklearn import svm from sklearn.ensemble import RandomForestClassifier from sklearn.externals import joblib def Get_data_local(coll, y_name, i_start, i_end): '''Get data from collection local''' all_key_list = c...
[ "guoxin_94@hotmail.com" ]
guoxin_94@hotmail.com
16385c39ccc27918d306c88271554e5c61c1d87b
0fe216bd40886318529dd5cefd2c3b8bef9d0362
/plasticity/dialogs/waxy/font.py
aefd2280e55c0630f631befc295db153886b26ea
[ "MIT" ]
permissive
bblais/plasticity
cb23f5a6de09a51bd2c3b0c1d79354c9405de23e
6803f33c224f30d933abb746fcb9caa09b5975a4
refs/heads/master
2021-01-22T08:19:12.600330
2016-11-24T15:07:56
2016-11-24T15:07:56
34,904,121
7
4
null
null
null
null
UTF-8
Python
false
false
462
py
# font.py import wx class Font(wx.Font): def __init__(self, name, size, italic=0, bold=0, underline=0): wx.Font.__init__(self, size, wx.DEFAULT, italic and wx.ITALIC or wx.NORMAL, bold and wx.BOLD or wx.NORMAL, underline, name) def IsItalic(self): return bool(self.GetStyle() & wx.ITA...
[ "bblais@gmail.com" ]
bblais@gmail.com
3dbab705d4e4471e5355aed5c04140014130ce80
5d069aa71e5cd242b4f1f29541dc85107822cbda
/mc_states/modules/mc_phantomjs.py
36380688259cb8ac71b8cebfdd4e5f693f35b5c1
[ "BSD-3-Clause" ]
permissive
h4ck3rm1k3/makina-states
f22a5e3a0dde9d545108b4c14279451198682370
3f2dbe44867f286b5dea81b9752fc8ee332f3929
refs/heads/master
2020-02-26T13:17:09.895814
2015-01-12T21:45:02
2015-01-12T21:45:02
29,172,493
0
0
null
2015-01-13T04:23:09
2015-01-13T04:23:07
null
UTF-8
Python
false
false
1,532
py
# -*- coding: utf-8 -*- ''' .. _module_mc_phantomjs: mc_phantomjs / phantomjs/npm registry ============================================ ''' # Import python libs import logging import mc_states.utils __name = 'phantomjs' log = logging.getLogger(__name__) def settings(): ''' phantomjs ''' @mc_stat...
[ "kiorky@cryptelium.net" ]
kiorky@cryptelium.net
0a6dd44f23fab86d0444c757fc7d7888276a5aec
cac9c211a4eeb55cfd61d8e5c54a1d4082c4de33
/Experimental/WindowsPyDbg/errors.py
54e3c44867aa40ba8dda79375a8e847c0ccf9293
[ "BSD-3-Clause" ]
permissive
vchateauneu/survol
8c8b5db67f81c6400c3e2f4b84b57fb83d69fb1f
2b5be9d28115f8f9b1dd91bf05449c92bf9a9926
refs/heads/master
2020-03-21T09:11:37.765314
2018-07-03T20:40:16
2018-07-03T20:40:16
138,387,051
1
0
null
2018-06-23T09:05:45
2018-06-23T09:05:45
null
UTF-8
Python
false
false
2,517
py
# # PyDBG # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # $Id: pdx.py 238 2010-04-05 20:40:46Z rgovostes $ # # 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 ...
[ "remi.chateauneu@gmail.com" ]
remi.chateauneu@gmail.com
5bace4a42ce861fdb1f8673cf2991d92f8e80a6d
67973c905a24dcd76d434afcc92fea71657963ad
/pyfileconf/data/models/astitems.py
ff417c1c028bec1b443064222577f7b8d0c384c4
[ "MIT" ]
permissive
nickderobertis/py-file-conf
45b485288047b9e6e9d75b9af8a718b9907d549f
100773b86373035a5b485a1ed96d8f5a1d69d066
refs/heads/master
2023-01-10T17:00:52.997057
2020-08-06T08:07:11
2020-08-06T08:07:11
237,109,929
2
0
MIT
2022-12-26T21:40:58
2020-01-30T00:27:30
Python
UTF-8
Python
false
false
509
py
import ast ast_none = ast.NameConstant(value=None) ast_dict_constructor = ast.Call( func=ast.Name(id='dict'), args=[], keywords=[] ) def ast_str(string: str) -> ast.Str: return ast.Str(s=string) def ast_dict_constructor_with_kwargs_from_dict(d: dict) -> ast.Call: return ast.Call( func=ast...
[ "whoopnip@gmail.com" ]
whoopnip@gmail.com
f9e7804a745a0aaee85f3f86a5ed3faefde331d7
ff21dd1b906db472584aa92a32c22fb9351c9ffd
/NOTE/02_PythonBase/day06/day05_exercise/prime.py
6df2f4f3652e4b40311b2f61b70e989acb474e89
[]
no_license
Bertram-Liu/Note
0e176b2c9625f02e463b8f6be3587f1f0b873e9b
60a30b03ff5d41ab6233e6fd30074de396703b68
refs/heads/master
2020-07-18T18:14:24.920528
2019-09-04T11:55:59
2019-09-04T11:55:59
206,290,323
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
# 2. 写一个程序,任意输入一个整数,判断是否是素数(prime) # 素数(也叫质数),是只能被1和自身整除的正整数 # 如: 2 3 5 7 11 13 17 19 ... # 提示: # 可以用排除法: 当判断x是否为素数时,只要让x分别除以 # 2,3,4,5,6,...,x-1, 只要有一次整除了,则x不是素数 # 否则x是素数 x = int(input("请输入一个正整数: ")) if x < 2: print(x, '不是素数') else: # x一定大于等于2 flag = True...
[ "bertram_liu@163.com" ]
bertram_liu@163.com
c212017f5735ea2c485567ebeb8400b4992a39a2
307ccdde9c423f1587b34d05385b90fad7b9eb90
/codechef/June14/nth_root_binary_search.py
35e212e3977dc34a8c4727804cbb81eef22dc975
[]
no_license
ravi-ojha/competitive-sport
98513e28624f6ff279bf378ba13bb4bed7497704
617847cbc880a9b79173d35c243b4c6f73c3f7a8
refs/heads/master
2021-06-08T14:02:36.233718
2017-08-22T21:47:22
2017-08-22T21:47:22
56,091,058
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
def find_invpow(x,n): """Finds the integer component of the n'th root of x, an integer such that y ** n <= x < (y + 1) ** n. """ high = 1 while high ** n < x: high *= 2 low = high/2 while low < high: mid = (low + high) // 2 if low < mid and mid**n < x: low...
[ "raviojha2105@gmail.com" ]
raviojha2105@gmail.com
ac31f95a16424dbc1b1b4e3dd7c11f78bdc17e32
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/list/nonNegativeInteger/Schema+Instance/NISTXML-SV-IV-list-nonNegativeInteger-length-2-3.py
db1e3d4aaba3c0a94f725eea76ec4807016f3b20
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
475
py
from output.models.nist_data.list_pkg.non_negative_integer.schema_instance.nistschema_sv_iv_list_non_negative_integer_length_2_xsd.nistschema_sv_iv_list_non_negative_integer_length_2 import NistschemaSvIvListNonNegativeIntegerLength2 obj = NistschemaSvIvListNonNegativeIntegerLength2( value=[ 9873641483534...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
91d7c401a5ea3494d337c75771a071d9e8c5ffec
ebdb220932b649145050c9b182388941e00a8899
/pwndbg/enhance.py
45936d0f8e1c6a7259fcbf6a3c1186df37bb38dd
[ "MIT" ]
permissive
br0ns/pwndbg
48f6aee03febcf46ab84899d9edac5f065515452
d5e4c6681c98a936218f131d2740f08f3111861f
refs/heads/master
2021-01-16T20:48:36.151631
2016-03-14T08:53:54
2016-03-14T08:53:54
44,586,717
0
0
null
2015-10-20T06:30:28
2015-10-20T06:30:28
null
UTF-8
Python
false
false
4,149
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Given an address in memory which does not contain a pointer elsewhere into memory, attempt to describe the data as best as possible. Currently prints out code, integers, or strings, in a best-effort manner dependent on page permissions, the contents of the data, and an...
[ "riggle@google.com" ]
riggle@google.com
d463274fc9b9f157e6b5bef2ee27ed5fbd28fc37
f9a5e7233875989f994438ce267907d8210d60a1
/training/online/pulsar_star/pulsar_results_2.py
df149cb3ef447eac6240b3400b0478c4d352ebdd
[]
no_license
renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough
da8d53d44a69f4620954a32af3aacca45e1ed641
6af1670a74345f509c86b7bdb4aa0761c5b058ff
refs/heads/master
2022-08-29T20:21:57.553737
2020-05-26T18:03:46
2020-05-26T18:03:46
256,439,921
0
0
null
null
null
null
UTF-8
Python
false
false
2,129
py
import sys, os from pathlib import PurePath current_dir = os.path.realpath(__file__) p = PurePath(current_dir) sys.path.append(str(p.parents[3])) from models.meta_features import metaFeatures from models.classifiers import classifier from models.pre_processing import preProcessor import pandas as pd import numpy as n...
[ "rl554@cam.ac.uk" ]
rl554@cam.ac.uk
e557869ef3f794ff3d4163103cbed0bb4daefd6b
262195faec1b59ff67067f2dc7e3eb7db8dba946
/src/concurrency in python/python concurrecy/18.Controlling Access to Resources.py
8c00c663086aa9ba987ccef984d553398cdfae71
[ "MIT" ]
permissive
sudeep0901/python
3a090ae2cd8a61e8e375cebb4722c051d2d766aa
7a50af12e72d21ca4cad7f2afa4c6f929552043f
refs/heads/master
2022-04-21T14:15:25.606241
2020-04-13T02:35:56
2020-04-13T02:35:56
155,167,294
0
0
MIT
2020-03-07T06:59:36
2018-10-29T07:08:06
Jupyter Notebook
UTF-8
Python
false
false
1,698
py
# In addition to synchronizing the operations of threads, # it is also important to be able to control access to shared resources to prevent corruption or missed data. # Python’s built-in data structures (lists, dictionaries, etc.) are thread-safe as a side-effect of having atomic # byte-codes for manipulating them ...
[ "sudeep.tech.patel@gmail.com" ]
sudeep.tech.patel@gmail.com
3f629d963d47d369664b055140f831e189562bf7
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/share/pyshared/butterfly/mail_notification.py
36956584dc3fa17ad56a6557227119a7e9b525fd
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
5,616
py
# telepathy-butterfly - an MSN connection manager for Telepathy # # Copyright (C) 2010 Collabora Ltd. # # 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 ...
[ "root@xinli.xinli" ]
root@xinli.xinli
d7ad78da4b2d820eb18e9355084fc8ce29283efd
833ae432c07ff3c33812b4847c247aa730a2549b
/glue/core/qt/fitters.py
a2447ca92d15833e83a532cb5a4a544016f08682
[ "BSD-3-Clause" ]
permissive
scalet98/glue
3e4bc49ac53766d4e1927da3434ad02410d93486
ff949ad52e205c20561f48c05f870b2abb39e0b0
refs/heads/master
2020-11-25T07:50:11.278074
2019-10-29T09:23:19
2019-10-29T09:23:19
228,563,694
1
0
NOASSERTION
2019-12-17T07:58:31
2019-12-17T07:58:31
null
UTF-8
Python
false
false
5,181
py
from __future__ import absolute_import, division, print_function from qtpy import QtWidgets, QtGui from glue.core.qt.simpleforms import build_form_item __all__ = ['ConstraintsWidget', 'FitSettingsWidget'] class ConstraintsWidget(QtWidgets.QWidget): """ A widget to display and tweak the constraints of a :c...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
a5510bbc477ce4c6e9aed080e0a4fa1727223756
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/lib/waveletMatrix.py
e4d73048fd700064cd4934a73b72b623c76c696d
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,496
py
# https://miti-7.hatenablog.com/entry/2018/04/15/155638 import math fullbit = 0xffffffffffffffff #https://qiita.com/zawawahoge/items/8bbd4c2319e7f7746266 def popcount(x): x = x - ((x >> 1) & 0x5555555555555555) x = (x & 0x3333333333333333) + ((x >> 2) & 0x3333333333333333) x = (x + (x >> 4)) & 0x0f0f0f0f...
[ "kanai@wide.ad.jp" ]
kanai@wide.ad.jp
5c7e7d56182582db1823a3a5ac551a4ad99e99a9
08056428e2e12c192a06ccf2b775df09263582dd
/tests/test_examples/run_all_examples.py
f89ae891ef8b679a8f4cba061665ab6295a039c7
[ "MIT" ]
permissive
chris48s/arcade
57d2c4f5986216748adc420d4d2f09153f96f417
930ecd8be2d47db1f65173c6f1afc00c0df545c8
refs/heads/master
2020-07-13T04:35:30.235743
2019-08-28T12:54:43
2019-08-28T12:54:43
204,991,051
0
0
NOASSERTION
2019-08-28T18:52:19
2019-08-28T17:52:18
null
UTF-8
Python
false
false
1,752
py
""" Run All Examples If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.run_all_examples """ import subprocess import argparse import os import glob EXAMPLE_SUBDIR = "../../arcade/examples" def _get_short_name(fullpath): return os.path.splitext(os.pa...
[ "paul@cravenfamily.com" ]
paul@cravenfamily.com
e393a0d557a8b054c31760693c7da3ea18ff9486
914d3a49c4f93208b46010963c621f147b470945
/testcases/test_04.py
0c9ee65d392e4b748e4b23a1124e1fa3c0214664
[]
no_license
wmm0165/pytest_demo
1285b33e61c73543b3344d3eba0ba8896cc1fa10
8162a51ef384a0aa7d057fc57c49596fc1ced872
refs/heads/master
2020-07-24T18:10:41.954528
2019-12-10T06:29:52
2019-12-10T06:29:52
208,005,743
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
# -*- coding: utf-8 -*- # @Time : 2019/9/10 11:41 # @Author : wangmengmeng from selenium import webdriver from selenium.webdriver.common.by import By import time driver = webdriver.Chrome() time.sleep(3) driver.get("https://www.baidu.com/") driver.maximize_window() driver.find_element_by_link_text("新闻").click() print(...
[ "wmm_0165@163.com" ]
wmm_0165@163.com
28250beb6a6a3aa5b23e041cb400edb29546f2a2
d9ca250f11ab7f209422962e16a87dce8f568dd0
/glue/viewers/image/qt/slice_widget.py
f92c43655e3d4f07253fd042d45f22e9d496bc9a
[ "BSD-3-Clause" ]
permissive
maartenbreddels/glue
5e7873a9b59114b3a822c7d0d109ee45a61ccca4
82983912c206ad54d001f8e7b60fbcc507697f68
refs/heads/master
2021-10-09T09:14:33.687357
2017-12-10T12:11:36
2017-12-10T12:11:36
71,995,926
1
0
null
2016-10-26T11:18:37
2016-10-26T11:18:37
null
UTF-8
Python
false
false
5,216
py
from __future__ import absolute_import, division, print_function import numpy as np from glue.core.coordinates import Coordinates from glue.viewers.common.qt.data_slice_widget import SliceWidget from glue.viewers.image.state import AggregateSlice from glue.utils.decorators import avoid_circular __all__ = ['MultiSlic...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
1b2816638c412e5d01f5edf90422f9a5fc818eeb
e23a4f57ce5474d468258e5e63b9e23fb6011188
/110_concurrency_parallelism/_exercises/exrercises/Learn Parallel Computing in Python/001_threads_processes/creating_threads_gil.py
8fc92d681d369ff58dd08613db818d3086781a89
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
227
py
# ______ t___ # ____ _ ______ T.. # # # ___ do_work # print("Starting work") # i = 0 # ___ _ __ r... 20000000 # ? += 1 # print("Finished work") # # # ___ _ __ r... 5 # t = T.. t.._? a.._ # ?.s..
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
02ab5ba859125e364d79194b6c465dafaa91b284
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_381/ch47_2020_10_05_00_51_52_664478.py
1a8d03d35bb0e2392a81fb8001aa0fa9547133da
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
def estritamente_crescente(n): lista_retornada = [] i = 0 tamanho = len(n) if tamanho > 0: lista_retornada.append(n[0]) primeiro_termo = lista_retornada[0] i = 1 while i < tamanho: if n[i] > primeiro_termo: lista_retornada.append(n[i]) ...
[ "you@example.com" ]
you@example.com
05a58fa8e76d0e3a7fe17e5da4aa97373e5e345d
d861ec162216f5030c09727a16079a9b175651b3
/sample/page/models.py
59e29044199a5c7c5e4e4c6f3fad5094e3d5578f
[]
no_license
Features12/Practical-Django-Projects
228c9898f9d6766dc02e8b44f4b0840c8c39ae74
1c1f6cb1fa7151c2f0692e00e1fff2be017f5c7a
refs/heads/master
2021-07-18T00:39:47.435514
2017-10-26T18:38:04
2017-10-26T18:38:04
104,377,598
0
0
null
null
null
null
UTF-8
Python
false
false
3,239
py
from django.db import models from django.db.models.fields import PositiveSmallIntegerField # from django.contrib.comments.moderation import CommentModerator, moderator from django.core.urlresolvers import reverse from taggit.managers import TaggableManager # moderator.reqister(Blog, BlogModerator) CATEGORIES = ( ...
[ "features.inna@mail.ru" ]
features.inna@mail.ru
afc6656fc96fd6d550312d7a3b9476fe32e8f7cc
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/request/AlipayCloudCloudbaseHttpaccessSwitchGetRequest.py
81e1b495dad7124fd77c73dd9a50e2003b390c34
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,034
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCloudCloudbaseHttpaccessSwitchGetModel import AlipayCloudCloudbaseHttpaccessSwitchGetModel class AlipayCloudCloudbaseHttpacces...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
3436c3fcd0b9f7be13c16f3f9a82bb31456f03ed
480e33f95eec2e471c563d4c0661784c92396368
/Configuration/Generator/python/QCD_Pt_80_120_14TeV_TuneCUETP8M1_cfi.py
668777bd52b2c7d224894d8a6c3815ffb24c1500
[ "Apache-2.0" ]
permissive
cms-nanoAOD/cmssw
4d836e5b76ae5075c232de5e062d286e2026e8bd
4eccb8a758b605875003124dd55ea58552b86af1
refs/heads/master-cmsswmaster
2021-01-23T21:19:52.295420
2020-08-27T08:01:20
2020-08-27T08:01:20
102,867,729
7
14
Apache-2.0
2022-05-23T07:58:09
2017-09-08T14:03:57
C++
UTF-8
Python
false
false
1,120
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", pythiaPylistVerbosity = cms.untracked.int32(0), ...
[ "kpedro88@gmail.com" ]
kpedro88@gmail.com
28c1b096c7a5a1011c013fef6d65f09251649a48
9331521b9000b23560939de083693b594a2b513e
/funcion_canciones.py
a8c24b36fb90f160cfa1ae5efeee96fdcd918c2c
[]
no_license
stefifm/Guia18
141f94f12b2046453ebcddf73ba07b9402b3609c
bdc73563f130c05daad4e01a5730ac9029d47cef
refs/heads/master
2022-12-12T23:18:20.340171
2020-09-10T03:21:55
2020-09-10T03:21:55
294,291,473
0
0
null
null
null
null
UTF-8
Python
false
false
6,609
py
import random print("Funciones para canciones") class Cancion: def __init__(self, titulo, long, repro, down): self.titulo = titulo self.duracion = long self.reproduccion = repro self.descargas = down def to_string(cancion): r = " " r += "El nombre de la canción: " + canci...
[ "bruerastefania@gmail.com" ]
bruerastefania@gmail.com
a213585723e285a2a0d1747ab36f280c9d2f5d8a
df7f13ec34591fe1ce2d9aeebd5fd183e012711a
/hata/discord/channel/channel_metadata/tests/test__ChannelMetadataGuildVoiceBase__constructor.py
8f6b1dfcbf94ca0386ab1b2fcf79c1ea6c3e6d81
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
HuyaneMatsu/hata
63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e
53f24fdb38459dc5a4fd04f11bdbfee8295b76a4
refs/heads/master
2023-08-20T15:58:09.343044
2023-08-20T13:09:03
2023-08-20T13:09:03
163,677,173
3
3
Apache-2.0
2019-12-18T03:46:12
2018-12-31T14:59:47
Python
UTF-8
Python
false
false
4,717
py
import vampytest from ...permission_overwrite import PermissionOverwrite, PermissionOverwriteTargetType from ..guild_voice_base import ChannelMetadataGuildVoiceBase from ..preinstanced import VoiceRegion def _assert_fields_set(channel_metadata): vampytest.assert_instance(channel_metadata, ChannelMetadataGuildVo...
[ "re.ism.tm@gmail.com" ]
re.ism.tm@gmail.com
3eae42c4b4098802edfac373950267917f249ef1
0119b77236b41521c84eb516d6892d8c86b7af35
/Assignment 4/yunjun_lee_findkstar.py
5556350b09824497067bb7b0fb833c561cf43a28
[]
no_license
YJL33/Data-mining
7ade1d7ff712a8d15beb2bf5c5f7fa645f6ea93d
38993729422ab8ac51ce2a9e48664cec0f2ea542
refs/heads/master
2021-01-10T14:35:19.335591
2016-04-18T20:58:41
2016-04-18T20:58:41
51,037,143
1
1
null
null
null
null
UTF-8
Python
false
false
3,962
py
""" USC INF553 Sp. 2016 Assignment 4 Problem 2: Find k-star <Input> The first input is a .json file the same as described in part 1. The second input is a float in (0, 1), representing theta mentioned in Step 1. <Output> The output is a single integer representing k*. <Execute> python firstname_lastname_findkstar.py...
[ "yunjun.l33@gmail.com" ]
yunjun.l33@gmail.com
4d19af9fb64db902623b31bd74387e8ffe3b8d84
2bf43e862b432d44ba545beea4e67e3e086c1a1c
/nemo_text_processing/inverse_text_normalization/pt/verbalizers/time.py
b1a04c6737521554ec54ba7f6bfca7641bbbcf68
[ "Apache-2.0" ]
permissive
ericharper/NeMo
719e933f6ffce1b27358bc21efe87cdf144db875
f1825bc4b724b78c2d6ca392b616e8dc9a8cde04
refs/heads/master
2022-10-06T01:45:21.887856
2022-09-14T19:09:42
2022-09-14T19:09:42
259,380,135
1
0
Apache-2.0
2022-09-20T18:01:57
2020-04-27T15:54:20
Python
UTF-8
Python
false
false
2,625
py
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
[ "noreply@github.com" ]
ericharper.noreply@github.com
c6b23e8a3c8c5071dfbcfd1efbfd97b7c5651319
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_393/ch55_2020_10_05_00_01_39_303330.py
5cfe170aa6ebbb930198625b8a8601fd5c962564
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
def encontra_maximo(lista): lista[0]= lista1 lista[1]: lista2 lista[2]: lista3 lista= [] lista.append(max(lista1)) lista.append(max(lista2)) lista.append(max(lista3)) return max(lista)
[ "you@example.com" ]
you@example.com
d75a74dcc9ffcab4e5608a85fb52a20c5438fc7d
ebfac951b49ba380d4b88e0c6308aea326597381
/chatrender/management/commands/publish_slackchat.py
7c99de825fc0af3cc68a53a4e477dbb76d7e6153
[ "MIT" ]
permissive
The-Politico/django-politico-slackchat-renderer
2e4175359a4df004526722a190040cef767837fd
adb3ed2ba5039a97ee7b021d39aa40cab11e5661
refs/heads/master
2022-12-10T10:57:51.796473
2018-05-22T15:37:57
2018-05-22T15:37:57
120,328,521
2
0
MIT
2022-12-08T02:09:33
2018-02-05T16:10:25
JavaScript
UTF-8
Python
false
false
756
py
from chatrender.celery import publish_slackchat from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = 'Publishes a complete slackchat package, including static files.' def add_arguments(self, parser): parser.add_argument('--type', dest='chat_type') ...
[ "jmcclure@politico.com" ]
jmcclure@politico.com
e8897d82d1ffdcbc7f68deddeacd6bdb3b3c8f5f
d7c9b9fd4c7149d0cde7b9882f3f7039a2109c1f
/backend/home/migrations/0003_test.py
94759712fdc2bfefce0d878a45ee17d2a2e3f586
[]
no_license
crowdbotics-apps/mob-febapp-dev-1633
b446a780a24e71a1640b28637cf1212258744898
dee531ad370ae680c0bbb6bb83fce41c01c578b0
refs/heads/master
2022-04-01T05:06:27.472209
2020-02-10T13:02:03
2020-02-10T13:02:03
239,482,452
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# Generated by Django 2.2.10 on 2020-02-10 10:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0002_load_initial_data'), ] operations = [ migrations.CreateModel( name='Test', fields=[ ('...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
d81263f7a571be2c8bc52238b8a8ef555ea713bd
6f1034b17b49f373a41ecf3a5a8923fb4948992b
/pychron/canvas/canvas2D/image_overlay_manager.py
dfbdfd8b8db2cf4fdfb75558b706b4c20be4085b
[ "Apache-2.0" ]
permissive
NMGRL/pychron
a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f
8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6
refs/heads/main
2023-08-30T07:00:34.121528
2023-06-12T17:43:25
2023-06-12T17:43:25
14,438,041
38
28
Apache-2.0
2023-08-09T22:47:17
2013-11-15T23:46:10
Python
UTF-8
Python
false
false
2,142
py
# =============================================================================== # Copyright 2013 Jake Ross # # 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/licens...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
03559f072fab1e8e1c47dd66d8a607f819822a8d
fae489973aba5bf2ed29e0b90dc07744840730d6
/backend/wallet/api/v1/viewsets.py
d30dac0e6af85ddb2676f347cd21a623d2a2d26f
[]
no_license
crowdbotics-apps/workout-planner-23846
a19c8753c6f9263d760c6396b25391ce709e0d6e
6a7b341c052e6f2e93ca1f2579c4281d06495fbe
refs/heads/master
2023-02-17T20:52:27.008368
2021-01-14T16:18:41
2021-01-14T16:18:41
329,667,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,787
py
from rest_framework import authentication from wallet.models import ( PaymentTransaction, TaskerPaymentAccount, TaskerWallet, PaymentMethod, CustomerWallet, ) from .serializers import ( PaymentTransactionSerializer, TaskerPaymentAccountSerializer, TaskerWalletSerializer, PaymentMetho...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
684c3bb8029558b7cbb222002c8f488dc0dcd2aa
72be6500051e0dcf8b24a8586609454a94c73b8d
/niamoto_portal/tasks.py
249634b42363f456555642ff32f3b1cbedf70554
[]
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
142
py
# coding: utf-8 from niamoto_portal.celery import app from apps.niamoto_plantnote.tasks import * from apps.niamoto_management.tasks import *
[ "dimitri.justeau@gmail.com" ]
dimitri.justeau@gmail.com
5a595aca00ea883d505db93233cb04f2ef99c015
c27659953555c54bc9d62f76b08372457e99fdcb
/jarden_center/main_code/single-multiple-source/eccitsy922/Monte_Carlo_first.py
71c84a3676a9a20f3a851b36c16fe8572f65e3a9
[]
no_license
15779235038/mypaper
be8e0e30dfe1247cc5447dc2e49ab0be0dcba94a
d9d606f33674f6942b5dc1a56d7738ccea108126
refs/heads/master
2020-07-21T02:04:25.796374
2020-01-20T01:33:43
2020-01-20T01:33:43
206,741,170
5
0
null
2019-09-06T07:43:56
2019-09-06T07:43:56
null
UTF-8
Python
false
false
9,584
py
#!/usr/bin/python3 # -*-coding:utf-8 -*- #Reference:********************************************** # @Time : 2019/9/17 10:00 上午 # @Author : baozhiqiang # @File : Monte_Carlo.py # @User : bao # @Software: PyCharm #Reference:********************************************** # !/usr/bin/python3 # -*-codi...
[ "530420396@qq.com" ]
530420396@qq.com
a0c3e9c312393a47293d4a375e6a90746d0e2ead
90c5c9df3d0639e1f8420b592a77df752ab79746
/bridger/display.py
850d4d65c20e186d4ba1549b6c75cb881dc5e830
[ "BSD-3-Clause" ]
permissive
intellineers/django-bridger
4a16e5e63c697671740d965c3fcab02a89b8b27f
ed097984a99df7da40a4d01bd00c56e3c6083056
refs/heads/master
2023-08-14T05:41:38.003086
2021-09-06T16:51:56
2021-09-06T16:51:56
221,709,929
2
1
BSD-3-Clause
2023-07-22T21:39:45
2019-11-14T13:57:09
Python
UTF-8
Python
false
false
5,988
py
from collections import defaultdict from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Union class ColumnFormatting(NamedTuple): style: Dict condition: Optional[Tuple[str, Union[int, float, str]]] = None all_columns: bool = False def to_dict(self): rd = {"style": self.style, "al...
[ "c.wittlinger@intellineers.com" ]
c.wittlinger@intellineers.com
5b0c5324af911731801d49b83ff5b19ed8e126af
e905abd9bb7bd7017657d0a0c4d724d16e37044c
/.history/article/spiders/ieee_20210208185953.py
5ed095e82d7a26acc80ddd186184199239b2253e
[]
no_license
tabdelbari/articles
a8b921841f84fb473f5ed1cdcda743863e6bc246
f0e1dfdc9e818e43095933139b6379a232647898
refs/heads/main
2023-03-05T10:21:35.565767
2021-02-10T13:35:14
2021-02-10T13:35:14
325,654,973
0
0
null
null
null
null
UTF-8
Python
false
false
6,690
py
import scrapy import logging import re from scrapy_splash import SplashRequest, request from article.items import ArticleItem import json class IeeeSpider(scrapy.Spider): name = 'ieee' allowed_domains = ['ieee.org'] lua_script = """ function main(splash, args) assert(splash:go{ splash.a...
[ "abdelbari1996@hotmail.com" ]
abdelbari1996@hotmail.com
9f2c5f871caee2fee79fa2b8adf06575a005d42f
4465d42c7aff17db98d92d512711aa34ed587af9
/T6. Network programming/Pyro_examples/autoreconnect/serverNS.py
c8582f8c675d680a3e0456a33e4e7d03d41a6024
[]
no_license
hostjbm/py_gl
85e4873fff02268154c4e6e82528120a7a87b8f5
90e80daef48fc6ab2a7996be02d4201030389311
refs/heads/master
2022-12-30T14:16:29.740328
2020-10-16T13:42:42
2020-10-16T13:42:42
303,307,814
0
0
null
2020-10-16T08:30:04
2020-10-12T07:11:14
Python
UTF-8
Python
false
false
1,904
py
import time from Pyro5.api import expose, Daemon, locate_ns import Pyro5.errors print("Autoreconnect using Name Server.") @expose class TestClass(object): def method(self, arg): print("Method called with %s" % arg) print("You can now try to stop this server with ctrl-C/ctrl-Break") time.s...
[ "sytishchenko@gmail.com" ]
sytishchenko@gmail.com
37c255c72d0aec34fc8627368c73fef0e6ed08fa
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/19_数学/组合/写像十二像/1735. 生成乘积数组的方案数.py
6c09a52d981846599772ad72b21fe00c8e7da95e
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
2,302
py
""" 1 <= queries.length <= 104 1 <= ni, ki <= 104 分解质因数+n个物品放到k个槽的方案数 """ from typing import List from collections import Counter from functools import lru_cache from math import floor MOD = int(1e9 + 7) @lru_cache(None) def getPrimeFactors( n: int, ) -> Counter[int]: """返回 n 的质因子分解""" ...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
ced88b845cf25532d8bf44ea03294c401cfcd291
92e31ccc6f1dae3d62b727b7adaddb894e72b9a1
/tags/0.1-alpha/src-0.1-alpha/examples/kusp/subsystems/ccsm/pyccsm/ccsmsession.py
975d2459daba651d1aca0d9a4b4504c1e104d7d2
[]
no_license
dillonhicks/ipymake
3ae9fe8a976faf8f41b8ee2bf2b8d20eee856000
dbd4fc09e468d16a2de8f4be2357e8b4f64a702c
refs/heads/master
2020-04-13T01:31:36.480051
2013-06-20T19:39:27
2013-06-20T19:39:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,812
py
from pyccsm import ccsmapi import os from pyccsm.ccsmstructures import CCSMSet class CCSMSession: def __init__(self, open=True): self.fd = None if open: self.open() def open(self): if not self.fd is None: raise ValueError('CCSM Session Cannot Be Opened: Session ...
[ "hhicks@ittc.ku.edu" ]
hhicks@ittc.ku.edu
5ae8e3cdd68cd69eacf3f60baaa5579d83b60728
e8eae7ba5c18002719d8dac0c6b2bc16306ceb5b
/proj_2_SQLAlchemy/start.py
cba7b388b6d8e1010551708533829c2697c1f886
[]
no_license
padznich/_flask
f080adf248170d7a5f17d9a372426c523704c022
21edecfe481238bce15b3ee5b5dda55c15e72022
refs/heads/master
2021-05-03T23:28:07.260517
2016-10-02T19:49:05
2016-10-02T19:49:05
69,818,124
0
0
null
null
null
null
UTF-8
Python
false
false
1,532
py
from flask_sqlalchemy import SQLAlchemy from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash, jsonify app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///students.sqlite3' app.config['SECRET_KEY']="random string" db = SQLAlchemy(app) class students(db.Mod...
[ "slabkopg@gmail.com" ]
slabkopg@gmail.com
77c6a96d6d18bf46d444d17402d8341a6a7810c3
f5e7c337548ffea556058b5121748b3bad727c69
/prep/format_data.py
cb4e8099845b6733427f314a0372b90aaa429f83
[ "MIT" ]
permissive
vsoch/network-integration-vis
8538458d819721cab8fd350923e16bd4d8f380fd
8d13c8d6a03f8db09d93c7bffc8eb37a4376a702
refs/heads/master
2020-04-09T04:19:21.964832
2016-09-15T20:50:07
2016-09-15T20:50:07
68,139,151
1
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
# format_data.py will read in Matlab exported network-integration (tab separated) # matrix and parse into a JavaScript (Json) Object. And remove those evil Windows # carriage returns :) import os import pandas import simplejson import sys from utils import pwd, write_json # LIKELIHOOD HEATMAP #####################...
[ "vsochat@stanford.edu" ]
vsochat@stanford.edu
df7d8b9e2099a198732b4fdf3ece540285040aaf
5e27c7f5426c169fd348b26e94b65c35f9cdc459
/manual/movingpanda/panda-10b.py
58250cca080eec1ace3460fe3c4c360e20d135d4
[ "BSD-2-Clause" ]
permissive
agoose77/hivesystem
e2c9c27408233b5794151ca74f541d2e6063d58a
e1f55c5ea530a989477edb896dcd89f3926a31b8
refs/heads/master
2020-07-21T23:07:37.178856
2014-08-23T02:13:19
2014-08-23T02:13:19
20,776,359
1
1
null
null
null
null
UTF-8
Python
false
false
4,325
py
import dragonfly import dragonfly.pandahive import bee from bee import connect import math, functools from panda3d.core import NodePath import dragonfly.scene.unbound import dragonfly.std import dragonfly.io import dragonfly.canvas import Spyder # ## random matrix generator from random import random def random_m...
[ "goosey15@gmail.com" ]
goosey15@gmail.com
fe6d6d64c5ff3ab5b079ffb85b4a1da493a70263
2b3440dcc10bc3d5758eac775a46a3a77ca455dc
/lib/models/_deprecated/u_net.py
37c16789e54b7c3de42d91bed9778f94c1461f45
[]
no_license
vsingh-group/f1-opt
5c433f825aeb64fa6caa93c209acc6b0b3752159
1fc9e8223f3b008521fb08b4cc84f1edcf253c63
refs/heads/master
2023-02-04T04:29:07.441145
2019-12-04T19:51:37
2019-12-04T19:51:37
322,929,386
0
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
import torch import torch.nn as nn def double_conv(in_channels, out_channels): return nn.Sequential( nn.Conv2d(in_channels, out_channels, 3, padding=1), nn.ReLU(inplace=True), nn.Conv2d(out_channels, out_channels, 3, padding=1), nn.ReLU(inplace=True)) class UNet(nn.Module): "...
[ "abhay.venkatesh@gmail.com" ]
abhay.venkatesh@gmail.com
95b4465fe9baf210ad7b0cde1e50f651120c1ce6
074421d31af92ae29c7c78bdb7e50f199a38eb9b
/weixin/code/rfid_oss/event_manager/import_paths.py
6fba287ec8070d2f2e160e3b9c6086c1d014ec66
[]
no_license
allenforrest/wxbiz
3f49ce66b37e281fc375f548610aa54a0f73268f
e78df71fbc5d73dd93ba9452d4b54183fe1e7e1f
refs/heads/master
2016-09-06T15:17:49.420934
2013-08-05T13:13:40
2013-08-05T13:13:40
null
0
0
null
null
null
null
GB18030
Python
false
false
590
py
#coding=gbk """ Copyright (C), 2012-2015, Anything Connected Possibilities Author: ACP2013 Version: 1.0 Date: 2012-12-14 Description: 用于加载运行时的路径 Others: Key Class&Method List: 1. .... History: 1. Date:2012-12-14 Author:ACP2013 Modification:新建文件 """ paths=["../../rfid_plt/base_platform" ,...
[ "allenxu@gmail.com" ]
allenxu@gmail.com
a162ed18b3aea2537360a0f29200700782eb7da7
c84bed71f4558b93d2b9b3c3fee7c0e1f11fa756
/tests/deepspeech2/test_ds2.py
f7b1bdb1e6265d7820f5ee13aed2b6d0c72d180e
[ "Apache-2.0" ]
permissive
twang18/TensorFlowASR
b18d088681f316b4515187ea0a3d41c202d87074
1dbe754989efcd59c1fb99aa08d2dd6b178b4d35
refs/heads/main
2023-04-17T04:45:33.345931
2021-04-20T16:54:24
2021-04-20T16:54:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,363
py
# Copyright 2020 Huy Le Nguyen (@usimarit) # # 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 t...
[ "nlhuy.cs.16@gmail.com" ]
nlhuy.cs.16@gmail.com
b239b18fdb46b286f32f80435b6baf2ced107340
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractTyralionsBlogspotCom.py
4ffc186dca5340b71248bad5d9e3cd306fcfaf44
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
556
py
def extractTyralionsBlogspotCom(item): ''' Parser for 'tyralions.blogspot.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'translated'), ('Loitero...
[ "something@fake-url.com" ]
something@fake-url.com
1765e182943181321fce1c54fef6e5df9d741598
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/parcats/labelfont/_size.py
9b1e6b892dd91c707d512d4d6b7627892b5fd97a
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
435
py
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="size", parent_name="parcats.labelfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
[ "noreply@github.com" ]
hugovk.noreply@github.com
bdd62aa70d9b4e6a97f7f434a5e01013048e80b7
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/c4629af076351788a80d5e3d94dc8a61015da910-<test_splrep_errors>-fix.py
273a9090c663ecec6a8a2341ce6b408ef1183b23
[]
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
393
py
def test_splrep_errors(self): (x, y) = (self.xx, self.yy) y2 = np.c_[(y, y)] with assert_raises(ValueError): splrep(x, y2) with assert_raises(ValueError): _impl.splrep(x, y2) with assert_raises(TypeError, match='m > k must hold'): splrep(x[:3], y[:3]) with assert_raises...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
2ebc0e3cecffeabbf497c9119c5096c92c42aae0
c963f5b7f0f9b9ec6c6d862f14363d0499f98862
/sdk/python/setup.py
e88de181cb8f57ac19cad3d5e1c861c0e0973458
[ "Apache-2.0" ]
permissive
Bobgy/metadata
8e5c89a9ada7da0c57c076b1d1bb2c6ca2ae3542
56d69cd2100a3281453ad0776639e65f6c7dca7a
refs/heads/master
2020-08-30T03:56:47.233584
2019-10-10T22:43:20
2019-10-10T22:43:20
218,255,672
0
0
Apache-2.0
2019-10-29T09:58:03
2019-10-29T09:58:03
null
UTF-8
Python
false
false
1,709
py
# Copyright 2019 kubeflow.org. # # 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 writin...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
f4507620bb767a8d91efb54cc61f93f6b9677797
5f6f6c67450b7bdc52b5d0b4063283e5ce4448c6
/SwordOffer/Algorithm/Python/pre_mid_tree.py
93ce0621981ee506fe4965020cc49be468bfb186
[]
no_license
guanfuchen/CodeTrain
422b68bcfed5ad769ef26fc5e003ce45b4646029
8adab985975ee46fba2f761d4df7c8c3fdafa779
refs/heads/master
2020-03-07T23:02:33.183874
2018-09-02T07:28:05
2018-09-02T07:28:05
127,770,709
3
1
null
null
null
null
UTF-8
Python
false
false
942
py
# -*- coding:utf-8 -*- class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None # 前序排列中的第一个一定是root结点,在中序排列中左边部分是root结点的左分支,右边部分是root结点的右分支 class Solution: # 返回构造的TreeNode根节点 def reConstructBinaryTree(self, pre, tin): if len(pre) == 0: ...
[ "guanfuchen@zju.edu.cn" ]
guanfuchen@zju.edu.cn
359015278e326f3e5577d025f4fba85e8d9a2415
0dbcee31fa4548f78cf9ce6ddad76a1abe68a777
/homeassistant/components/litterrobot/vacuum.py
32fc92cd55afaa8d55caf15afb9cec28d87d581e
[ "Apache-2.0" ]
permissive
Funcy-dcm/core
442f254f2c07eb0c65aedd7c003ded6854d86a98
9d24cb015be94fdc1128c075328b56cb37206cf8
refs/heads/dev
2023-04-05T06:51:28.341817
2021-04-23T04:57:17
2021-04-23T04:57:17
293,016,936
2
0
Apache-2.0
2021-04-23T04:57:17
2020-09-05T06:25:23
null
UTF-8
Python
false
false
5,131
py
"""Support for Litter-Robot "Vacuum".""" from __future__ import annotations from typing import Any, Callable from pylitterbot.enums import LitterBoxStatus from pylitterbot.robot import VALID_WAIT_TIMES import voluptuous as vol from homeassistant.components.vacuum import ( STATE_CLEANING, STATE_DOCKED, ST...
[ "noreply@github.com" ]
Funcy-dcm.noreply@github.com
61d3a81c83670a40e054e0e94872b5b06aab0b0d
d0318e25f249e7ebd60926102d92721f88bc279a
/spacy_transformers/layers/trfs2arrays.py
0720f5086d171819960427b429d20b3deeeb66e9
[ "MIT" ]
permissive
ThomasVNN/spacy-transformers
01e2cf8a9939940fbb432e7be4cfb8c79f6a59a7
50813ad151c3ad9c396c104029f55ae4c28822c0
refs/heads/master
2022-11-19T01:04:32.259114
2020-07-10T21:45:22
2020-07-10T21:45:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,947
py
from typing import List from thinc.api import Model from thinc.types import Ragged, Floats2d, FloatsXd from ..data_classes import TransformerData from ..util import find_last_hidden from ..align import apply_alignment def trfs2arrays( pooling: Model[Ragged, Floats2d], grad_factor: float ) -> Model[List[Transforme...
[ "honnibal+gh@gmail.com" ]
honnibal+gh@gmail.com
f698e76580c725f05b0cb83479b138e4c6e427c3
a841065ae696f0da6179a0c5ff3c0debbf7b365c
/path_finder.py
935f44ef2b4b80a3d860564839084a0a4ef3f1b8
[ "MIT" ]
permissive
MonwarAdeeb/A-Star-Path-Finder-Visualizer
d210a1299191fd0a83056629825f1ca0cf3d64ea
649bb79cd469005c26036d9916c926a69628d0bf
refs/heads/main
2023-04-02T05:38:27.488966
2021-04-13T10:56:54
2021-04-13T10:56:54
308,803,433
0
0
null
null
null
null
UTF-8
Python
false
false
6,556
py
try: import pygame import sys import math from tkinter import * from tkinter import ttk from tkinter import messagebox import os except: import install_requirements # install packages import pygame import sys import math from tkinter import * from tkinter import ttk ...
[ "monwar_adeeb@yahoo.com" ]
monwar_adeeb@yahoo.com
ef1c32ec5e7deffafd13502b911604121bd5e061
a5caa9e15fdcd4ba0d336a80fb5f4c146e957179
/apps/gamelist/apps.py
176274ba612eadff3d163950123bb56a5b1c2012
[]
no_license
codejoy-wins/Game-Rank
eb9299fc461e2929a1c5c3ee31b9aac2af9f9622
90deabf6a7447e44b384e3487541aeb190910874
refs/heads/master
2020-04-01T21:27:50.875599
2018-10-27T07:27:06
2018-10-27T07:27:06
153,657,635
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class GamelistConfig(AppConfig): name = 'gamelist'
[ "mjann@ucsc.edu" ]
mjann@ucsc.edu
58fbee3012cccd0677d6dee2037cc0e8b8321cad
a34ec07c3464369a88e68c9006fa1115f5b61e5f
/K_DynamicProgramming/Maze/L2_1301_Number_of_Paths_with_Max_Score.py
a21789a4c20491d00b7486caf16c1a3b3f9e4ee7
[]
no_license
824zzy/Leetcode
9220f2fb13e03d601d2b471b5cfa0c2364dbdf41
93b7f4448a366a709214c271a570c3399f5fc4d3
refs/heads/master
2023-06-27T02:53:51.812177
2023-06-16T16:25:39
2023-06-16T16:25:39
69,733,624
14
3
null
2022-05-25T06:48:38
2016-10-01T10:56:07
Python
UTF-8
Python
false
false
866
py
""" https://leetcode.com/problems/number-of-paths-with-max-score/ top down dp while keeping track of path count """ class Solution: def pathsWithMaxScore(self, A: List[str]) -> List[int]: @cache def dfs(i, j): if i==0 and j==0: return 0, 1 elif not (0<=i<len(A) and 0<=j<len(A...
[ "zhengyuan.zhu@mavs.uta.edu" ]
zhengyuan.zhu@mavs.uta.edu