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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4719eff1b14a5614a6130d3860d2b066b4b7832f | 967d8004a13040def8f256a981f0996c8ea87ee0 | /.github/helper/semgrep_rules/frappe_correctness.py | e6ddc369d45583307861e46ed803b06c5cb1f36a | [
"MIT"
] | permissive | ruchamahabal/healthcare | 38ce6f5b2ab7db5a526b3edc521c358f9565ccf3 | c9fd664a76119c6921ba2be593ee3ef50a1d0efa | refs/heads/develop | 2023-07-16T05:08:14.137334 | 2021-09-03T05:14:15 | 2021-09-03T10:54:20 | 403,834,309 | 1 | 0 | NOASSERTION | 2021-09-07T03:59:54 | 2021-09-07T03:59:54 | null | UTF-8 | Python | false | false | 408 | py | import frappe
from frappe import _, flt
def on_submit(self):
if self.value_of_goods == 0:
frappe.throw(_('Value of goods cannot be 0'))
# ruleid: frappe-modifying-after-submit
self.status = 'Submitted'
def on_submit(self):
if flt(self.per_billed) < 100:
self.update_billing_status()
else:
# todook: frappe-... | [
"anand21nanda@gmail.com"
] | anand21nanda@gmail.com |
def1e67739949f526b093481b455500f3d39d633 | 459b0fa3e23e0723f280120be330b57567ac8086 | /19-7-3/analyze.py | c1d7804ffbf6bb358606908a28056cc5a285af13 | [] | no_license | airuibel/dataAnalyze | baa65c53479af4373c3ec290b444aa17f95ebcfa | 6e21028106a351ba2a3052e08b6c0b20c34e2b62 | refs/heads/master | 2020-07-07T12:13:46.757178 | 2019-07-25T09:16:20 | 2019-07-25T09:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import numpy as np
import pandas as pd
import scipy.stats as ss
import matplotlib.pyplot as plt
import seaborn as sns
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
pd.set_option('display.width', 10000)
import sys
sys.path.append("/Users/apple/Documents/project/analyze/tools")
f... | [
"lim1942@163.com"
] | lim1942@163.com |
99c66098dae82d99e692b761ffe6facd98cb3bab | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_23936.py | 1a676352a7eb2af77e5801bf6c7a94cd7e6aa257 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,839 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
4193528908314c3a4ea4223ee16543af48a0de55 | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/flay02m.py | 2c903d1f17d48074ec8fd45395075de153f165ed | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | # MINLP written by GAMS Convert at 02/15/18 11:43:41
#
# Equation counts
# Total E G L N X C B
# 12 2 4 6 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"christoph.neumann@kit.edu"
] | christoph.neumann@kit.edu |
1adeca779fa3df491e3a47ba9718d48e23e36f58 | 34dddb08573bde2ac59c85ba6b67d8eeecde5e16 | /celery_tasks/celeryapp.py | 01ec684554cb19668713fb17c26d1f913bbf9d39 | [] | no_license | tiansp/NetOpsBase | 77cce2f62936c9b0e5c41718e2f8fbf07bd7127e | e59878ff1c022c4339cd8816c4dc4dba933ab383 | refs/heads/main | 2023-06-29T04:11:33.314924 | 2021-07-29T01:22:43 | 2021-07-29T01:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from celery import Celery
from celery_tasks import celeryconfig
from django.utils import timezone
# 创建celery app
app = Celery("tasks")
# 从单独的配置模块中加载配置
app.config_from_object(celeryconfig, namespace="CELERY")
# 设置app自动加载任务
app.autodiscover_tasks(['celery_tasks'])
# 解决时区问题,定时任务启动就循环输出
# app.now = timezone.now | [
"2256807897@qq.com"
] | 2256807897@qq.com |
d558d299fbedc5867ee011b4f3a9eb03d5ae34eb | eb4bf7cba9afe5532cc85fe3179155b1d4949a48 | /Examples/lambdas.py | a3ce790d8b8e5fdd09a7be7ff6b23fe5ca8f80c6 | [] | no_license | DWONeill18/Python | a37a52d5a8b74136428fb19e08152c871c204bd2 | e37dd84fae31f661b05d0e211ead8c37b5d43db1 | refs/heads/master | 2021-04-17T17:29:21.378062 | 2020-11-09T14:21:29 | 2020-11-09T14:21:29 | 249,458,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | #
# Contains A
contains_a = lambda word: "a" in word
print contains_a("banana")
print contains_a("apple")
print contains_a("cherry")
# Long String
long_string = lambda str: len(str) > 12
print long_string("short")
print long_string("photosynthesis")
# Ends with a
ends_in_a = lambda str: str[-1] == "a"
print e... | [
"d.w.oneill.18@gmail.com"
] | d.w.oneill.18@gmail.com |
014c4b58459bac98238ae093d44f25268a03e2ab | 2bdb99a4a711b23372c306053ce67b47446ed65e | /src/simulator/buffer.py | 5c4adce8b52242075bf3b13d02b912f54eb31c05 | [] | no_license | jtpils/point-cloud-buffers | b82c1a3e00a7282e2f905445fedd6122287923c0 | f2ec08640511adfe33f4d87ca07687b4df5bd8de | refs/heads/master | 2020-06-01T10:51:03.905179 | 2019-05-31T00:36:24 | 2019-05-31T00:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | """
Simulates points from a moving robot.
Simulated points are expose dusing the PointBuffer API.
"""
import numpy as np
from open3d import *
class PointBuffer():
"""
A point buffer accumulates points from a stream.
Points in the buffer are either valid or expired.
"""
def __init__(self,stream):... | [
"maxkferg@gmail.com"
] | maxkferg@gmail.com |
263fb3fa220c865e2ebe20d15ad570df7ea49675 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v1beta2_replica_set_list.py | 42cdacee75a49738d1252639ea0c8533963d590c | [
"Apache-2.0",
"MIT"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 6,658 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V1beta2Rep... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
0b86acf5910000c2a3f8a572d3c32b72002d0435 | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW4/hw4_172.py | bc93488e256f0cd631dac8be21a2f362ac66a0b7 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 415 | py |
def main():
hail = int(input("Please enter the starting height of the hailstone: "))
while hail > 1:
if hail % 2 == 0:
hail = hail // 2
print("Hail is currently at height", hail)
else:
hail = (hail * 3) + 1
print("Hail is currently at height", ha... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
7aa73b1e0c640509402f011b0b389dac6cebd728 | 94b2148ef2af4db4dac486f9b6e36942df502578 | /TimeZ/world/latlontz_db.py | f3abb14c06586f87cb69b253dcd49bc413fc9303 | [] | no_license | tomcircuit/Wyolum-old-archive | d30fcaa880cb8e1e7901f2710483c7a306f4aead | 07001059774cc4e4fccfc54970b60f108f8e1971 | refs/heads/master | 2021-12-24T06:38:34.489005 | 2016-03-06T21:14:50 | 2016-03-06T21:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #!/usr/bin/python
import shapefile
import csv
import struct
from Polygon import *
from Polygon.Shapes import Star, Circle, Rectangle, SierpinskiCarpet
from Polygon.IO import *
from Polygon.Utils import convexHull, tile, tileEqual, tileBSP, reducePoints, cloneGrid
import random, math
def makeDB():
tz_shapes = sh... | [
"wyojustin@gmail.com"
] | wyojustin@gmail.com |
482bfa2f6d0d7ec7c6d343402ffd658d3dadeada | 3c01d7928029e74a19d646f5a40b3bf099b281a7 | /typeshed/stdlib/tkinter/ttk.pyi | c2bde4c6a33110f47aed3ef57f73c4fc3e6adca9 | [
"MIT"
] | permissive | arpancodes/protectsql | f3ced238c103fca72615902a9cb719c44ee2b5ba | 6392bb7a86d1f62b86faf98943a302f7ea3fce4c | refs/heads/main | 2023-08-07T16:33:57.496144 | 2021-09-24T19:44:51 | 2021-09-24T19:44:51 | 409,894,807 | 0 | 1 | MIT | 2021-09-24T19:44:52 | 2021-09-24T08:46:02 | Python | UTF-8 | Python | false | false | 42,823 | pyi | import _tkinter
import sys
import tkinter
from tkinter.font import _FontDescription
from typing import Any, Callable, Tuple, Union, overload
from typing_extensions import Literal, TypedDict
def tclobjs_to_py(adict): ...
def setup_master(master: Any | None = ...): ...
# from ttk_widget (aka ttk::widget) manual page, d... | [
"arpanforbusiness@gmail.com"
] | arpanforbusiness@gmail.com |
b3a7c54108fefc21388e75d9dafde690782031a6 | f155033606399eadfb5fe694479af36e14115467 | /greedy/two-arrays.py | 8cc2adcd8f321d3365b44e3a29e4a2747df61741 | [] | no_license | KadirEmreOto/hackerrank | 7925e5b49f90bbe6fef41cfe4fd980b6ffd9e3f1 | 143d49adc45e4e3e3d9424168b2fdac80b2155d6 | refs/heads/master | 2021-01-11T02:56:03.535273 | 2017-08-11T13:41:55 | 2017-08-11T13:41:55 | 70,905,859 | 10 | 2 | null | 2022-03-16T09:19:13 | 2016-10-14T11:55:02 | Python | UTF-8 | Python | false | false | 471 | py | if __name__ == '__main__':
T = int(raw_input())
for t0 in xrange(T):
N, K = map(int, raw_input().split())
A = map(int, raw_input().split())
B = map(int, raw_input().split())
A = sorted(A)
B = sorted(B, reverse=True)
check = True
for i in xrange(N):
... | [
"emrekadiroto@hotmail.com"
] | emrekadiroto@hotmail.com |
468f0d6dbdebc5e238cdaa28d3578f420e4c099d | 0030f81fc582435fb366c3a706928d00255fb0e5 | /week03/HomeWork/2.orm_create_table.py | c0e0935ce57d9f5bd9502cfd842492d2b8ed7828 | [] | no_license | lpchg1992/Python006-006 | 34d54317cd1b5ff3530a2addcf447b7113a8d81b | 673fb1e444479b89a8c23513a16c3105fb8d3843 | refs/heads/main | 2023-03-30T18:38:49.840577 | 2021-04-08T00:33:53 | 2021-04-08T00:33:53 | 321,844,666 | 1 | 0 | null | 2020-12-16T02:24:49 | 2020-12-16T02:24:48 | null | UTF-8 | Python | false | false | 1,112 | py | import pymysql
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Enum
from sqlalchemy.ext.declarative import declarative_base
from datetime import datetime
from user_table_enums import GenderEnum, DegreeEnum
Base = declarative_base()
class UserInfo(Base):
__tablename__ = 'userinfo'
us... | [
"email"
] | email |
f6dde3cb690677b30a1bd0323b9e87054ec6fce6 | 6a16116f96e1c26c107bef76ed9e5c9c78aafcc0 | /1d/display-forcing.py | c8a999b57cdf758c7c9a4e35f9a593b8436f4a8c | [] | no_license | anirban89/My-Masters_Code | f0ac7eb5fa900d7794ce1dfa1fe9e5a87990d4c6 | f16c49ea31a9a9215699e308aba181cd9307f975 | refs/heads/master | 2021-01-15T13:36:43.751511 | 2014-08-26T02:16:50 | 2014-08-26T02:16:50 | 23,330,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from spectral import *;
from integrator import *;
from pylab import *;
import scipy;
import pylab as m;
import time;
import numpy as np;
N = 512;
kappa = 0.1;
initPath = '/home/joy/EqVaportestHiRes';
vorticityPath = str(kappa)+'/delta_data_'
vaporPath = 'Vapor2/vapor_data_'
figurePath = 'Vapor2/figure_'
def calcPower... | [
"anirbancnha@gmail.com"
] | anirbancnha@gmail.com |
f83b605d8fc6af11cd7e12b13e02857de017fcf6 | ba65dbb459664e0ae48f5e4db7a0112c46a6b961 | /pyews/core.py | c196f4126de8c6552b1440efdee3ffc07a8a49b5 | [
"MIT"
] | permissive | anhvu-sg/pyews | 06de7463382e3db14efb6bcb0805190cb55684ba | e35ad7425bf100a2ae67e3d4b763cc5d2cc8d4f3 | refs/heads/master | 2023-02-16T16:10:34.955116 | 2021-01-07T21:02:19 | 2021-01-07T21:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | import logging
import requests
import xmltodict
import json
from bs4 import BeautifulSoup
__LOGGER__ = logging.getLogger(__name__)
class Core:
SOAP_REQUEST_HEADER = {'content-type': 'text/xml; charset=UTF-8'}
def __init__(self, userconfiguration):
'''Parent class of all endpoints implemented within... | [
"josh.rickard@swimlane.com"
] | josh.rickard@swimlane.com |
82fd4bb90546d5bf738404054acee4279e5fa77d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/f95e5d830e8f425aabf096188ff3c4e9.py | a5797801fdb2acb40b2277cec6347f0f686b7a45 | [] | 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 | 303 | py | #
# Skeleton file for the Python "Bob" exercise.
#
class Bob(object):
def hey(self, sentance):
if sentance is None or sentance.strip() == "":
return 'Fine. Be that way!'
elif sentance.isupper():
return 'Whoa, chill out!'
elif sentance.endswith('?'):
return 'Sure.'
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7f846a12fa7572991c8e20ec9fdde2a5a54b794d | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/feedbacks/migrations/0035_survey_featured.py | de3127ef0539e6ea3f9d4073a33bb6412d0e9f75 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.0.8 on 2019-03-24 17:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feedbacks', '0034_auto_20190322_0837'),
]
operations = [
migrations.AddField(
model_name='survey',
name='featured',
... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
4abec1541c9c0c064be5a6e4979223b705539906 | 78a20d2ceac95d3afb55b215305a8c40670e873f | /QsimMaster/scripts/pulse_sequences/sub_sequences/microwave_pulse_sequences/BB1Sequence.py | 91294785ffa78c937d28e85b3afcc853550371e5 | [] | no_license | johnpalsberg/John-Palsberg | 9957dd2fb2a6da62e5118c4e2a9a471d5e2f4c9b | 91aa6476bc319524c6f6a4bfc5561ca6aa95e6c4 | refs/heads/master | 2023-01-13T07:26:04.250541 | 2023-01-05T08:48:17 | 2023-01-05T08:48:17 | 206,402,363 | 0 | 0 | null | 2022-06-20T16:29:42 | 2019-09-04T19:57:25 | Python | UTF-8 | Python | false | false | 3,080 | py | from common.lib.servers.Pulser2.pulse_sequences.pulse_sequence import pulse_sequence
import numpy as np
from labrad.units import WithUnit as U
class bb1(pulse_sequence):
"""
This is a BB1 corrective pulse sequence
"""
required_parameters = [
('MicrowaveInterrogation', 'dura... | [
"jpalsberg2023@chadwickschool.org"
] | jpalsberg2023@chadwickschool.org |
ea4e1eb46d0e0dbc2f70e6c056e373292d0a5ab5 | 8b7e2ced469249d9cf6e8fba4e05d3ab2eedf234 | /vaccine/models.py | 07679f0d4838d6169dd33c8868e95273297f091c | [] | no_license | rk110047/hospital | 2885587df2bc6f77ad0464844a278642e9e59b19 | ddbba64d7f5e971cb2e81c9825b44202120787d6 | refs/heads/main | 2023-04-21T06:46:59.572248 | 2021-05-11T11:28:16 | 2021-05-11T11:28:16 | 366,356,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | from django.db import models
from hospital.models import Hospital
# Create your models here.
class VaccineType(models.Model):
name = models.CharField(max_length=120)
description = models.TextField(max_length=100)
def __str__(self):
return self.name
class Vaccine(models.Model):
vaccine_name = mod... | [
"rk110047@gmail.com"
] | rk110047@gmail.com |
09454a3e10897e0a54d52a3bc66f211f79108b97 | b4afd14e3b4e9cff0a99906a69587e348b243aeb | /fenkpython/03/3.3/tuple_test.py | f770df1e6250fc5d400a40c3809082bc3ce69434 | [] | no_license | zhankq/pythonlearn | d694df23826cda6ba662e852e531e96a10ab2092 | cb714fbb8257193029f958e73e0f9bd6a68d77f1 | refs/heads/master | 2021-12-16T13:51:23.381206 | 2021-12-03T01:13:36 | 2021-12-03T01:13:36 | 205,632,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | a_list = ["crazyit",20,-1.2]
# 将表 转换 成元组
a_tuple = tuple(a_list)
print(a_tuple)
#使用 range()函数 创建区间 range对象
a_range = range(1,5)
print(a_range)
b_tuple = tuple(a_range)
print(b_tuple)
c_tuple = tuple(range(4,20,3))
print(c_tuple)
| [
"zhankq@163.com"
] | zhankq@163.com |
5eda120d86c51b23cb0d6bce86eacd3106bc7f84 | 4be2c72579486ad04a00db0349028de96d2dce89 | /scripts/Helios/commands/Create 2D Fluid Container with Emitter-advanced.py | 87f1d0184b14c1eb2e100aa8c9762b492fad493b | [] | no_license | italic-r/maya-prefs | 6a617d40beee8937186b4699c5cead44e01c2d40 | aa21e5e2938dc2698ce5f555ee74a594e08aed2b | refs/heads/master | 2021-09-09T16:31:00.411349 | 2018-03-18T01:40:10 | 2018-03-18T01:40:10 | 86,961,959 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | mc.Create2DContainerEmitterOptions() | [
"italic.rendezvous@gmail.com"
] | italic.rendezvous@gmail.com |
b5b94d661edfb8f259744081bef104738aaa15ff | a0556d5e8368bf171b9019aba03e65b06e8c12e4 | /secao13_leitura_escrita_de_arquivos/exercicio/questao20.py | d74e20b822758da9c6bb08914372f7c5e7b712ab | [] | no_license | RianMarlon/Python-Geek-University | f1c9db588f23ce8e6699d1352ebfb3428e0ab1ec | 3be7ec5c35bf74b1b2152de63db95bee33ee1719 | refs/heads/master | 2020-06-25T04:41:52.911513 | 2020-02-01T16:18:35 | 2020-02-01T16:18:35 | 199,204,603 | 23 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | """
20) Crie um programa que receba como entrada o número de alunos de
uma disciplina. Aloque dinamicamente dois vetores para armazenar
as informações a respeito desses alunos. O primeiro vetor contém
o nome dos alunos e o segundo contém suas notas finais. Crie
um arquivo que armazene, a cada linha, o nome do aluno e s... | [
"rianmarlon20@yahoo.com"
] | rianmarlon20@yahoo.com |
fc4047b92d8935b1b7bbcf92e30a9790041b7662 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/web_tests/external/wpt/tools/third_party/aioquic/src/aioquic/h3/events.py | cd21c5abc4270c2e8f1be58a009ae752812d1a14 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 1,404 | py | from dataclasses import dataclass
from typing import List, Optional, Tuple
Headers = List[Tuple[bytes, bytes]]
class H3Event:
"""
Base class for HTTP/3 events.
"""
@dataclass
class DataReceived(H3Event):
"""
The DataReceived event is fired whenever data is received on a stream from
the remo... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f6b404a8481afeff7e550ec5aebba17b454a7ebe | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /baBNZFCozmjNhbp9Q_13.py | 33d161a9ad6e5e42ee23f4daae44158908847696 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py |
def box_seq(step):
steps = {1: lambda n: n + 3, 0: lambda n: n - 1}
out = 1
for i in range(step+1):
out = steps[i%2](out)
return out
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3861db1f8a822211d3d767690b60775237f05aaa | 05352c29e844705f02d65526343eea9b486f8bd7 | /src/python/pants/testutil/pexrc_util.py | 1e835382ec8a97cb9abd9cafd64acc02741dbe95 | [
"Apache-2.0"
] | permissive | DoN-SultaN/pants | af2557de1178faaf73eed0a5a32e8f6fd34d2169 | 5cb5379003a0674c51f9a53f582cf690eddfaf45 | refs/heads/master | 2022-10-15T04:18:54.759839 | 2020-06-13T10:04:21 | 2020-06-13T10:04:21 | 272,089,524 | 1 | 0 | Apache-2.0 | 2020-06-13T21:36:50 | 2020-06-13T21:36:49 | null | UTF-8 | Python | false | false | 1,330 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
from contextlib import contextmanager
from pants.base.build_environment import get_pants_cachedir
from pants.util.contextutil import environment_as, temporary_dir
from pants.uti... | [
"noreply@github.com"
] | DoN-SultaN.noreply@github.com |
bb4ed6230435f02620d863a141e3541c85914a2c | de05bf66e0a14ef2405ea4560e7d4d0da342411b | /why_if_main/three.py | d6ec06a97866ad2c18dc1d125bd242e4a0d47317 | [] | no_license | zoeechengg/mis3640-1 | e07ac5f32f63448e10afdf18752c08ed420b76cc | 2d7fe20de63c10e0aa38dc255ccf17d51a2cb0fc | refs/heads/master | 2022-04-27T18:06:33.600190 | 2020-04-21T20:16:40 | 2020-04-21T20:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | import two
| [
"zli@babson.edu"
] | zli@babson.edu |
0d4582472eb96746d6eec59410f1704eb2425aec | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/411.py | 9605009dfa1968cf7d49a59a486ad73b9c58b160 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #!/usr/bin/env python
# coding:utf-8
# Copyright (C) dirlt
import sys
fh = sys.stdin
cases = int(fh.readline())
def fx(n):
while True:
# scan from lsb.
s = str(n)
p = len(s) - 1
while p > 0:
if s[p] < s[p-1]:
break
else:
p -=... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
62a3e72fafe6a9d55da751b410e5d2dfb033eb9f | 85e33e301fdcd2ca71713654a3ead01da826c71f | /main.py | 83ed29bc852d5fb4d77aa6ef63563ee8015023b3 | [] | no_license | seantyh/modalities | 141af476bd7ee8ae787e43a99fa2264287290440 | a73d255051514f02608ba9c1c83700b3e99ab1da | refs/heads/master | 2021-01-23T00:44:31.101873 | 2017-05-31T15:51:09 | 2017-05-31T15:51:09 | 92,838,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py |
import os
import sys
from download_youtube import *
from find_threshold import *
from export_frames import *
from analyze_frames import *
from text_detection import *
from configparser import ConfigParser
def tp(instr):
toks = instr[1:-1].split(",")
return tuple(int(x) for x in toks)
if __name__ == "__main__... | [
"seantyh@gmail.com"
] | seantyh@gmail.com |
d19ca5e6dd9532b1c4c3a1a00e5a47e12d724ab5 | 8da7bc21fff2c4205799d458817893454f02de16 | /qa/rpc-tests/spentindex.py | b7b50aa9602fcd5c41adb02c871f49d5010b07d3 | [
"MIT"
] | permissive | mirzaei-ce/core-goldbit | cd392146c971abf91b5a1a7f8ff8d5a36c77a91a | cc957d795f7af032967943208171acee8a527441 | refs/heads/master | 2021-07-12T06:20:37.650989 | 2017-10-16T15:30:53 | 2017-10-16T15:30:53 | 107,146,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,109 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test addressindex generation and fetching
#
import time
from test_framework.test_framework import Go... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
64ea31c772bda15af78c524c0affde8109cbe5b0 | 250db406ad4a62e3d576e55b979bcfdc3407f226 | /Company/Amazon/Leetcode_42/learning_solution_O(n)space.py | 3364f3e1d15110b2a4590547fd0f28c6c425f01f | [] | no_license | chenshanghao/Interview_preparation | 0830f0e461a2fe287b8ec24ae761974f50268767 | 4e7701d32990604c16ba18a8083c2108c0232306 | refs/heads/master | 2020-04-25T02:36:19.499364 | 2019-06-10T04:51:00 | 2019-06-10T04:51:00 | 172,446,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | class Solution:
"""
@param heights: a list of integers
@return: a integer
"""
def trapRainWater(self, heights):
# write your code here
n = len(heights)
if n <= 1:
return 0
left_max = [0] * n
right_max = [0] * n
l_max, r_max = 0, 0
... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
97b9c82cb96ac8ad7cf178a2082d7bbdb2ce4946 | e9ac3007696985ab4a8d3539b07bb9dd81571adb | /atividade1/bioInformatica1-1.py | 39d4523b5ebdab98f02e09e26c1081d37ba6f1ef | [] | no_license | GustavoGarciaPereira/codigos_bioinformatica | 3f90ed30f876ce65f1a524a07c96d80e91672732 | 77d1f38c3b545d09469bc64c5ef02ef244daf5f7 | refs/heads/master | 2020-04-20T10:16:55.824539 | 2019-02-02T02:54:09 | 2019-02-02T02:54:09 | 168,786,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from Bio.Seq import Seq
Seq1 = 'AACCGGTT'
Seq2 = 'AACCGGTT'
Seq3 = 'TTCCAAGG'
if Seq1==Seq2:
print("As variáveis SeqX e SeqY são iguais")
else:
print("As variáveis SeqX e SeqY são diferentes") | [
"gusgurtavo@gmail.com"
] | gusgurtavo@gmail.com |
8b897b97ed8429a53ec626bcb306fd607431661b | 9a4cbc8497de8d861c39cf5960ca276e8c99c335 | /tek/kit.py | 226fce39fe7e5f61ee18931c7d22430f2b0be863 | [] | no_license | tek/pytek | f73e33bf1f5b49be76932b26f29cf1f4f00afd84 | 2c40226f3f5435b90928d2ece37e54a23aed1235 | refs/heads/master | 2021-01-21T04:27:03.978858 | 2016-06-01T15:14:01 | 2016-06-01T15:14:01 | 5,383,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from tek.log import logger as l
from tek.tools import find, flatten
__all__ = ['l', 'find']
| [
"torstenschmits@gmail.com"
] | torstenschmits@gmail.com |
5b12ea4e1f2756e03b7006c613aea9eb1dae45f0 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/함수기본값_20200705103000.py | 554e4f2b6b944262c8ec21fb2fd0d6cb6dfbfaae | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # def profile(name, age, main_lang):
# print("이름 : {0}\t나이 : {1}\t주 사용 언어: {2}"
# .format(name, age, main_lang))
# profile("유재석", 20, "파이썬")
# profile("김태호", 25, "자바")
# 같은 학교 같은 학년 같은 반 같은 수업
| [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
937222d533ab06c87a0e1ee7874e29e0da15ef97 | 526986209fbf00e85c98648600f5f58575d54096 | /messages/pep8/E721.py | 22d98886e9b8049a9bca025fae8210323f2984ca | [
"Unlicense"
] | permissive | landscape-test/all-messages | 126b67d2fc395018121a40787ca92762a03f4873 | f349ac581f3a149b30591d7a9149629b9bf539cb | refs/heads/master | 2020-06-02T08:36:53.946720 | 2014-01-10T06:36:05 | 2014-01-10T06:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | """
E721
Do not compare types, use 'isinstance()'
"""
| [
"git@carlcrowder.com"
] | git@carlcrowder.com |
d27f247c27c07df01f4f510279a45f351c54f496 | 2c238be39b551af4caf0aa1a32f32502b86e00f1 | /tests/test_feature_extraction_wav2vec2.py | 2bbf9bd58b5c8ddbee38f5c80070040b601f73e9 | [
"Apache-2.0"
] | permissive | marinatricanico/transformers | eaeaf9bf6972e2083ec262c71fc77d06dfee1dbd | c89180a9de1fc2e98654812fd1c233c3bc6a8d43 | refs/heads/master | 2023-07-03T17:07:45.394194 | 2021-08-11T16:09:41 | 2021-08-11T16:09:41 | 395,073,287 | 1 | 0 | Apache-2.0 | 2021-08-11T17:50:05 | 2021-08-11T17:50:04 | null | UTF-8 | Python | false | false | 6,683 | py | # coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"noreply@github.com"
] | marinatricanico.noreply@github.com |
0d908d48fe6bddc318ddc17d6f5cc6be6727da14 | 65f863c73f6a3cd1cfdc70c94ab972a6ddac863f | /src/enamlnative/widgets/grid_layout.py | b2bec7ed2f6be0c9a84a473d700c7d3c54a163e4 | [
"MIT"
] | permissive | marksagal/enaml-native | a266a631fd78ba9654412ae811bdf758566a4375 | 1606f895b0718e223cb4296fe3ead8df8018cad9 | refs/heads/master | 2021-09-01T04:04:59.020078 | 2017-12-12T20:43:13 | 2017-12-12T20:43:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | """
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the MIT License.
The full license is in the file COPYING.txt, distributed with this software.
Created on May 20, 2017
@author: jrm
"""
from atom.api import (
Typed, ForwardTyped, Unicode, Enum, Bool, Int, observe, set_default
)
from enaml.co... | [
"frmdstryr@gmail.com"
] | frmdstryr@gmail.com |
db5c13c08b0aa88cebdbe27a9af0bca160485d3c | 75c0e96e16fe57ed3b4203a49ccf667369694d74 | /Practice Python/guessing_game.py | fde47768661c59183be07c8ebf90489cf08f8d88 | [] | no_license | anhnguyendepocen/Programming_Python | 4c7dbfaf9c62ed12036f723ec26897207a496b11 | 08ace6f9d8ac8b4693cb9c7a4854bff937360d9c | refs/heads/master | 2023-03-07T16:39:14.233772 | 2020-01-28T01:58:14 | 2020-01-28T01:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import random
num = random.randint(1,9)
guess = 0
count = 0
while int(guess) != num:
guess = input("Guess number?")
if guess == 'exit':
break
elif int(guess)<num:
print("Too low")
count += 1
elif int(guess)>num:
print("Too high")
count +=... | [
"noreply@github.com"
] | anhnguyendepocen.noreply@github.com |
afcecb0215f2c493d22e60945cfed7407dc8c183 | 5d58fa1d54855f18bad5688de4459af8d461c0ac | /plugins/inventory/hcloud.py | f74044a40ee13db0fadceea134b0aa9dd9e9b698 | [] | no_license | nasirhm/general | b3b52f6e31be3de8bae0414da620d8cdbb2c2366 | 5ccd89933297f5587dae5cd114e24ea5c54f7ce5 | refs/heads/master | 2021-01-04T07:03:21.121102 | 2020-02-13T20:59:56 | 2020-02-13T20:59:56 | 240,440,187 | 1 | 0 | null | 2020-02-14T06:08:14 | 2020-02-14T06:08:13 | null | UTF-8 | Python | false | false | 8,491 | py | # Copyright (c) 2019 Hetzner Cloud GmbH <info@hetzner-cloud.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = r'''
name: hcloud
plugin_type: inventory
aut... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
e049eea75f782d7208dfc04ebec4e3072e91d9bd | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py | e6018e817735769a5051209c273673d98837e9c4 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 515 | py | import _plotly_utils.basevalidators
class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(
self,
plotly_name="ticklabelstep",
parent_name="scattermapbox.marker.colorbar",
**kwargs,
):
super(TicklabelstepValidator, self).__init__(
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
e87ea6f331b6da605b65d98e0bc00a557d7c13dc | 703db71b4659cf0675c48d1b0bda2dc884722502 | /admin_manage_products/admin.py | 18e34a6063516a3fd3158b61754063b26d78b651 | [] | no_license | Deepaksinghpatel052/aromawine3 | 97807d84e0ebe4e0ed4572761c35403111908cf8 | 1c70ea923fb71b7a9db28dcd499c873fcf6c325d | refs/heads/master | 2023-02-08T06:07:13.398044 | 2020-05-18T23:35:24 | 2020-05-18T23:35:24 | 265,088,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from django.contrib import admin
from .models import AwWineType,AwProducts , AwProductImage , AwProductPrice
from import_export.admin import ImportExportModelAdmin
# Register your models here.
class AwProductPriceAdmin(ImportExportModelAdmin):
list_display = ('Product', 'Vintage_Year','Bottle','Retail_Cost','Retai... | [
"you@example.com"
] | you@example.com |
a443ca71aabd3e1626238313084730db48055222 | ba99df13d39dc8aa696c38a6c49d5193ce5c4c80 | /scripts/box3d/run_box3d_state_v8_tf_idle.py | 84c0bce3d0881f99304581c3eaceb99eea73fd82 | [
"MIT"
] | permissive | fredshentu/public_model_based_controller | e5434ec075420ec5dd6d7355ba4751744a9b6248 | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | refs/heads/master | 2021-08-28T01:08:12.166349 | 2017-12-11T01:11:36 | 2017-12-11T01:11:36 | 113,795,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | import os
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline
from sandbox.rocky.tf.policies.uniform_control_policy import UniformControlPolicy
from rllab.envs.normalized_env import normalize
from railrl.algos.idle import IdleAlgo_TRPO as Idle
from rllab.misc.instrument import stub, run_experiment... | [
"fred960315@gmail.com"
] | fred960315@gmail.com |
037ff7affb23866e08b4932771cb36ca699b4ea0 | e07732e5f37e4ea947692cd5aef54370e6706c1b | /third_party/catapult/telemetry/telemetry/internal/util/binary_manager_unittest.py | e58f8d43dada4d15063c67b3dc21e84bcf7db2c9 | [
"BSD-3-Clause",
"MIT"
] | permissive | davehorner/Prelude | 5270a7da950fd0cb9d681b2debc4143321160c49 | bd005acdcffcb54564597246a6ee613b21fa592f | refs/heads/master | 2022-01-06T20:42:51.030436 | 2019-03-10T22:57:37 | 2019-03-10T22:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # Copyright 2015 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.
import unittest
from telemetry.core import exceptions
from telemetry.internal.util import binary_manager
import mock
class BinaryManagerTest(unittest.Test... | [
"xzwang2005@gmail.com"
] | xzwang2005@gmail.com |
ee3ae65056aa31e91e854e672ddb0ebcb75e6c27 | 7e6600d7c484ec27c5b4dbd43a75494914ea8d3e | /dna.py | 6daaa6a72318c6b8dba9a831fd06a4bc87c71f0d | [] | no_license | jamesbowman/atparty | 71f67666a3535d8699e6f29e50aebd230ccde236 | f2a2e3df8ca109a15b0c794cf91ea24626cc751e | refs/heads/master | 2016-09-02T04:54:08.287987 | 2013-06-16T12:03:44 | 2013-06-16T12:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,787 | py | import Image
import math
import numpy as np
import sys
import gameduino.prep as gdprep
import gameduino as gd
import array
import random
def c16(color):
r = (color >> 10) & 31;
g = (color >> 5) & 31;
b = color & 31;
return (r * 8, g * 8, b * 8)
def swap_rb(c):
r,g,b = c16(c)
return gd.RGB(b,g,... | [
"jamesb@excamera.com"
] | jamesb@excamera.com |
d3be7958483df5306432e918d5f566d97ee7aeed | 2c9eadb22d2de54ac06c6731664ed65276fd7062 | /pipeline/tests/core/flow/test_flow_element.py | 2cceffa9672b32273d6c8ed8f23bd93ee433f038 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | TencentBlueKing/bk-nodeman | 34bba9b217d84bb4dad27e735c29361a5c62789b | 72d2104783443bff26c752c5bd934a013b302b6d | refs/heads/v2.4.x | 2023-08-19T01:27:58.805715 | 2023-08-10T02:59:31 | 2023-08-10T02:59:31 | 385,203,367 | 54 | 49 | MIT | 2023-09-14T06:51:33 | 2021-07-12T10:05:11 | Python | UTF-8 | Python | false | false | 1,098 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"durantzhang@tencent.com"
] | durantzhang@tencent.com |
e1ee7f09ffedee91c0d61109bc377576a72c4d02 | c2c8915d745411a0268ee5ce18d8bf7532a09e1a | /mongoengine-0.8.7/bson/timestamp.py | 195314780b5bacbdc454fd52ff063c0e0602269f | [
"MIT"
] | permissive | asealey/crits_dependencies | 581d44e77f297af7edb78d08f0bf11ad6712b3ab | a8049c214c4570188f6101cedbacf669168f5e52 | refs/heads/master | 2021-01-17T11:50:10.020346 | 2014-12-28T06:53:01 | 2014-12-28T06:53:01 | 28,555,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | # Copyright 2010-2012 10gen, Inc.
#
# 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,... | [
"mgoffin@mitre.org"
] | mgoffin@mitre.org |
d126ec71ab653ab5ef1c5a6a69f47d227a2ae612 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v1beta1_api_service_status.py | 852a4402fe4e20b360729084ddbf89ebc403c69b | [
"MIT",
"Apache-2.0"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 3,304 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V1beta1API... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
356a7afcbdd74b21e95482574d7ad71e4fd6c7d2 | 3a8c2bd3b8df9054ed0c26f48616209859faa719 | /Challenges/Hackerrank-EqualStack.py | a3468ffad8894c66e2472a1e1e40b7dd0e049f10 | [] | no_license | AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges | 684f1ca2f9ee3c49d0b17ecb1e80707efe305c82 | 98fb752c574a6ec5961a274e41a44275b56da194 | refs/heads/master | 2023-09-01T23:58:15.514231 | 2021-09-10T12:42:03 | 2021-09-10T12:42:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import sys
from itertools import accumulate
from collections import Counter
n1,n2,n3 = input().strip().split(' ')
n1,n2,n3 = [int(n1),int(n2),int(n3)]
h1 = [int(h1_temp) for h1_temp in input().strip().split(' ')]
h2 = [int(h2_temp) for h2_temp in input().strip().split(' ')]
h3 = [int(h3_temp) for h3_temp in input().st... | [
"bennyhwangg@gmail.com"
] | bennyhwangg@gmail.com |
bbc6db02f24264edec759b61a04389bb3c0d4d05 | af773c5e16d7d3eb97d15664b0aabf9eafcffdf1 | /setup.py | 44f68531fbad585bdd6dd865312c4bf8b6feade2 | [
"MIT"
] | permissive | c6401/xontrib-ipython-shell-magic | 32607fac4a327c8b07a5864f9e400e5e9342a166 | 933545e7d5f7091ce61d9b115c5386b10450312a | refs/heads/master | 2023-07-08T10:16:14.294733 | 2021-08-15T22:02:09 | 2021-08-15T22:02:09 | 365,316,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | #!/usr/bin/env python
import setuptools
try:
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
except (IOError, OSError):
long_description = ''
setuptools.setup(
name='xontrib-ipython-shell-magic',
version='0.1.0',
license='MIT',
author='Xonsh IPython sh... | [
"nc6401+gthb@gmail.com"
] | nc6401+gthb@gmail.com |
a2f1c800db3887e4e4d4108699923d9cc16ae5ea | 0beb59ccd42d8add548ddbe5ca75cac44ea8c3bb | /tastypy/_deep_proxy.py | 3ead9f5179020f2eac9402184a5b778a39ba6a47 | [] | no_license | enewe101/tastypy | a7cab3b0bf7ead4ebde68daa50ddf588a9177bd9 | f4e03569b5b8b884db645c102713c37665679340 | refs/heads/master | 2020-12-30T23:59:38.728650 | 2017-09-16T17:37:46 | 2017-09-16T17:37:46 | 80,559,399 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | import operator
class DeepProxyMeta(type):
def __new__(meta_class, class_name, class_parents, class_attrs):
skip = {
'__class__', '__getattribute__', '__getitem__', '__subclasshook__'}
# Builds the function to be used as a method, and binds it's name
# to the method's scope.
def arm_call_callback(method... | [
"edward.newell@gmail.com"
] | edward.newell@gmail.com |
39c36e4a0a66fa242a270eae729b976a0a5d58ce | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/parcats/line/_cauto.py | 2e4ea4a4007336f15f32531d58dcbad8628f0b2c | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 515 | py | import _plotly_utils.basevalidators
class CautoValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='cauto', parent_name='parcats.line', **kwargs
):
super(CautoValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_n... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
420c5a9eaf898fc1de27113bb3cc543f4343bf3e | 61eaaf6cac449ed482ff68af515d3245b16c93b2 | /python/data_structures/divide_by_2.py | 0a7aa7d2d381ef7bcd9b330d6861643c96481787 | [] | no_license | alagram/Algorithms | c2cc7f9d9a71c0ffa0c05ff0efdcd6bbf59a6d56 | f1d7740ca4c69f810ee6f0b5afb097b5bb0aa30e | refs/heads/master | 2021-01-22T13:12:32.940579 | 2017-03-11T07:01:31 | 2017-03-11T07:01:31 | 31,675,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from stack import *
def divide_by_2(num):
stack = Stack()
while num > 0:
rem = num % 2
stack.push(rem)
num = num // 2
cov_num = ""
while not stack.isEmpty():
cov_num += str(stack.pop())
return cov_num
print(divide_by_2(12))
| [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
4f4afa238df5f8179967db559b614ae1c2ccf74f | 08de348b667e45225a09c76e32fc61581a657ee1 | /prescriptions/backend/serializer.py | e8896e1ae9555735129ef6d361011042f32ab35c | [] | no_license | JoeTanto2/SimpleOrder1 | d676d34028642ccd38036d01194095029e19ff53 | 9a813c11292af755b560235cda0779d385a2c768 | refs/heads/main | 2023-07-24T02:24:38.309233 | 2021-09-04T16:51:50 | 2021-09-04T16:51:50 | 403,098,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from .models import Patient, Medicine
class Registration (serializers.ModelSerializer):
email = serializers.CharField(required=True)
class Meta:
model = User
fields = ['username', 'email', 'password']
class Pati... | [
"77851879+JoeTanto2@users.noreply.github.com"
] | 77851879+JoeTanto2@users.noreply.github.com |
fa4fd871e54fe3a629b7ce6eb1ccd38906235867 | b53711d989bc8c2c6bbeb98ff451c89b995d7650 | /codementor/migrations/0012_auto_20220301_2302.py | 7f7d6ae111a20537f797aafca52814894d969db2 | [] | no_license | jessamynsmith/codementor-integrator | b1cadc79176c081968c28b90cdab172585393bc3 | 4ec1c0c8af5bb57f7500654a2a698665d603697c | refs/heads/master | 2023-02-22T19:09:27.850754 | 2022-05-12T16:13:22 | 2022-05-12T16:13:22 | 203,635,390 | 0 | 0 | null | 2023-02-15T17:56:28 | 2019-08-21T17:44:43 | Python | UTF-8 | Python | false | false | 889 | py | # Generated by Django 4.0.2 on 2022-03-01 23:02
from django.db import migrations
def populate_webhook_session(apps, schema_editor):
CodementorWebhook = apps.get_model('codementor', 'CodementorWebhook')
Session = apps.get_model('codementor', 'Session')
for record in CodementorWebhook.objects.all():
... | [
"geekchick77@gmail.com"
] | geekchick77@gmail.com |
22b597840e8a9644cf768852fb33adce01903abb | 27e307e40712b0665b0f5f2daa5294a85f6bac11 | /config/settings.py | f0aaf2b1dddbdd35c19485f71afe2a685d49ff41 | [] | no_license | JesusAnaya/pushci | 48899f80b71fc5c1976c22e775dd954d4fc5d097 | ab657c11c158224c7089b9a09bf0620fdb00b5d9 | refs/heads/master | 2020-05-20T13:02:09.084357 | 2015-03-13T03:48:19 | 2015-03-13T03:48:19 | 32,070,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | """
Django settings for project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
... | [
"jesus.anaya.dev@gmail.com"
] | jesus.anaya.dev@gmail.com |
4fc36b708c47e5faed48b6c8ec0e9beedf128653 | 0769b76c719c476ead47493475b24bf012322ab6 | /controller/controller.py | b352ff99184fac1ec71c51f8422218ea343f465e | [] | no_license | chouer19/PyCalarTrack | e2299e1ffe91e9a890261cdd7734d77a33c5d8bc | 21e2624406ebde48ecdbd6cb9bd7fe75641ae342 | refs/heads/master | 2020-03-20T10:06:21.793598 | 2018-06-15T10:32:34 | 2018-06-15T10:32:34 | 137,359,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,628 | py |
import sys
sys.path.append("../libs/CubicSpline/")
import numpy as np
import cvxpy
import matplotlib.pyplot as plt
import cubic_spline_planner
sys.path.append("../libs")
from vehicle import *
from road import *
import time
import pygame
from pygame.locals import *
#dependent function
def get_nparray_from_matrix(x):... | [
"xuec16@mails.tsinghua.edu.cn"
] | xuec16@mails.tsinghua.edu.cn |
a858eebb1cec04601e9da2f6770b003548faa68d | 8fd2e5d53d7a91d35288ccefdb0c7ef00d927a0a | /book_06_Python黑帽子/Chapter08_/my_sandbox_detect.py | 7949469806ddae2bfeedc5da62d231021a6fe18d | [] | no_license | atlasmao/Python-book-code | 03501f9ca2e81bc1f47464b3227c7f9cda0d387c | 03b6848a15a7e4c2ffebdc3528c24a8b101d9f41 | refs/heads/master | 2022-01-06T23:45:21.951307 | 2019-07-11T10:32:22 | 2019-07-11T10:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ctypes
import random
import time
import sys
user32 = ctypes.windll.user32
kernel32 = ctypes.windll.kernel32
keystrokes = 0
mouse_clicks = 0
double_clicks = 0
class LASTINPUTINFO(ctypes.Structure):
_fields_ = [
("cbSize", ctypes.c_uint),
("dwT... | [
"justsweetpotato@gmail.com"
] | justsweetpotato@gmail.com |
d7d2dae2788562d26a2a08853b9655794e1d28d7 | 5930f323d96e7ed45c01fef63b100e1ad220f764 | /tests/_tests_scripts/dl_z_distributed_03.py | c8782b145b04c3cd80ac01f116c1656573aea749 | [
"Apache-2.0"
] | permissive | saswat0/catalyst | 8cb91c2392bccdbdd318544e6861e6fe6ac39b33 | a35297ecab8d1a6c2f00b6435ea1d6d37ec9f441 | refs/heads/master | 2023-04-05T00:43:29.124864 | 2020-06-18T05:41:33 | 2020-06-18T05:41:33 | 272,268,902 | 2 | 0 | Apache-2.0 | 2020-06-18T05:41:34 | 2020-06-14T19:24:04 | null | UTF-8 | Python | false | false | 1,346 | py | # flake8: noqa
import os
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader, TensorDataset
from catalyst import dl
class Projector(nn.Module):
def __init__(self, input_size: int):
super().__init__()
self.linear = nn.Linear(input_size, 1)
d... | [
"noreply@github.com"
] | saswat0.noreply@github.com |
337ef01a2a3a029f0a3be7d124f12336d8fdfcd4 | b2e2332dcc998e33ac02c9c2fef1cea05a56457e | /lm/loss.py | 14b6ef94dfa1dcaa949bfd50a450fdf0f353f900 | [
"Apache-2.0"
] | permissive | thu-spmi/semi-EBM | db43a7ce2b9b8dcbc56ffbc7aa21102cb8160cf4 | 393e3ea3566dd60c48872a5c573a335e8e802707 | refs/heads/main | 2023-08-31T03:20:19.830127 | 2021-09-12T07:04:17 | 2021-09-12T07:04:17 | 405,569,165 | 3 | 1 | Apache-2.0 | 2021-09-12T07:04:17 | 2021-09-12T06:51:30 | null | UTF-8 | Python | false | false | 3,691 | py | import tensorflow as tf
import numpy as np
from base import *
class BNCELoss(object):
def __init__(self, inputs, labels, vocab_size, noise_probs, logZ, name='B-NCE-loss'):
self.vocab_size = vocab_size
input_shape = tf.shape(inputs)[0:-1]
input_dim = inputs.shape[-1].value
... | [
"maxwellzh@outlook.com"
] | maxwellzh@outlook.com |
be9d65a106be99aa6a5e9d401fe206ef80cc0b9b | 27f339c5f600a1b7a30b85e354f6c53e03ed5a59 | /Utils4R/_utils_abc/spider.py | b84ece5bb3e304ee73840f1e7010428df3029821 | [
"Apache-2.0"
] | permissive | ChangxingJiang/Utils4R | 2fbade8e268975f4b50199cf6473869d00287c31 | e8ef687107f5d444604fb5750c4de99b0faeb722 | refs/heads/main | 2023-01-08T20:35:32.602649 | 2020-11-10T09:13:38 | 2020-11-10T09:13:38 | 304,232,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from abc import ABCMeta
from abc import abstractmethod
class SingleSpider(metaclass=ABCMeta):
"""简单单线程爬虫的抽象基类"""
@abstractmethod
def run(self, **params):
"""执行爬虫"""
def console(self, content: str):
print(self.__class__.__name__, ":", content)
def log(self, content: str):
... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
19d291644cd1822714727fb3ab11172a196f3807 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/aws/plugins/modules/aws_config_rule.py | 80550586aa802155baa618b7c6bb80f43ecaf0db | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,833 | py | #!/usr/bin/python
# Copyright: (c) 2018, Aaron Smith <ajsmith10381@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: aws_config_rule
version_add... | [
"sifang@cisco.com"
] | sifang@cisco.com |
8a114dfd0605a0c20237609a903cbb1023bdb132 | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_ui/ui_ios_xjb_3_0/xjb_product_detail_page.py | 0876bdfc50c5b291eb4754d5bd76de16ad342979 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | # coding: utf-8
from _common.page_object import PageObject
from _common.xjb_decorator import robot_log
PERFORMANCE = "accId_UIAButton_(UIButton_业绩)"
PERFORMANCE = "accId_UIAButton_(UIButton_业绩)"
class XjbProductDetailPage(PageObject):
def __init__(self, web_driver):
super(XjbProductDetailPage, self).__ini... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
6e52083ca7c35aa202d1a542a5bde2e1bdc51450 | 27b10d6204ea00718d88922f2f0e14c8c2ca0ce1 | /crypten/mpc/primitives/beaver.py | bd69f72d4c125f5fc74d64161313c57da13c411c | [
"MIT"
] | permissive | lemonviv/CrypTen | 3cf1dbb90a9a720f1bd60f711a06ba7300ff2c58 | 7f432b2a259f0c8b26086272140bb0a5dcb56a51 | refs/heads/master | 2023-07-10T07:23:53.532857 | 2021-08-12T16:51:30 | 2021-08-12T16:52:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,566 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import crypten
import crypten.communicator as comm
import torch
from crypten.common.util import count_wraps
from crypt... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
df44d844cd0074221429ad937172948383a512a6 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc005/C/911816.py | 210c9806f6f75836664edf8dc62910020f01bce2 | [] | 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 | 747 | py | input()
a = list(map(int, input().split()))
def resolve(a):
if a == [1, 1]:
return True
if a.count(1) >= 2:
return False
max_num = max(a)
min_num = min(a)
if a.count(max_num) < 2:
return False
if max_num / 2 > min_num:
return False
if ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
8bb8227ce16c6d2ac49521b951a8cf0027db3cbb | 898e87398d1e4810e0327716f841cfe7f6939e78 | /maxwell/deploy-backend | 1e7006be9144ba9cb074123549fa91cb7efe4ec8 | [] | no_license | junix/docker-im | f22f633305e539ab6c31c10183e063098f6b5070 | 1334a49e78aa75b47bb7d418f425c22b806e820c | refs/heads/master | 2020-06-11T08:47:29.973984 | 2017-01-25T07:17:56 | 2017-01-25T07:17:56 | 75,707,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | #!/usr/bin/env python
import sys
import os
import getopt
from docker_cmd import DockerCmd
import utils
class BackendCmd(DockerCmd):
def __init__(self, node_id):
DockerCmd.__init__(self)
name = 'bg{gid}p{pid}'.format(gid=os.getenv("GROUP_ID"), pid=node_id)
self.use_image('yunxuetang/maxwel... | [
"juns1984@qq.com"
] | juns1984@qq.com | |
ee978971371285d1c3e6bbf7c990ebf76a615d9c | 55eab2df3ac1b6293371ee9e3687eae64219f715 | /awacs/waf.py | 077dc09f7d6c20f27d8d00e05bf050d79ff0cfc2 | [
"BSD-2-Clause"
] | permissive | jarosser06/awacs | a5031414f084858c876335015b97962278a5fb9a | 7ffa5ab0ecf55b7d22536ad0a10fafb396c90d37 | refs/heads/master | 2021-01-11T18:36:46.130672 | 2016-12-30T18:55:43 | 2016-12-30T18:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'AWS WAF'
prefix = 'waf'
class Action(BaseAction):
def __init__(self, action=None):
sup = super(Action, self)
... | [
"mark@peek.org"
] | mark@peek.org |
981badb5003aa2e586f2f74a04f9c8bce4f9c26c | b7851ffc689990a5c394697b1d016ba34307630c | /venv/lib/python3.8/site-packages/django/utils/functional.py | 3233909d6af1c1a928ba06dc7dfea9d7ae9f4554 | [] | no_license | denokenya/django-schooling-rest-api | f38fb5cc31a6f40462f9cb1dcc6c3fd36e1301c6 | 552b98d5494344049541df615f446713cb5da1fa | refs/heads/main | 2023-06-14T12:53:11.897887 | 2021-07-10T18:02:11 | 2021-07-10T18:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,082 | py | import copy
import itertools
import operator
from functools import total_ordering, wraps
class cached_property:
"""
Decorator that converts a method with a single self argument into a
property cached on the instance.
A cached property can be made out of an existing method:
(e.g. ``url = cached_pr... | [
"lucasciccomy@gmail.com"
] | lucasciccomy@gmail.com |
5f7222ba32d2c9b5340c8c0ecd57d94dafd25f99 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/semantic_segmentation/ddrnet/pytorch/mmcv/device/ipu/model_wrapper.py | c345537e29b27cf7fff740269da8643c9570cd36 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 29,729 | py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import inspect
from collections import OrderedDict
from typing import Optional, Union
import poptorch
import torch
import torch.nn as nn
from poptorch import PoplarExecutor, __version__, identity_loss
from poptorch._args_parser import ArgsParser
from mmcv.ru... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
6318bd3fbfaeaf0f4cbd522d15e86aadaa95a837 | b0ada0f13d32347c785f69fb67c9e4d7a8a5bb33 | /accounts/migrations/0016_user_get_full_name.py | c3048952af03dd294c05300d49d98745b60f2ec2 | [] | no_license | Shayan-9248/social_web | 215473a0090da44d499b3e70098aa8002e1d66ae | 7f896136d77feda73ad801e15bbb8563af45f5b1 | refs/heads/master | 2023-07-15T15:14:13.705188 | 2021-07-18T22:02:44 | 2021-07-18T22:02:44 | 354,788,478 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.1.7 on 2021-04-12 21:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0015_auto_20210412_1004'),
]
operations = [
migrations.AddField(
model_name='user',
name='get_full_name'... | [
"shayan.aimoradii@gmail.com"
] | shayan.aimoradii@gmail.com |
968b039c97ac821a5157d14f8577fd1512cc4e4a | feccf7588777becba68921c0bfade3e21f5210ce | /airflow/providers/google/ads/_vendor/googleads/v12/services/types/account_link_service.py | df45c9c0b0b9daaff7277df9f829467cb1a1c9d7 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 6,023 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
008d023cdcc9362303d02093e034d11cf9eeeb81 | 706e6f401bba456f738475cad9412e460cdc62d6 | /app.py | e45882b5098866b16cc8ed1cea0fc849316dc100 | [] | no_license | candyer/audioCast | edb6c2aae2c530ba21657f4bb98e8523fea947d8 | e17969799d591c992c33b89143334cd96b80c6ac | refs/heads/master | 2022-12-13T18:26:53.375427 | 2020-04-27T12:32:03 | 2020-04-27T12:32:03 | 220,484,499 | 0 | 0 | null | 2022-12-08T06:50:51 | 2019-11-08T14:34:18 | Python | UTF-8 | Python | false | false | 5,761 | py | import os
import base64
from flask import Flask, Response, flash, render_template, request, url_for, redirect, session
from functools import wraps
import requests
import json
from podgen import Podcast, Episode, Media
from sql import create_table, insert_user, insert_token, get_the_userID, check_password, get_the_late... | [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
cbe5340ddb167d9d33240e2762f9b76dde84403c | 7e4879c760a4d4edd973fbed2b25fea8af8fc161 | /shortly/asgi.py | 34e6e17bad185ec319a1dab7dc29453a88d82329 | [] | no_license | Serdiuk-Roman/drf_shortly | e78bacbb4cf847f7fccea49ec621bd538a836e86 | cee97cf2d82e6fb0d23c01445e6279b86d8a451c | refs/heads/master | 2023-08-27T11:48:28.827437 | 2021-09-12T20:21:22 | 2021-09-12T20:21:22 | 404,621,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for shortly project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"serdiuk.r@gmail.com"
] | serdiuk.r@gmail.com |
2450147d2f2e553b1187ee29f2aeb38e4d04dc16 | cedc66fcd0c8e347a2e363a832819cfee3598c8a | /iprPy/calculation/dislocation_periodic_array/DislocationPeriodicArray.py | 3537c8c4e43147a67fb55399cc593e90f8d35668 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | Aditya-912/iprPy | 1b201c3a62b691249a76dd07d507b2d94813b6b8 | 260bf203baf43a33a1bb3a079d7d5343c131dcd5 | refs/heads/master | 2023-03-11T21:35:17.963425 | 2021-03-05T16:31:27 | 2021-03-05T16:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | # coding: utf-8
# iprPy imports
from .. import Calculation
from ...input import subset
class DislocationPeriodicArray(Calculation):
"""
Class for handling different calculation styles in the same fashion. The
class defines the common methods and attributes, which are then uniquely
implemented for eac... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
abd4e2aa05b7ee2b74d1530cad580e8372ab6c65 | 32257983a6aa9b6f719ce8835e789c94df8b9346 | /blacklist/admin.py | 45c925b47a48856fe4626c56216f8964893db443 | [] | no_license | alireza-shirmohammadi/MySite | 2b165260460ea2a74769b0ceb81e520b26307a64 | 4537069f0ba50ac46f265d0157195f91bac5d853 | refs/heads/master | 2023-07-26T13:50:52.249782 | 2021-01-30T10:55:06 | 2021-01-30T10:55:06 | 303,093,825 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.contrib import admin
from .models import BlackList
# Register your models here.
admin.site.register(BlackList)
| [
"alireza.sh076@gmail.com"
] | alireza.sh076@gmail.com |
8416c515445777ded42fd2b7dba922b8ae15cc2f | d80fee223a376ecc5c9824541759e2661d10036a | /tests/tsutils.py | b7c5e4b995982fcccf733e734ef959df3025097e | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tkf/railgun | 1c3729b9af288427079c9f55f1cad4d1a6d83b99 | 97ef1590981d303690b0bc1b3cb257aeb67123d4 | refs/heads/master | 2021-06-27T12:24:39.944071 | 2017-03-23T05:34:38 | 2017-03-23T05:34:38 | 6,032,889 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from pprint import pformat
import nose.tools
nose_eq = nose.tools.eq_
def eq_(actual, desired, msg=''):
compare = 'actual:\n%s\n\n' 'desired:\n%s' % (
pformat(actual), pformat(desired))
mymsg = '%s\n%s' % (msg, compare)
nose_eq(actual, desired, mymsg)
| [
"aka.tkf@gmail.com"
] | aka.tkf@gmail.com |
03dec6be6b5c89c2ecd2534f77c5a6342798d202 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/95/usersdata/233/55311/submittedfiles/desvpad.py | 0b0420e0e977c0a4a882e73540c1179a708de295 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
import math
#comece abaixo
def desvio(lista):
soma=0
for i in range(0,len(lista,1):
soma=soma+lista[i]
media=soma/len(lista)
soma2=0
for i in range(0,len(lista),1):
a=(lista[i]-media)**2
soma2=soma2+a
variancia
n=int(input('n: '))
lista=[]
for i i... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b558f932ffc8293f89e3485c19f5a3bea72aad38 | adbd5d0ea2989623cc930d648e511de2f3a5bf23 | /domainmanager/migrations/0033_remove_clan_bloodline.py | 8dca42e79e397aeadd8149112ba55286c301a112 | [] | no_license | Yshekinah/bpbn | 2f7acf32675ec9343c90c36a344d1f047440ba9b | 173f39270a1607033eb6b8bfd83d98f39337f7d4 | refs/heads/master | 2021-01-16T23:58:21.169023 | 2018-06-28T16:23:43 | 2018-06-28T16:23:43 | 58,466,586 | 1 | 1 | null | 2020-07-22T19:53:50 | 2016-05-10T14:06:50 | JavaScript | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-07-20 17:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('domainmanager', '0032_auto_20160720_1906'),
]
operations = [
migrations.RemoveField(... | [
"david.hampel@gmail.com"
] | david.hampel@gmail.com |
dfad9d3d91c3345396bd8bb497c4a3745773a938 | b59bc650ae07b18757b455e1b5cb7cfde91714a4 | /.env/local/lib/python3.5/site-packages/pip/_vendor/urllib3/filepost.py | 058f7755548d550ac565974083eeaac4e46c0cce | [] | no_license | jhashubham28/BE_Project_SpeakerRecognition | d07c584359a5ebc6b524b3b4617b072c58724d17 | ede8fd53e79973e4116030e5a36f9deaa61dcc63 | refs/heads/master | 2020-05-29T20:42:15.055659 | 2019-05-30T20:17:30 | 2019-05-30T20:17:30 | 189,354,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | /home/pi/Downloads/BE_Project-SpeakerRecognition-master/.env/lib/python3.5/site-packages/pip/_vendor/urllib3/filepost.py | [
"jhashubham28@gmail.com"
] | jhashubham28@gmail.com |
4f3e2bf2d6b301546e89bcd9d53256df1e9d7cf5 | b9d1008019f9ca5389faa84ed29e6fbc5c0b99d8 | /pulllog/fff/pull_the_log.py | 7c3f0708026f19586bf28f123d51dff77dc5c135 | [] | no_license | trychiOO/python_all | 7e2d886f0b442c388b867a2c1d4e8c55951783ab | 703fe3ac64c47c2c2d8dda3e832dc0862281dae3 | refs/heads/master | 2021-03-06T12:41:16.585957 | 2020-03-10T07:14:18 | 2020-03-10T07:14:18 | 246,200,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #_*_ coding:utf-8 _*_
#author:yr
import os
import time
import shutil
seconds1 = int(input("请输入pull文件的时间:"))
# 根据文件的大小和网速来确定时间 建议60s
seconds2 = int(input("请输入下次循环的间隔时间"))
#建议3000s
number = int(input("请输入循环次数"))
path = str(input("请输入pull文件路径"))
len1 = int(... | [
"1162551619@qq.com"
] | 1162551619@qq.com |
1c8d9e7a4e35cee5907470512057ec4c34702929 | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/pyBasePython.py | 3c812340bd9cc05d6be4a5eb2b40625ce26e763a | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689,759 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _pyBa... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
9982853fd9137481bbb6a9913113fbf6d3149191 | 2e8ac523ca7367240a26ed46410f7926af019bb0 | /photoshare/urls.py | f96454abd130ad8ef87bc12a9df1d5495329ed5f | [] | no_license | Mariga123/hello | ae9787a7eae824e863b0a62d057adccf957dd7f5 | a5906682df9883a7c7fd74922380455aede69278 | refs/heads/master | 2023-02-10T22:47:01.690019 | 2021-01-11T21:10:39 | 2021-01-11T21:10:39 | 328,537,096 | 0 | 0 | null | 2021-01-11T20:57:52 | 2021-01-11T03:21:51 | Python | UTF-8 | Python | false | false | 831 | py | """photoshare URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"johnmariga8@gmail.com"
] | johnmariga8@gmail.com |
3183d49ce854dbf445c6e5657989f93f65c5dc67 | bb7d79d220f51016523fe04dcf83486fba874c4f | /Production_12X/nanoML_cfg.py | 185ab7d35535532cb75c78c08298beb0366043a9 | [] | no_license | Saptaparna/FastTiming | 019f77abe1ff8b2f0aaa533ac97640e48970ce93 | bafa435469ae2eb8a77f461f7a04547101d6fce0 | refs/heads/master | 2021-12-23T09:50:25.382581 | 2021-12-03T19:44:05 | 2021-12-03T19:44:05 | 53,109,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,118 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step1 --filein file:test.root --fileout testNanoML.root --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --conditions auto:mc --step NA... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
9e55ba794a98e6964c24ad602ff67401bfe74022 | f79402983074f9b3031ac84377924fdcfc69a1a3 | /中等146. LRU 缓存机制.py | 88cdaea58f5364ba2a724730d11e4cf28ff751e9 | [] | no_license | ganhan99/leetcode | bd328b5a58c87c7cc1e8fcf4d721a8d29deb3f23 | 173754f20605ddf4d010938c8bbe85beac04da53 | refs/heads/master | 2023-03-18T13:28:01.412612 | 2021-03-03T03:52:59 | 2021-03-03T03:52:59 | 308,853,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,528 | py | """
运用你所掌握的数据结构,设计和实现一个 LRU (最近最少使用) 缓存机制 。
实现 LRUCache 类:
LRUCache(int capacity) 以正整数作为容量 capacity 初始化 LRU 缓存
int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值,否则返回 -1 。
void put(int key, int value) 如果关键字已经存在,则变更其数据值;如果关键字不存在,
则插入该组「关键字-值」。当缓存容量达到上限时,它应该在写入新数据之前删除最久未使用的数据值,从而为新的数据值留出空间。
进阶:你是否可以在 O(1) 时间复杂度内完成这两种操作?
示... | [
"940320304@qq.com"
] | 940320304@qq.com |
672ed67de4f9cbf376012a43ff4dfb91808a160f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02683/s360051627.py | ef7781f32aec6549169398aa5023e64b3c4d0d67 | [] | 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 | 539 | py | import sys
input = sys.stdin.readline
def main():
N, M, X = map(int, input().split())
ca = [list(map(int, input().split())) for _ in range(N)]
ans = sys.maxsize
for mask in range(2 ** N):
C = 0
A = [0] * N
for i in range(N):
if ((mask >> i) & 1):
C +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e06333bb7a23d9826d58d4b54a40777e9be29553 | 6238dc5b5818f54295547cf4cb1afa5553ddfb94 | /taobao/top/api/rest/WlbOrderConsignRequest.py | 7ef5fa59244e1fccc6ec8bc73183548ce1bc9ce0 | [] | no_license | liaosiwei/guagua | 8208bb82b1df5506dcb86c1a7094c849ea5576a6 | ee6025813e83568dc25beb52279c86f8bd33f1a4 | refs/heads/master | 2016-09-06T16:45:00.798633 | 2013-05-03T04:02:35 | 2013-05-03T04:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | '''
Created by auto_sdk on 2013-04-14 16:35:32
'''
from top.api.base import RestApi
class WlbOrderConsignRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.wlb_order_code = None
def getapiname(self):
return 'taobao.wlb.order.consign'
| [
"liaosiweiorxiaowei@gmail.com"
] | liaosiweiorxiaowei@gmail.com |
eed4478e48bbe9748206f46b5d338e88a478e5a7 | 2d8d7fef8f914f1b2337ee5d6a2e7c61dab9ec4e | /person/aa.py | 20f3f246cd325122b09a5a07cd3c1eea71558ff9 | [] | no_license | kuaikang/python3 | bb5bb8d807c4a8818b18f0d4e598232cc73ab3af | 60ca72662c7a6e718190ffa6139a129c1412a3fb | refs/heads/master | 2021-04-28T10:32:25.416550 | 2018-07-06T01:59:47 | 2018-07-06T01:59:47 | 122,068,697 | 13 | 11 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import os
if __name__ == '__main__':
os.system("python tidb_test.py *") | [
"359405466@qq.com"
] | 359405466@qq.com |
18044a0e30cce9a47d72ebd4809bc3217f8b1375 | e175b9eee49c380791120c60b941579f2e5515dd | /drc/sources.py | ba84b3bf160af02ed884941dc0aeabf8172db2e7 | [] | no_license | breckprog/drc | d22aca3ef704a84f50c1a3ff7c88337693e14978 | dd2480832d01cdf04ca9bd86bfafc2972a3872ea | refs/heads/master | 2021-01-15T23:40:14.461480 | 2012-08-15T19:35:17 | 2012-08-15T19:35:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import pyaudio
import wave
from drc.interfaces import AudioFormat
from drc.interfaces import AudioSource
class WaveFileSource(AudioSource):
def __init__(self, path, block_size=4096):
self.source = source = wave.open(path)
self.format = AudioFormat(
source.getnchannels(),
... | [
"chris@archimedeanco.com"
] | chris@archimedeanco.com |
defd2af99c33fe37da7e9cd9274d0c2e1a26b20a | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/scitbx/lbfgsb/boost_python/tst_fit_cdf.py | d507ffe38d81394fb69d8cd493e08758ee30b1c7 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 12,417 | py | from __future__ import absolute_import, division, print_function
from six.moves import range
pdb1o3u_dr = [0.0061325298784202153, 0.014879413715546607, 0.017457194557825101, 0.018347391914744521, 0.018398855219007079, 0.019202048799521983, 0.019517965718312932, 0.019562016426123482, 0.021047905154718643, 0.021671092208... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
a4c94f3f3a6279657df8f45bdb0c5d9e2ae8a7cd | a81d71d1531f7d9239c8f17f5e02a8c3f3896195 | /exercises/migrations/0005_remove_exercise_description.py | a69acaf2c24e80c31c2abb6e3c2cb4b081482e38 | [
"MIT"
] | permissive | cclauss/Workout-progress-tracker | d93736516fc6687d31aa3691943ec40191a3e558 | d9613fb9333496455107bb066395066bd9f2018c | refs/heads/main | 2023-03-18T12:57:51.401250 | 2021-03-09T13:47:31 | 2021-03-09T13:47:31 | 345,224,536 | 0 | 0 | MIT | 2021-03-07T00:24:56 | 2021-03-07T00:24:56 | null | UTF-8 | Python | false | false | 337 | py | # Generated by Django 3.1.6 on 2021-02-27 18:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('exercises', '0004_auto_20210226_1933'),
]
operations = [
migrations.RemoveField(
model_name='exercise',
name='description',
... | [
"muhamzyali@gmail.com"
] | muhamzyali@gmail.com |
81320af2874150869b4fbff0408572c3596f64c2 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /H3t4MkT9wGdL9P6Y3_23.py | 596c054152d3c9d756301ad8c31e157dbf6e5f39 | [] | 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 | 846 | py | """
Create a function that determines whether a number is **Oddish** or
**Evenish**. A number is **Oddish** if the sum of all of its digits is odd,
and a number is **Evenish** if the sum of all of its digits is even. If a
number is **Oddish** , return `"Oddish"`. Otherwise, return `"Evenish"`.
For example, `oddish_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2bb45359dd7f8b3ac8d9d6b9e29e9c646f3ed3c4 | 468b36b3e69018ef2870ef9957a540e86dfa1e6b | /tunnistamo/wsgi.py | 83d94e9a6c46eccc41f44d435a2bf9b7997fb2c9 | [
"MIT"
] | permissive | City-of-Helsinki/tunnistamo | 34688fdc05c5adf4205a4911caf91a3b97dc7612 | 508116944aa8583d374763ad1e35e1c845010c8b | refs/heads/develop | 2023-09-04T06:26:22.129510 | 2023-08-16T10:06:49 | 2023-08-17T05:54:46 | 33,492,562 | 9 | 19 | MIT | 2023-08-30T05:34:09 | 2015-04-06T16:37:40 | Python | UTF-8 | Python | false | false | 395 | py | """
WSGI config for samltest project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"juha.yrjola@iki.fi"
] | juha.yrjola@iki.fi |
ad25dd5144cbf3666c81f32bc8f8dea3d6b2549c | f090c3e0faa70cf0ef7c4be99cb894630bce2842 | /clients/qtui/QCustomFreqPower.py | e0bbe5f620aa62342fb27e2420a21c687859746e | [] | no_license | HaeffnerLab/resonator | 157d1dc455209da9b7de077157bda53b4883c8b7 | 7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71 | refs/heads/master | 2021-01-09T20:48:03.587634 | 2016-09-22T18:40:17 | 2016-09-22T18:40:17 | 6,715,345 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | import sys
from PyQt4 import QtGui
from PyQt4 import QtCore,uic
import os
class QCustomFreqPower(QtGui.QWidget):
def __init__(self, title, parent=None):
QtGui.QWidget.__init__(self, parent)
basepath = os.environ.get('LABRADPATH',None)
if not basepath:
raise Exception(... | [
"soenkeamoeller@gmail.com"
] | soenkeamoeller@gmail.com |
0832e8bc4044e8cd939ee0f968f3487753bd24be | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/transformers/tests/longformer/test_modeling_longformer.py | 2da2d2e40b8247124f65d1c21730664e0096b7fd | [
"Apache-2.0",
"GPL-1.0-or-later",
"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 | 29,819 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
3aa418829f94f792b229948b7a0c1d37dab82d3d | 8e8acc57b63a66cb1450fa4d015d4ddcd74cce85 | /Python0-100/Day01-15/pyD5.py | 87d68c9080f99cc727641df60a497d1b0199b0ee | [] | no_license | indeyo/PythonStudy | fc2241db7cec8075a59a307ff47c9de83494844b | 099feb4e4c8dec9e68887cedd95705d831e51b0f | refs/heads/master | 2021-03-29T19:04:24.553848 | 2020-06-05T15:07:33 | 2020-06-05T15:07:33 | 247,978,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,147 | py | # -*- coding: utf-8 -*-
"""
@Project : StudyPython0-100
@File : pyD5.py
@Time : 2019-05-20 12:23:28
@Author : indeyo_lin
@Version :
@Remark :
"""
"""
练习题1:寻找水仙花数
概念:
水仙花数(Narcissistic number)也被称为超完全数字不变数(pluperfect digital invariant, PPDI)、
自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数(Armstrong number),水仙花数是指一个 3 位数,它的每个位上的数字的 3次... | [
"indeyo@git.com"
] | indeyo@git.com |
887a06c11bba42c6065bf4ba97a99bbdeca70087 | 275e770eaf9708e31d50dd62857fc52716e985af | /python/python/BASICS/diamond.py | 4f67b8084714c3ac7b6149af30218a53a04c9d08 | [
"MIT"
] | permissive | priyamshah112/Basic_Python | 75127744a6a25c72d2eba8e399e920509bd17ee2 | 11447cf062209de750fbe938402d738b1a5ff76c | refs/heads/master | 2021-10-10T15:43:50.151891 | 2019-01-13T13:46:40 | 2019-01-13T13:46:40 | 106,164,530 | 0 | 0 | null | 2018-10-10T19:07:16 | 2017-10-08T09:31:29 | Python | UTF-8 | Python | false | false | 585 | py | def pattern4():
userInput=int(input(" "))
if userInput > 0: # Prevents the computation of negative numbers
for i in range(userInput):
for s in range (userInput - i) : # s is equivalent to to spaces
print(" ", end="")
for j in range((i * 2) - 1):
pr... | [
"priyamshah112@gmail.com"
] | priyamshah112@gmail.com |
be43bcf5880b9f59cbddfa6052de53120aaef7cc | 0a037e4ee03c5afbf6f58b7293fefab1cc6998cf | /week1/ChangingGuestList.py | 9cac4e55150657570ec4c973315fa4606ffdff11 | [] | no_license | mingyyy/crash_course | 6ac2a41b14c821e96e3938047cb056ad2ce99280 | dad9f9b37ef3093dad25a0cb7fddf0e65fed3571 | refs/heads/master | 2020-04-24T14:24:43.283617 | 2019-12-25T07:43:05 | 2019-12-25T07:43:05 | 172,019,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | '''
3-5. Changing Guest List: You just heard that one of your guests can’t make the dinner,
so you need to send out a new set of invitations . You’ll have to think of someone else to invite .
• Start with your program from Exercise 3-4 .
Add a print statement at the end of your program stating the name of the guest w... | [
"j.yanming@gmail.com"
] | j.yanming@gmail.com |
1cf34e720959629c3aa957efe9ea28ecb6916394 | be616a70db476e3fca8d04b3ca0e425fcc02e4c3 | /custom-outset/pkgroot/usr/local/outset/boot-every/boot-every_example.py | 0df173b8dc736e7a4c18aeed67f805a090fbc4a5 | [
"Apache-2.0"
] | permissive | ScarabMonkey/outset | 40cf550e0d85bae3d3ec32f9dbdd83c2ee4bfe04 | b142c0a3611eb706c1552ce2c4e56286a278cb76 | refs/heads/master | 2021-01-16T21:51:16.417841 | 2016-05-18T01:18:56 | 2016-05-18T01:18:56 | 25,203,112 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/python
# Replace this script with your scripts, profiles, and/or packages
# which you want to run at every boot.
print 'These scripts will run at every boot.' | [
"chilcote+github@gmail.com"
] | chilcote+github@gmail.com |
d41824186f73b6c749220ed2ebab095526e94c61 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/devcenter/azure-mgmt-devcenter/azure/mgmt/devcenter/aio/operations/_project_environment_types_operations.py | 6f08654efa29b65dd1db387ad949a73e8963f031 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 25,507 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
c3e08fe28c1c7aff9f88ed7121058fd89cc65d49 | 66358f0897dd92882344a9ec87adff2003c9bc76 | /leetcode/1601~1700/1688. Count of Matches in Tournament.py | 3b3532a815f3e0e419fed58ee788343210a64783 | [] | no_license | Parkyes90/algo | 973c5f84ed1cae41bb963a5838b835473c8dc984 | 86490aad1774631ad947bdf12818e9ddba8a8ed0 | refs/heads/master | 2023-04-06T23:17:08.372040 | 2023-03-30T10:18:11 | 2023-03-30T10:18:11 | 244,273,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | class Solution:
def numberOfMatches(self, n: int) -> int:
return n - 1
if __name__ == "__main__":
s = Solution()
for i in range(1, 200):
answer = s.numberOfMatches(i)
print(answer, i)
| [
"parkyes90@gmail.com"
] | parkyes90@gmail.com |
ea411cb36065f3269880f790f5707c513466fb6d | fa60618b9f68aee452b278c6efb6300e50d90dbc | /py_demo/序列之元组.py | f32ae0f8fa6629267a09c57352e5021da3d060f7 | [] | no_license | ALICE5/Python | 668feaaf87e88df0d14252c0fcbc8c5b479cb7c8 | 6b2037bd3e6fa5689f355a128739343779d28fe5 | refs/heads/master | 2021-01-01T16:26:57.170646 | 2017-09-18T09:31:30 | 2017-09-18T09:31:30 | 97,832,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | # 元组
bTuple = (['Monday',1],2,3)
print(bTuple)
print(bTuple[0][0])
print(len(bTuple))
print(bTuple[1:])
cTuple = (24)
print(cTuple)
cTuple= (24,) # 创建一个元素的Tuple
print(cTuple)
# 列表的元素可变 元组的元素不可变
aList = ['AXP','BA','CAT']
aTuple = ('AXP','BA','CAT')
aList[1] = 'Alibaba'
print(aList)
# aTuple[1] = 'Alibaba' 报错
# print(a... | [
"alice4u@bjtu.edu.cn"
] | alice4u@bjtu.edu.cn |
b41e91318263d68ab49628705fde3f91883b8e97 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010_relu/Gather2_W_fixGood_C_change/ep0_test/pyr_3s/L3/step10_a.py | f7cb79b4531d2342f2be28860af952537b5291d8 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,773 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.