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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
453b7172827f084d7c64d7a256d4474eeb092082 | a637b5db5cc2ead56d9da84ca4e2d2282b393a5c | /config/settings/local.py | a892d4a0ed20f32945bd3f529056eb43a3434f75 | [
"MIT"
] | permissive | noisy/SpisTresci | 7d136214877f1ac5592560ca85781a1acdfe0bd9 | 7f871f74a0576d91b62c151ea526af11b3acda2c | refs/heads/master | 2021-01-18T01:20:47.933982 | 2016-04-24T13:02:16 | 2016-04-24T13:02:16 | 56,930,392 | 1 | 0 | null | 2016-06-08T19:11:27 | 2016-04-23T16:55:42 | Python | UTF-8 | Python | false | false | 2,094 | py | # -*- coding: utf-8 -*-
'''
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
'''
from .common import * # noqa
# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bool('DJANGO_DEBUG', default... | [
"noisy.pl@gmail.com"
] | noisy.pl@gmail.com |
63d67c85eee24cfd2a52e608544ff1fe1443480d | 41c6ebfd1891e7439a1bbc0a9e6121ad1504ed01 | /tests/iac_integration/cdk/testdata/src/python/BuiltFunctionConstruct/app.py | f9d25fe615dd6403816806f54d4d266bffd5fbfc | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | praneetap/aws-sam-cli | 6c9c93c12a4f602890bf06bf7b9e5cc030dfb956 | e95f982278ec58f89f136b049859689f914286b3 | refs/heads/develop | 2023-01-23T13:53:55.871627 | 2023-01-16T21:44:26 | 2023-01-16T21:44:26 | 188,092,148 | 1 | 0 | Apache-2.0 | 2022-02-06T06:43:19 | 2019-05-22T18:22:32 | Python | UTF-8 | Python | false | false | 470 | py | import layer_version_dependency
import python_layer_version_dependency
import json
def lambda_handler(event, context):
depend1 = layer_version_dependency.get_dependency()
depend2 = python_layer_version_dependency.get_dependency()
response = {
"statusCode": 200,
"body": json.dumps(
... | [
"noreply@github.com"
] | praneetap.noreply@github.com |
019d5bd70f5b961cfb23ac3e05bc4637426b85c9 | 6a6d8c0c8ddd6f5a1c03788f35320dd4b82314ea | /yamtbx/dataproc/crystfel/command_line/sort_stream.py | 7529074ff0a83eb9a10e260376d7ebf5b271e6da | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"MIT"
] | permissive | nsls-ii-mx/yamtbx | b817a131a8f6f515db99bc1743f81218997ac4ed | 311cf5a20e27a035a9e89c2abcb3c7d5e3684d67 | refs/heads/master | 2021-01-11T12:05:38.166937 | 2017-01-24T16:26:44 | 2017-01-24T16:26:44 | 76,574,177 | 1 | 0 | null | 2016-12-15T16:00:06 | 2016-12-15T16:00:06 | null | UTF-8 | Python | false | false | 903 | py | import cPickle as pickle
import os
def run(streamin, pklin, key, streamout=None):
if streamout is None:
streamout = os.path.splitext(os.path.basename(streamin))[0] + "_sort_%s.stream" % key
assert key[-1] in ("+","-") # + for increasing order, - for decreasing order
rev_order = key[-1] == "-"
... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
492f0d862021e5744250cf4fb4565d9d9c43fa3d | dfe6a0fcf59bc941fbe03dec1e8ee3c67cdfb521 | /venv/lib/python2.7/site-packages/azure/mgmt/network/v2017_11_01/models/effective_network_security_rule.py | a52b66322a3935770f915e46fc8e8ad0ec759a9d | [] | no_license | samy19980109/Wall-I-Smart-Dustbin | 07329fe37f0e64730c4397cf5b22d0cdb5ac5cc7 | 1676847081684138907101a15d508caa765c8d61 | refs/heads/master | 2020-06-26T05:45:10.769295 | 2019-07-30T00:35:11 | 2019-07-30T00:35:11 | 199,543,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,719 | 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.
# C... | [
"samy19980109@gmail.com"
] | samy19980109@gmail.com |
217952e8a392a55231955ff8b34c0be99361e8e2 | 6846fcdaffaac7dfd7021b408966650f58bbf8dd | /python/taichi/lang/snode.py | 6297f33856f445bac36cc2f924fd6dc22c54e9a2 | [
"MIT"
] | permissive | ericjang/taichi | aa78a5e09215f72c6de813ffa160b44b07d67afc | 0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2 | refs/heads/master | 2020-08-31T10:01:27.956768 | 2019-10-31T02:18:33 | 2019-10-31T02:18:33 | 218,665,838 | 0 | 0 | MIT | 2019-10-31T02:18:34 | 2019-10-31T02:14:16 | C++ | UTF-8 | Python | false | false | 922 | py | from .core import taichi_lang_core
class SNode:
def __init__(self, ptr):
self.ptr = ptr
def dense(self, indices, dimensions):
if isinstance(dimensions, int):
dimensions = [dimensions] * len(indices)
return SNode(self.ptr.dense(indices, dimensions))
def dynamic(self, index, dimension):
ass... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
8d05a3ecb0a932c49c3cf52caa3a1d09e4b94531 | c55c9580207a2e29c14a12a7f8521b9ae3d75e67 | /myFCN/pascal_unpair.py | 8675c2b20eb0715a1bb09d64f4025dde0f27152e | [
"Apache-2.0"
] | permissive | sinianyutian/pycharm-project | f98fc9988eda9c010d066703ff414393a76faff5 | 29e677418820a620e58dd22a85feb4ac3f28651a | refs/heads/master | 2020-03-14T06:58:27.431980 | 2017-04-17T07:07:25 | 2017-04-17T07:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | import os.path as osp
import numpy as np
import scipy.misc
from keras.preprocessing import image
from keras.preprocessing.image import load_img
from segmentation_dataset import SegmentationDatasetBase
class PascalVOC2012SegmentationDatasetUnpair(SegmentationDatasetBase):
label_names = np.array([
'backg... | [
"614047311@qq.com"
] | 614047311@qq.com |
434281fa846e781b2012edc0cb8d1093fa43ec39 | ecba842cc189499da2c98248e92a458dbcc0dc67 | /apps/utility/migrations/0004_auto__del_utiljobtitles.py | f3d86eada391081c14dfca44f0d7d5f6bdab9f27 | [] | no_license | aquaristar/hhlearn | c23e94ab93221419db74409f44d8310244212190 | ec409b7886bacb33cd3f5c3a724243a30158cd54 | refs/heads/master | 2023-03-10T15:46:39.740438 | 2019-11-16T19:19:02 | 2019-11-16T19:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,559 | 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):
# Deleting model 'UtilJobTitles'
db.delete_table('util_job_titles')
... | [
"aquaristar@gmail.com"
] | aquaristar@gmail.com |
b5181d2762497703988c9420a2fda6e0ad0addb0 | 56e469a1bfd29004fa258a54668dfbbc4459663d | /python3-basics-tutorial/src/lesson8.py | c7e8e36e30e35d6296441ef390eb3bfc660952d0 | [] | no_license | wind86/learning | bfce4a6795b58b27d0148b878299cacfe96aa26f | 4449ba0eed0a8f803a2bb9fbd663faf43148f03a | refs/heads/master | 2020-04-05T23:28:40.082439 | 2017-11-04T11:36:40 | 2017-11-04T11:36:40 | 83,236,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | '''
Created on Jan 21, 2017
@author: ubuntu
'''
x = 3
y = 5
z = 2
if x > y:
print('x > y')
elif x > z:
print('x > z')
else:
print('x < y && x < z')
if x == y:
print('x == y')
elif x == z:
print('x == z')
else:
print('x != y && x != z')
if x == y:
print('x == y')
elif x ==... | [
"wind86@meta.ua"
] | wind86@meta.ua |
7e7ece5341c191f20f0ff288a1d8fdb98716becb | ad4299d34d75f4cf346c08d1971fff0555923b7a | /nodeum_sdk/models/by_secondary_type_facet_all_of.py | ae9668e28d3e3388d44d933bc49838500625000d | [
"MIT"
] | permissive | nodeum-io/nodeum-sdk-python | 16ab0b4e6dcff05c4a06829d263d27f3b66a41be | 205536491bff507dea7be44af46202c17e7121d9 | refs/heads/master | 2021-07-13T19:38:24.863671 | 2020-09-01T09:56:30 | 2020-09-01T09:56:30 | 201,425,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,419 | py | # coding: utf-8
"""
Nodeum API
The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http... | [
"thomas.chandelle@mt-c.com"
] | thomas.chandelle@mt-c.com |
2270cdf76256fee75396e264273c908943ef6e0d | 5b771c11e8967038025376c6ec31962ca90748dd | /insurance/users/forms.py | dd973314c947ebc4371296d546f095cacfddd731 | [] | no_license | AsemAntar/Django_Projects | 7135eca3b4bcb656fc88e0838483c97d7f1746e1 | 4141c2c7e91845eec307f6dd6c69199302eabb16 | refs/heads/master | 2022-12-10T06:32:35.787504 | 2020-05-26T14:43:01 | 2020-05-26T14:43:01 | 216,863,494 | 0 | 0 | null | 2022-12-05T13:31:53 | 2019-10-22T16:47:28 | Python | UTF-8 | Python | false | false | 2,859 | py | from django import forms
from django.contrib.auth.models import User
# from django.contrib.auth.forms import UserCreationForm
from django.core.exceptions import ValidationError
from django.contrib.auth.validators import UnicodeUsernameValidator
from .models import Pharmacist
class MyValidator(UnicodeUsernameValidator... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
ce02ea83c4600665a9eb70b8f7ff3941eaf62b39 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/871.py | d9fdca6209c9f4f5d9d80a75cca08907d9bc2e77 | [] | 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 | 170 | py | def word_count(str):
word_list = {}
for word in str.split():
if word:
word_list[word] = word_list.get(word, 0) + 1
return word_list
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
32b99b37573cf6a5c36899862e33af667f83f311 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03814/s575513092.py | 2d16007ddec938ce988ffb92d5c5ea2a60673cde | [] | 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 | 278 | py | # row = [int(x) for x in input().rstrip().split(" ")]
# n = int(input().rstrip())
# s = input().rstrip()
def resolve():
import sys
input = sys.stdin.readline
s = input().rstrip()
print(s.rfind("Z") - s.find("A") + 1)
if __name__ == "__main__":
resolve()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
08871f10077859fe8cef56c349291185319fd89d | f44bbb626b0a5257be87e5357f57b5c08273f8b6 | /app2/migrations/0001_initial.py | 4d8d34fe8b2788f2681f54b8eb1b50eb83f9c371 | [] | no_license | GSAK-python/wanplac_project | f8641a9e2c010b246b71d64d2a0cb0b7b041f521 | 9d74209ed2eb522d20cc964ca69fb86e6ac2d4b3 | refs/heads/master | 2022-12-15T23:15:58.528091 | 2020-10-02T07:46:16 | 2020-10-02T07:46:16 | 244,564,646 | 0 | 1 | null | 2022-12-08T09:31:29 | 2020-03-03T07:00:42 | HTML | UTF-8 | Python | false | false | 4,169 | py | # Generated by Django 3.0.5 on 2020-04-16 14:13
import app2.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MOD... | [
"you@example.com"
] | you@example.com |
e9d80eddef592dcad53e57f80aff88693171615c | 45b180004c441663bd223219f8edef8c82481be1 | /test_py/winscp.py | 3804f5578603721ad51b699b2ac9c768149a2acf | [] | no_license | bradbann/mypy | a679e22fdd04525faf32a73934d813a45af1092f | 8bf6234be438aaf3ce2b69e4c10b2ce84eaccb98 | refs/heads/master | 2023-02-19T14:21:59.362385 | 2020-12-31T09:35:11 | 2020-12-31T09:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | import subprocess
# subprocess.check_output('WinSCP.com /command "open sftp://userName:passWord@IPAddress -hostkey=""ssh-rsa 2048 xx:xx:xx:7x:x0:18:94:01:xx:xc:e1:ae:xx:x:xx:x5""" "get file_path" "exit"', cwd="C:\\Program Files (x86)\\WinSCP", shell=True)
subprocess.check_output('WinSCP.com /ls "open sftp://root:redm... | [
"127575708@qq.com"
] | 127575708@qq.com |
8815aa2ae2b3453796205336606908ea0fa847ed | 1ff0f9a3c6e33a3ec9d617fa5ebc0b33c38243b3 | /picoctf-2019/Easy1_100/solution.py | 4629b8f3bfe2662eaae8694f5ed444f325e5cad9 | [] | no_license | james9909/PracticeCTF | 2187d6c26cf7387f32360d7e1c7b41211ff3e9b3 | dfa1f03c9d7a3c157a019b681bac04d2e1244fab | refs/heads/master | 2022-05-10T17:07:47.061155 | 2022-04-04T23:52:46 | 2022-04-04T23:52:46 | 34,630,061 | 37 | 14 | null | 2022-04-04T23:52:47 | 2015-04-26T20:30:27 | Python | UTF-8 | Python | false | false | 670 | py | enc = "UFJKXQZQUNB"
key = "SOLVECRYPTO"
dec = ""
for c, k in zip(enc, key):
base = ord(k) - ord("A")
shifted = ord(c) - ord("A")
diff = shifted - base
if diff < 0:
diff += 26
dec += chr(diff + ord("A"))
print(dec)
"""
This can be manually solved by looking through each pair of encrypted a... | [
"jameswang9909@hotmail.com"
] | jameswang9909@hotmail.com |
b760c2122e26c7c91c53b99d4b069dd59dd194ec | eee3fc1081bdf9e277b9fcbbb8d8c96d6c8315bf | /prj/qt/basic/submenu.py | a52b8f2ae36261fed26fd2837268899fa9bb7554 | [] | no_license | levtal/python | 153ff804f94826a51f7960b9e7ab7b82636f4f55 | b92fa350706721a94d8ef2588ee05f84d280e8bb | refs/heads/master | 2020-06-26T20:15:21.542556 | 2019-07-14T12:24:19 | 2019-07-14T12:24:19 | 116,679,281 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
http://zetcode.com/gui/pyqt5/menustoolbars/
"""
import sys
from PyQt5.QtWidgets import QMainWindow, QAction, QMenu, QApplication
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
menubar... | [
"you@example.com"
] | you@example.com |
fd752979d9ee6d9c658282734ecc3f742aaff927 | e1adcd0173cf849867144a511c029b8f5529b711 | /ros_ws/Archive/ProductFiles20180212/taskFunctions.py | d324c6238234b70f21b421511d4ce2b8ad5001ae | [] | no_license | adubredu/cartbot_arm_subsystem | 20a6e0c7bacc28dc0486160c6e25fede49f013f2 | 3e451272ddaf720bc7bd24da2ad5201b27248f1c | refs/heads/master | 2022-01-04T23:01:25.061143 | 2019-05-14T16:45:02 | 2019-05-14T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | ## Tasks of aggregated movement
from positionControlPackage import *
import sys
def moveLeftToDatum(lLimb, rLimb):
try:
sys.path.insert(0, './ProductFiles20180201')
except IOError as e:
print(e)
curY = lLimb.endpoint_pose()['position'][1]
delY = .8 - curY
moveOnAxis(lLimb, 'y', delY, .7)
downWard = {'l... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
3e0cffe6dfc9945c74f5ecf23be7e6a36c9c7fce | 5dfccea88758142534145fe8671fc53085b3b31a | /varalhub/accounts/forms.py | 75b26b89f7528a3ae7fb890c7348e074cd40c30e | [] | no_license | DavisDeco/Varalhub | 7a29e154daf21017a870e5a67e5b835b5d435cc6 | ecd617c010d5260b0c057075b7aca60a6efc660d | refs/heads/master | 2022-12-07T18:28:00.601445 | 2020-08-14T23:10:49 | 2020-08-14T23:10:49 | 287,132,897 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from django import forms
# from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from accounts.models import User
# from .models import EmailActivation
User = get_user_model()
class UserAdminCreationForm(forms.ModelForm):
"... | [
"you@example.com"
] | you@example.com |
818940e62bc9a53001451d3aeb9310cc8d7d00ef | 1250a7365eec039463351de697eb0ea323c67f40 | /genetics/forms.py | 02d1ed433c11492eb2d3d7434ba71993cc91d7c2 | [] | no_license | eximius8/bezoder | 49e6f8d6e58d66c6b967065af90ca43ab930e796 | 248401e7259974e768c53c7b24a1cab207a9e5dd | refs/heads/master | 2021-09-23T16:08:46.650935 | 2020-03-15T22:24:45 | 2020-03-15T22:24:45 | 246,377,175 | 2 | 1 | null | 2021-09-22T18:43:45 | 2020-03-10T18:25:33 | JavaScript | UTF-8 | Python | false | false | 272 | py | from django import forms
from django.contrib.auth import get_user_model
from person.models import GeneVisitor
from .models import UserGenome
class MyDNAUpdateForm(forms.ModelForm):
class Meta:
model = UserGenome
fields = ['genomefile', 'opensnpid']
| [
"mikhail.trunov@gmail.com"
] | mikhail.trunov@gmail.com |
970de2608eab7ef4d09d4af6d128f7a0108e29b4 | 010c7472483232a7d868247292a627dc6cf1eeb4 | /tests/test_fpo_calculations_api.py | be8895ef41bdc2f1b6574078ebaa50b8b7adbd8c | [
"Apache-2.0"
] | permissive | factset/analyticsapi-engines-python-sdk | 6eea90c4e3fb6acc58f9c111e399951aafc61b85 | d0d43d2615f34d6351c25c85cc8dfc1c540ceadf | refs/heads/master | 2023-08-11T22:19:07.506759 | 2023-06-13T10:55:55 | 2023-06-13T10:55:55 | 223,985,728 | 15 | 3 | Apache-2.0 | 2023-08-29T12:06:47 | 2019-11-25T15:51:10 | Python | UTF-8 | Python | false | false | 5,162 | py | import unittest
import time
from fds.analyticsapi.engines.api.fpo_optimizer_api import FPOOptimizerApi
from fds.analyticsapi.engines.model.fpo_account import FPOAccount
from fds.analyticsapi.engines.model.fpo_optimization_parameters import FPOOptimizationParameters
from fds.analyticsapi.engines.model.pa_doc import PaD... | [
"noreply@github.com"
] | factset.noreply@github.com |
6105538c956e235e23a130d93da8a7f676313e95 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/optimized_5573.py | 17bd8391bdd154f39f7449791f15855fc24ef95b | [] | 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 | 4,580 | 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 |
4556364ad3c2d67804f243e5a050ef7795c9ae0a | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/list/pop2.py | 148bc9259659ead70f8f707d6c3a17288f9e1d00 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/env python3
#!/usr/bin/python
import apihelper
list1 = [ 0, 1, 2, 3, 5, 7 ]
print("list1 = %s" % str(list1))
# for item in list1:
while list1:
list1.pop()
print("list1 = %s" % str(list1))
print("list1 = %s" % str(list1))
| [
"john@aeropsike.com"
] | john@aeropsike.com |
0425ab72e0dcbfcdd7e5fd7795bde75eb63d9bc5 | fade907197130f41c72964a21f5bde372674d014 | /docs/conf.py | e38bc5892e037fb2b96299b8aee57fdf54019730 | [
"MIT"
] | permissive | mbsantiago/solr-conabio | 0869c2f9fa5aa0384401d7bdfa2b9107f92bbb58 | cd95bd1c2eee4cce6bb640d72e92ab9e2c8e37ce | refs/heads/master | 2022-12-23T21:49:32.518587 | 2018-12-02T18:13:05 | 2018-12-02T18:13:05 | 159,887,726 | 0 | 0 | MIT | 2022-12-08T01:27:22 | 2018-11-30T22:59:46 | Python | UTF-8 | Python | false | false | 4,995 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"santiago.mbal@gmail.com"
] | santiago.mbal@gmail.com |
2f48b30b8437060b592726301e7ae49f84db02a6 | 67cc141c3676f550c1171eed752ce3d22687a031 | /sdk/lusid/models/resource_list_of_change.py | 9c423daa1bde1e48184e5cf97810d3309e1cdf4a | [
"MIT"
] | permissive | James-Lingmeng-Li/lusid-sdk-python | 8d27b29ff79b90fc9a5fb778b9592313998de9cf | 5e2850a06deee65b8de38f6b54ccd33d7aabd818 | refs/heads/master | 2023-08-15T06:50:02.037448 | 2021-10-08T23:08:50 | 2021-10-08T23:08:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,767 | py | # coding: utf-8
"""
LUSID API
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.11.3591
Contact: info@finbourne.com
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getf... | [
"concourse@finbourne.com"
] | concourse@finbourne.com |
b64798f14c313af1d091f9db35c8752a865a2b5b | 47469f16945ca2d4c3cfbb2ff307897c5fc1225c | /setup.py | fef9ddab50b1bcdf59e3d12d165e9545782f1777 | [] | no_license | mu-777/mico_controller | f14d368067fc2b1029a77be190ccde357d61bd28 | 52e46a9e2753758dabacdad775c554b90d01e534 | refs/heads/master | 2021-01-21T23:20:30.954712 | 2015-07-22T11:26:06 | 2015-07-22T11:26:06 | 39,502,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['mico_controller'],
package_dir={'': 'src'}
)
setup(**d)
| [
"ryosuke.murata.7@gmail.com"
] | ryosuke.murata.7@gmail.com |
724b940e585d1b8925b1815fa5c63efeb87fb726 | 73fe0e7227a2cc69ec5034d58319ac84e10a24db | /auth/setup.py | 4b468602c562a877667c6598b5e415e546160530 | [
"MIT"
] | permissive | Dania-Abuhijleh/hail | e622269394be2cbb0c86516efd438f7927519beb | a187dc0867801ca1eee774588fe58604a133a0d9 | refs/heads/master | 2023-02-22T09:43:45.761428 | 2020-07-27T17:44:45 | 2020-07-27T17:44:45 | 277,890,052 | 2 | 0 | MIT | 2020-07-24T13:06:28 | 2020-07-07T18:13:07 | Scala | UTF-8 | Python | false | false | 323 | py | from setuptools import setup, find_packages
setup(
name = 'auth',
version = '0.0.1',
url = 'https://github.com/hail-is/hail.git',
author = 'Hail Team',
author_email = 'hail@broadinstitute.org',
description = 'Authentication service',
packages = find_packages(),
include_package_data=True... | [
"daniel.zidan.king@gmail.com"
] | daniel.zidan.king@gmail.com |
0d2862f3d6eda66dcc36cde0a26e4924d271097f | 920520ec421d75e225cbee480a3f251fde5eeee4 | /tests/correct2/test-type07.py | 690afe646133c99e7712981b83de629334c1d2a7 | [] | no_license | hbradlow/cs164 | 23fcbceabb9fe002b36e18036c0316b4476c1f03 | 2165e9fc99bbb977be56b98f2ad30013d371a3c9 | refs/heads/master | 2021-05-26T16:05:45.056557 | 2012-11-13T23:51:53 | 2012-11-13T23:51:53 | 5,835,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | x = [8, 19, 33, 42]
print x, x[1], x[1:3], x[1:], x[:3]
y::list of int = [8, 19, 33, 42]
print y, y[1], y[1:3], y[1:], y[:3]
z::tuple2 of [int,str] = (8, "Hello")
q, r = z
print q, r
s::str = "thud"
print s, s[1], s[1:3], s[1:], s[:3]
| [
"hbradlow@berkeley.edu"
] | hbradlow@berkeley.edu |
bef827367961a97c6f9f6490a1f05650a6b42447 | 17c0eeede746d8dc164d27ef1f1eea3167aa0484 | /hash_table/347.topKFrequent.py | 253b5c818efd9f1c27ce521b2e2515cc0feb5bc8 | [] | no_license | mirzasaad/leetcode-solutions | a778c70e6ea5a94f9874fb90ec24d16d877ca5f2 | 53a3eb91411d5b732c91cbe7dafe44ed0ea7335f | refs/heads/master | 2022-12-11T11:45:57.830633 | 2020-09-03T16:23:01 | 2020-09-03T16:23:01 | 264,158,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
counter = Counter(nums)
feq = defaultdict(list)
for i, cnt in counter.items():
feq[cnt].append(i)
res = []
for frequency in reversed(range(1, len(nums) + 1)):
if frequency... | [
"saaad.mirxa@gmail.com"
] | saaad.mirxa@gmail.com |
cd0d697a6f702447a2b67f7ca47193b90823a56e | b523a6c8fa76f7893940635093098c957772d409 | /slowfast/utils/parser.py | 06b4373e3b3736ceb310eed465fbc75e3bae1eb5 | [
"Apache-2.0"
] | permissive | xzhoubb/SlowFast | e9192521f361680f8a4a6953a00b62877f9d13db | c22c7c91d0dfa56dec1f733a02d331dd34492d67 | refs/heads/master | 2022-12-17T06:53:28.883718 | 2020-09-21T22:43:36 | 2020-09-21T22:44:51 | 297,515,704 | 2 | 0 | Apache-2.0 | 2020-09-22T02:38:38 | 2020-09-22T02:38:37 | null | UTF-8 | Python | false | false | 3,025 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""Argument parser functions."""
import argparse
import sys
import slowfast.utils.checkpoint as cu
from slowfast.config.defaults import get_cfg
def parse_args():
"""
Parse the following arguments for a default pa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cc5e79b1b0d35a1687a5a55cf68dfdfd0b14eb2d | 15b71fe940708d3c04581bfb012c8d61705d6108 | /compiler/src/thryft/generators/py/_py_type.py | f132568f6c0c48cbac5d127e61452bba1d1ffd17 | [
"BSD-2-Clause"
] | permissive | adam-singer/thryft | 2f426c1751c02f95c4785f499065b28b853df42d | 26cfd2148fa408aa5da8ac93bbe7b8722a0dfd8e | refs/heads/master | 2021-05-27T00:42:19.358530 | 2014-07-27T19:09:34 | 2014-07-27T19:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | #-------------------------------------------------------------------------------
# Copyright (c) 2013, Minor Gordon
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of... | [
"github@minorgordon.net"
] | github@minorgordon.net |
1e75e3f40cee329cfe3223b7f13f7c7452c0e65e | f69d64a255163a467d4c18eb893a8a763efc95c6 | /apps/notifications/urls.py | 223fcaed8d7c05f582a21982c5e27b9233320f45 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yanzhen74/NewsBlur | fc629e6f2922cfccde4cdcb5ed548b7e5df4e087 | f6075b4dfe5915570bd958bff8f2e22a874c63b3 | refs/heads/master | 2020-07-11T21:59:35.457238 | 2016-11-17T05:07:19 | 2016-11-17T05:07:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.conf.urls import url, patterns
from apps.notifications import views
from oauth2_provider import views as op_views
urlpatterns = patterns('',
url(r'^$', views.notifications_by_feed, name='notifications-by-feed'),
url(r'^feed/?$', views.set_notifications_for_feed, name='set-notifications-for-feed'),
... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
ecf28d04e9f37c37563c8a925f8b9131537aaae4 | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/ros_archive/first_ros/catkin_generated/pkg.develspace.context.pc.py | f841ae5c1e3406d9b9afb529b0658609495186f3 | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 537 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/odroid/gitrepo/lockdpwn/ROS/catkin_ws/src/first_ros/include".split(';') if "/home/odroid/gitrepo/lockdpwn/ROS/catkin_ws/src/first_ros/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_m... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
6d5eaddb76d6e48d0b4c3381934e0303051ccdc4 | 43be180bf78d7451ad6b75490c74a9281f357e02 | /app/ndb/utils.py | c8231be003f77c5a400979b2c155596277701d55 | [] | no_license | sgammon/agendatrends | 5a27c9faf61687c2e3beed82adeb4e73a77cfefa | 4c52040d02809772be4c89b8070498be340d6a4f | refs/heads/master | 2021-01-18T00:32:59.111291 | 2011-06-19T18:55:15 | 2011-06-19T18:55:15 | 1,943,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | import logging
import os
import sys
def wrapping(wrapped):
# A decorator to decorate a decorator's wrapper. Following the lead
# of Twisted and Monocle, this is supposed to make debugging heavily
# decorated code easier. We'll see...
# TODO: Evaluate; so far it hasn't helped (nor hurt).
def wrapping_wrappe... | [
"sg@samgammon.com"
] | sg@samgammon.com |
a082f17390ffdfa88374511754ef83e7ea518c82 | 76478c31bf44b827a4ccbc8bd57cd95824466f20 | /podder_task_foundation/directory_managers/temporary.py | 752a9fd6bef1d50a5ee1716799ff42f27ba1229c | [] | no_license | Innovatube/podder-task-foundation | 945621601be8da0abfe553d5a5f43cb409dd0d5c | b556556fe0da12ba03a83acea048da0a0ceaf712 | refs/heads/main | 2023-02-05T12:06:08.996644 | 2020-12-05T00:45:52 | 2020-12-05T00:45:52 | 320,496,708 | 0 | 0 | null | 2020-12-11T07:15:14 | 2020-12-11T07:15:13 | null | UTF-8 | Python | false | false | 2,649 | py | import tempfile
from pathlib import Path
from typing import Optional
from ..exceptions import DirectoryNotFoundError
from ..logging.loggers import BaseLogger
from .base_directory_manager import BaseDirectoryManager
class Temporary(BaseDirectoryManager):
_name = "Temporary"
def __init__(self,
... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
d4389608fd91fcb8c636adf40ae13d5c1785b6cc | 30a34b3503decf1b4516039df3106cd152631819 | /4AL17IS033_PAVAN_Y_N/09-06-20 (VI_JAISHMACODING_CHALLANGE_3)/08-06-20 (SK_CODING_CHALLENGE_2)/Actvity_1.py | 53212f02bfab17a19e0a20da1251604b6ca89e49 | [] | no_license | alvas-education-foundation/ISE_3rd_Year_Coding_challenge | 8ddb6c325bf6ab63e2f73d16573fa0b6e2484136 | b4074cab4a47aad07ed0fa426eacccbfafdef7f8 | refs/heads/master | 2022-11-23T20:52:19.204693 | 2020-07-23T11:28:15 | 2020-07-23T11:28:15 | 265,195,514 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from statistics import stdev
li=[]
n = int(input())
for i in range(0,n):
ele = int(input())
li.append(ele)
print("Standard Deviation is: " ,stdev(li))
| [
"noreply@github.com"
] | alvas-education-foundation.noreply@github.com |
914dba6b758fd4d48ca8cc51fe97b7b13d0fa570 | 0859a864b1270164fe44a878ab12cfb3302c36bf | /abc164/c.py | 86c6eb78266b4d89521a1e324d4d6240e56810eb | [] | no_license | wataoka/atcoder | f359d49ab6e0db39c019d9f6d2e8b92d35f723c4 | b91465dd5f655d05b89485fc7ad222283c5958f5 | refs/heads/master | 2021-04-15T06:02:59.593965 | 2020-05-11T04:38:23 | 2020-05-11T04:38:23 | 126,754,342 | 0 | 0 | null | 2020-02-28T02:31:03 | 2018-03-26T00:51:12 | Python | UTF-8 | Python | false | false | 93 | py | N = int(input())
S = []
for _ in range(N):
s = input()
S.append(s)
print(len(set(S))) | [
"wataoka@stu.kobe-u.ac.jp"
] | wataoka@stu.kobe-u.ac.jp |
8c614f7383595cd41a54c2712de2a0b61aed1c67 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/catapult/devil/devil/android/tools/video_recorder.py | 28def21a9865d474ef9cd54a5300e97c419ab4a9 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 6,005 | py | #!/usr/bin/env python
# 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.
"""Captures a video from an Android device."""
import argparse
import logging
import os
import threading
import time
import sys
if __... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
2f0c7c38b7d02b907dad0199c8ac4eb012d6164e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_is-3.py | bd94cb9aac1c0b0bfad2e7a8c576b4ccd01a4dc4 | [] | 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 | 207 | py | $ClassDef
a1:A = None
a2:A = None
a3:A = None
a4:A = None
a1 = A()
a2 = a1
a3 = A()
print(a1 is a1)
print(a1 is a2)
print(a1 is a3)
print(a1 is a4)
print(a1 is None)
print(a4 is None)
print(None is None)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2fbb85da717ba6658a82634afba30138012ffc96 | 1e5c6f4b08d9470fce248cf39e6dccce40e90a41 | /codes/07/traitsUI_csv_viewer.py | d514e12d3f8c6502a00c8742bab45c5996d2a6ac | [] | no_license | misaiya99/scipybook2 | 1529cfb7f800df2ef7ce024a86281af16e343a37 | 734ba177b4705cc25da695d42a8cbada7cd22bd9 | refs/heads/master | 2020-03-10T21:26:23.595494 | 2017-08-25T09:48:07 | 2017-08-25T09:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,402 | py | # -*- coding: utf-8 -*-
"""
使用matplotlib控件制作的CSV绘图工具
"""
import numpy as np
from matplotlib.figure import Figure
from mpl_figure_editor import MPLFigureEditor
from enthought.traits.api import (HasTraits, DictStrAny, List, Str,
Instance, Button, File)
from enthought.traits.ui.api import (View, HSplit, VG... | [
"qytang326@gmail.com"
] | qytang326@gmail.com |
9c19168144041007ffce86084f49bfa918048b98 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res_bw/scripts/common/lib/sgmllib.py | 30130490bb1195ec032a186280d8164849fa0704 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 14,963 | py | # 2016.05.01 15:28:10 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/sgmllib.py
"""A parser for SGML, using the derived class as a static DTD."""
from warnings import warnpy3k
warnpy3k('the sgmllib module has been removed in Python 3.0', stacklevel=2)
del warnpy3k
import markupbase
import re
__all_... | [
"info@webium.sk"
] | info@webium.sk |
de8f2036bba085333494e4e61ac5369e39617e17 | 0032d988541e85c47b5034c20ecf88220dde5a95 | /openbook_auth/migrations/0030_auto_20190414_1918.py | aa4239c714dbdd0c315c55b0bfdefe5187ea3b93 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OkunaOrg/okuna-api | eabd37fef9d2be59b590ed8d72bee084ac377997 | f87d8e80d2f182c01dbce68155ded0078ee707e4 | refs/heads/master | 2022-02-04T21:31:10.577601 | 2021-12-28T18:20:39 | 2021-12-28T18:20:39 | 151,052,951 | 185 | 92 | MIT | 2022-01-13T01:00:40 | 2018-10-01T07:44:46 | Python | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.2 on 2019-04-14 17:18
from django.db import migrations, models
import openbook_common.validators
class Migration(migrations.Migration):
dependencies = [
('openbook_auth', '0029_auto_20190311_1752'),
]
operations = [
migrations.AlterField(
model_name='... | [
"joel@open-book.org"
] | joel@open-book.org |
94e09b145e340b09c59262df54c99af562a85928 | bce44991fddb9515429e6dba22248e4204b1d30a | /environments/my_env/lib/python3.9/site-packages/meraki_v0/aio/api/devices.py | 23b6e9798ae46c527a5bcadba75beecca4da6e13 | [] | no_license | tkj-scythe/meraki-dns-checker | 6f7441380c4b48497b0c9b9a2bc5db380da4899c | 91c2f61b7527f89063bfa0b2e7c28c766581ed96 | refs/heads/main | 2023-07-01T09:04:21.353214 | 2021-08-04T01:22:39 | 2021-08-04T01:22:39 | 390,630,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,998 | py | class AsyncDevices:
def __init__(self, session):
super().__init__()
self._session = session
async def cycleDeviceSwitchPorts(self, serial: str, ports: list):
"""
**Cycle a set of switch ports**
https://developer.cisco.com/meraki/api/#!cycle-device-switch-port... | [
"t.kjaerolsen@gmail.com"
] | t.kjaerolsen@gmail.com |
b107f911ddd368318e7d0e1a00bbd7f5c6d21f32 | 330899fd4a9653e05e2a09e0a4f30c119af97ad4 | /python/hidet/ir/utils/__init__.py | da4b7c5cce3034004f71617c30bee288b9c503de | [
"Apache-2.0"
] | permissive | yaoyaoding/hidet-artifacts | f8a4707c7fc28aa7bfa4dab3a9f2a9387c020f99 | f2e9767bb2464bd0592a8ec0b276f97481f13df2 | refs/heads/main | 2023-04-30T13:12:57.350002 | 2023-04-24T19:37:34 | 2023-04-24T19:37:34 | 551,692,225 | 3 | 1 | Apache-2.0 | 2022-11-01T23:25:17 | 2022-10-14T22:40:28 | Python | UTF-8 | Python | false | false | 143 | py | from . import call_graph
from . import hash_sum
from . import index_transform
from .index_transform import index_serialize, index_deserialize
| [
"dingyaoyao.cs@gmail.com"
] | dingyaoyao.cs@gmail.com |
fe9e4da4e16392cb6ee9ff6e59994699f8d545b4 | 33fe5e64adb85abc2ab521ef47c9070e97cd76c0 | /App_Login/views.py | 5a3c2f7358cebb0080133127f6e98d397c99ea32 | [] | no_license | tasim313/django_ecommerce_project | 753ba27a8ab8418b3cfa8a440814f91dc4004350 | af076171de0b55f2546b26e80bed595a2ce44f83 | refs/heads/main | 2023-06-22T02:38:18.485037 | 2021-07-14T07:59:23 | 2021-07-14T07:59:23 | 384,867,679 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | from django.shortcuts import render, HttpResponseRedirect
from django.http import HttpResponse
from django.urls import reverse
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth import login, logout, authenticate
from .models impor... | [
"mostasimmahmudtasim@gmail.com"
] | mostasimmahmudtasim@gmail.com |
e57fba6f6d49834626116ba3211a32d128264a1f | 0e116f6f2995c175fb597ed4cd49d7f1d1f4ec0d | /Flappy Bird.py | e01bacf95eff0f3a07aee667aa633d9452174fc3 | [] | no_license | bryonkucharski/FlabbyBird | f4265a154da2dc1cac9c028c70024b782da04163 | 43d240e8080f2450cb1301ca02f5cd81e4e7431e | refs/heads/master | 2021-01-21T16:53:47.678444 | 2017-05-20T21:56:42 | 2017-05-20T21:56:42 | 91,917,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,523 | py | '''
Bryon Kucharski
Fall 2016
Flabby Bird - a Flappy Bird Replica
'''
import pygame, sys
import time
from pygame.locals import *
from random import randint
pygame.init()
def obstacleTop(xlocation, ylocation, x, y): #a functions that draws the top rectangle
pygame.draw.rect(DISPLAYSURF, GREEN, Rect((xlocation,ylo... | [
"bryonkucharski@gmail.com"
] | bryonkucharski@gmail.com |
32d6f4799b16325dca0f66c7dc810f509b1aea52 | 6a74ae0a776dfa50e946651362ff97326fc9f6e1 | /200/pt2/043.py | bdf3d6245c1786502051f47e50fa5dca9c92ebde | [] | no_license | teotiwg/studyPython | 799c1307d50ad77a27b8a8ca59c79b79f07c29cd | fd0c7f8af9b0ba9d832818d42aec320386bf857b | refs/heads/master | 2023-02-17T17:04:23.809231 | 2021-01-11T09:27:20 | 2021-01-11T09:27:20 | 327,474,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import time
import mylib
print('5초간 프로그램을 정지합니다.')
time.sleep(5)
print('5초가 지났습니다.')
ret1 = mylib.add_txt('Korea', 'The Best')
ret2 = mylib.reverse(1, 2, 3)
print(ret1)
print(ret2)
| [
"kes2521@naver.com"
] | kes2521@naver.com |
4ea5a39dc177ddea94387c8ddd564f43cc59390a | ea827a3051eaa8ffd90841bcc00032295e2b5278 | /lite/db/migrations/0001_initial.py | 86c514ee4131709af8b839083a00c8a8c530e2ca | [] | no_license | gbozee/django-starlette | 4bd190ee86f19ad1caa0e654a5564576b81ae98f | 301e6ce8f68c92774dee03431e2658b62de9a77c | refs/heads/master | 2023-08-04T07:55:20.768584 | 2018-10-18T14:17:26 | 2018-10-18T14:17:26 | 153,635,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # Generated by Django 2.1.2 on 2018-10-18 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Sample',
fields=[
('id', models.AutoField(a... | [
"gbozee@gmail.com"
] | gbozee@gmail.com |
faf9672940b11d454f904e50d64bab0371310cf0 | 08e4989de849e5e266fd962c841c22a2a0a56905 | /examples/bayesian_linear_regression.py | 59239637e30a43289577ed269c8a4bf297b3839a | [
"Apache-2.0"
] | permissive | crack521/edward | 6d5422db6cdd8e22e001f6b7478341700249e021 | 0d9c24bb1b9b954c2cac8ef5885bb2e899c7c6dd | refs/heads/master | 2020-12-25T06:03:54.060130 | 2016-06-29T03:16:27 | 2016-06-29T03:16:27 | 62,227,330 | 1 | 0 | null | 2016-06-29T13:19:09 | 2016-06-29T13:19:09 | null | UTF-8 | Python | false | false | 2,556 | py | #!/usr/bin/env python
"""
Bayesian linear regression using mean-field variational inference.
Probability model:
Bayesian linear model
Prior: Normal
Likelihood: Normal
Variational model
Likelihood: Mean-field Normal
"""
import edward as ed
import tensorflow as tf
import numpy as np
from edward.models i... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
ec06cd4a601065f1cf7285e604c084ef20207af3 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201115142654.py | 648ac9367da4e8a9092bbaa6608fa724f6e28bcc | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
# contains user signup + login form
def view_index(request):
return render(request, "index.html")
# user signup form will post to a url (/register) which maps to this function
def register_new_user(request):
... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
216bdd0219dc0a745808e98830cbcba707995d4a | e00d41c9f4045b6c6f36c0494f92cad2bec771e2 | /programming/language/perl/perl-data-munge/actions.py | 4f51d4202c0e09accadded3bcefb363677ebd035 | [] | no_license | pisilinux/main | c40093a5ec9275c771eb5fb47a323e308440efef | bfe45a2e84ea43608e77fb9ffad1bf9850048f02 | refs/heads/master | 2023-08-19T00:17:14.685830 | 2023-08-18T20:06:02 | 2023-08-18T20:06:02 | 37,426,721 | 94 | 295 | null | 2023-09-14T08:22:22 | 2015-06-14T19:38:36 | Python | UTF-8 | Python | false | false | 452 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import perlmodules
from pisi.actionsapi import get
#WorkDir = "%s-%s" % (get.srcNAME()[5:], get.srcVERSION())
def setup():
perlmodules.co... | [
"suvarice@gmail.com"
] | suvarice@gmail.com |
68e62ddc24c23d2f6320d0c13b832dd81be59c55 | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /ngraph/python/tests/test_onnx/test_ops_matmul.py | b6ed1cd1d566081aaa274b6ef753160fdbefec38 | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | Python | false | false | 6,271 | py | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.helper import make_graph, make_model, make_node, make_tensor_value_info
import pytest
from tests.runtime import get_runtime
from tests.test_onnx.utils import import_onnx_model
def make_onnx_mod... | [
"noreply@github.com"
] | mashoujiang.noreply@github.com |
8a1053fe3e673a215dd50807742a21147d98fa96 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02831/s505668163.py | eb09aa1af7e3383ade1d4c4a6fd098df9c8be892 | [] | 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 | 129 | py | from fractions import gcd
def lcm(a, b):
return a * b // gcd(a, b)
A, B = map(int, input().split(' '))
print(lcm(A, B))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
822ff6637bb31d0f64d0c023c2baed2b89714df1 | aeeaf40350a652d96a392010071df8a486c6e79f | /archive/python/Python/unsorted/23.merge-k-sorted-lists.0.py | 7d02a2ca8ba9f465c432c82101c9f442c4950743 | [
"MIT"
] | permissive | linfengzhou/LeetCode | 11e6c12ce43cf0053d86437b369a2337e6009be3 | cb2ed3524431aea2b204fe66797f9850bbe506a9 | refs/heads/master | 2021-01-23T19:34:37.016755 | 2018-04-30T20:44:40 | 2018-04-30T20:44:40 | 53,916,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import heapq
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
res = []
... | [
"luke.zlf@gmail.com"
] | luke.zlf@gmail.com |
c1a93c4cd92f00cf1db7822ebc691edd1fa95796 | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/ibvpy/mats/mats1D/mats1D_damage/mats1D_damage.py | 9f54e8144373598670bd8f3c210ba3c34b532ede | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 8,868 | py |
from enthought.traits.api import \
Array, Bool, Callable, Enum, Float, HasTraits, \
Instance, Int, Trait, Range, HasTraits, on_trait_change, Event, \
implements, Dict, Property, cached_property, Delegate
from enthought.traits.ui.api import \
Item, View, HSplit, VSplit, VGroup, Group, Spring
#from... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
9f81972e5668d7df5d26531458816b050ba6fc40 | 9350ffb80b14d1016bb5020672bf51157c816bf9 | /apps/tests/test_deploy_list.py | 5a735ffc4674cf71d9f9d0c8dd9f9e4f84390bdd | [] | no_license | dfleury/tsuru-dashboard | ca77b33bacd1a51fa4273677a220aa691eee017c | 9a793827ecb555ae5482e659d0b2a404388a8207 | refs/heads/master | 2020-12-11T05:23:49.453156 | 2015-06-17T20:05:48 | 2015-06-17T20:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from mock import patch, Mock
from django.test import TestCase
from django.conf import settings
from django.test.client import RequestFactory
from apps.views import ListDeploy
class ListDeployViewTest(TestCase):
@patch('requests.get')
@patch("auth.views.token_is_valid")
def setUp(self, token_is_valid, ge... | [
"andrewsmedina@gmail.com"
] | andrewsmedina@gmail.com |
ad5d5794ab1df6eaa2c26d376949cec6d3085b68 | 8e4611f6c51fc294eec168dfd76294abed0faa81 | /npcf-smpolicycontrol/flaskConnexion-python2/swagger_server/models/final_unit_action.py | 678aaf08663ebc91beca4e801b8e20da482749ce | [] | no_license | zh597588308/5GCORE | f7e56d84daf3de836bdb8b74d8e41968c25bc54a | 0a36d13d4ba769aa3d480893608b847677578471 | refs/heads/master | 2021-01-09T15:26:09.399154 | 2019-10-02T14:21:57 | 2019-10-02T14:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class FinalUnitAction(Model):
"""NOTE: This class is auto generated by the swa... | [
"41372370+attilajak@users.noreply.github.com"
] | 41372370+attilajak@users.noreply.github.com |
771117f3540d55a18274d0ece32b5a7ff90829cb | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D09B/INVRPTD09BUN.py | 96cc53427d9913c6b8cd0ace16c5f56282f54432 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,996 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD09BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'FTX', MIN: 0, MAX: 99},
{ID: 'DTM', MIN: 1, MAX: 10},
{ID: 'RF... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
b85f6556b9631f178b8144da6c4f940168368d0e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minWindow_20200618181545.py | c492c3d9de202240b60c8e133081a58db44b3dee | [] | 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 | 1,110 | py | # for this question we have two pointers
# left pointer
# right pointer
# we move the right pointer and maintain the position of the left pointer
# when we find the word we move the left pointer
# store that word its shortest form
# we keep moving the right pointer
# how do we get a substring that has all search ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
06150a34be43930c6c61aa7c844716e985814f55 | f282599a4e08c16ebf873963cdb9fd967bca9f48 | /Events/Eventos/migrations/0004_auto_20200514_2339.py | 048014f09852877e61a9c9b10a4cc683d3287cc1 | [] | no_license | EventsAPI/API | 1086ae3bf4dc42c9e84f493d1f121ee7ee53f1c2 | e3fb66e9a90e8866d5e4d9ebec2bceba287acba8 | refs/heads/recu | 2021-01-14T02:38:31.995301 | 2020-06-12T04:39:46 | 2020-06-12T04:39:46 | 242,570,820 | 0 | 2 | null | 2020-06-18T01:12:43 | 2020-02-23T18:41:07 | Python | UTF-8 | Python | false | false | 634 | py | # Generated by Django 3.0.3 on 2020-05-14 23:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Eventos', '0003_auto_202... | [
"luisrijhn09@gmail.com"
] | luisrijhn09@gmail.com |
953dcd16be657923d5b0e16e5e137729964d2279 | e0ef4765796fc597434404dbcc886eeaf8b99fc5 | /release/xgboost_tests/workloads/train_small.py | 50d674ac606ab27904bd1010deb33f5c88bdc257 | [
"MIT",
"Apache-2.0"
] | permissive | alindkhare/ray | c26e3c72b67735096995ba6ed45fa8f1e5e7f1fc | 0f921cdead7c4752ce5ee87b8a1d33ad1cb3a004 | refs/heads/master | 2023-01-25T00:56:19.235569 | 2021-04-29T00:20:58 | 2021-04-29T00:20:58 | 208,847,719 | 1 | 2 | Apache-2.0 | 2023-01-21T08:02:21 | 2019-09-16T16:32:25 | Python | UTF-8 | Python | false | false | 763 | py | """Small cluster training
This training run will start 4 workers on 4 nodes (including head node).
Test owner: krfricke
Acceptance criteria: Should run through and report final results.
"""
import ray
from xgboost_ray import RayParams
from _train import train_ray
if __name__ == "__main__":
ray.init(address="au... | [
"noreply@github.com"
] | alindkhare.noreply@github.com |
e9da4a2a30ddefa752fba978aa2a1a5dcb3d535d | bbc8192636e0f254ffcb0537306a5bf387235aec | /p1_homework/scikitlearn_pipeline/task/load_and_save_dataset.py | d1b14a37b0549fcffaac559fee7887c2311c1f1a | [] | no_license | datason/deployml_course | 99c0034affb66277fef53aca1f903ae93ad3fc12 | f2817115063bae714b02b16bf2ed64f38f0b99ea | refs/heads/main | 2023-02-06T10:59:57.500638 | 2020-12-30T09:27:04 | 2020-12-30T09:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import re
import pandas as pd
import numpy as np
def your_functions():
pass
data = pd.read_csv()
data = data.replace('', np.nan)
# обработка дата сета и приведение его данных в порядок
# применение функций
# сохраняем
data.to_csv('', index=False) | [
"artseleznev@gmail.com"
] | artseleznev@gmail.com |
d3ed0f884338920e8dd2e7649b9ad323ba31eee3 | 524ef11091e3d778df5ebe80f1e5bd9fb5325116 | /django-app/post/views.py | 6621281615600e9f9762cde981c3430ba9ccafcb | [] | no_license | JeongEuiJin/exam-mtv | 9c669b9aef08f85815a41a695e9ebc726bc5ea49 | 7fd1beee06b4876954a76ed5c8f3b3827c4b99ab | refs/heads/master | 2021-01-11T14:06:56.535261 | 2017-06-21T09:59:29 | 2017-06-21T09:59:29 | 94,969,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from django.shortcuts import render, redirect
from .models import Post
def post_list(request):
posts = Post.objects.all()
context = {
'posts': posts
}
return render(request, 'post/post_list.html', context)
def post_delete(request, post_pk):
if request.method == 'POST':
post = Po... | [
"hehar1020@gmail.com"
] | hehar1020@gmail.com |
e8305068b0a94809a859b645cff4e3c6aae67f55 | 74f04d78486d4986e4f0ef8c3bc480ba00caae4a | /onetomany/migrations/0001_initial.py | e660348ee21495a43a22a4cd7dda30f00225b27c | [] | no_license | kimjy392/reboot-django | e24dd90182ee5d317bf13872ae169ac738a71c6c | 4280c7bffacd759a1b785ae576e9e89a0c2269d8 | refs/heads/master | 2022-12-10T12:18:38.422146 | 2019-10-28T01:12:41 | 2019-10-28T01:12:41 | 207,240,898 | 0 | 10 | null | 2022-12-08T06:13:37 | 2019-09-09T06:36:38 | Python | UTF-8 | Python | false | false | 1,519 | py | # Generated by Django 2.2.5 on 2019-10-22 02:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
... | [
"kimjy392@gmail.com"
] | kimjy392@gmail.com |
12e840235bf0d652faf2addc118a5d7ab962e231 | 62def70e2d802375b1ad28b0ac85fee2010ee0a9 | /displays/demo/demo.py | 2cdb5a14f11a948b84bde36765ffd0f670af79fd | [] | no_license | MarkAYoder/BeagleBoard-exercises | c48028b6e919d8c04dedfd2040a133c760f0f567 | 2fab7c7f7aa09bf101168dfb279e690bc43a6514 | refs/heads/master | 2023-07-22T08:06:19.482358 | 2023-07-12T19:24:51 | 2023-07-12T19:24:51 | 5,111,513 | 48 | 41 | null | 2021-07-29T18:02:29 | 2012-07-19T15:07:14 | JavaScript | UTF-8 | Python | false | false | 982 | py | #!/usr/bin/env python3
# Starts the demos in sequence
# Pin table at https://github.com/beagleboard/beaglebone-blue/blob/master/BeagleBone_Blue_Pin_Table.csv
# Import PyBBIO library:
import Adafruit_BBIO.GPIO as GPIO
import time
import subprocess
import os
import signal
button="PAUSE" # PAUSE or MODE
LED ="WIFI"
... | [
"Mark.A.Yoder@Rose-Hulman.edu"
] | Mark.A.Yoder@Rose-Hulman.edu |
0951e2624d58d01f98635c6f1e45bd17e12f2ab1 | fe68220203dde7f1988ebc70da2c46d125462d3d | /scripts/dbutil/delete_station.py | 4bff83693cdc13df95978cd4ac129a11523360c9 | [
"MIT"
] | permissive | mazhao86/iem | 04d6605e3340bf9abb0c4c31af5c04c2321c3e1b | b5760e777df099c1152bfb4545492e676e2073d3 | refs/heads/master | 2022-04-27T00:14:56.146983 | 2020-04-14T13:25:22 | 2020-04-14T13:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | """Delete a station and all references to it!"""
from __future__ import print_function
import sys
from pyiem.util import get_dbconn
def main(argv):
"""Go Main Go"""
if len(argv) != 3:
print("Usage: python remove_realtime.py NETWORK SID")
return
network = sys.argv[1]
station = sys.argv... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
fdc5114af50d4d369de2e8539f9413172bae9f75 | 0541a5985138d6f3f46ccb6a23fd8355592b280e | /psp/options.py | 087847202d3d3f6327cdc618fe9e21121378ce8c | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mattgibbs/pyca | b2ca66de18c94277f9c3a551de5abcb3f4cde428 | 9606d973d45f4be16b4aeedb0bbc26480f8a0633 | refs/heads/master | 2022-05-17T16:28:24.474101 | 2022-05-10T17:08:08 | 2022-05-10T17:08:08 | 104,533,582 | 0 | 0 | null | 2017-09-23T01:56:14 | 2017-09-23T01:56:14 | null | UTF-8 | Python | false | false | 1,475 | py | import sys
import getopt
class Options(object):
def __init__(self, mandatory, optional=[], switches=[]):
self.opts = {}
self.__mand = mandatory
self.__optn = optional
self.__swtc = switches
def __getattr__(self, attribute):
if attribute in self.opts:
retur... | [
"zlentz@slac.stanford.edu"
] | zlentz@slac.stanford.edu |
75386e138dccce850e96ba2b2babfccd65da7950 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/210b8af0-5cc5-11e4-af55-00155d01fe08.py | 006c217e159fed6b34b737bc5fa24b599ac4878a | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | #!/usr/bin/python
################################################################################
# 210b8af0-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
431e71c6d735041b18312b15809667298a6b698a | 404aa03b6a3aba3fb265df1ef5d3ff2c85eb5aa6 | /backend/manage.py | dfafd4b32f176428ab9d288a254e3f446d1f8be0 | [] | no_license | crowdbotics-apps/aila-27155 | 35c2e80db1242a43a4869015f605a7a59f61b3d4 | 5958cfecf2e0eaa4c532d9cd326aa7f4d42d7d14 | refs/heads/master | 2023-05-05T19:54:20.945822 | 2021-05-21T15:51:09 | 2021-05-21T15:51:09 | 369,581,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aila_27155.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9efc5701863c70e05a13dd37aef132e970699e0f | 1e177ebdcb470f738c058606ac0f86a36085f661 | /CPRG-104/Assign03/Assign03.client03.05.py | 2979328dd4430b0c17f5d5cde7075b714e2c0f56 | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # -*- coding: utf-8 -*-
"""
Class: CPRG-104
Instructor: Hamdy Ibrahim
Student: Robin Greig
Created on 2021/11/30 21:33:21
Filename: Assig03.client03.05.py
"""
import socket
import time
ClientSocket = socket.socket()
host = '127.0.0.1'
#host = '192.168.200.138'
port = 1233
print('Waiting for connection')
try:
C... | [
"robin.greig@calalta.com"
] | robin.greig@calalta.com |
41ddf399bd1ae958839cd5136d79aadfa85d7776 | 107d985a67685e173ac23fe8d3aa6e1ab7eae91e | /release/scripts/mgear/shifter/guide_ui.py | ccb34b9fdf25f1d8a0a45a5b88d139feb5396c64 | [
"MIT"
] | permissive | moChen0607/mgear4 | 83c67df26ebf8898dfb032c81563bf3fd89b4d6c | e340bd9ca95b9e99977ba9eedb0bf39c742683ff | refs/heads/master | 2023-08-16T11:31:54.455569 | 2021-10-07T03:14:01 | 2021-10-07T03:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,404 | py | import mgear.core.pyqt as gqt
from mgear.vendor.Qt import QtCore, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(459, 749)
self.gridLayout_2 = QtWidgets.QGridLayout(Form)
self.gridLayout_2.setObjectName("gridLayout_2")
self.g... | [
"miquel.campos@gmail.com"
] | miquel.campos@gmail.com |
1040b3cb28607b3d6d97833947ce4cc271a49ea6 | 4e67c2edd71493a98a3f13e5b2073c1d05b1b656 | /Minicurso Python Intermediário/Aula 03/Exemplo01.py | 99b1ecccebace29ebe6af7043aaf58b1ec4ca531 | [] | no_license | felipellima83/UniCEUB | 05991d7a02b13cd4e236f3be3a34726af2dc1504 | dbc44866545b5247d1b5f76ec6e9b7778e54093e | refs/heads/master | 2023-07-08T19:04:19.830473 | 2021-08-12T12:33:49 | 2021-08-12T12:33:49 | 249,958,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def funcaoImprimir(parametroImpresso):
print('-'*30)
print(parametroImpresso)
print('-'*30)
# Chama a função e insere o parâmetro na função
# O parâmetro pode ser solicitado
funcaoImprimir(input("Digite o que deseja ser impresso: "))
# O parâmetro pode ser inserido
funcaoImprimir(2+2) | [
"felipellima83@gmail.com"
] | felipellima83@gmail.com |
6b8e2b49ddad9042e5027786ef10bfd5afa03893 | bd7d091565ba63c930351203ed912ff82461d540 | /google_scholar_spider.py | 4698f739bc9b93cf5daf3991c19c827c8005a965 | [] | no_license | screnary/Algorithm_python | 6ea3ab571763b5c0a519bdb7eed64dd5b74e8a8f | 8290ad1c763d9f7c7f7bed63426b4769b34fd2fc | refs/heads/master | 2022-12-07T02:59:42.786259 | 2020-08-25T04:27:45 | 2020-08-25T04:27:45 | 258,499,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | """
版权声明:本文为CSDN博主「嘿嘿嘿唔哈哈」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Liane_Y/java/article/details/52058029
"""
import urllib.parse
import urllib.request
import re
keyword=input("keywords is?\n")
print(keyword)
url='https://scholar.google.com/scholar?&hl=en&q='+keyword+'&btnG=&lr='
heade... | [
"screnary@qq.com"
] | screnary@qq.com |
173d42ef4edefc45da1aaa382f3d0628693e0606 | f76e11d4da15768bf8683380b1b1312f04060f9a | /get_alignment_dependency_agreement.py | 576abffb3f1b964966bbd865194277c2542545dc | [] | no_license | rasoolims/scripts | 0804a2e5f7f405846cb659f9f8199f6bd93c4af6 | fd8110558fff1bb5a7527ff854eeea87b0b3c597 | refs/heads/master | 2021-07-07T03:53:20.507765 | 2021-04-13T14:53:00 | 2021-04-13T14:53:00 | 24,770,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | import os,sys,math
from collections import defaultdict
if len(sys.argv)<4:
print 'python get_alignment_dependency_agreement.py [src_mst_file] [dst_mst_file] [diag_file]'
reader1=open(os.path.abspath(sys.argv[1]),'r')
reader2=open(os.path.abspath(sys.argv[2]),'r')
diag_reader=open(os.path.abspath(sys.argv[3]),'r')
pm... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
dd93e3abba4833d3cc2e5eeb554db2ed29bc7f57 | 24839f56926b278760094c662421f133f8f41a8b | /tests/integ/test_proxy_views.py | 3272f0b4b080c04c7cb43c3e38b39748234cf25c | [] | no_license | cs91chris/flaskel | 92d6ad15204495f7116a68c46b2552abf92109bc | 16cb1ee80d0215e7d6cfc8b46860ced623250d89 | refs/heads/master | 2023-06-23T01:07:57.360539 | 2023-06-08T23:40:31 | 2023-06-08T23:40:31 | 179,693,168 | 13 | 0 | null | 2023-05-25T21:18:51 | 2019-04-05T14:05:25 | Python | UTF-8 | Python | false | false | 2,923 | py | from vbcore.datastruct import ObjectDict
from vbcore.http import httpcode
from vbcore.http.headers import ContentTypeEnum
from vbcore.tester.asserter import Asserter
from flaskel.tester.helpers import ApiTester, url_for
from flaskel.utils.schemas.default import SCHEMAS as DEFAULT_SCHEMAS
from flaskel.views import UrlR... | [
"cs91chris@voidbrain.me"
] | cs91chris@voidbrain.me |
0424434b239c0ff0640a41bab10fb3043e167fd4 | 2a5145f811c0679b35af367d25fce5914c2e0e40 | /Algorithm/33_SearchInRotatedSortedArray.py | 45e7251660b86a7e4e8abc965390ea51d17509fe | [] | no_license | lingtianwan/Leetcode | 8f93fc3fc85db289ca8f618143af2a43711425ba | bf2edab87dd96afab1ff411df35d3163c1dfdc55 | refs/heads/master | 2021-01-12T19:16:31.918703 | 2017-02-09T01:50:53 | 2017-02-09T01:50:53 | 81,396,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # Suppose a sorted array is rotated at some pivot unknown to you beforehand.
#
# (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
#
# You are given a target value to search. If found in the array return its index, otherwise return -1.
#
# You may assume no duplicate exists in the array.
class Solution(object):
d... | [
"lingtian.wan@gmail.com"
] | lingtian.wan@gmail.com |
30eef751b57ff7ae0a5a6b732f4e49a22e24102f | 68ecde5a8adcf4a6bc2f4b27a2d21fcfd448e1d5 | /app/main/__init__.py | 8eb7371f3d30c35d46b02ff0cf4af3f52e3ece27 | [
"MIT"
] | permissive | apwao/Pitcher | 0ab1f5e7496c543f99eb8114c28b3193ee089e3e | 5747de0d99430c495d3ad6f4bc64cd1b96e40598 | refs/heads/master | 2023-02-20T11:27:27.907444 | 2019-05-29T07:33:01 | 2019-05-29T07:33:01 | 188,427,024 | 0 | 0 | null | 2023-02-02T06:26:55 | 2019-05-24T13:31:57 | Python | UTF-8 | Python | false | false | 160 | py | from flask import Blueprint
main = Blueprint('main',__name__)
# import the views and errors modules to avoid circular dependencies
from . import views, errors | [
"sapwao@gmail.com"
] | sapwao@gmail.com |
e67b285fc6a06c4e61de58b6cf43060932efd362 | 09e4ef23c31fbb248339c39ceec5226a97ca3103 | /benchexec/tools/smtinterpol.py | 8b147f025b4d6e95efc46b707c13be41c0ea1f5e | [
"Apache-2.0"
] | permissive | sosy-lab/benchexec | a51676f9e501743444c96a32ec2e91ae4f3ac889 | 2c56e08d5f0f44b3073f9c82a6c5f166a12b45e7 | refs/heads/main | 2023-09-01T22:45:59.070016 | 2023-08-23T05:36:58 | 2023-08-24T09:38:40 | 30,758,422 | 176 | 190 | Apache-2.0 | 2023-06-30T08:39:22 | 2015-02-13T13:55:15 | Python | UTF-8 | Python | false | false | 1,188 | py | # This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0
import subprocess
import benchexec.util as util
import benchexec.tools.smtlib2
class To... | [
"uni@philippwendler.de"
] | uni@philippwendler.de |
d6003b283f7ee491cac8e71f31f19c825c645187 | 002f30c2dc604e2afbff801978ca2e9c8e8caf17 | /backend/excursionapp/serializers.py | 4d19be9b6c763fea5fd552091318edcf3c6d0eb8 | [] | no_license | Chukslord1/Excursion | 2e88616ae8766a777e03ed9c60ddda2081389442 | fc374e7b59d261e0f222363310b96714c9849007 | refs/heads/master | 2021-09-28T14:21:50.342385 | 2020-02-16T04:19:26 | 2020-02-16T04:19:26 | 240,788,549 | 1 | 0 | null | 2021-09-22T18:34:55 | 2020-02-15T21:12:57 | Python | UTF-8 | Python | false | false | 197 | py | from rest_framework import serializers
from .models import Excursion
class ExcursionSerializer(serializers.ModelSerializer):
class Meta:
model = Excursion
fields = '__all__'
| [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
521e88cb39f6819dc93340fac38ae7a82fdf9594 | 06919b9fd117fce042375fbd51d7de6bb9ae14fc | /py/tests/problems/bst/floor_ceiling1_test.py | bc070a3e4bbd75fa543fa062d3b1cfc018cface0 | [
"MIT"
] | permissive | bmoretz/Daily-Coding-Problem | 0caf2465579e81996869ee3d2c13c9ad5f87aa8f | f79e062e9f6e7b18b7e95c071fbe71ad104affcb | refs/heads/master | 2022-12-07T15:41:06.498049 | 2021-11-18T19:45:19 | 2021-11-18T19:45:19 | 226,376,236 | 1 | 0 | MIT | 2022-11-22T09:20:23 | 2019-12-06T17:17:00 | C++ | UTF-8 | Python | false | false | 595 | py | import unittest
from dcp.problems.bst.ds import BST
from dcp.problems.bst.floor_ceiling import floor_ceiling1
class Test_FloorCeiling1(unittest.TestCase):
def setUp(self):
pass
def test_case1(self):
values, tree = [7, 5, 10, -1, 6, 25], BST()
for v in values:
... | [
"bmoretz82@gmail.com"
] | bmoretz82@gmail.com |
a90131d8686678870f9e4b080687d70f9b8d10e6 | 5436cf0a4fea55b1db00e02091423bc7c3591420 | /src/google/events/cloud/gkehub_v1/__init__.py | 371912b8b5193859a3c3957026cc8d49e5f52156 | [
"Apache-2.0"
] | permissive | googleapis/google-cloudevents-python | 427341933bfe06e632c22b3f6f448b9b077668bc | d1e753b3ecb3f9c14e0f3ff9422205652c4c4296 | refs/heads/main | 2023-08-22T20:59:04.345364 | 2023-08-10T22:58:54 | 2023-08-10T22:58:54 | 273,051,026 | 24 | 8 | Apache-2.0 | 2023-09-14T05:15:58 | 2020-06-17T18:33:15 | Python | UTF-8 | Python | false | false | 2,377 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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"
] | googleapis.noreply@github.com |
72f99a6335e297e47f58697f04874292f9428f5a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03261/s052668081.py | b860540dfa07ab905d191691277d6bd372397a26 | [] | 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 | 316 | py | n = int(input())
w = [input() for _ in range(n)]
words_hist = set([])
last_letter = w[0][0]
for word in w:
if word in words_hist:
print('No')
exit()
if not word.startswith(last_letter):
print('No')
exit()
words_hist.add(word)
last_letter = word[-1]
print('Yes') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bf097ac0abf9de4601751abb6d8dc81c93c8b980 | ca9b923d015b1f134afb38e4bb07e2c6a068860a | /backend/users/migrations/0002_auto_20210414_1907.py | 75ab17d2b0920d3647327fe05d4ad18f425e73c6 | [] | no_license | crowdbotics-apps/testapp101-25695 | ff6200c06e2ce94eea169ab86d3a8b8aaf39540a | 74467c01beb8f86a89ec74c83d76e66c97351a43 | refs/heads/master | 2023-04-15T23:54:28.180473 | 2021-04-14T19:41:55 | 2021-04-14T19:41:55 | 358,013,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Generated by Django 2.2.19 on 2021-04-14 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='last_updated',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ce54e674274ad25db6832fa85cdf000eed9d5d47 | 54891a2c2ddd56de28c495309a52e98b36290cf0 | /Attack/tutu/tutu_async.py | 6b0c1161da755dd64aa0aa6b60c090ec3ad5c346 | [] | no_license | meijida258/mediaSpider | 61287f5ca58650c6a9578afdbab764fe063c5b39 | 9a9ef40d1f3dbd46dff25fad4a8b87ee85e5e1fd | refs/heads/master | 2021-01-23T08:10:14.211074 | 2018-06-20T02:19:12 | 2018-06-20T02:19:12 | 86,479,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import asyncio, aiohttp
from pymongo import MongoClient
import random
from multiprocessing.dummy import Pool
t = '1170f864930b85834f2aa482cd1eb447df4d'
t1 = '8353dcda0ab798494302982f424e2d698fd3'
k = 'be3d8184176377538b026f9231added9'
cpsUsername = 'fm_0001'
h = '01200156fm_0001'
driveid = '868453026613028'
headers =... | [
"meijida123@163.com"
] | meijida123@163.com |
b6a2f96c698c850e29a5c97501834ddbc6f67796 | bcfddbd882fa1dcc0b78a5a02fbb718af0fa74ba | /cn/hznu/test/logitReg.py | d8496edd5bca8353f8f07cf0c8d700da5d60c0a3 | [] | no_license | zicoal/py | e4e776de88bdfb8c39f5a514e5cfec5445575074 | 03b9c9d64065ce7193a0759c5f285c35c1996cba | refs/heads/master | 2023-03-15T16:34:42.442588 | 2023-03-10T14:38:32 | 2023-03-10T14:38:32 | 148,124,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | from numpy import *
import math
import numpy as np
import matplotlib.pyplot as plt
import time
import pandas as pd
import statsmodels.api as sm
import pylab as pl
import copy
df = pd.read_csv("d:\py\\binary.csv")
#print dftrain.head()
#print df.describe()
df.columns = ["admit", "gre", "gpa", "prestige"]
... | [
"jianjinshu@126.com"
] | jianjinshu@126.com |
fddf7cda27fecf78d69d80a73aa484ae83c25f8a | 520659e50627f890f093729e0bd5449d5bd35625 | /Python/Collections/Word Order.py | 01f8abac6a654d626321b7876132adea0cea2182 | [] | no_license | rohit-2019/HackerRank_Solutions | eac25854187a47b1b9af0376c8a774a74410d14c | f46aefaf2b9a6b5ddbc58cf31175e62314afaa12 | refs/heads/master | 2022-11-21T02:53:19.950733 | 2020-07-18T04:12:40 | 2020-07-18T04:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import OrderedDict
N = int(input())
od = OrderedDict()
for _ in range(N):
key_ = input()
if od.get(key_):
od[key_] += 1
else:
od[key_] = 1
print(len(od))
for k, v in od.items():
print(v, end = " ")
#... | [
"agarwal.ashima07@gmail.com"
] | agarwal.ashima07@gmail.com |
b2211e51c9a8f2a915e2f4f17ef0ca95c0db77c7 | 1d8a4659d4a13cd8b0244918484990bb000687ea | /OpenPROD/openprod-addons/product/wizard/switch_document.py | 43bd95c2aa6840e8e5cac58aa472956b51caa4e4 | [] | no_license | kazacube-mziouadi/ceci | d8218ede129186c26eb36f251ef42f07c7a74883 | eb394e1f79ba1995da2dcd81adfdd511c22caff9 | refs/heads/master | 2020-03-23T00:22:51.501409 | 2018-07-13T14:58:32 | 2018-07-13T14:58:32 | 140,859,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api, _
from openerp.exceptions import except_orm
from openerp.addons.base_openprod.common import get_form_view
from lxml import etree
class switch_document_wizard(models.Model):
_inherit = 'switch.document.wizard'
#===============================... | [
"mziouadi@kazacube.com"
] | mziouadi@kazacube.com |
c62aef11fc8a50c5b01209c4030bac047aff645d | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/716-tideGauge.py | 836d46fb53c718b9de7c00f36c00ad0d2142a1b5 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
a33da67cc6d8afe172c30463ceacfaa179b4fb8d | deaf519d1ee104784a56df98a7eb3705efbd1120 | /carsir_test/mockdata/rewrite.py | fa1a45e2505934ac27ca3bec628224b8bb1f2dd9 | [] | no_license | 606keng/weeds_study | 6391fbb47fb06abf67b7651250373f169fbdfd3e | df9d96009cbdf84176efbf4b02f43cb1d5208524 | refs/heads/master | 2021-04-23T07:43:52.472097 | 2021-04-07T13:10:58 | 2021-04-07T13:10:58 | 249,910,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import json
from pprint import pprint
def response(flow):
"""
对响应结果进行篡改
:param flow:
:return:
"""
# pprint(flow.response.content)
if "/olympic/api-olympic-admin/easySell/carSource/inStockCarSourceList" in flow.request.pretty_url:
data = json.loads(flow.response.text)
data["... | [
"18791076614@163.com"
] | 18791076614@163.com |
cc07c0b00bfc531bace3798873884772c28ae1ce | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/oscurart_tools/mesh/select_doubles.py | b2a7d4345a73a7e4b1bc9ae368dfd92c7d433ee2 | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 2,209 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"admin@irradiate.net"
] | admin@irradiate.net |
503a9fc24dd742c80dbd48c9dfe16f8e61a79d58 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /FastSimulation/PileUpProducer/python/PileUpSimulator7TeV_cfi.py | 5910dd9386bae8eeba0cfbb3a8fb040233866837 | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 1,211 | py | import FWCore.ParameterSet.Config as cms
# Take pileup events from files
PileUpSimulatorBlock = cms.PSet(
PileUpSimulator = cms.PSet(
# The file with the last minimum bias events read in the previous run
# to be put in the local running directory (if desired)
inputFile = cms.untracked.strin... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
15c1a6ba1102dcb14a5aed01c9055568737c64d5 | 972dcdced4fac5b08d46ef00ce0a944e47fd22ea | /app/prepare/read_json.py | 525f5cc5afc17ae83664fa15ca1341fd7215c90d | [
"Apache-2.0"
] | permissive | sboon1974/anfisa | 7603dec05e3620880a174e157bd856d05c2d794c | f2c69c4bb991369d67dd967f00486d3911c1f7d9 | refs/heads/master | 2020-04-04T09:14:46.340468 | 2019-03-16T14:43:53 | 2019-03-16T14:43:53 | 155,812,597 | 0 | 0 | Apache-2.0 | 2019-03-16T14:43:54 | 2018-11-02T04:06:08 | Python | UTF-8 | Python | false | false | 2,953 | py | import gzip, bz2, codecs, json
from glob import glob
#===============================================
class PlainFileReader:
def __init__(self, fname):
self.mInput = codecs.open(fname, 'r', encoding = 'utf-8')
def next(self):
return self.mInput.readline()
def close(self):
self.mIn... | [
"trf@ya.ru"
] | trf@ya.ru |
91c5514041675d92caa535f0a27afaa5299ce8e0 | d815c4755e6f98098452528d8ab69a8f82096b78 | /day8/ftp_server/core/main.py | 99d336bdabefc8f7827fa66cb3458ac92e58a940 | [] | no_license | immortalmin/csk | 081f1baddde43f74151f08a7d701d4c611845f7f | aca509a03bb88ae2911c1611350decdf68a4419a | refs/heads/master | 2020-04-07T22:51:59.907665 | 2018-12-04T08:53:22 | 2018-12-04T08:53:22 | 158,788,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | #Author:immortal luo
# -*-coding:utf-8 -*-
import socketserver,json,os
class MyTCPHandler(socketserver.BaseRequestHandler):
def put(self,*args):
'''接收客户端文件'''
cmd_dic = args[0]
filename = cmd_dic["filename"]
filesize = cmd_dic["size"]
if os.path.isfile(filename):
... | [
"1608725226@qq.com"
] | 1608725226@qq.com |
0d4870c6e7a5f2c600ab6b9a168e5457be70e439 | a3a2f72880282f9fc74d0aa505614624d71cdeaa | /MakeSample/prediction_num_of_edge.py | 5a81e9abcf1ae98dec3df02ae4da0cafcb4ab423 | [] | no_license | hsack6/citation | 2c390b93fc795d128bfdda13062f0e7da826f42b | 3d9f0961921c561c554a0eb93cd0bfda7465d8df | refs/heads/master | 2023-02-27T23:39:20.210268 | 2021-02-02T13:57:42 | 2021-02-02T13:57:42 | 308,533,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,021 | py | import numpy as np
from matplotlib import pyplot as plt
import os
import sys
import networkx as nx
from scipy.io import mmwrite, mmread
# 一つ上の階層のmoduleをインポートできるようにする
current_dir = os.path.dirname(os.path.abspath("__file__"))
sys.path.append( str(current_dir) + '/../' )
from setting_param import MakeSample_prediction_... | [
"yamasaki.shohei@ist.osaka-u.ac.jp"
] | yamasaki.shohei@ist.osaka-u.ac.jp |
64dab49c8b582e38487a85d3e68c8ef58a40ce90 | 6552a65454c688029ea1c4c0b55a02259989e745 | /mmf/utils/logger.py | bc4638dfc21996baa0629edc8fbef682de8be09e | [
"BSD-3-Clause"
] | permissive | facebookresearch/worldsheet | 66b2b9e83c59c638914124c2f7a8ffb283741130 | 13175f8f5e10b13436546ebf1600dc21005124d0 | refs/heads/main | 2023-08-03T07:08:16.573571 | 2021-09-17T22:18:38 | 2021-09-17T22:18:38 | 398,332,164 | 45 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,941 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import collections
import functools
import json
import logging
import os
import sys
from typing import Any, Dict, ... | [
"nikhilar@fb.com"
] | nikhilar@fb.com |
32014f73707a794c418db02505acf5e0e2b3aacf | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/jdcal-1.0/jdcal.py | ab3977767b2dd26f67394d258017aac8b4144334 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 14,903 | py | # -*- coding:utf-8 -*-
"""Functions for converting between Julian dates and calendar dates.
A function for converting Gregorian calendar dates to Julian dates, and
another function for converting Julian calendar dates to Julian dates
are defined. Two functions for the reverse calculations are also
defined.
Different ... | [
"romain@cloudera.com"
] | romain@cloudera.com |
5b27007495d6a0c831fabab52ac0e8467c37f754 | 3603f8f76ff81ea75bfc916888bdcfa55b7f12e4 | /itp/itp1_6_d.py | 53215b0a54f1821e42bc8d5098b484be2efacab4 | [] | no_license | kimotot/aizu | 4de0319959a3b166b8c2c4940ab7b701b6ee3395 | 315be1240cff733e1c6a7cd98942a95b3bd7ec96 | refs/heads/master | 2021-07-24T12:37:41.935302 | 2021-03-10T09:05:05 | 2021-03-10T09:05:05 | 91,927,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | [n, m] = [int(x) for x in input().split(" ")]
v1 = []
for _ in range(n):
al = [int(x) for x in input().split(" ")]
v1.append(al)
v2 = []
for _ in range(m):
v2.append(int(input()))
v3 = []
for al in v1:
t = 0
for (a, b) in zip(al, v2):
t += (a * b)
v3.append(t)
for i in v3:
print(... | [
"god4bid@hear.to"
] | god4bid@hear.to |
d42d99e745c445809075130963d4fd7ca3d90370 | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /tests/integration_tests/core_tests/service_tests/implementation/analytics_retailer_test_collection.py | c772f301f364a732dc008a00bf24c14f2f9f54bc | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,454 | py | from __future__ import division
import json
from bson.objectid import ObjectId
import datetime
from common.service_access.utilities.json_helpers import APIEncoderForExportingMongoQuery
from retailer.common import ltm_helper
from tests.integration_tests.utilities.data_access_misc_queries import insert_test_company, inse... | [
"erezrubinstein@hotmail.com"
] | erezrubinstein@hotmail.com |
3c813d8a364d7b5b50cbae755278d379416ae75b | ea3799fc5a6a7109c1c8089dc43993ce24a3fa2a | /experiment/GRU/models/flownet1.py | 2708706113b07e7a7b5d2d0bdceab76edf0609c3 | [] | no_license | gepu0221/FCN | 92edfc4bddd2ace1e10d2236a2f9a4ed672705c8 | df03409d5974cbec60d3d18853149c838d2f091b | refs/heads/master | 2020-03-16T18:14:40.414050 | 2019-03-11T12:40:44 | 2019-03-11T12:40:44 | 132,865,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,281 | py | import tensorflow as tf
import glob
import numpy as np
class Flownet1:
def __init__(self):
self.weights = {
'conv1': tf.Variable(tf.zeros([7, 7, 6, 64], dtype=tf.float32), name='conv1_w'),
'conv2': tf.Variable(tf.zeros([5, 5, 64, 128], dtype=tf.float32), name='conv2_w'),
... | [
"cauc_gp@163.com"
] | cauc_gp@163.com |
e2bb9af446295bdb7eff6033327cff4944b64db1 | 7d7e2df40c4cf7ad76aadeb62b4ef072d9cd11b1 | /constants.py | 541e7867472c3755740fde1c9cd428cd8e1f729a | [
"Apache-2.0"
] | permissive | yakkobr/gmail-imap-migrate | 1fe3680ebf93173df2002fd8a8b2368c289c9950 | 51249edf2fbafb6910b428fb55f872d5587e7ca3 | refs/heads/master | 2021-03-13T15:26:08.512818 | 2015-04-07T01:01:13 | 2015-04-07T01:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | HOST = 'imap.googlemail.com'
PORT = 993
SSL = True
OLD_DATA_DIR = 'old_data'
NEW_DATA_DIR = 'new_data'
ALL_FOLDERS_FI = 'all_folders.json'
FOLDER_DATA_FI = 'folder_data.json'
SKIPPED_FOLDERS_FI = 'skipped_folders.json'
MIGRATION_PROGRESS_FI = 'migration_progress.json'
GMAIL_ID_FIELD = 'X-GM-MSGID'
FLAGS_FIELD = 'FLAG... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
bace6ce69a216e6010bfbc8265ec59c5dedf0b6e | 897802abf4ee5c7267de3eb5e321cc931898e2f6 | /python/python/songTian/part0_base/week04/c451_cal_pie/cal_pie_mon.py | f702ecb54ed1ca9fab6ec98c0e875b93be2c6ebb | [] | no_license | aojie654/codes_store | 0527c7a7729b472e8fd2fd67af462cf857970633 | ed71b6266b2d2b5ddefadcb958f17695fb9db6cf | refs/heads/master | 2021-07-15T17:04:33.591673 | 2021-07-03T14:42:30 | 2021-07-03T14:42:30 | 132,343,733 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # CalPiVMon.py
from random import random
from time import perf_counter
DARTS = 1000 * 1000
hits = 0.0
start = perf_counter()
for i in range(1, DARTS + 1):
x, y = random(), random()
dist = pow(x ** 2 + y ** 2, 0.5)
if dist <= 1.0:
hits = hits + 1
pi = 4 * (hits / DARTS)
print("圆周率值是: {}".format(pi))... | [
"aojie654@live.cn"
] | aojie654@live.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.