blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
059d55f831ea99fec8b039b6517d68dcfc84392c | 9ac405635f3ac9332e02d0c7803df757417b7fee | /contabilidad_anticipos/models.py | 5a287cedef22600bc6293ed79b9a9df4486e46c8 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 5,592 | py | from decimal import Decimal
from django.contrib.auth.models import User
from django.db import models
from django.db.models import Sum, F
from django.utils import timezone
from model_utils.models import TimeStampedModel
from cargues_catalogos.models import ClienteCatalogo
from imagekit.models import ProcessedImageField... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
5c80487acddfb23be48494f05106ad2ee4217dab | ca9fe95535c6a81ed986e56d23ceccd5d7a5ebd2 | /setup.py | 79d52d3d3659b61114b36d6f3530d21bdcc82817 | [
"MIT"
] | permissive | iancze/tresmerge | 7ea503425e5c97c00ef4d7356d8b8fddede83fce | bc71e1a95b3c8088705c6339c6520bf8d87caba4 | refs/heads/master | 2020-03-28T02:15:06.296801 | 2018-09-10T03:39:32 | 2018-09-10T03:39:32 | 147,558,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import setuptools
from codecs import open
from os import path
import numpy as np
# set the command line scripts
entry_points = {'console_scripts': [
'tresmerge-process = tresmerge.process:main'
]}
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="tresmerge",
... | [
"iancze@gmail.com"
] | iancze@gmail.com |
f55d323ef8c34b9da685446fbd56c75984dea951 | 00612819777b32467f92a4ea444a3b3ed98e3c0a | /vitoria/bin/easy_install-3.6 | 952934924e4f47a26d22c1d8ca2266a4701cb0df | [] | no_license | gabriella36/eventos | c3d20a008c2a040d2c3f2d8c27cffa0f537da815 | 5d421657bb17ca6a4840910ca59cc97ed3896135 | refs/heads/master | 2020-04-02T04:52:45.341029 | 2018-10-24T10:28:24 | 2018-10-24T10:28:24 | 154,040,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | 6 | #!/home/reposicaodeaula/eventos/eventos/vitoria/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"carlosabc436@gmail.com"
] | carlosabc436@gmail.com |
758915a912392d380e01e5df981af19b23ad4f62 | ce5edfba5b178cb98a59dac5e02b538b3ce9872d | /src/alexandria/loader/base.py | 624165a0db9307cd569008d81defbd6dc0d66eee | [] | no_license | smn/alexandria | e17147267a4699856d6b87f2145f62de193eca76 | 7f0f2841061ce6f61c3003278775406d36d58a1b | refs/heads/master | 2016-09-05T08:56:07.239936 | 2011-04-12T12:11:17 | 2011-04-12T12:11:17 | 390,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | from alexandria.dsl.core import MenuSystem, prompt, end
from alexandria.dsl.validators import pick_one
class Loader(object):
def do_question(self, *args, **kwargs):
return prompt(*args, validator=pick_one, **kwargs)
def do_end(self, *args, **kwargs):
return end(*args)
def err... | [
"simon@soocial.com"
] | simon@soocial.com |
8a1b3e1073203510c04c57a677ac9154483dd04d | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=82/params.py | 7c8a39ad7ed9796aebd8d3172d7dbf7dac5c28a9 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.607357',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 82,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
f467aeec0e8b1581d6600834f32c7d5219dff459 | 56e0a74d5e16e0d1066efb98151b0052e171ceff | /rbt/migrations/0017_remove_song_category.py | fa09766c2203d8ab0d60cb91ec7cb80aba23d66a | [] | no_license | bitapardaz/mci_app | f567b5473f33a264ddf6e785b71e18ae09c47d74 | 1c0d15d811fcefef00171aab7e4716399c2a4eed | refs/heads/master | 2021-01-17T02:19:08.970418 | 2017-06-11T13:53:06 | 2017-06-11T13:53:06 | 51,643,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rbt', '0016_album_rate'),
]
operations = [
migrations.RemoveField(
model_name='song',
name='category... | [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
2161f3792168f9001eeed02699559cd9a6ab903b | c43fbcb4442428e85616f664964d1e27ca396070 | /runs/malte/old_nicobackgals/run_allobs.py | a40fc147634188cddca08672d4312771cac5a506 | [] | no_license | megalut/megalut | ddac89a0dca70e13979d31b80d52233226233ade | 63bd4bec8000ad13f4963d464d7b7b4d470a36ab | refs/heads/master | 2020-04-15T00:33:42.815988 | 2018-09-11T08:45:48 | 2018-09-11T08:45:48 | 20,882,727 | 2 | 1 | null | 2018-09-11T08:45:49 | 2014-06-16T11:39:14 | Python | UTF-8 | Python | false | false | 8,124 | py | """
Script/module to run on Nicolas' simulations
"""
import argparse
import astropy
import megalut
import megalut.learn
import galsim
import numpy as np
import os
import copy
#import config # No, doesn't use config!
import nicoconfig.measfcts as measfcts
import logging
logger = logging.getLogger(__name__)
logging.ba... | [
"malte.tewes@gmail.com"
] | malte.tewes@gmail.com |
3f15496baef0dc75ecfb725353511b80e23c4ff6 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/7kyu/find-the-calculation-type/Python/test.py | 50dde8773b45c6185a2103f3a1b206f8fd5df0ad | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # Python - 3.6.0
Test.assert_equals(calc_type(1, 2, 3), 'addition')
Test.assert_equals(calc_type(10, 5, 5), 'subtraction')
Test.assert_equals(calc_type(10, 4, 40), 'multiplication')
Test.assert_equals(calc_type(9, 5, 1.8), 'division')
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
7632d339aca73bdb6e3c000e07cc2e8d38fee700 | fd9257a4cc04b89c2b8c92008770a82ccdfe85bd | /devel/.private/automated_driving_msgs/lib/python2.7/dist-packages/automated_driving_msgs/msg/_ObjectClassification.py | b55d10296538d2d6ef0ec47ae37f73667e6f6b9b | [] | no_license | Zauberr/KAL | 40b135f02e9ae9c7bf55b064094aaff88c43628e | 225e538058b632c8c14cc638e12fcb124bd81e29 | refs/heads/master | 2020-08-16T18:26:19.863213 | 2019-10-16T13:38:46 | 2019-10-16T13:38:46 | 215,537,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,962 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from automated_driving_msgs/ObjectClassification.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import automated_driving_msgs.msg
class ObjectClassification(genpy.Messag... | [
"bobocao93@gmail.com"
] | bobocao93@gmail.com |
31a9c0173714d10b4fc2a7ecea14a384a1d0878c | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/reports/mintoc.py | 735d3fe69eb1a7f3a4ae98ed37df42404b513c37 | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | from reportlab.lib.styles import ParagraphStyle as PS
from reportlab.platypus import PageBreak
from reportlab.platypus.paragraph import Paragraph
from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate
from reportlab.platypus.tableofcontents import TableOfContents
from reportlab.platypus.fra... | [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
2441a80928d0bea504dc995ad209bfbdc9ca73d5 | 799fefaae08be5f399a4e046d3224ea1d5369450 | /docs/conf.py | c41902f94ff1d9c1c96f4823e7571ea1199fb15e | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"CC-BY-4.0"
] | permissive | gifuni/abagen | 39397616ebe9e36d2cb8db2c9ec09b6bc2187bbe | 00fe908da8e1ebba6db3b7f93aff6bbd983a2571 | refs/heads/master | 2020-09-14T17:49:33.458695 | 2019-11-22T03:26:45 | 2019-11-22T03:26:45 | 223,205,094 | 0 | 0 | BSD-3-Clause | 2019-11-22T03:26:47 | 2019-11-21T15:28:32 | Python | UTF-8 | Python | false | false | 4,210 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the di... | [
"rossmarkello@gmail.com"
] | rossmarkello@gmail.com |
cbd070ddd3a222afb9f0a1258eccf59da5c7972f | 4236da81628574feba837b78d128d41e40136526 | /Graph/graph15.py | 5b2f8525a3c50c2c844950c0d4e6c65ac1b7580f | [] | no_license | babiswas2020/Design-Pattern | 6048efacc7f27c69b44a984656ec0965311dade4 | bddcec180f241f16e7b73c71c62e0557a3c4d919 | refs/heads/master | 2022-11-12T10:37:07.332961 | 2020-06-27T12:39:01 | 2020-06-27T12:39:01 | 272,214,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | class Cell:
def __init__(self,x,y,dist):
self.x=x
self.y=y
self.dist=dist
def is_valid(x,y,N,M):
if x<0 or x>=N:
return False
if y<0 or y>=N:
return False
if M[x][y]=='#':
return False
return True
def find_steps(src,M,N):
dx=[1,-1,0,0]
dy=[0,0,1,-... | [
"36biswas0814@gmail.com"
] | 36biswas0814@gmail.com |
bf0a033c79107faeb81177e4f9bf8cacfe7999db | 60b9e5fabeb206984ace3fc67c7a6d1b11e4f77c | /generalexam/figures/plot_determinization.py | e6a473e1d038c066e85443ac27a18a9516d09732 | [
"MIT"
] | permissive | thunderhoser/GeneralExam | 11dcf6cbb2e8decc1d83e9b71572a76e234304b3 | 95b99a16fdaa67dae69586c7f7c76e27ccd4b89a | refs/heads/master | 2021-03-27T16:59:31.075944 | 2019-03-02T22:10:35 | 2019-03-02T22:10:35 | 121,313,764 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,068 | py | """Plots determinization of front probabilities."""
import numpy
import matplotlib.pyplot as pyplot
from gewittergefahr.gg_utils import nwp_model_utils
from gewittergefahr.gg_utils import file_system_utils
from gewittergefahr.plotting import plotting_utils
from gewittergefahr.plotting import imagemagick_utils
from gew... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
075179cad7ef767509144a8b5954aad39edacc47 | a303be0a547d717b0deb19b5bdcc75010e131b51 | /Contests/College Contests/Game of Codes/p2.py | fb20332240aafacce83ebc7f6079f098627d0f0a | [] | no_license | harrypotter0/competitive-programming | ff883c4dc5aa8d72f1af589bb654a422e32c8a38 | 82a8497e69212dc62e75af74b0d5a3b390b8aca2 | refs/heads/master | 2023-03-23T07:07:14.295053 | 2021-03-17T01:24:45 | 2021-03-17T01:24:45 | 70,964,689 | 16 | 9 | null | 2021-03-17T01:24:49 | 2016-10-15T03:52:53 | Python | UTF-8 | Python | false | false | 1,240 | py |
import math
from fractions import gcd
from itertools import permutations
from itertools import combinations
def readInts():
return list(map(int, raw_input().strip().split()))
def readInt():
return int(raw_input())
def readIntsindex0():
return list(map(lambda x: int(x) - 1, input().split()))
def readStrs()... | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
4da36a601b69724313a456afa93e30589d9fd283 | be0401d72443dd37f8be2632ac32e1c5c0333499 | /torch_glow/tests/nodes/gelu_test.py | 8a43af5f02d2c6d033929ea4f74e5377850cd7bb | [
"Apache-2.0"
] | permissive | 842974287/glow | 5c797f5d37a8b2b179c45689a2c5db09402c4f4f | 7d77eb9a1c00dbba77321f62ad9c9078beb2b725 | refs/heads/master | 2023-06-06T09:49:19.753708 | 2020-10-08T07:43:55 | 2020-10-08T07:45:04 | 299,778,323 | 0 | 0 | Apache-2.0 | 2020-09-30T01:25:13 | 2020-09-30T01:25:13 | null | UTF-8 | Python | false | false | 619 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
import torch.nn.functional as F
from tests.utils import jitVsGlow
class TestGelu(unittest.TestCase):
def test_gelu_basic(self):
"""Basic test of the PyTorch gelu Node on Glow."""
def ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1f4df76c6a617aea39aa6acca053ff807dd838c2 | ca2fc0d216d9a38b32e9e6606ccc6656b481cd6a | /sentiment_analysis.py | 6f696fc434ec718a4c4f7b520517032266db5c87 | [
"MIT"
] | permissive | chreman/output_BA | bd031d99604ef75121e109c3a49bc53f3b4a8881 | 5b40c880a349af376ec1e0393f31be809fd27f66 | refs/heads/master | 2020-05-17T10:55:23.613036 | 2015-06-08T07:23:35 | 2015-06-08T07:23:35 | 37,051,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,764 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
import numpy as np
import pandas as pd
import datetime
import matplotlib.pyplot as plt
import scipy.stats as stats
import config
import preprocessing as pp
import re
import statsmodels.api as sm
datafolder = config.datafolder
class ConfidenceIndexer(object):
... | [
"web@christopherkittel.eu"
] | web@christopherkittel.eu |
8cac9d27decd239629b876f5d82122165cc9dd3e | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L54/54-42_MD_NVT_rerun/set_3.py | 357b5f5cd55069d4a102102da3397c7ed5efe018 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L54/MD_NVT_rerun/ti_one-step/54_42/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_3.in'
temp_pbs = filesdir + 'temp_3.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
98e84404a7f710879bd4f170279ddb4df12591b8 | e7e5cc4353671d4cb410acf12fb3de92e8f4ac58 | /machine-learning/tests_marco/sparse_filter/NeuralNet.py | c6456c7a1e78643c9283a47ba5c8a31c84c9e8c3 | [] | no_license | zooniverse/hco-experiments | f10d128f4258e830098564477c66bfa2a13dc5d7 | fb9f4e476f2402fd0d66fb770f6d1b5c433dafbf | refs/heads/master | 2021-04-30T16:40:11.182769 | 2017-07-12T17:22:34 | 2017-07-12T17:22:34 | 80,105,222 | 4 | 2 | null | 2021-01-08T09:56:44 | 2017-01-26T10:27:23 | Python | UTF-8 | Python | false | false | 52,023 | py | #!/usr/bin/python
import sys # for Capturing
import numpy as np
from io import StringIO # for Capturing
"""
Capturing: goto-line 21
NeuralNet: goto-line 42
NeuralNetPerform: goto-line 580
Autoencoder: goto-line 686
SparseAutoencoder: goto-line 774
LinearDecoder: goto... | [
"will5448@umn.edu"
] | will5448@umn.edu |
6ef28c9ba7a06389c7312bf6a4e46517224442c0 | da130508b04587493424d6c95ab05a55dd70170f | /supervised_learning/0x06-keras/0-sequential.py | 286ec815d4281f65015bd447e3a2886db14854ca | [] | no_license | AndrewKalil/holbertonschool-machine_learning | ea38c0d1ef6ce2206da5f3903fcc22730404af9c | bb980395b146c9f4e0d4e9766c4a36f67de70d2e | refs/heads/master | 2023-07-09T04:09:24.271069 | 2021-08-11T02:29:54 | 2021-08-11T02:29:54 | 317,371,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #!/usr/bin/env python3
""" Keras """
import tensorflow.keras as K
def build_model(nx, layers, activations, lambtha, keep_prob):
"""builds a neural network with the Keras library
Args:
nx is the number of input features to the network
layers is a list containing the number of nodes in each lay... | [
"1541@holbertonschool.com"
] | 1541@holbertonschool.com |
be99e0ba28af7622d9a2d255472300bc8097152f | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /official/HIRun2015PP/GJets_1j_Gpt50_5f_NLO_TuneCUETP8M1_5020GeV_amcatnloFXFX_pythia8/crabConfig_FOREST.py | 6bde23e9c6ff6a8b5e702a0050abefcf40db6885 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_('General')
config.General.requestName = 'GJets_1j_Gpt50_5f_NLO_TuneCUETP8M1_5020GeV_amcatnloFXFX_pythia8_FOREST'
config.General.transferLogs = False
config.section_('JobType')
config.JobType.pluginName = 'Analysis'
config.JobType... | [
"tatark@mit.edu"
] | tatark@mit.edu |
5b573a729890236a30d98acd06580c5f7e3cae68 | b84ff2535544ffe11b81332a99fd6b1c73a9a04b | /07/daikai/django_work/usermanager/views.py | e4e404a442b7a1bbb83ebe7c2c680cdb5f618ba6 | [] | no_license | imsilence/actual_05_homework_mage | ea9170fbae181c524c606e87a86882735c6741a1 | 66c7b581c5f396083318d451c8e066b04569ba32 | refs/heads/master | 2021-05-11T09:24:17.095398 | 2018-01-19T04:05:46 | 2018-01-19T04:05:46 | 118,074,930 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from . import models
# Create your views here.
def require_login(request):
return render(request, 'usermanager/login.html')
def login(request):
username = request.POST.get('username', '')
password = request.PO... | [
"imsilence@outlook.com"
] | imsilence@outlook.com |
0a0f0ff296f0597d996a66cacb33061fdcdba9ff | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/409244_combining_GUasynchronous_IO_threads/recipe-409244.py | 9e2d3e300d050601180bd388bfaf4213d80b15c2 | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 11,685 | py | #!/usr/bin/python
import gtk
import gtk.glade
import sys
import threading
import Queue
import time
import random
class aJob:
"""this is a container for jobs"""
def __init__(self,id,label):
"""
instance variables:
id: a unique job id
label: a label (url to fect, file t... | [
"betty@qburst.com"
] | betty@qburst.com |
ae20cc2a67158889ab9ad7116bae34e07eb23092 | c68aea1de91b46ae684792123c61e84c44ea0266 | /code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/distutils/tests/test_build_ext.py | ce13227126f74f08b75faf1c8e378bcb32dff625 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi",
"Python-2.0"
] | permissive | Winfredemalx54/algorithm-challenger-1 | 12e23bed89ca889701db1b17ac540ce62ce86d8e | 761c2c39e041fb155f853385998d5c6318a39913 | refs/heads/master | 2022-11-22T15:03:01.548605 | 2020-07-11T12:26:31 | 2020-07-11T12:26:31 | 297,955,141 | 3 | 0 | Apache-2.0 | 2020-09-23T11:58:19 | 2020-09-23T11:58:18 | null | UTF-8 | Python | false | false | 19,200 | py | import sys
import os
from io import StringIO
import textwrap
from distutils.core import Distribution
from distutils.command.build_ext import build_ext
from distutils import sysconfig
from distutils.tests.support import (TempdirManager, LoggingSilencer,
copy_xxmodule_c, fixup_build_... | [
"bater.makhabel@gmail.com"
] | bater.makhabel@gmail.com |
765c0167543629f3624f910f3ca316c2566a7877 | f891828ffe9c8501d276560c8c52d319f284056f | /986_intv_inter_m/main.py | 13761e596b66eca022b6e4eb4128759f966ad3e5 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | class Solution(object):
def intervalIntersection(self, A, B):
"""
:type A: List[List[int]]
:type B: List[List[int]]
:rtype: List[List[int]]
"""
def findOverlap(intv1, intv2):
if intv2[0] > intv1[1] or intv1[0] > intv2[1]:
return None
... | [
"chao.shi@hpe.com"
] | chao.shi@hpe.com |
78e6c68ebd9cb7362700bae70045b305731481e9 | 05e3c6d28bbaf56f058d95ea0aab0006843b2420 | /test/test_ad_resolution_info.py | 360308beb7b09f40ad86df1bfd0ba6e9ff7bef7d | [] | no_license | TheAdsOnTop/dynamix-python-client | 4ac5bf8bc975e3b1230bdf8ed0900e6b1382e318 | ace7ff34502cbbbb11b0c65bb3385b8c48247082 | refs/heads/master | 2020-03-08T00:10:05.566157 | 2018-04-02T19:02:47 | 2018-04-02T19:02:47 | 127,799,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | # coding: utf-8
"""
Dynamix
Sign up for Dynamix & grab your token. # noqa: E501
OpenAPI spec version: v0.1.0
Contact: david@theadsontop.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from s... | [
"akhanna@princeton.edu"
] | akhanna@princeton.edu |
afd85f75857ef1b87bcaf62d28d120f631461a52 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /vKPepKYAvx2Rao3zt_12.py | f1ed0b3ed4e31287e3c9bcfe58b7d755989d2656 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | """
A built-in timer inside your car can count the length of your ride in
**minutes** and you have started your ride at `00:00`.
Given the number of minutes `n` at the end of the ride, calculate the current
time. Return the **sum of digits** that the digital timer in the format
`hh:mm` will show at the end of the r... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
720720af6ca3f1b56b348d36dfc023aa2f04423a | 5051243a2b1ecc277810c1763e7af0bff26a3127 | /lib/get_db.py | aeaf8784ec09b15e7e9af0403620e80cf125f4b5 | [] | no_license | takumikaka/ProjectB | 488183e099d4834207eba824dfb0c6645ada5f99 | 0a33db920256afdab36e607775c3e0a293ca07e3 | refs/heads/master | 2020-05-01T16:18:39.414722 | 2019-04-17T06:39:20 | 2019-04-17T06:39:20 | 177,569,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # coding:UTF-8 -*-
import pymysql
import sys
sys.path.append("..")
from config.config import *
class GetDB(object):
def __init__(self):
self.conn = pymysql.connect(db_host, db_user, db_passwd, db_table)
self.cur = self.conn.cursor()
def __del__(self):
self.cur.close()
self.con... | [
"qk2006qk@163.com"
] | qk2006qk@163.com |
8049e6e7bcb2624904c42453f4e6471d79057b71 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/DBpp_ID4145_for_PyTorch/mmocr/models/textrecog/backbones/resnet_abi.py | ed6ac77919e7b3a5d3b79636adf777252f8eb756 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,103 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
643198a7e5927c65fc54aa403bfec98cb0baa39f | 9e978a95d8ece18e4550edaa52e1a3e313c4ebff | /dolaresAPesosMX.py | 605476e3270c362691f5bbd80cf4b026c4a6484d | [] | no_license | Mike-droid/CursoBasicoPython | 235691acd62c74014e9f0b88243092a7fef80b37 | cc488689e00c2c354256771dbf87758fa753a234 | refs/heads/master | 2022-12-06T08:09:34.531178 | 2020-08-18T16:11:01 | 2020-08-18T16:11:01 | 288,502,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | dolares = input("¿Cuántos dólares tienes? :")
dolares = float(dolares)
valor_dolarMX = 22.38
pesos = dolares * valor_dolarMX
pesos = round(pesos,2)
pesos = str(pesos)
print("Tienes $" + pesos + " pesos mexicanos") | [
"miguelreyesmoreno@hotmail.com"
] | miguelreyesmoreno@hotmail.com |
a9120634380656b7f8bb272907c4c496efaf5716 | 7bfc7d0944310b4f0b2d76ae22a440d46c52ff2e | /web_24_aug_dev_9265/settings.py | 30c557697b89e82533456bd6ddb23a4b217c1dfb | [] | no_license | crowdbotics-apps/web-24-aug-dev-9265 | a2c0aa1de56989a79acd275dfe35650f5e0d1848 | 27e71ab01f619b67482613b2893440202545b2ba | refs/heads/master | 2022-12-05T17:31:20.422377 | 2020-08-26T05:55:45 | 2020-08-26T05:55:45 | 289,833,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,597 | py | """
Django settings for web_24_aug_dev_9265 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
45d79900126683a660671eb469afa7af91a5234b | e57d7785276053332c633b57f6925c90ad660580 | /sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py | b7c2cdcf7074bd65e75fccc95c62ddc5eda79e2f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 29,256 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
77bfa50375581e66c76aa395c69aab7d929beb17 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PhysicsAnalysis/AnalysisTrigger/AnalysisTriggerAlgs/share/AnalysisTrigger_jobOptions.py | 91d3785e8067b7ff26b7b8290009f1f3fc001cbb | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
from AnalysisTriggerAlgs.AnalysisTriggerAlgsConfig import RoIBResultToAOD
topSequence += RoIBResultToAOD("RoIBResultToAOD")
| [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
f2ad91cebffdc6e83cd80ea39cb255e537c6f01d | c7751e925ea735a3d733453b0984db62dffde143 | /src/milliondicestats.py | 32ad8caec008c664fb5a20d6bee02bd6876da029 | [] | no_license | Sts0mrg0/PythonStdioGames | b6e0d0aa4776643e463b0a1644e41db4f8390226 | ec6d1c72f81f150a1d274151b498a5c51732fa69 | refs/heads/master | 2020-09-01T21:47:01.386023 | 2019-10-10T07:03:50 | 2019-10-10T07:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # Million Dice Roll Stats, by Al Sweigart al@inventwithpython.com
import random, time
print('''MILLION DICE ROLL STATISTICS SIMULATOR
By Al Sweigart al@inventwithpython.com
Enter how many six-sided dice you want to roll:''')
numberOfDice = int(input())
# Set up dictionary to store results:
results = {}
for i in ran... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
3d650f3c0b8ce74e1bdbc245af61ce653d64cdd3 | 47ff744da519c525cccfad1d8cead74f7e2cd209 | /.history/uge10/irisMeanshift_20200522120949.py | 5a10df34bea6b1552fda9410f76f235defcf62c8 | [] | no_license | Leafmight/Python | f6098395a7a13dd6afe6eb312a3eb1f3dbe78b84 | d987f22477c77f3f21305eb922ae6855be483255 | refs/heads/master | 2020-12-21T14:21:06.802341 | 2020-05-22T10:21:37 | 2020-05-22T10:21:37 | 236,457,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from itertools import cycle
from sklearn.cluster import MeanShift, estimate_bandwidth
def mean_shift(data, n_samples=1000):
bandwidth = estimate_bandwidth(data, quantile=0.2,
n_samples=n_samples)
ms = ... | [
"jacobfolke@hotmail.com"
] | jacobfolke@hotmail.com |
19378623ac4fcf8cacb65afc0ddee991e05c4ec4 | 8d47022e2c664fcd221cf37791f9783ae4941252 | /python/exercise/53_fluent_interface3.py | ca194c70a3201ca1ef9350ff2138ffba101004da | [] | no_license | fucky850112/01 | bf6061a7620965428556922f119708a47fdf85fb | 6533df574f8b7632d9544a6ceaf121b5a2292545 | refs/heads/master | 2021-01-15T20:43:53.844612 | 2016-07-12T14:34:16 | 2016-07-12T14:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | from copy import deepcopy, copy
from functools import wraps
def newobj(method):
@wraps(method)
def inner(self, *args, **kwargs):
obj = self.__class__.__new__(self.__class__)
obj.__dict__ = self.__dict__.copy()
method(obj, *args, **kwargs)
return obj
return inner
class P... | [
"anand21nanda@gmail.com"
] | anand21nanda@gmail.com |
7c5ca13a7ca712c755e7ac34ac953b7033e2f242 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Python Programmer - Career Track/10. Merging DataFrames with pandas/01. Preparing data/06. Reindexing using another DataFrame Index.py | ed83436470ec9d8af2a330bb5216aab844dd1267 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | '''
Reindexing using another DataFrame Index
Another common technique is to reindex a DataFrame using the Index of another DataFrame. The DataFrame .reindex() method can accept the Index of a DataFrame or Series as input. You can access the Index of a DataFrame with its .index attribute.
The Baby Names Dataset from da... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
227755bcd9d27f87014017a5014b1133f43d8bc2 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-er/huaweicloudsdker/v3/model/update_route_table.py | 9993b8a5da19f11b520cf19ba884ed4897f550fb | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,831 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateRouteTable:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
655990d28a948e5729157a2f9d8013cf8f6f2991 | deda909b6f5797a05bbaf4f8e56edbc9b2a6de09 | /apps/server/migrations/0001_initial.py | c117dfe31e127352c5fa18a40a41c8d2d0edee8a | [
"MIT"
] | permissive | cnbillow/devops | 628a892962a17cf5e99865dc4bffe6b895d7038a | 9883ba547e400758e8743456ceb3655345f9263f | refs/heads/master | 2020-08-30T14:54:44.023237 | 2019-10-25T09:09:40 | 2019-10-25T09:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,532 | py | # Generated by Django 2.2.3 on 2019-08-08 19:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RemoteUser',
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ad9481dd2f0b503ff41e7cdae76894bd45c4d476 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_image13.py | a1dd120cfbf2770ec2a2db038c110072abbb8dbb | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 898 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
5905624702ae52100cf16fb4d2ccce970cffff42 | 28bf7793cde66074ac6cbe2c76df92bd4803dab9 | /answers/Drish-xD/Day-1/Question-1.py | 5e74b91a3664c4f99120e19997d0c5168be9586c | [
"MIT"
] | permissive | Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021 | 2dee33e057ba22092795a6ecc6686a9d31607c9d | 66c7d85025481074c93cfda7853b145c88a30da4 | refs/heads/main | 2023-05-29T10:33:31.795738 | 2021-06-10T14:57:30 | 2021-06-10T14:57:30 | 348,153,476 | 22 | 135 | MIT | 2021-06-10T14:57:31 | 2021-03-15T23:37:26 | Java | UTF-8 | Python | false | false | 516 | py | # printing series by using while loop :)
n = int(input("Enter a number : ")) # Enter number upto which series is required
x = 0 # Empty variable for storing list
y = 2
z = 1
while (z<=n): # While loop form 1 to n
x=(z**3)+y # Logic... | [
"noreply@github.com"
] | Codechef-SRM-NCR-Chapter.noreply@github.com |
826723a0be1e688821fe7c52443d7fc3f819f76a | 6c7dcc34787d3f8ef7dc288f1843420a52e8a3eb | /misc/count_broken_image.py | d07c0c321796fe731881dd8f0e683a22f2e6ee6a | [] | no_license | naveens33/selenium_python | bc24eecf488ec5c545fbf025ccd1e6165ac685c8 | 0f7e2dd5102eff92cd5ec6e6a0838c9c5e76fde0 | refs/heads/master | 2023-05-26T20:38:25.879755 | 2021-03-29T03:29:25 | 2021-03-29T03:29:25 | 149,128,838 | 5 | 3 | null | 2023-05-23T00:18:31 | 2018-09-17T13:23:54 | Python | UTF-8 | Python | false | false | 463 | py | from selenium import webdriver
import requests
driver = webdriver.Chrome(executable_path=r'D:\Naveen\Selenium\chromedriver_win32\chromedriver.exe')
driver.maximize_window()
driver.get(r'http://the-internet.herokuapp.com/broken_images')
images = driver.find_elements_by_xpath('//div[@class="example"]/img')
count = 0
for... | [
"naveensagayaselvaraj@gmail.com"
] | naveensagayaselvaraj@gmail.com |
76ed59b55d00a674a5188447aebbf795492b2872 | e04dbc32247accf073e3089ed4013427ad182c7c | /AGC003/AGC003A.py | b6a952a32e6ff08d1cc1ab00f5e381a947974c53 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # from math import factorial,sqrt,ceil,gcd
# from itertools import permutations as permus
from collections import deque,Counter
# import re
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000)
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)
# import ... | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
56b133155250e5ef18a604f2341bca8886ab1955 | a8062308fb3bf6c8952257504a50c3e97d801294 | /test/test_1278_palindrome_partitioning_iii.py | 47e67217eff308b47847865f8359ecf0f0d6f144 | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from unittest import TestCase
from problems.N1278_Palindrome_Partitioning_III import Solution
class TestSolution(TestCase):
def test_palindromePartition(self):
self.assertEqual(1, Solution().palindromePartition(s = "abc", k = 2))
def test_palindromePartition_1(self):
self.assertEqual(0, Soluti... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
5f6bbf9d42f50248ee202ca5002a4cda110382fa | a6a55c4de07dc5d1b08e40f8b0b98373d4d2cd1d | /draw_shapes_on_img.py | 7425bef34975d13c63c50297828f35b47c9e8eeb | [] | no_license | aviral-05/Face-Detection | 3e06363d435af135fa3dabc11b9cc444e42af305 | b3b16b8661c7a52220b66220dd2fbb5099e96491 | refs/heads/master | 2022-11-28T03:58:21.649912 | 2020-08-09T11:13:42 | 2020-08-09T11:13:42 | 286,221,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import numpy as np
import cv2
img=np.zeros([512,512,3],np.unit8)
# img=cv2.imread('test.jpeg')
img = cv2.line(img,(0,0),(255,255),(147,96,44),10)
img = cv2.arrowedLine(img,(0,255),(255,255),(255,0,0),10)
img = cv2.rectangle(img,(384,0),(510,128),(0,0,255),10)
img = cv2.circle(img,(447,63),63,(0,255,0),-1)
font = cv2... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
9d50d2f60948f9fa6477905ce521d83002d8e5e3 | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0103.py | a2ee74243b00a740cc5e4af81edb461e69225cec | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def zigzagLevelOrder(self, root: TreeNode) -> List[List[int]]:
from collections import deque
res = []
if not root... | [
"lih627@outlook.com"
] | lih627@outlook.com |
2029eac8d9ce9c46956cc117bd6c8e41c76abd23 | e016cc9f5a791e633835b09ce0ee50f6764198a1 | /activitystreams/models/generator.py | 5a159832d45536361383cdd67fcb7cdcde9eb7eb | [
"MIT"
] | permissive | sovaa/activitystreams | fda5c061dfc4b825562577ca4d902311872fc77a | def84e8d70efe3f78c45a25fa69f641577efa19c | refs/heads/master | 2021-07-13T02:41:45.650754 | 2021-07-03T15:59:50 | 2021-07-03T15:59:50 | 69,848,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from activitystreams.models.defobject import DefObject
class Generator(DefObject):
def __init__(self, raw):
super(Generator, self).__init__(raw)
| [
"oscar.eriks@gmail.com"
] | oscar.eriks@gmail.com |
557b8040cc4b957d24901ee0aac613db558abf3b | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/15963000.py | 7dfbd90a6de62adf5c72d25115746fe988556dbc | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/15963000.py generated: Fri, 27 Mar 2015 16:10:07
#
# Event Type: 15963000
#
# ASCII decay Descriptor: [Lambda_b0 -> (Lambda_c(2593)+ -> (Sigma_c0 -> MyLambda_c+ pi-) pi+) mu- anti-nu_mu]cc
#
from Configurables import Generation
Generation().EventType = 15... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a2e6079e0617a81947636b434705b1def3240873 | d98883fe1007111b8795ac5661e56758eca3b62e | /KindnessCafe/News/migrations/0001_initial.py | 90b8facc57014d332d1fa7304406d2d30b0492d0 | [] | no_license | pyDeb/KindnessCafe | 7303464e3c0693b0586a4a32740d8b9b19299caf | 6ff8dfe338aefd986edf67c382aff1a2920945d1 | refs/heads/master | 2022-12-29T16:16:35.796387 | 2021-04-19T00:03:14 | 2021-04-19T00:03:14 | 243,533,146 | 3 | 4 | null | 2022-12-08T09:48:09 | 2020-02-27T14:01:16 | Python | UTF-8 | Python | false | false | 739 | py | # Generated by Django 3.0.3 on 2020-03-22 02:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='News',
fields=[
('id', models.AutoField(aut... | [
"zeus@localhost.localdomain"
] | zeus@localhost.localdomain |
ad78f221558ce85e98fa7a3c8b45e80820d6ea39 | ce6d89836059913a485ace9b464454f7bcea189e | /bin/saluki_ism_tfr_folds.py | 03e25ec093d5d453437271b92e68ebdba24b13cd | [
"Apache-2.0"
] | permissive | gfudenberg/basenji | 236e7c74ffb102cab11eadb240d46293a84cae71 | 77eff8e1bea1a67c5f4e0f469c4059ce0cd7667c | refs/heads/master | 2022-06-22T04:15:42.876690 | 2022-06-17T16:25:10 | 2022-06-17T16:25:10 | 147,593,761 | 0 | 1 | Apache-2.0 | 2018-09-06T00:12:04 | 2018-09-06T00:12:04 | null | UTF-8 | Python | false | false | 8,810 | py | #!/usr/bin/env python
# Copyright 2020 Calico 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 agr... | [
"drk@calicolabs.com"
] | drk@calicolabs.com |
6f7fc5e4bd791fe997674ee35776855637a61c4c | f85ae98beeb65eb25d34ef99ec98fe11bedf341b | /zhrtvc/mellotron/hparams_my.py | 528d0162de4406dd80d81960cf675556dfc51263 | [
"MIT",
"BSD-3-Clause"
] | permissive | X-CCS/zhrtvc | 75276b7e0981d7bba7a0eafa1a4ed4421ebb2fa4 | 8af030d09dcfa4829b21bce7a2919b0700e508f6 | refs/heads/master | 2023-04-07T09:23:28.274210 | 2021-03-31T03:39:35 | 2021-03-31T03:39:35 | 336,726,669 | 0 | 1 | null | 2021-02-07T07:19:01 | 2021-02-07T07:19:00 | null | UTF-8 | Python | false | false | 6,172 | py | # import tensorflow as tf
# from text.symbols import symbols
# 原项目中的配置
from aukit import Dict2Obj, hparams_griffinlim
def create_hparams(hparams_string=None, verbose=False, level=2):
"""Create model hyperparameters. Parse nondefault from given string."""
# hparams = tf.contrib.training.HParams(
hparams = ... | [
"CCS695146667@163.com"
] | CCS695146667@163.com |
8ee36bed82e7401122585a74c919c7c8703739d2 | c7ea36544ae5f7a8e34bf95b8c38240ca6ebda83 | /app/schema/exceptions.py | ad926d788f9040e37ac16a9a254b7ca1bab5a5e7 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | qateam123/eq | 40daa6ea214e61b572affd0b5ab9990371c70be4 | 704757952323647d659c49a71975c56406ff4047 | refs/heads/master | 2023-01-11T01:46:11.174792 | 2017-02-09T13:46:56 | 2017-02-09T13:46:56 | 80,821,577 | 0 | 0 | MIT | 2023-01-04T14:31:08 | 2017-02-03T11:02:24 | JavaScript | UTF-8 | Python | false | false | 101 | py | class QuestionnaireException(Exception):
pass
class TypeCheckingException(Exception):
pass
| [
"patelt@C02SQ3LDG8WL.local"
] | patelt@C02SQ3LDG8WL.local |
4c06a2cb86078c1473d45956e014f43b08f1565a | fec54c7785cd486256706bfe4b8b365399390742 | /21_expo_2018/Datos_NovMar.py | 3ac9629d1d405f6ee440961224bc47a444a0e0f8 | [] | no_license | yordanarango/MASTER_THESIS | 71f08bcf304f201ed3fcf54e93ca4757c35b46ca | 2310d32965a877174b9662bbd98ce4040be6f4f5 | refs/heads/master | 2021-04-15T18:28:07.140558 | 2018-08-05T16:06:47 | 2018-08-05T16:06:47 | 126,349,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 14 13:34:25 2018
@author: yordan
"""
import numpy as np
import netCDF4 as nc
from netcdftime import utime
from pandas import Timestamp
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pickle
import csv
#from mpl_toolkits.basema... | [
"yuarangoj@unal.edu.co"
] | yuarangoj@unal.edu.co |
bcdac1bac664d7dfbdf2e1fecd40c2fcb432207b | f47863b3a595cbe7ec1c02040e7214481e4f078a | /plugins/scan/www/687.py | 827806eae46d33b0510cde06e380cc8faba29953 | [] | no_license | gobiggo/0bscan | fe020b8f6f325292bda2b1fec25e3c49a431f373 | 281cf7c5c2181907e6863adde27bd3977b4a3474 | refs/heads/master | 2020-04-10T20:33:55.008835 | 2018-11-17T10:05:41 | 2018-11-17T10:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__author__ = '1c3z'
# ref:http://www.wooyun.org/bugs/wooyun-2014-066906
# ref:http://www.devttys0.com/2015/04/hacking-the-d-link-dir-890l/
# ref:http://www.freebuf.com/vuls/64521.html
import urllib.parse
def assign(service, arg):
if service == "www":
arr = url... | [
"zer0i3@aliyun.com"
] | zer0i3@aliyun.com |
036f572275b1987a231cca7a1edb53307b48aedd | 0c10d5c3dedd8e17275146e596edc6104b6ca325 | /grpc_benchmark/multiple_clients.py | 605b688b3056264f3939673855c721718b4004e9 | [
"MIT"
] | permissive | mpetyx/python-rpc-frameworks-comparison | f5cf01dfd1bb61fca4e8bbcd4bf08b471ef6a02a | 5b69a5aef1f8ead2fb88e744b6b1787b27165898 | refs/heads/master | 2020-03-27T13:15:32.841893 | 2018-08-30T17:08:40 | 2018-08-30T17:08:40 | 146,599,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | __author__ = 'mpetyx (Michael Petychakis)'
__version__ = "1.0.0"
__maintainer__ = "Michael Petychakis"
__email__ = "hello@apilama.com"
__status__ = "Production"
from client import Client
for number in range(1,100000):
Client().squareRoot(number) | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
4cab22069795c29370cfefdd57348c3a04ad1818 | b184622dde5a08e2430f9520d551e6fb59b880b6 | /pytorch-deeplab-xception/dataloaders/__init__.py | 2bf2c708c6f356aec10643b7dfd4e36ecaa835c4 | [
"MIT"
] | permissive | ixhorse/detect-region | f7c8ca7fab2f005a4a9cef45b012038d67144cc3 | 1e6f79c725c6b70b13b83fb24e1507a2428f8b31 | refs/heads/master | 2020-06-06T08:04:10.639358 | 2020-01-08T03:23:55 | 2020-01-08T03:23:55 | 163,078,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | from dataloaders.datasets import cityscapes, coco, combine_dbs, pascal, sbd, tt100k
from torch.utils.data import DataLoader
def make_data_loader(args, **kwargs):
if args.dataset == 'pascal':
train_set = pascal.VOCSegmentation(args, split='train')
val_set = pascal.VOCSegmentation(args, split='val')... | [
"cyfhorse@gmail.com"
] | cyfhorse@gmail.com |
3f3ea4249fc2eb7463be0f8f8ac44f91f68bc58b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/conda_conda/conda-master/conda/gateways/download.py | c55f895db84a12e237c87f627eb186a9928409d1 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 5,288 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import hashlib
from logging import getLogger
from os.path import exists, basename
from threading import Lock
import warnings
from requests.exceptions import ConnectionError, HTTPError, SSLError
from .. import C... | [
"659338505@qq.com"
] | 659338505@qq.com |
e23de26ea1e1b1ddb36bc350c9734b88cc6ec4e8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_timeless.py | 5b2e629a615d55c0572191519d4f4b1cd3ce3700 | [
"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 | 514 | py |
#calss header
class _TIMELESS():
def __init__(self,):
self.name = "TIMELESS"
self.definitions = [u'Something that is timeless does not change as the years go past: ', u'having a value that is not limited to a particular period but will last for ever: ']
self.parents = []
self.childen = []
self.properties... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c0e93825e0101f6662bf360636f43fb48d5d4fbf | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/extend/openeducat_core/models/roll_number.py | 03fb4c4956e383ef93291e24928ab43a1c91cacf | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2009-TODAY Tech-Receptives(<http://www.techreceptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
88244320d96e2120733e84abf2f035221557e370 | d5f75adf5603927396bdecf3e4afae292143ddf9 | /python/paddle/fluid/tests/unittests/xpu/test_softmax_with_cross_entropy_op_xpu.py | 661f11704187dd61022fe594710528a6a13d7029 | [
"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,040 | py | # Copyright (c) 2020 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 app... | [
"noreply@github.com"
] | jiweibo.noreply@github.com |
f3f6a5e9fc9dcff159f042806504cf9657aa190f | d1d2621c62775a36ed46abf192bb76aec2649c04 | /control/Control/src/filelock/fl.py | ba35717b55a069bcd1218342f74831fbc1718534 | [
"MIT"
] | permissive | jacksonicson/paper.IS2015 | 75a48c617f2725310cfce6f240719990581882eb | 7165452f4e9c540f98e1e57058de06f9fb192e8f | refs/heads/master | 2021-01-17T09:52:51.243420 | 2015-11-12T22:10:29 | 2015-11-12T22:10:29 | 42,787,215 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | # Copyright (c) 2009, Evan Fosmark
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and... | [
"jacksonicson@gmail.com"
] | jacksonicson@gmail.com |
6ddb37f7627142ada78631779b8a9fe745a82305 | 5a1eff241b9e9c2504fcc6762899d90993dcec3a | /api/views.py | 5f63acc40c7c9a14c95f712ee0c6a91719acbfea | [] | no_license | P79N6A/AutoCmdb | 58cfabae9c5955427a51c291056b1a6c1a224801 | d0afe1ec1f7122b4ddc7d5dcb70627190e0a10e0 | refs/heads/master | 2020-04-13T04:42:54.346089 | 2018-12-24T08:27:34 | 2018-12-24T08:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,272 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import json
import importlib
from django.views import View
from django.http import JsonResponse
from django.shortcuts import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.utils.decorators import method_decorator
from utils import auth
from ap... | [
"1209394579@qq.com"
] | 1209394579@qq.com |
9b598c8be41c74ac84674515abe740b35d31c2bc | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc039/B/4389560.py | 413a6859340d773ff1d8d3478fe0ad48f818c637 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from scipy.misc import*;n,k=map(int,input().split());print(comb(n+~-k*(n>k),k%n,1)%(10**9+7)) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
0b1ff3e13243183c62d8fda1f1058f8182f6cf9d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CYAN-ETH-MIB.py | 44b2198a4b24c49627992e3766f8dbeeb06491ec | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 8,746 | py | #
# PySNMP MIB module CYAN-ETH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CYAN-ETH-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:18:19 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
0a80e38a9c856812b1324aef21792b0b3ee47180 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/PSPNet/mmcv_replace/runner/hooks/checkpoint.py | 1912cf6373ed618beb2d19f429cd9383c4e4c924 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,032 | py | # Copyright (c) Open-MMLab. All rights reserved.
import os
from ..dist_utils import allreduce_params, master_only
from .hook import HOOKS, Hook
@HOOKS.register_module()
class CheckpointHook(Hook):
"""Save checkpoints periodically.
Args:
interval (int): The saving period. If ``by_epoch=True``, interv... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
07e58c3c1cac8630c3bebaa757743c7771e693f3 | 3cfc0f9620fc1851c2641f65093035aefb9fa61a | /src/py/parsource/tree.py | ae4e0989ebf9f67f6076b374eaf9483993c00e79 | [] | no_license | sebastien/parsource | 0417ab0ec8de9bb1756a151d35a2f0002d3bc937 | 7f662b218a2b6317571426530bc2b31ab37b40bd | refs/heads/main | 2023-05-27T09:02:29.857646 | 2021-06-13T05:54:45 | 2021-06-13T05:54:45 | 376,173,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,742 | py | from typing import Optional, Any, List, Dict, Union, Iterator, Iterable, Callable
import json
import inspect
# NOTE: This module was initially copied from TLang.
# -----------------------------------------------------------------------------
#
# NODE
#
# ---------------------------------------------------------------... | [
"sebastien.pierre@gmail.com"
] | sebastien.pierre@gmail.com |
40ba6cbd51e3aefeb4221e3fae7c0cb9f7cec4a2 | 0ea486c1e9c7acf1c191ce2e5ef1278ed431e602 | /pygeodesy/utm.py | 74a7c74ce804313b38ec21f8d4c8c5d9013e00a6 | [
"MIT"
] | permissive | rbpdqdat/PyGeodesy | af52a638b58c66a4a81ce577a31107a352f60795 | 565be1deeaabf6ccd13244d01d015ede01897a83 | refs/heads/master | 2023-02-01T23:05:28.195561 | 2020-12-13T16:16:38 | 2020-12-13T16:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,426 | py |
# -*- coding: utf-8 -*-
u'''Universal Transverse Mercator (UTM) classes L{Utm} and L{UTMError}
and functions L{parseUTM5}, L{toUtm8} and L{utmZoneBand5}.
Pure Python implementation of UTM / WGS-84 conversion functions using
an ellipsoidal earth model, transcribed from JavaScript originals by
I{(C) Chris Veness 2011-... | [
"mrJean1@Gmail.com"
] | mrJean1@Gmail.com |
66543c01bfbba2802d013b527437cdb6afc937de | 142362be3c4f8b19bd118126baccab06d0514c5b | /apps/shop/migrations/0010_auto_20210208_1858.py | ecb56884f2dbc49a7d581463fc944702f9e146ca | [] | no_license | dkramorov/astwobytes | 84afa4060ffed77d5fd1a6e8bf5c5c69b8115de6 | 55071537c5c84d0a27757f11ae42904745cc1c59 | refs/heads/master | 2023-08-27T07:10:51.883300 | 2023-08-02T16:52:17 | 2023-08-02T16:52:17 | 191,950,319 | 0 | 0 | null | 2022-11-22T09:15:42 | 2019-06-14T13:44:23 | HTML | UTF-8 | Python | false | false | 726 | py | # Generated by Django 2.2.3 on 2021-02-08 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0009_auto_20201212_1539'),
]
operations = [
migrations.AddField(
model_name='orders',
name='payed',
... | [
"zergo01@yandex.ru"
] | zergo01@yandex.ru |
c44cff19c7b8762cde64f905a9d56fc4caa57fdc | 7dfabdddeb5b8f1628e445cdb6d536958c8bc85b | /pcdet/models/roi_heads/__init__.py | 9cc8e1146cf8a2ffc9b0db93c4331de317897da1 | [
"Apache-2.0"
] | permissive | vehxianfish/SRDAN_Open | d6ba16ebc201c9651fac16bc30f57dc3a740041f | 47c1bd9d2369d8e486b18a7aea220af7324c9011 | refs/heads/master | 2023-08-15T10:36:56.483018 | 2021-09-25T03:35:53 | 2021-09-25T03:35:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from .partA2_head import PartA2FCHead
from .pointrcnn_head import PointRCNNHead
from .pvrcnn_head import PVRCNNHead
from .roi_head_template import RoIHeadTemplate
__all__ = {
'RoIHeadTemplate': RoIHeadTemplate,
'PartA2FCHead': PartA2FCHead,
'PVRCNNHead': PVRCNNHead,
'PointRCNNHead': PointRCNNHead
} | [
"zhangweichen2006@gmail.com"
] | zhangweichen2006@gmail.com |
febae102db5158e99a4183b1aeb6fc7710108071 | c571444b5e879177252c9721ccc2047d4661dd0c | /tests/sales/test_models.py | 20d0d8ab3fdcbc65d93b1d139784dedc9f42e321 | [] | no_license | dbsiavichay/faclab | fdb4390544c2515bf92e0e05518f13321ab74907 | 5776f04a5dde4691f9536d2f42fdabaf4984ea45 | refs/heads/master | 2023-08-07T13:52:39.360634 | 2023-08-02T04:25:56 | 2023-08-02T04:25:56 | 106,976,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | import pytest
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db.utils import DataError
from django.forms.models import model_to_dict
from apps.sales.models import Customer, CustomerCodeType, Invoice, InvoiceLine
from apps.sales.validators import customer_code_validator
... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
18b573a1ede027deab382e36fb9540e9b53e65bc | 017033cc7094fd20334607e4c3e6e90bc5006687 | /django/api/conversation/migrations/0005_applications_weight.py | 31d80f0f59bdfc992c8e4379db4d59122bb792b9 | [] | no_license | HellMenDos/DjangoDockerPostgresSocket.io | cadc8cbc5ec1cd84b1e2455361f9a04ac557c73c | 88e4ff65cfc80df7932cffe23eee0ae221ec3519 | refs/heads/master | 2023-05-31T06:31:35.206756 | 2021-06-21T19:14:55 | 2021-06-21T19:14:55 | 367,129,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.1.4 on 2021-04-15 17:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('conversation', '0004_remove_applications_typeof'),
]
operations = [
migrations.AddField(
model_name='applications',
... | [
"poznkirill3@gmail.com"
] | poznkirill3@gmail.com |
cf643bd0fd4d3c76ffc6a19f2490636d6a54ca0b | 81eff1c9bc75cd524153400cdbd7c453ee8e3635 | /zxcar_ws/build/imu_calib/catkin_generated/pkg.installspace.context.pc.py | 93a05270b9c6d982d30a3668c7d579e05de2c8c5 | [] | no_license | sukai33/zxcar_all | bbacbf85c5e7c93d2e98b03958342ec01e3dafd9 | af389f095591a70cae01c1d116aa74d68223f317 | refs/heads/master | 2023-01-03T13:32:00.864543 | 2020-10-29T05:22:43 | 2020-10-29T05:22:43 | 300,556,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "cmake_modules;roscpp;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRA... | [
"422168787@qq.com"
] | 422168787@qq.com |
d0247e67cc205207ae766a70fae27db9d4a959a7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sorted_20200530003042.py | b40c3bc0d0332c88a30650235641028352d8a511 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | def removeDuplicates(nums):
if len(nums) == 0:
return 0
for i in range(len(nums))
removeDuplicates([1,1,2,2,2])
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f93d9dbcdc734a8f9601cdec082c6aaa0a918e5c | 0f83273b5cef30aadcd58af02d6b3a1193940237 | /tests/TestPaths.py | dab7cfa72aa31869cb4a841c03bba4696fe23673 | [
"MIT"
] | permissive | anderscui/nails | adce81602942b29e8e0d09f15bda0387af2892fa | b465c896e1dd10e1c7b104c7eda1c3ccb10005f0 | refs/heads/master | 2020-01-23T21:41:27.801214 | 2018-08-15T17:02:53 | 2018-08-15T17:02:53 | 74,688,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # coding=utf-8
from nails.paths import list_files, list_files_rec
from tests.BaseTestCase import BaseTestCase
class TestPaths(BaseTestCase):
def test_list_files(self):
for f in list_files('.', '*.py'):
print(f)
def test_list_files_rec(self):
for f in list_files_rec('.', '*.py'):
... | [
"anderscui@gmail.com"
] | anderscui@gmail.com |
be77804f95297d666d19e3f7c11936dd80524fee | 98d34935bfa9b709c07df539267daa6f3a6db880 | /kikar_hamedina/core/south_migrations/0013_auto__add_field_user_token_is_expired.py | 300bac34fe541fe58d01fdb57bcb321d1999c1e3 | [] | no_license | hasadna/kikar-hamedina | c4a0e939fdafb1f8d187db1be35aba5fde2350be | d08e9231fd4c91c4024ced26b760b87f93bb8607 | refs/heads/dev | 2020-12-25T18:04:22.817008 | 2019-03-30T15:27:13 | 2019-03-30T15:27:13 | 18,186,117 | 12 | 36 | null | 2019-03-30T15:28:06 | 2014-03-27T18:11:01 | Python | UTF-8 | Python | false | false | 5,403 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'User_Token.is_expired'
db.add_column(u'core_user_token', ... | [
"yotammanor@gmail.com"
] | yotammanor@gmail.com |
a28d2d45c6831f6b1ca0fab4c88705dcadaac9bc | b357f5ee96db8007d721c7f5178c3c6522227db1 | /workflow_reademption.py | b5a93646000fc95f92a07f839c68a1f3598a96c3 | [] | no_license | fasemoreakinyemi/Python_workflow_scripting | eb56c4602bdcb0def0526f24ff84bd07de949f43 | 4a2375d0748a129617d3cab8a61d425b3c070ab0 | refs/heads/main | 2023-08-31T19:08:24.807570 | 2021-11-08T13:40:59 | 2021-11-08T13:40:59 | 416,661,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,220 | py | import os
import sys
import glob
def main():
function_names = sys.argv
functions = {
"create_folders": create_folders,
"create_reademption_project_folders": create_reademption_project_folders,
"download_reference_sequences": download_reference_sequences,
"link_reference_sequence": link_reference_sequence,
... | [
"till.sauerwein@web.de"
] | till.sauerwein@web.de |
b0ddeb005b784b067833da29a53560aac964f56d | 71c331e4b1e00fa3be03b7f711fcb05a793cf2af | /QA-System-master/SpeechToText_test/google-cloud-sdk/lib/surface/composer/environments/run.py | 0bb1fc6e6fc7afff4a1da4d22b178eb195d6b7bc | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iofh/QA-System | 568228bb0c0adf9ec23b45cd144d61049e720002 | af4a8f1b5f442ddf4905740ae49ed23d69afb0f6 | refs/heads/master | 2022-11-27T23:04:16.385021 | 2020-08-12T10:11:44 | 2020-08-12T10:11:44 | 286,980,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,243 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. 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 requir... | [
"ige-public@hotmail.com"
] | ige-public@hotmail.com |
d5e5caacd333db6f797ed32d410c901d5dd40a5c | 3867046ca54a1623d4f1d9240de92c7b82d276ac | /plugins/module_utils/mailman.py | 4202c537720ec97424eb3d75ea2d8f267ee14750 | [] | no_license | CCI-MOC/moc-ansible-mailman | 11515ddd548c17b8c8054e2016e5aabada729164 | 0b1381f869fc5d68b381c28d011ae0698648287e | refs/heads/master | 2023-01-05T06:29:44.862437 | 2020-11-05T20:32:50 | 2020-11-05T20:32:50 | 310,088,056 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,813 | py | import json
import logging
import os
import subprocess
import tempfile
log = logging.getLogger(__name__)
default_path = '/usr/lib/mailman/bin'
class MailmanError(Exception):
'''Base class for all exceptions generated by this module'''
class CalledProcessError(MailmanError):
def __init__(self, command, retu... | [
"lars@redhat.com"
] | lars@redhat.com |
ac8f6151128067343054a8e0fe6472165fdc3837 | 1dcfedfb17950f119051df82f05d03f1d74dcd93 | /tests/_util.py | d4728e564311b046388fadd25362ae90cc56c3f8 | [
"Apache-2.0"
] | permissive | ndparker/rjsmin | c104f654955ac993124803f653e28cbb47bb57bd | 3759bcaaccfcbbf4ba9c1fc8d3017fb099356193 | refs/heads/master | 2022-08-22T08:37:40.296415 | 2022-07-31T14:41:41 | 2022-07-31T14:41:41 | 13,541,417 | 42 | 15 | Apache-2.0 | 2021-11-14T21:06:11 | 2013-10-13T15:22:10 | Python | UTF-8 | Python | false | false | 5,153 | py | # -*- coding: ascii -*-
u"""
:Copyright:
Copyright 2014 - 2022
Andr\xe9 Malo or his licensors, as applicable
:License:
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.... | [
"ndparker@users.noreply.github.com"
] | ndparker@users.noreply.github.com |
8213f343d223525a7aae10c1ac6c615e575c58f2 | 9bc318535bbcaaa7fb15a18929fc11a2bbf531d1 | /satori-rules/plugin/infra/30_tcpipext.py | b6c4f4b2855b47fb4723b2fb586a6cf980b773ab | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leancloud/satori | dcab126548a54fde6d02d79053b239456439d211 | 701caccbd4fe45765001ca60435c0cb499477c03 | refs/heads/master | 2022-12-10T23:33:53.046905 | 2021-04-08T08:20:45 | 2021-04-08T08:20:45 | 67,022,336 | 259 | 89 | Apache-2.0 | 2022-12-08T02:12:01 | 2016-08-31T09:13:02 | Python | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
# -- stdlib --
import json
# -- third party --
# -- own --
# -- code --
rst = []
with open('/proc/net/netstat') as stat:
while True:
header = stat.readline().strip()
i... | [
"feisuzhu@163.com"
] | feisuzhu@163.com |
44f90e22c93c768a9150e749a3a31bfecc4dc257 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/insteon/schemas.py | 0fe8f30d95bf0caa17f23dd56fbe75fcafa2a8f3 | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 4,144 | py | """Schemas used by insteon component."""
from typing import Dict
import voluptuous as vol
from homeassistant.const import (
CONF_ADDRESS,
CONF_ENTITY_ID,
CONF_HOST,
CONF_PLATFORM,
CONF_PORT,
ENTITY_MATCH_ALL,
)
import homeassistant.helpers.config_validation as cv
from .const import (
CON... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
7e5ceb8997206cd272f4c1bf29fcf65ffa8db486 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Cooling_Supply_Air_Temperature_Integral_Time.py | 95ab9ca7284033d6612a20ea15ca5a590e63b751 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Supply_Air_Temperature_Cooling import Supply_Air_Temperature_Cooling
class Cooling_Supply_Air_Temperature_Integr... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
9464703a39bb428a08062897fe2c413ef7af9827 | 94cd03a37147b87068b534fe04d222496b5dac47 | /xplogger/parser/experiment/parser.py | 8bba851c2fdf48fcd2a05f841cc55ba23480b7a0 | [
"MIT"
] | permissive | shagunsodhani/xplogger | 8429a2b5b4c3d1b189cf8422f1ebce1653981f25 | 17124a0b6f89480821eca515b900a8c06187480a | refs/heads/main | 2023-05-23T16:40:01.635243 | 2022-10-07T21:19:22 | 2022-10-07T21:19:22 | 351,860,799 | 7 | 0 | MIT | 2022-10-07T21:19:23 | 2021-03-26T17:26:55 | HTML | UTF-8 | Python | false | false | 3,437 | py | """Implementation of Parser to parse experiment from the logs."""
from __future__ import annotations
import glob
from pathlib import Path
from typing import Any, Union
from xplogger.parser import base as base_parser
from xplogger.parser.config import (
parse_json_and_match_value as default_config_line_parser,
)
... | [
"sodhani@fb.com"
] | sodhani@fb.com |
95f41ecc9a8ed503cae94f09989db973e59f8640 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Utilities/Authentication/OAuth1/__init__.py | 1077202699765ff67f73d84dc61ebb612f3931b2 | [
"Apache-2.0",
"MIT"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from temboo.Library.Utilities.Authentication.OAuth1.FinalizeOAuth import FinalizeOAuth, FinalizeOAuthInputSet, FinalizeOAuthResultSet, FinalizeOAuthChoreographyExecution
from temboo.Library.Utilities.Authentication.OAuth1.InitializeOAuth import InitializeOAuth, InitializeOAuthInputSet, InitializeOAuthResultSet, Initial... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
76090d9205662b66920c0e20d2d51c579d2ec4af | 8240abd177ece3a1cf2d753cc5694c1fec478709 | /week1/informatics/input-output/b.py | 7ad49e79c39fa2aa82af61423b71b587062a702b | [] | no_license | DastanB/BF-Django | 255001185d8a8318bd19b750fe662a7f86b64d92 | adcd1d968b94ea5097fd3d03338f031d5497d463 | refs/heads/master | 2022-10-27T06:44:56.648527 | 2018-11-24T18:33:35 | 2018-11-24T18:33:35 | 147,125,321 | 1 | 1 | null | 2022-10-19T08:22:54 | 2018-09-02T22:07:22 | Python | UTF-8 | Python | false | false | 211 | py | import math
a = int(input())
b = int(a-1)
c = int(a+1)
print("The next number for the number " + str(a) + " is " + str(c) + ".")
print("The previous number for the number " + str(a) + " is " + str(b) + ".")
| [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
972df9a2d9345a7e8eeb49454a253d8a741f9495 | fbeab5c8f66bb01db3a51d472c7d84feadd47a9a | /meshio/_cli/_decompress.py | 0ec06240700bf5f2aa76b2f07f61ed40d6e398ad | [
"MIT"
] | permissive | lrineau/meshio | 72ea5afa4203eed2ba0921b59471aefade29453e | 02f3e4e7b74a7ca1f8be53e7a729c54f09328f1d | refs/heads/master | 2020-12-28T04:11:47.307682 | 2020-02-14T20:07:13 | 2020-02-14T20:07:13 | 238,177,405 | 0 | 0 | MIT | 2020-02-04T10:16:21 | 2020-02-04T10:16:20 | null | UTF-8 | Python | false | false | 1,976 | py | import argparse
import os
import pathlib
from .. import cgns, h5m, med, vtu, xdmf
from .._helpers import _filetype_from_path, read, reader_map
from ._helpers import _get_version_text
def decompress(argv=None):
# Parse command line arguments.
parser = _get_parser()
args = parser.parse_args(argv)
# re... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
4807f48fdf5bc014878497f61e75094ea4bcc4f0 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Glidipion_WC500126463.py | 3d717bbe135d08cababe87378b5869e9e20dd873 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | {'_data': [['Common',
[['Blood', u'anemi '],
['Metabolism', u'vanlig \xf6kad aptit mindre'],
['Metabolism', u'vanlig Centrala och perifera'],
['Eye', u'vanlig makula\xf6dem 2 ok\xe4nd ok\xe4nd ok\xe4nd ok\xe4nd ok\xe4nd'],
['Ear', u'vanlig'],
... | [
"urudaro@gmail.com"
] | urudaro@gmail.com |
41e4ac47da0c7ae573e40566cdf86ad8a6f248da | d47aaa223c4ee2abc92cb1818cf060207bdd010c | /spotty/providers/gcp/commands/create_image.py | 8764d84552d10a452ebfe1eb38fd64822772e54c | [
"MIT"
] | permissive | vexcel-data/spotty | 2d5b25f1bc21a6a5d312edd4cfd1b25ee833e9c6 | f6d56129a088908a5b8dcf303867af85e3bdf325 | refs/heads/master | 2022-10-20T18:50:41.103940 | 2020-06-18T09:03:41 | 2020-06-18T09:03:41 | 270,844,807 | 0 | 0 | MIT | 2020-06-19T09:57:01 | 2020-06-08T22:25:59 | Python | UTF-8 | Python | false | false | 1,831 | py | import subprocess
from argparse import Namespace, ArgumentParser
from spotty.commands.abstract_config_command import AbstractConfigCommand
from spotty.commands.writers.abstract_output_writrer import AbstractOutputWriter
from spotty.helpers.ssh import get_ssh_command
from spotty.providers.abstract_instance_manager impor... | [
"apls777@gmail.com"
] | apls777@gmail.com |
c6dec7b2a3c3fd80d171cbc5cac43d1fc7415bd3 | ce68e6f989ebf72becce3638dc920fc60edec45c | /Programmers/Level2/Programmers_Level2_ 키패드 누르기.py | 104c3270fcd131572a34e69bdf6847f6a24a2d05 | [] | no_license | hyeinkim1305/Algorithm | 103513e502241a619a60e6663ed8346e5c574ebc | 93541b01fab0a6ceb6f9dd06a7c049c8b57d94f9 | refs/heads/master | 2023-05-09T19:07:58.280912 | 2021-06-10T01:51:29 | 2021-06-10T01:51:29 | 330,079,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | # 숫자 2, 5, 8, 0이 들어왔을 때 작동하는 함수
def mid(n, left, right, hand, keypad):
left_d = abs(keypad[left][0] - keypad[n][0]) + abs(keypad[left][1] - keypad[n][1])
right_d = abs(keypad[right][0] - keypad[n][0]) + abs(keypad[right][1] - keypad[n][1])
if left_d < right_d:
return 'L'
elif left_d > right_d:
... | [
"haileyyy1305@gmail.com"
] | haileyyy1305@gmail.com |
c1ed0f5dae42e697d83779709e987ef3cd690903 | f06ddca5258290a1e7448a18e1d24a9d20226fbd | /pytext/torchscript/seq2seq/beam_search.py | 1d2f5e8dc06b1b69ea4d34b752dfd6730a52f2b9 | [
"BSD-3-Clause"
] | permissive | mruberry/pytext | 6d64bc37429e3dd5581e5b3b6bf60bd216b6f445 | 3bba58a048c87d7c93a41830fa7853896c4b3e66 | refs/heads/master | 2022-07-16T07:41:47.781126 | 2020-05-14T04:52:35 | 2020-05-14T04:54:33 | 263,892,770 | 2 | 0 | NOASSERTION | 2020-05-14T11:11:33 | 2020-05-14T11:11:32 | null | UTF-8 | Python | false | false | 4,276 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import List, Optional, Tuple
import torch
import torch.jit
import torch.jit.quantized
from torch import nn
from .decoder import DecoderBatchedStepEnsemble
from .encoder import EncoderEnsemble
@torch.jit.scrip... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3beb15073344142f6b04ddb21ccc49d99edfa783 | ec50bd855c2364d5852a21389ac142ce75a5fa34 | /branches/4.0_buildout/openlegis/sagl/skins/pysc/envia_despacho_comissao_pysc.py | 06993847115363f510a13cf564cad5e4f7b3c255 | [] | no_license | naomeencontro/sagl | 36d2e1904ebb1d5b4ba3dd61625c57c8c1cd618e | eae1abf5496fa72b7ae5144a984902ec47c1e1e1 | refs/heads/master | 2021-04-18T19:27:42.188229 | 2018-03-20T14:28:33 | 2018-03-20T14:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | ## Script (Python) "envia_despacho_comissao_pysc"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=cod_materia,cod_comissao
##title=
request=context.REQUEST
response=request.RESPONSE
session= request.SESSION
mailhost = context.MailHos... | [
"contato@openlegis.com.br"
] | contato@openlegis.com.br |
588da6b28fe734537f2ad9853e8bbfa6f00af27c | bd569248a5e9714c887311a0dd217eb2d2e04029 | /OrderCloud/apis/category_api.py | 3bee161764c368bc5c13729e82af588a7f3247a4 | [
"Apache-2.0"
] | permissive | klreeher/python-sdk | 0521cd6626244da7ff60bb2178e49385af4aa1f1 | b7fe922dcfc3bb73fe4149475fa45fdcb04d956a | refs/heads/master | 2020-03-13T01:08:13.694126 | 2018-05-10T20:33:45 | 2018-05-10T20:33:45 | 130,898,984 | 0 | 0 | Apache-2.0 | 2018-05-07T14:32:55 | 2018-04-24T18:41:44 | Python | UTF-8 | Python | false | false | 63,284 | py | # coding: utf-8
"""
OrderCloud
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.0
Contact: ordercloud@four51.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Ve... | [
"cramirez@four51.com"
] | cramirez@four51.com |
551716064adae90896854203444455b1065b92f6 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /concrete_instances/register-variants/rcrw_r16_one/instructions/rcrw_r16_one/rcrw_r16_one.gen.vex.py | 164f81a72fde371c17f68bce228efdca42b19311 | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import angr
proj = angr.Project('./instructions/rcrw_r16_one/rcrw_r16_one.o')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
4b3d5665608cbee16254ea92c81deffe752a6d1c | 90dffc195c51e787f6cef0ec3e916fd6baf9d7e8 | /heap.py | c395738c52a3980cf9187df1d22a8bf54cc31c27 | [] | no_license | afcarl/python_datastructure | 503b61b3570a6bc2d36ba69a0bfed19293f34346 | a8f7796e318c3f96b774adf569464f23e9ee7bcd | refs/heads/master | 2020-03-26T04:10:15.928162 | 2016-04-24T01:59:49 | 2016-04-24T01:59:49 | 144,490,399 | 1 | 0 | null | 2018-08-12T18:16:12 | 2018-08-12T18:16:12 | null | UTF-8 | Python | false | false | 1,668 | py | #http://stackoverflow.com/questions/5227976/what-is-the-use-of-the-heap-data-structure
class BinHeap:
def __init__(self):
self.heapList = [0]
self.currentSize = 0
def percUp(self,i):
while i // 2 > 0:
if self.heapList[i] < self.heapList[i // 2]:
tmp = self.heapLi... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
d3c55b99f2e10662cbb59c1faed4e92b1ff9158b | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_session_update.py | f2fcf32aeecf0a66c4127e08f976bd810e739529 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
44cfac5228cee1cd04a7f65d5028852e72c0cbb1 | 573932f2fc40e94001a3659043b902db4d70a912 | /4-Data-Visualization/dash/tests/integration/clientside/test_clientside.py | bf3bd716481b4fc40b5e629308770516721fc904 | [
"MIT"
] | permissive | BioInformatica-Labs/My-Data-Science-Journey | 69f441f88e9e106975ec27de873d82af2dd351c7 | 92e04aa2e3612a198dc213f2dbd13b5df404bfbe | refs/heads/main | 2023-08-28T05:22:56.970894 | 2021-11-08T20:05:10 | 2021-11-08T20:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,818 | py | # -*- coding: UTF-8 -*-
from multiprocessing import Value
from dash import Dash, Input, Output, State, ClientsideFunction, ALL, html, dcc
from selenium.webdriver.common.keys import Keys
def test_clsd001_simple_clientside_serverside_callback(dash_duo):
app = Dash(__name__, assets_folder="assets")
a... | [
"viannaandresouza@gmail.com"
] | viannaandresouza@gmail.com |
0055cd0970bd0e0b6490425e25b48f4d9cc929c7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03971/s129579815.py | 27e22bdca3f80497d7291cc82084466926e1912c | [] | 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 | 555 | py | #入力
n,a,b = map(int, input().split())
s = list(input()) #1文字ずつリストに格納する
#総通過人数
pass_contest = 0
#海外学生の順位
rank_overseas = 0
for i in range(len(s)):
if s[i] == "c":
print("No")
elif s[i] == "a" and pass_contest < a+b:
print("Yes")
pass_contest += 1
elif s[i] == "b":
rank_oversea... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8165ed162a2f294a886e3d0e1f04a18edecd1b42 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_cmp_int-3.py | 38b54a3a71ec0a02dc8b7b2254519ccda36d07d7 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | $VarDef
y:int = 7
print(x == y)
print(x != y)
print(x < y)
print(x <= y)
print(x > y)
print(x >= y)
print(x == x)
print(x != x)
print(x < x)
print(x <= x)
print(x > x)
print(x >= x)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
1d106d805c8e020d687af14afb4ba5f4c386a828 | 32d0fbfd435c7738ced8d8e350a980df168df950 | /text_classification_multi/util.py | 63ab31fa833502965b0308aac6c1e3a4a134b060 | [] | no_license | xiongfeihtp/tensorflow-example | 3a4997502a5481f188bd0ba74504c0f494775a03 | 5cea52e8e5a391c73bcbc8f97975f3a4aa5ddf07 | refs/heads/master | 2020-03-18T04:10:30.585250 | 2018-05-21T13:36:26 | 2018-05-21T13:36:26 | 134,273,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import tensorflow as tf
def get_record_parser(config):
def parse(example):
para_limit = config.sequence_len
features = tf.parse_single_example(example,
features={
"text": tf.FixedLenFeature([], tf.string),
... | [
"386344277@qq.com"
] | 386344277@qq.com |
6c6b7065ab74ed630b77c1999e11eb764b9f02a1 | d6eca1b4b056beb41ac494db7399e1f146099c97 | /chapter6/pets.py | db2f805a0694306cc83d193d9234783c4ca3b5df | [] | no_license | liangsongyou/python-crash-course-code | 15090b48d77de1115bfaaaa6e5638a9bb9b3c7cc | f369e18030f2aafe358dd0fab1e479ca7bf4ceb8 | refs/heads/master | 2021-05-08T06:42:29.147923 | 2017-08-11T06:41:30 | 2017-08-11T06:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | merk = {
'name': 'merk',
'kind': 'cat',
'owner': 'mike',
}
beast = {
'name': 'beast',
'kind': 'dog',
'owner': 'mark',
}
casper = {
'name': 'casper',
'kind': 'bull',
'owner': 'smith',
}
pets = [merk, beast, casper]
print("We have following pets available:")
for pet in pets:
pr... | [
"ramzanm461@gmail.com"
] | ramzanm461@gmail.com |
e124bdf2b3fc08dc02d0c5d402ed555b05f78261 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startPyquil2.py | 219f73d268bbd4bf9abc602a4cb546795b11e7fe | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | # qubit number=4
# total number=7
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pro... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.