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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72ff8c3550a9d80982b6ab69f568c80f8e65b8c8 | df8c19c952f02e3527c0e06c1d74ed578ca0684b | /account/tasks.py | 73d9501a1106ab6067bb90300b4c9dafed75e5bc | [] | no_license | knkemree/msrugs_backend | ac8c703fb691c9a796028cb2c38abaf8ed98c98c | 850026b2884e7618404ecfa030beccec93bb4596 | refs/heads/master | 2023-04-03T04:31:13.557762 | 2021-04-05T17:26:34 | 2021-04-05T17:26:34 | 354,910,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from celery import shared_task
from django.core.mail import send_mail, mail_admins
from django.template import loader
from django.conf import settings
from celery.utils.log import get_task_logger
logger = get_task_logger(__name__)
@shared_task
def info_admins(email):
subject = "New Customer Registered"
... | [
"konakziyaemre@gmail.com"
] | konakziyaemre@gmail.com |
910afd2efa42ada5dd22923f2a6c53a466fb5a1f | c577d0d804ef826131a8a959ed10879d3fdfef2a | /profiles/migrations/0008_auto_20190206_2142.py | 88de9108773cc666cfb035325fb04299faba7c2f | [] | no_license | AlexFrundin/four | 3d561e2f33e007e93b975b247752c06b392b1945 | c937e0dc159f380abbcb5e646ebdf2a7a8fd6be0 | refs/heads/master | 2020-04-30T10:55:31.020357 | 2019-03-20T18:06:26 | 2019-03-20T18:06:26 | 176,788,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.1.3 on 2019-02-06 19:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0007_auto_20190206_1917'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='birth',
... | [
"aleksey.frundin@gmail.com"
] | aleksey.frundin@gmail.com |
c344e931dbc0bea19cfd8ade72f0e23e73c9944c | 6bf7149077f539ab599db1f717c93aca82724512 | /workshop/fig_games/project/game.py | 28aac4f8ed638b7cc05a55b9da86ae835c56af25 | [] | no_license | KalinHar/OOP-Python-SoftUni | 8b53e8b734b364878c5372525c4249fdd32f0899 | 9787eea7ab5101e887ed4aaeb0a8b3b80efcfdd7 | refs/heads/master | 2023-07-09T08:15:59.765422 | 2021-08-16T06:01:08 | 2021-08-16T06:01:19 | 380,813,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | from workshop.fig_games.project.suitcase import Suitcase
from workshop.fig_games.project.battle.area_battle import AreaBattle
from workshop.fig_games.project.battle.circumfernce_battle import CircumferenceBattle
from workshop.fig_games.project.battle.relative_battle import RelativeBattle
from workshop.fig_games.project... | [
"kalix@abv.bg"
] | kalix@abv.bg |
c150cb2b3d525912e69339d0c70b0420d9e05cc5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02577/s522201630.py | dee13346a32585c238531954da820bc0241080a6 | [] | 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 | 88 | py | x = input()
if sum([int(i) for i in x]) % 9 == 0:
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
802695a099e500fec46d761a6bc06d2bd5ff349a | 4ba4ae24e734686f28fe395390a2d0210eb88458 | /programas/galeria/orbita de .5 sobre la logística/orbita_0.5_logistica.py | c2fdeeaff5bbbd9bcf411db25878759de40fc3e1 | [] | no_license | fhca/Sistemas-Complejos-1 | a7578ae981c694ae2500a847adfe79c6c58c69ae | a2b70adf3859dd6a7318da98228adef78698f9c5 | refs/heads/master | 2021-01-15T19:59:49.778497 | 2017-12-16T03:34:51 | 2017-12-16T03:34:51 | 99,835,884 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | __author__ = 'fhca'
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
from matplotlib import cm
def logistic(c, x):
return c * x * (1 - x)
def evaluate(n, x0, c, f):
res = x0
for _ in range(n):
res = f(c, res)
return res
fig = plt.figure()
ax = fig.ad... | [
"hobber.mallow@gmail.com"
] | hobber.mallow@gmail.com |
cff3e9148fe021dbca2f36fd24270a1aace86027 | d9aa525b6a359378572fa7e48bd4fb8529b9ce23 | /monitoring/services/tests.py | 2e6a0fa69ed320fbbe1fcc4f7506227fdb4949ab | [
"Apache-2.0"
] | permissive | naanal/monasca-ui | cb5b7c279836d31809392d5b4572536fbea3634e | 37d8926015e35f8949606183469d532924ab58c2 | refs/heads/master | 2020-02-26T13:04:25.471867 | 2016-08-16T05:39:24 | 2016-08-16T05:39:24 | 64,387,546 | 0 | 0 | null | 2016-07-28T10:46:54 | 2016-07-28T10:46:53 | null | UTF-8 | Python | false | false | 1,595 | py | # coding=utf-8
from django.core import urlresolvers
from django.test import RequestFactory
from mock import patch, call # noqa
from monitoring.test import helpers
from monitoring.services import constants
from monitoring.services import views
INDEX_URL = urlresolvers.reverse(
constants.URL_PREFIX + 'index')
c... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
50c0db940d1a81503c735523e554c2f9aa4e8c25 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/31503010.py | a0d860e470e74eab4f359406d68c4a1e5df58223 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/31503010.py generated: Wed, 25 Jan 2017 15:25:30
#
# Event Type: 31503010
#
# ASCII decay Descriptor: [tau- -> pi- pi+ pi- nu_tau]cc
#
from Configurables import Generation
Generation().EventType = 31503010
Generation().SampleGenerationTool = "SignalPla... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
464fd32e21826eb900ab44421bba05a56e8c869a | 6935f8334f17e59f0691695e1404ce2fa3c18b98 | /src/signali_notification/migrations/0001_initial.py | f541895c83cd237322504219131944b4e337173d | [] | no_license | obshtestvo/signali | a7b74746cba487ea3dacedbd2eda4876b972056e | f0c64bea9e151023612e33e476d0723819924e19 | refs/heads/master | 2016-08-05T17:13:55.793165 | 2016-01-20T16:39:36 | 2016-01-20T16:39:36 | 34,040,168 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('signali_contact', '0004_auto_20150903_0029'),
]
operations = [
migrations.CreateModel(
... | [
"antitoxic@gmail.com"
] | antitoxic@gmail.com |
170ccd24c50321c37c6335c0652314406ed7802a | 22a7161361089b84a09457b46d79ce2bd87f5b2c | /tests/urls.py | bb83d09b1ab5c7ac9d1103f51acf97588d336b6b | [] | no_license | matthew-a-dunlap/django-inspectional-registration | 56fb9b9945d41de069034fd066e3b92b388b8498 | d6dd945718e5f7ac09966763c83104c4966cb775 | refs/heads/master | 2020-09-09T17:33:18.128626 | 2016-05-23T19:57:19 | 2016-05-23T19:57:19 | 221,512,520 | 0 | 0 | null | 2019-11-13T17:13:08 | 2019-11-13T17:13:07 | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
try:
from django.conf.urls import url, patterns, include
except ImportError:
from django.conf.urls.defaults import url, patterns, include
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(... | [
"lambdalisue@hashnote.net"
] | lambdalisue@hashnote.net |
4c19d1c4ca2143d49702c83bd6fe7486af618b32 | 6df4a4cbdaf59009838b2c70b518e66633c67de0 | /user_portrait/cron/recommentation_in/filter_rules.py | c4a58b227bbab39a9fd134e2bd2cc7cfcf24955f | [] | no_license | jianjian0dandan/user_portrait | ccf5f43f0aca2d40581faae215fdda1db997a354 | 3114ca2fcec23a7039887cca953793ef34cb7f72 | refs/heads/master | 2021-01-15T19:59:16.286276 | 2016-05-18T03:30:37 | 2016-05-18T03:30:37 | 42,869,391 | 0 | 0 | null | 2015-09-21T13:56:51 | 2015-09-21T13:56:51 | null | UTF-8 | Python | false | false | 4,731 | py | # -*- coding: UTF-8 -*-
import sys
import csv
import json
import time
reload(sys)
sys.path.append('../../')
from global_utils import R_CLUSTER_FLOW2 as r_cluster
from global_utils import R_DICT, es_retweet, retweet_index_name_pre, retweet_index_type
from time_utils import datetime2ts, ts2datetime
from paramet... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
1e44f68b4293ce9210579097294860acfc7ebac2 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/UntagResourcesRequest.py | 3e59f17cdafd0c517f61e6e5a9daaacecfc58d26 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,302 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
45620672ed607a3171dae6cf19a63dea278a32ce | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/edabit/_Edabit-Solutions-master/Odd Up, Even Down/solution.py | 280dd4e50c5e27743667091935a4280519266904 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 149 | py | ___ transform(lst
output # list
___ i __ lst:
__ i % 2 __ 0:
?.a.. i-1)
____
?.a.. i+1)
r.. ?
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b74fd5349fcc910ed9dcad8717e15620b73eb4be | c516df2118000e3abaa61527de7badb94680081e | /utilities/common.py | b3a2eae746c77898ae21aed1623a0194a141bbd9 | [
"MIT"
] | permissive | xod442/paw | 82c8d54af052edaea05ed36a0846fe9722f047f3 | f55df04dd7af7a1b25844c809187a99cfb24b813 | refs/heads/main | 2023-04-16T12:19:50.849945 | 2021-04-26T20:06:51 | 2021-04-26T20:06:51 | 360,992,530 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | import time
import boto3
from flask import current_app
import datetime
import arrow
import bleach
def utc_now_ts():
return int(time.time())
def utc_now_ts_ms():
return lambda: int(round(time.time() * 1000))
def ms_stamp_humanize(ts):
ts = datetime.datetime.fromtimestamp(ts/1000.0)
return arrow.get(ts... | [
"rick@rickkauffman.com"
] | rick@rickkauffman.com |
1fe26b687dbd81149de336083512b6e7129e88d1 | 2eb779146daa0ba6b71344ecfeaeaec56200e890 | /python/oneflow/compatible/single_client/test/ops/test_transpose.py | 02117e32289d49fe2caa7a1e4f230115958caf6e | [
"Apache-2.0"
] | permissive | hxfxjun/oneflow | ee226676cb86f3d36710c79cb66c2b049c46589b | 2427c20f05543543026ac9a4020e479b9ec0aeb8 | refs/heads/master | 2023-08-17T19:30:59.791766 | 2021-10-09T06:58:33 | 2021-10-09T06:58:33 | 414,906,649 | 0 | 0 | Apache-2.0 | 2021-10-09T06:15:30 | 2021-10-08T08:29:45 | C++ | UTF-8 | Python | false | false | 4,027 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | hxfxjun.noreply@github.com |
af132b52a2a42c7eb350dd3fad4e62461d23f6d3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03548/s330099741.py | 473abd697eb7a23e0c786ec6a00b442861d84293 | [] | 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 | 118 | py | #!/usr/bin/python
# -*- Coding: utf-8 -*-
x, y, z = (int(i) for i in input().split())
n = int((x-z)/(y+z))
print(n) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
60e077f3f23f697b0b33bdeca4b24594f3478247 | 626b14ce13986b6d5e03143e151004247659625a | /Day01-15/code/Day08/student.py | 7d753978b63ee1f015b2f6a12f70198e93ff89bc | [] | no_license | Focavn/Python-100-Days | c7586ecf7ae3f1fd42f024558bb998be23ee9df8 | d8de6307aeff9fe31fd752bd7725b9cc3fbc084b | refs/heads/master | 2021-08-08T17:57:02.025178 | 2020-09-17T11:58:04 | 2020-09-17T11:58:04 | 220,427,144 | 0 | 0 | null | 2019-11-08T08:59:43 | 2019-11-08T08:59:41 | null | UTF-8 | Python | false | false | 1,108 | py | """
定义和使用学生类
Version: 0.1
Author: 骆昊
Date: 2018-03-08
"""
def _foo():
print('test')
class Student(object):
# __init__是一个特殊方法用于在创建对象时进行初始化操作
# 通过这个方法我们可以为学生对象绑定name和age两个属性
def __init__(self, name, age):
self.name = name
self.age = age
def study(self, cours... | [
"Focavn@users.github.com"
] | Focavn@users.github.com |
96b72c3e8d75f73087aa5d785f9d688d43fba4a9 | 920b9cb23d3883dcc93b1682adfee83099fee826 | /iam/meta.py | 1c14641c524eaf4af143f55b16491ad41f993154 | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-3.0-only"
] | permissive | TencentBlueKing/bk-itsm | f817fb166248d3059857b57d03e8b5ec1b78ff5b | 2d708bd0d869d391456e0fb8d644af3b9f031acf | refs/heads/master | 2023-08-31T23:42:32.275836 | 2023-08-22T08:17:54 | 2023-08-22T08:17:54 | 391,839,825 | 100 | 86 | MIT | 2023-09-14T08:24:54 | 2021-08-02T06:35:16 | Python | UTF-8 | Python | false | false | 1,689 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2020 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... | [
"1758504262@qq.com"
] | 1758504262@qq.com |
20a9aad0196588ee85844a524186b9c74f485d9b | 63862669b6b428ef23e2733e50b47ef7a11ceb60 | /basic info/varia.py | ce978e8d87db873269e2593e3bcd2404f720095d | [] | no_license | CyborgVillager/Learning_py_info | 961fde2cdba7ec0b7e1aacd437aeba99083cd192 | a1504ab4610f88ae2de738a49ac6513c3358a177 | refs/heads/master | 2020-11-25T22:17:33.966387 | 2020-02-11T04:34:29 | 2020-02-11T04:34:29 | 228,869,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #variables
def story_example():
name = "John"
age = 25
para0 = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In interdum, odio et feugiat auctor, ante leo t" \
"incidunt tortor, sed lacinia leo augue vel lorem. In rutrum est libero"
para1 = "Nunc euis... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
249c8be8faca60c67ed1827c6122bee07e1fa8ac | a5a4cee972e487512275c34f308251e6cc38c2fa | /tests_old/tests_openmpi/test_hello_world/test_hello_world.py | b5a6b03915a4a452b63bb6efdf8838d172ecddf7 | [
"MIT"
] | permissive | eragasa/pypospack | 4f54983b33dcd2dce5b602bc243ea8ef22fee86b | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | refs/heads/master | 2021-06-16T09:24:11.633693 | 2019-12-06T16:54:02 | 2019-12-06T16:54:02 | 99,282,824 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | from subprocess import call
import os
# possibly the greatest hack of a test to ever be written
def test_hello_world():
call(["sbatch", "runjob_hipergator.sh"])
while True:
r0 = os.path.exists("rank_0")
r1 = os.path.exists("rank_1")
r2 = os.path.exists("rank_2")
r3 = os.path.ex... | [
"seatonullberg@gmail.com"
] | seatonullberg@gmail.com |
e39ec3b82e0551f31532345f993df0e4da0ee93f | 459185e0e12d486e91fcfff3e6d6174afbdf70db | /JEX-V4/Exploits/wpinstall.py | 84eb5f88c61670e0b117e32045f691f557ac28bc | [] | no_license | Hdiaktoros/laravel-dorks | e42a1be938b0fdbbf17e6689d50c7f8bcf30c464 | a9ae0af4a27b522f939b5c1627db3b98f18bb5c3 | refs/heads/main | 2023-07-05T02:59:17.032717 | 2021-08-21T16:30:42 | 2021-08-21T16:30:42 | 398,522,099 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | # coding=utf-8
from Exploits import printModule
import requests
from random import sample
from BruteForce import Wordpress
# ----------------==---- MY USER AGent ----==----------------
Headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0'}
# -------------------- MYSQl... | [
"frimpongasante50@gmail.com"
] | frimpongasante50@gmail.com |
b057a3a5c3f3098da54c67a78d50a565061a32c3 | 0dfa97730b9ad9c077868a045d89cc0d4b09f433 | /tests/integration/goldens/credentials/samples/generated_samples/iamcredentials_generated_credentials_v1_iam_credentials_sign_blob_sync.py | ff60375d5635f5825a6f29c36bb0c61572147d95 | [
"Apache-2.0"
] | permissive | anukaal/gapic-generator-python | 546c303aaf2e722956133b07abb0fb1fe581962f | e3b06895fa179a2038ee2b28e43054e1df617975 | refs/heads/master | 2023-08-24T23:16:32.305652 | 2021-10-09T15:12:14 | 2021-10-09T15:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | anukaal.noreply@github.com |
b3cdcb8ef497d5e18564d7b7f47262c537e111e3 | b89ec2839b4a6bd4e2d774f64be9138f4b71a97e | /dataent/website/doctype/website_settings/website_settings.py | 4fc4412d550622749995427444bce0dbc835241c | [
"MIT"
] | permissive | dataent/dataent | ec0e9a21d864bc0f7413ea39670584109c971855 | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | refs/heads/master | 2022-12-14T08:33:48.008587 | 2019-07-09T18:49:21 | 2019-07-09T18:49:21 | 195,729,981 | 0 | 0 | MIT | 2022-12-09T17:23:49 | 2019-07-08T03:26:28 | Python | UTF-8 | Python | false | false | 4,869 | py | # Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import dataent
from dataent import _
from dataent.utils import get_request_site_address, encode
from dataent.model.document import Document
from six.moves.urllib.parse import quo... | [
"38303879+dataent@users.noreply.github.com"
] | 38303879+dataent@users.noreply.github.com |
b1561a5a09375df8219b095e33b192ffafb03de1 | eb755b42aa2ec9e6ab63001a6293d5e225837086 | /Other_web_spider/Phantomjs/Phantomjs_id_location.py | f4b494cfe8dbfb44c591643255e8da05cbfcbc6d | [] | no_license | paramedick/python-web-crawlers | 7c493cbc51c4189d0dabaeae6cfba84123f7401d | 5deea2073583bbb8d229c6404680e543ebcdbc5b | refs/heads/master | 2022-01-19T21:25:29.058709 | 2019-08-13T14:43:22 | 2019-08-13T14:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # coding=utf-8
from selenium import webdriver
browser = webdriver.Firefox()
browser.get("http://www.baidu.com/")
browser.find_element_by_id("kw").send_keys("python")
browser.implicitly_wait(60)
browser.quit()
| [
"429095816@qq.com"
] | 429095816@qq.com |
38e66487b8f3e6080d36fa5c19b8a95bc793311f | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/ticker/migrations/0065_auto_20190209_2232.py | da99dbc20030cad9a96f28f1f13228b4442183bd | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Generated by Django 2.1.3 on 2019-02-09 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticker', '0064_auto_20190209_2231'),
]
operations = [
migrations.AddField(
model_name='tickereoddata',
name='close_v... | [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
2752c83cd011675845e421f06b6105a534c335c1 | 0b490626a19dae9d2b9da68cebad27ee43c3dec5 | /python/seqdiff/__main__.py | 3b756498b413ec01837a11212d0b346101f4a8cd | [
"Apache-2.0"
] | permissive | tamuhey/seqdiff | 1c8e4bb8bafaad069472282835a245a7d2b94ffa | 4bd79979fbce25989d55644d6e3ca2efbc15edd8 | refs/heads/master | 2023-06-15T19:23:41.763124 | 2021-07-13T05:08:16 | 2021-07-13T05:08:16 | 273,475,966 | 5 | 0 | null | 2021-07-13T05:07:25 | 2020-06-19T11:19:56 | Rust | UTF-8 | Python | false | false | 96 | py | from seqdiff import print_diff
if __name__ == "__main__":
print_diff([1, 2, 3], [1, 3, 4])
| [
"tamuhey@gmail.com"
] | tamuhey@gmail.com |
7ac53b30a3b57016edf0f73d53b71a70649b08bc | 410a0fac2282d867aa7e531c40c7289e4484510c | /venv/bin/django-admin.py | 61ab7e2731c49b3611f2427a7932908cf764ede8 | [] | no_license | NickVazovsky/parser_go | 922a46ecca1c3def1adcfe3e029c82641247804b | a8dc3c082d246e4325d13e7ef1863df7238694cc | refs/heads/master | 2020-07-29T12:50:55.579542 | 2019-09-20T14:31:02 | 2019-09-20T14:31:02 | 209,806,760 | 0 | 0 | null | 2019-09-20T14:26:48 | 2019-09-20T14:13:45 | Python | UTF-8 | Python | false | false | 164 | py | #!/home/nick/PycharmProjects/new_project/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"nvazovsky@gmail.com"
] | nvazovsky@gmail.com |
9b065ad3bc64f06b7fcaff92d27fb2ee90ecfe6e | fc58366ed416de97380df7040453c9990deb7faa | /tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_db/tests/old_import_api/utils.py | 44eb1aeb24eb802ae554e3fcfda13866332912a7 | [
"Apache-2.0"
] | permissive | foruy/openflow-multiopenstack | eb51e37b2892074234ebdd5b501b24aa1f72fb86 | 74140b041ac25ed83898ff3998e8dcbed35572bb | refs/heads/master | 2016-09-13T08:24:09.713883 | 2016-05-19T01:16:58 | 2016-05-19T01:16:58 | 58,977,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # Copyright 2010-2011 OpenStack Foundation
# 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... | [
"wenxiang.wang1204@gmail.com"
] | wenxiang.wang1204@gmail.com |
f44c79dba52af15a4c324b94646a2e32d5a6143e | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=90/sched.py | 73271d93d6d30c676753279395b2f3b6ba2f57c3 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | -X FMLP -Q 0 -L 3 93 400
-X FMLP -Q 0 -L 3 80 400
-X FMLP -Q 1 -L 2 79 250
-X FMLP -Q 1 -L 2 57 175
-X FMLP -Q 2 -L 1 54 200
-X FMLP -Q 2 -L 1 39 400
-X FMLP -Q 3 -L 1 37 125
-X FMLP -Q 3 -L 1 33 200
29 150
18 150
16 150
11 125
11 125
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
503cdbd13ac9e95d89d2847aabb527de1c810769 | 369b7f114f9bd9b45dd5fef77a070cb73abb68d1 | /handle/itl/h20180123/insertFundInvestLog.py | 0754801c39b9a7088aaa3f77d47ee88123974bf7 | [] | no_license | lyjloveabc/thor_handle | d790ee25317f724825c94a6b346a034ec0ae6e3d | 8b9eda97ec873f3bf1732a428898a04d6a55c0af | refs/heads/master | 2021-12-27T10:15:16.668264 | 2021-08-16T13:45:34 | 2021-08-16T13:45:34 | 84,824,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import json
import requests
class InsertFundInvestLog:
def __init__(self):
# self.ENV = 'http://127.0.0.1:7001'
self.ENV = 'http://127.0.0.1:7001'
self.ENV_PROD = 'http://121.43.166.200:7001'
def handle(self):
with open('fundInvestLog_20180301.json', 'r') as f:
da... | [
"546223592@qq.com"
] | 546223592@qq.com |
38986d4a704fb788926d73c8dcd2ed3bad07d847 | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/primaires/objet/types/indefini.py | 72fd243688f6d99b9e1d5c92bccd62e605901e8d | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# l... | [
"kredh@free.fr"
] | kredh@free.fr |
e20e7f340b0e719fa019c02d2a227a6589f4cc4f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_baccalaureates.py | b6b3d264696b8bd5b102cbd3f2ddde23ad54b79c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py |
from xai.brain.wordbase.nouns._baccalaureate import _BACCALAUREATE
#calss header
class _BACCALAUREATES(_BACCALAUREATE, ):
def __init__(self,):
_BACCALAUREATE.__init__(self)
self.name = "BACCALAUREATES"
self.specie = 'nouns'
self.basic = "baccalaureate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e73cfc2cdec009c867b3c766a6a035d38f33dfd6 | b3ab2979dd8638b244abdb2dcf8da26d45d7b730 | /cloudcheckr_cmx_client/models/azure_csp_authorization_request_model.py | e76c907e4fd2a4a72db3231108f61a129ace91ae | [] | no_license | CU-CommunityApps/ct-cloudcheckr-cmx-client | 4b3d9b82c5dfdaf24f8f443526868e971d8d1b15 | 18ac9fd4d6c4ae799c0d21745eaecd783da68c0c | refs/heads/main | 2023-03-03T19:53:57.685925 | 2021-02-09T13:05:07 | 2021-02-09T13:05:07 | 329,308,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,134 | py | # coding: utf-8
"""
CloudCheckr API
CloudCheckr API # noqa: E501
OpenAPI spec version: v1
Contact: support@cloudcheckr.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class AzureCspAuthorizationRequestModel(object):
... | [
"pea1@cornell.edu"
] | pea1@cornell.edu |
2e512f27daf59d99f6040b185763a00b8e07ea3a | 8a84375dac5e6b33215d20e12e0c197aeaa6e83d | /docs/conf.py | 9ff817f5b2af6580eaed06b752ba69a80d83d411 | [
"Apache-2.0"
] | permissive | michaeljoseph/pymoji | 5579af089cabf1784c656e7fddf9d20f9e6f5d6a | 4bf26babc7b968d9a753907d4db5402cfd5c6d63 | refs/heads/master | 2021-01-01T18:12:37.805141 | 2013-12-09T10:42:24 | 2013-12-09T10:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,403 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"michaeljoseph+github@gmail.com"
] | michaeljoseph+github@gmail.com |
d2b41f94eec0c608bee7477753703dafae3dccc8 | 98ca37f5dd2751efaa060cca19e0b83f871d7765 | /sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py | a40496c6753e169137d95e6df644d3887e5da9a1 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | jayhebe/azure-sdk-for-python | 5ea99732ebb9929d3f6f77c08cc640d5915970b1 | f4455f85d9fe747fa4de2fdc691b975c07bfeea5 | refs/heads/main | 2023-06-24T01:22:06.602194 | 2021-07-28T02:12:25 | 2021-07-28T02:12:25 | 390,290,984 | 1 | 0 | MIT | 2021-07-28T09:23:46 | 2021-07-28T09:23:46 | null | UTF-8 | Python | false | false | 20,507 | 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.
# ----------------------------------------------------------------------... | [
"noreply@github.com"
] | jayhebe.noreply@github.com |
933b59e302f98e982ead78cbe8328132cfbe6402 | 6f04a6ef99c581ed2f0519c897f254a7b63fb61d | /rastervision/utils/zxy2geotiff.py | 80210424cc55d2fa376a4eef16bfa35762587c46 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | dgketchum/raster-vision | 18030c9a8bfe99386aa95adbf8e3ec51d204947f | fe74bef30daa5821023946576b00c584ddc56de8 | refs/heads/master | 2020-08-30T13:56:08.598240 | 2019-11-03T17:38:33 | 2019-11-03T17:38:33 | 218,400,435 | 3 | 1 | NOASSERTION | 2019-10-29T23:09:57 | 2019-10-29T23:09:57 | null | UTF-8 | Python | false | false | 7,481 | py | import tempfile
from PIL import Image
import numpy as np
import click
import mercantile
import rasterio
from rasterio.windows import Window
import pyproj
from rastervision.utils.files import (download_if_needed, get_local_path,
upload_or_copy)
from rastervision.command.aux.cogify... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
0a3ca56c977088ca6e0697402dafb8661ab78d31 | d08d1d0fd863e3121e27080ac5892bd39f0b11b8 | /vlan-fabric/python/vlan_fabric/tenant.py | 83582986a258d51be34d84e463ae50a8caff55a5 | [
"MIT"
] | permissive | rrojasc/sandbox-nso | be4211dbedc3d87d8830616db593dac71c051e75 | b44dce57904b916a570d0fe272c64cfe1f4c7575 | refs/heads/master | 2023-03-16T13:04:25.013628 | 2019-12-16T13:26:12 | 2019-12-16T13:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,403 | py | # -*- mode: python; python-indent: 4 -*-
import ncs
from ncs.application import Service
# import resource_manager.id_allocator as id_allocator
import ipaddress
# ------------------------
# SERVICE CALLBACK EXAMPLE
# ------------------------
class ServiceCallbacks(Service):
# The create() callback is invoked ins... | [
"hank.preston@gmail.com"
] | hank.preston@gmail.com |
30459cc5e6a093410d325a173ea9cba76452b99a | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/HotelSoldOrdersIncrementGetRequest.py | 08229a2b1227b49f5b2a06b967fb59b0da52b1e9 | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | '''
Created by auto_sdk on 2015-01-20 12:44:31
'''
from top.api.base import RestApi
class HotelSoldOrdersIncrementGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_modified = None
self.need_guest = None
self.need_message = None
... | [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
24bce9adfd9986c448487e74e16658ad17c265dd | 786de89be635eb21295070a6a3452f3a7fe6712c | /poster/tags/V00-00-01/SConscript | b190c174d8a3bdc4f9abefb1be153557a06627e1 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | #------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package poster
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file for... | [
"salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
9217751689c20a44cbffa776fd1f9c8aabb36593 | 5a396f14b3689273aaf1a6e20dcb0853d78a9f04 | /GetSharedWithDomainTeamDriveACLs.py | 0c114d9b0daa023ea4ef045d01a424197485f1cf | [] | no_license | NosIreland/GAM-Scripts3 | 642b4dd827189352afd8357a41b576d6acf159bc | de3ee3007e6906c5b6d28fef8aea27827646db00 | refs/heads/master | 2023-03-04T21:58:44.594405 | 2021-02-18T14:39:20 | 2021-02-18T14:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,744 | py | #!/usr/bin/env python3
"""
# Purpose: For a Google Drive User(s), delete all drive file ACLs for Team Drive files shared with a list of specified domains
# Note: This script requires Advanced GAM:
# https://github.com/taers232c/GAMADV-XTD3
# Customize: Set DOMAIN_LIST and DESIRED_ALLOWFILEDISCOVERY
# Python: Use python... | [
"ross.scroggs@gmail.com"
] | ross.scroggs@gmail.com |
dc5f47e41dd896ee44f05aa76d5189db027ffe70 | d2c4151eff768af64946ababc2e41c13d8973cd3 | /ABC146/a.py | c10b5d53d83522345cefe135c52ff627ef03099c | [] | no_license | Intel-out-side/AtCoder | 2de19b71981247135432aed2d6d9c2a16c3ab7f0 | 0c419d2df15fff02032432cb1b1323612484e16e | refs/heads/master | 2022-06-23T04:21:12.886072 | 2022-06-13T14:39:07 | 2022-06-13T14:39:07 | 235,240,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py |
week = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
day = str(input())
if day == "SUN":
result = 7
else:
result = week.index("SUN") - week.index(day)
print(result)
| [
"so.eng.eng.1rou@gmail.com"
] | so.eng.eng.1rou@gmail.com |
cf6a0c4833d16887ee9ee3e5afefb8ed33431c13 | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/tests/integration/targets/launchd/files/ansible_test_service.py | 87a23fc47d816bb4b2deacd93a3bcfb45fbf1a9f | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import sys
if __name__ == '__main__':
if sys.version_info[0] >= 3:
import http.server
import socketserver
PORT = int(sys.argv[1])
Handler = http.server.SimpleHTTPRequestHand... | [
"test@burdo.fr"
] | test@burdo.fr |
4cbf6e3fcafd24fc240850a479e41ddfe6d770ac | d5b339d5b71c2d103b186ed98167b0c9488cff09 | /marvin/cloudstackAPI/deleteCondition.py | e6c1d13261e1a92194f4e5a345cf1351557e1bd8 | [
"Apache-2.0"
] | permissive | maduhu/marvin | 3e5f9b6f797004bcb8ad1d16c7d9c9e26a5e63cc | 211205ae1da4e3f18f9a1763f0f8f4a16093ddb0 | refs/heads/master | 2020-12-02T17:45:35.685447 | 2017-04-03T11:32:11 | 2017-04-03T11:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """Removes a condition"""
from baseCmd import *
from baseResponse import *
class deleteConditionCmd (baseCmd):
typeInfo = {}
def __init__(self):
self.isAsync = "true"
"""the ID of the condition."""
"""Required"""
self.id = None
self.typeInfo['id'] = 'uuid'
self... | [
"int-mccd_jenkins@schubergphilis.com"
] | int-mccd_jenkins@schubergphilis.com |
9fe7a328b27380a9afc1f19106fa9edd8aa1033c | 21208873652ce9a35035801cea488004e337b07b | /data_loader/__init__.py | 784c4dc41287ec0e8680637c3b93983f20eae44f | [
"Apache-2.0"
] | permissive | zlszhonglongshen/crnn.pytorch | 55321a6764a6143be7ab9d2c6b3bcafcdd9470e7 | bf7a7c62376eee93943ca7c68e88e3d563c09aa8 | refs/heads/master | 2022-11-07T22:57:28.983335 | 2020-06-19T03:01:35 | 2020-06-19T03:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | # -*- coding: utf-8 -*-
# @Time : 18-11-16 下午5:46
# @Author : zhoujun
import copy
from torch.utils.data import DataLoader
from torchvision import transforms
def get_dataset(data_path, module_name, transform, dataset_args):
"""
获取训练dataset
:param data_path: dataset文件列表,每个文件内以如下格式存储 ‘path/to/img\tlabel’... | [
"572459439@qq.com"
] | 572459439@qq.com |
b8954b6cea35abb939ed06c8276b23e8b81f83d3 | b2e340f22a7f613dc33ea361ba87a393d65b723c | /LogicAnalyzer/config/config.py | f19d2b4e3d649ece283274df9b734d2dc8094f99 | [
"MIT"
] | permissive | CospanDesign/logic-analyzer | 6369cfc423f3fae050f9ab784a6ae94003422654 | 284ea339c001b4845a46fcb0672511487271c9c3 | refs/heads/master | 2021-01-20T18:58:53.477152 | 2016-06-24T02:22:04 | 2016-06-24T02:22:04 | 61,488,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,335 | py | import logging
import json
TRIGGER = "trigger"
TRIGGER_MASK = "trigger_mask"
TRIGGER_EDGE = "trigger_edge"
TRIGGER_BOTH_EDGE = "both_edges"
TRIGGER_REPEAT = "repeat"
TRIGGER_AFTER = "trigger_after"
CAPABILITY_NAMES = [
TRIGGER,
TRIGGER_MASK,
TRIGGER_EDGE,
TRIGGER_BOTH_EDGE,
TRI... | [
"cospan@gmail.com"
] | cospan@gmail.com |
1935bfa537c5f257092b4e5689d56e2394be68bb | a09c10c29478fed167c94d83d5dff9371f9a1680 | /Client.py | ec5149235aa6288eed9ea16cd6590f770fc45567 | [] | no_license | batra98/Distributed-Web-Cache | 83e208689b18b95724dd0ba657b4ef89e9054d2a | 7e08dfe4dd6739c779c59da3ab7301f3cb33af6a | refs/heads/master | 2022-11-28T05:21:33.220922 | 2020-08-07T10:15:32 | 2020-08-07T10:15:32 | 285,793,260 | 2 | 0 | null | 2020-08-07T09:41:56 | 2020-08-07T09:41:56 | null | UTF-8 | Python | false | false | 1,157 | py | import socket
import sys
def send(ip, port, message):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((ip, port))
try:
sock.sendall(bytes(message, 'ascii'))
response = str(sock.recv(1024), 'ascii')
print("Received: {}".format(response))
return r... | [
"sarthak.singhal@students.iiit.ac.in"
] | sarthak.singhal@students.iiit.ac.in |
02745dd02ec7954ea531da8ddfb292e43a976771 | 8a102033a266d39128e4b64aa0780cf67055e196 | /1330.py | 3fe9a718323d5727aeb4c2c1501dafb25b860ada | [] | no_license | yuseungwoo/baekjoon | 4dec0798b8689b9378121b9d178713c9cf14a53f | 099031e2c4401e27edcdc05bd6c9e6a558b09bb9 | refs/heads/master | 2020-09-03T15:25:40.764723 | 2018-10-08T02:35:27 | 2018-10-08T02:35:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # coding: utf-8
a, b = map(int, input().split())
if a > b:
print('>')
if a < b:
print('<')
if a == b:
print('==')
| [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
2fea730fbc2ed8ead8cdf20b0fe1527890efd6c7 | eee6dd18897d3118f41cb5e6f93f830e06fbfe2f | /venv/lib/python3.6/site-packages/scipy/sparse/bsr.py | 1627132c92f71edcadf2178965702a5a2e4adba9 | [] | no_license | georgeosodo/ml | 2148ecd192ce3d9750951715c9f2bfe041df056a | 48fba92263e9295e9e14697ec00dca35c94d0af0 | refs/heads/master | 2020-03-14T11:39:58.475364 | 2018-04-30T13:13:01 | 2018-04-30T13:13:01 | 131,595,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,024 | py | """Compressed Block Sparse Row matrix format"""
__docformat__ = "restructuredtext en"
__all__ = ['bsr_matrix', 'isspmatrix_bsr']
from warnings import warn
import numpy as np
from .data import _data_matrix, _minmax_mixin
from .compressed import _cs_matrix
from .base import isspmatrix, _formats, spmatrix
from .spu... | [
"georgeosodo2010@gmail.com"
] | georgeosodo2010@gmail.com |
bf91de8bc79c94d76bf93ea0cc534b567dc2e161 | 4d9bd7874fc5a4f2ec56bb172f4e93a9601c4c83 | /main.py | 4864dd4bbecc043b09c96f4fb427a06e03a0c031 | [] | no_license | liziniu/Model-Uncertainty-in-Neural-Networks | ff65009b3c165c4fd82efb9759cb26d41f914a2e | 67c6042c52dd7e7a918ab42d34764bbb9a88c8a2 | refs/heads/master | 2020-05-04T00:26:47.315086 | 2019-04-06T03:19:47 | 2019-04-06T03:19:47 | 178,884,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | from model1.default import get_config
from model1.model import Model
from utli import load_data, get_session, update_para
import argparse
def arg_parse():
parser = argparse.ArgumentParser()
parser.add_argument("--model", type=int, default=1)
parser.add_argument("--epochs", type=int, default=100)
parse... | [
"374387855@qq.com"
] | 374387855@qq.com |
014a6b6fc7c93c425ce7da5ad70dfce4b7273ee8 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/largestTime_20200903122053.py | 697fb00998e96926352a6433e5a6da6d088d57dd | [] | 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 | 552 | py | from itertools import permutations
def Time(A):
# getting the different permutations
# get the one that falls between 0000 and 2359
# then place the semi colon in the proper place
# otherwise return an empty string
A = [str(i) for i in A]
perm = permutations(A)
newArray = []
for i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
47213a723487f5382748a8d76a7546ee674ea1f5 | a26d91163fe40924c7c4f9d94fcd973989b68983 | /watchlist_app/migrations/0003_alter_movie_description.py | bed775bad8d30539b2b34f84c48a3511902e2b22 | [] | no_license | rcoffie/Django-Rest-Tut | a840ecb838098ed2d525c1b5321f042e0d29c5fb | 9925bfb11b92a49aa6973e3929b2d05d9528ee27 | refs/heads/master | 2023-08-25T06:43:41.019767 | 2021-10-27T15:27:06 | 2021-10-27T15:27:06 | 409,567,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.2.5 on 2021-09-23 11:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('watchlist_app', '0002_rename_movies_movie'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='descr... | [
"rcoffie22@yahoo.com"
] | rcoffie22@yahoo.com |
9207f63b377b4990be34f2882127edcd256361e6 | 70e1d7c3e375ecff09df36e5a4ceda5691221968 | /tmp.py | 1936e8cb7425e44fc01199bc2937e82f0e03ce0a | [
"Apache-2.0"
] | permissive | doublechenching/ship_detection | 5b91aa4a7fbe6eb5a88389d1a517641a53740890 | 1ba4926e0d28043863df05ae8afc3d5b336b350d | refs/heads/master | 2020-04-06T17:53:23.855070 | 2018-11-15T08:47:02 | 2018-11-15T08:47:02 | 157,676,999 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | Nucleoplasm 12885 0.25
Cytosol 8228 0.16
Plasma membrane 3777 0.07
Nucleoli 3621 0.07
Mitochondria 2965 0.06
Golgi apparatus 2822 0.06
Nuclear bodies 2513 0.05
Nuclear spe... | [
"vichenqin@gmail.com"
] | vichenqin@gmail.com |
49125a103d0ef8ad23344162256cf34b29c740c5 | 5c0506e42fc7f0325728994223f1b0be4f1187fc | /summa_py_textrank.py | 2fd1d59fa66724ab7ba0f6a9607be02ff57006a6 | [] | no_license | Trevahok/summarizer | 602d492385c3130c6c9f11dd82e71177541ede73 | cfd134e79ec5dfac3530081c6863421ab667207d | refs/heads/master | 2020-03-19T20:36:21.680650 | 2018-06-12T06:54:36 | 2018-06-12T06:54:36 | 136,908,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from urllib.request import urlopen
from summa.summarizer import summarize
from sys import argv
from bs4 import BeautifulSoup as bs
import PyPDF2
def from_link():
page=urlopen(argv[1])
soup=bs(page,'lxml')
text=soup.find_all('p')
text='\n'.join([ i.text for i in text])
print(summarize(text,ratio=0.2... | [
"vighneshss@gmail.com"
] | vighneshss@gmail.com |
c9708fe103af2012e13994b656c45ba4a852077c | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/8kyu-interpreters-hq9-plus/Python/solution1.py | bdd53cce40278d9d04a75b8b2e61e0cc09d79511 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # Python - 3.6.0
gets = lambda i: 's' if i != 1 else ''
HQ9 = {
'H': 'Hello World!',
'Q': 'Q',
'9': '\n'.join(
f'{i} bottle{gets(i)} of beer on the wall, {i} bottle{gets(i)} of beer.\nTake one down and pass it around, {i - 1 if i > 1 else "no more"} bottle{gets(i - 1)} of beer on the wall.' for i i... | [
"d79523@hotmail.com"
] | d79523@hotmail.com |
703a8e40bd746970ed7d5c2e13f250617fe1a660 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s746022410.py | 9331bad8a322a0b5502729d4fc4e2aa050191d05 | [] | 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 | 1,135 | py | import math,itertools,fractions,heapq,collections,bisect,sys,queue,copy
sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
dd=[(-1,0),(0,1),(1,0),(0,-1)]
ddn=[(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
# def LF(): return [float(x) for x in s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b2432c7ce576836fc769e1c9a990bb2a1b00d91c | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /cv2/cv2/MergeExposures.py | 7d68ec4c5e8da4d27c6ad8ddb544c23ea3973a7e | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # encoding: utf-8
# module cv2.cv2
# from F:\Python\Python36\lib\site-packages\cv2\cv2.cp36-win_amd64.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2.cv2 as # F:\Python\Python36\lib\site-packages\cv2\cv2.cp36-win_amd64.pyd
import cv2.Error as Error # <module 'cv2.Error'>
import cv2.cu... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
d40d4c0886ebeb7c5e6c46de7f421799756c92b7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_318/ch23_2019_03_27_15_00_44_973644.py | e268beaac58b3819e4295d3aa5d048c89b2d4156 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | def verifica_idade(x):
if(x>20):
print("Liberado EUA e BRASIL")
return x
if(x<21 and x>17):
print("Liberado BRASIL")
return x
if(x<18):
print("Nao esta liberado")
return x | [
"you@example.com"
] | you@example.com |
3f982e8a36a779567542f4c382cd555febeef961 | ed10dc841d5b4f6a038e8f24f603750992d9fae9 | /lldb/test/API/lang/objc/foundation/TestFoundationDisassembly.py | bf9a40fc8da9b49c77e740cb835ab78aef313bfc | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | WYK15/swift-Ollvm10 | 90c2f0ade099a1cc545183eba5c5a69765320401 | ea68224ab23470963b68dfcc28b5ac769a070ea3 | refs/heads/main | 2023-03-30T20:02:58.305792 | 2021-04-07T02:41:01 | 2021-04-07T02:41:01 | 355,189,226 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,449 | py | """
Test the lldb disassemble command on foundation framework.
"""
import unittest2
import os
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
@skipUnlessDarwin
class FoundationDisassembleTestCase(TestBase):
mydir = TestBase.compute_my... | [
"wangyankun@ishumei.com"
] | wangyankun@ishumei.com |
c46b8a2458a636eea1bde0cc9df07da0126d1e1c | 0c13891448e6c3136e2f651c776d1d11edee2577 | /src/template_method.py | 91d30a13953d467cfa30df4a7500ae59f97997f2 | [
"MIT"
] | permissive | MrRezoo/design-patterns-python | 31cb7b73ae05c5bd361eb3455df234c20529f465 | 8f8e2501ad8e05f1a75ce5be659d926c0ec99698 | refs/heads/master | 2023-08-01T22:01:01.186910 | 2021-10-02T07:57:49 | 2021-10-02T07:57:49 | 349,936,987 | 8 | 1 | MIT | 2021-04-07T14:55:10 | 2021-03-21T08:13:44 | Python | UTF-8 | Python | false | false | 1,178 | py | """
Behavioral pattern:
Template method
Example:
when we have static job between several classes use one ABC class
"""
from abc import ABC, abstractmethod
class Top(ABC):
def template_method(self):
self.first_common()
self.second_common()
self.third_require()
... | [
"rezam578@gmail.com"
] | rezam578@gmail.com |
56fbf2a47fa9865416f2c8ff06113e4b3ebbf002 | 934f170481a5f3807b14823f9e704fd877044d30 | /SAGAN.py | 5af51b32adb641eff5c37319b7332b3957d40e21 | [] | no_license | JustinLion83/Anime-GAN-tensorflow | c234bd28e197a801460683d07aa35d2d80cb96f9 | e3a5fd726aeaf08d01445d8176468d84cd3295f4 | refs/heads/master | 2020-07-03T06:36:25.765500 | 2019-08-17T19:37:04 | 2019-08-17T19:37:04 | 201,822,987 | 0 | 0 | null | 2019-08-11T22:45:42 | 2019-08-11T22:45:42 | null | UTF-8 | Python | false | false | 12,068 | py | from layers import *
import numpy as np
import time
from utils import util
import os
class SAGAN_model(object):
def __init__(self, args):
self.args = args
self.d_loss_log = []
self.g_loss_log = []
self.layer_num = int(np.log2(self.args.img_size[0])) - 3
# inputs
se... | [
"ccjdurandal422@163.com"
] | ccjdurandal422@163.com |
c2d75f8bbadf428b1d890435ae40bd179a74edc5 | 1d1a21b37e1591c5b825299de338d18917715fec | /ML,DL, RL/Machine Learning/ml/m42_xgb_qpu.py | 477dafeb04fe720c755d988a9fb2f21ae8325e6c | [] | no_license | brunoleej/study_git | 46279c3521f090ebf63ee0e1852aa0b6bed11b01 | 0c5c9e490140144caf1149e2e1d9fe5f68cf6294 | refs/heads/main | 2023-08-19T01:07:42.236110 | 2021-08-29T16:20:59 | 2021-08-29T16:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | # XGBoost
# tree_method = 'gpu_hist' : cPU 대신, 실행을 시켰을 때 전체 GPU는 활동을 안하는데 CUDA만 활동
# predictor='gpu_predictor' : GPU로 예측 수행
# predictor='cpu_predictor' : CPU로 예측 수행
# gpu_id=0 : GPU 선택하여 처리
from xgboost import XGBClassifier, XGBRegressor
from sklearn.datasets import load_boston
from sklearn.model_selection import trai... | [
"jk04059@naver.com"
] | jk04059@naver.com |
47b74b1775ebe7c948754a92b962e1cee4c592e8 | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/rankedBattles/RankedBattlesCalendarPopover.py | 1597d3315544c1d1c8513bc4b036cfea883af256 | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,129 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/rankedBattles/RankedBattlesCalendarPopover.py
from datetime import datetime
import BigWorld
from gui.Scaleform.locale.COMMON import COMMON
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
f9a929408b32170e178231ad8907c38aa8647599 | 9cef4ef20efd0eec18846242e78be0b9be144c30 | /teacher_cade/day19/14.greenlet.py | e2d537f9ff67e3f0659a5afb381d8128caa9ab71 | [] | no_license | Vaild/python-learn | 4e6511a62a40b6104b081e0f8fe30f7d829901f5 | 5d602daf3b4b7e42349b7d9251df1f4dd62c299c | refs/heads/master | 2022-11-19T00:47:48.808384 | 2020-07-20T14:27:49 | 2020-07-20T14:27:49 | 279,044,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/python3
# coding=utf-8
from greenlet import greenlet
import time
def test1():
while True:
print("---A--")
gr2.switch()
time.sleep(0.5)
def test2():
while True:
print("---B--")
gr1.switch()
time.sleep(0.5)
gr1 = greenlet(test1)
gr2 = greenlet(test2... | [
"cubersongwenbo@gmail.com"
] | cubersongwenbo@gmail.com |
5cae4351928b729521bafe551e04ae158fbbd2f3 | d60acaac9e460c5693efe61449667b3c399c53c8 | /diffeq/logisticbifurcation.py | 392cc43dfa415350c9c23054e6d5784488977d9c | [] | no_license | HussainAther/mathematics | 53ea7fb2470c88d674faa924405786ba3b860705 | 6849cc891bbb9ac69cb20dfb13fe6bb5bd77d8c5 | refs/heads/master | 2021-07-22T00:07:53.940786 | 2020-05-07T03:11:17 | 2020-05-07T03:11:17 | 157,749,226 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | import matplotlib.pyplot as plt
import numpy as np
"""
Logistic map bifurcation
"""
def logistic(r, x):
"""
Logistic map function for nonlinear systems
"""
return r * x * (1 - x)
x = np.linspace(0, 1)
fig, ax = plt.subplots(1, 1)
ax.plot(x, logistic(2, x), "k")
def plotsystem(r, x0, n, ax=None):
... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
9bc70906c5a573ba42746d4a2f4efbf81e0e86c1 | 98f730ec6a43d8be4a34b0f2a44a9d35989d2287 | /pynifi_client/models/tenants_entity.py | b4af3df3c70dc03de0e1a0bfb4fb63eb26b9a058 | [] | no_license | scottwr98/pynifi-client | 9337a4f322536ee466d419a788b8b5948cdc62d7 | 013ac2ffa591284a0d6cbb9ed552681cc6f91165 | refs/heads/master | 2020-04-18T08:47:03.680749 | 2017-11-04T23:59:58 | 2017-11-04T23:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"ajish@rootedinsights.com"
] | ajish@rootedinsights.com |
d1af6798fa61b5eb64f308f4719273047da1e155 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractSleepysmutCom.py | 315dbd399ffd084df7ad20e203281fee61738490 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 541 | py |
def extractSleepysmutCom(item):
'''
Parser for 'sleepysmut.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loiterous', 'Loiterous... | [
"something@fake-url.com"
] | something@fake-url.com |
b0391f312af0eaea6305f39574b9a3f17f511b59 | b1e7481f8b5bf40c2547c95b1863e25b11b8ef78 | /Kai/crab/NANOv7_NoveCampaign/2018/crab_cfg_2018_ElMu_A.py | 6670c230a950ef43e35c8eec67ec84cd44951904 | [
"Apache-2.0"
] | permissive | NJManganelli/FourTopNAOD | 3df39fd62c0546cdbb1886b23e35ebdc1d3598ad | c86181ae02b1933be59d563c94e76d39b83e0c52 | refs/heads/master | 2022-12-22T22:33:58.697162 | 2022-12-17T01:19:36 | 2022-12-17T01:19:36 | 143,607,743 | 1 | 1 | Apache-2.0 | 2022-06-04T23:11:42 | 2018-08-05T11:40:42 | Python | UTF-8 | Python | false | false | 1,524 | py | import os
from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromCRIC
config = Configuration()
config.section_("General")
config.General.requestName = '2018_ElMu_A'
config.General.transferOutputs = True
config.General.transferLogs = True
config.section_("JobType")
c... | [
"nicholas.james.manganelli@cern.ch"
] | nicholas.james.manganelli@cern.ch |
3fff1e8913ecade61c264485b8d0d2ab2e8f1eef | ff768174490619c119d166273365dcc480e7201c | /tuiuiu/tuiuiuimages/migrations/0008_image_created_at_index.py | dbcc329edff45d13de512a5f638dee64e8a53c0d | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | caputomarcos/tuiuiu.io | 15ea9323be09b69efb6b88490c2bb558ffb4cc55 | d8fb57cf95487e7fe1454b2130ef18acc916da46 | refs/heads/master | 2022-03-02T12:56:43.889894 | 2017-09-23T22:53:51 | 2017-09-23T22:53:51 | 102,543,365 | 3 | 1 | NOASSERTION | 2022-02-02T10:46:32 | 2017-09-06T00:30:06 | Python | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tuiuiuimages', '0007_image_file_size'),
]
operations = [
migrations.AlterField(
model_name='image',
... | [
"caputo.marcos@gmail.com"
] | caputo.marcos@gmail.com |
311abd6f195d36542f90a27ae366b5bbe1325dd5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02586/s677278751.py | be1ac288360753caa4fa9d68ee573cb35be6d292 | [] | 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 | 879 | py | import sys
sys.setrecursionlimit(10**7)
readline = sys.stdin.buffer.readline
def readstr():return readline().rstrip().decode()
def readstrs():return list(readline().decode().split())
def readint():return int(readline())
def readints():return list(map(int,readline().split()))
def printrows(x):print('\n'.join(map(str,x)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
14c287e40ef9f07fe3dd6944c53d3460a99de7cb | 85b7487c00cabf70cbcf180c5015ac4886e78fb1 | /test/support/__init__.py | bdbdb8f5f19075bc664a148dbdf532d577c3550c | [] | no_license | mkatsimpris/test_jpeg | 7e686f27ac54db4128f4edbeb42b7cd284db0fa4 | ee626d87e26a08d5ce80f73a883f00703ff34e70 | refs/heads/master | 2020-04-06T04:49:58.952565 | 2016-08-17T21:41:25 | 2016-08-17T21:41:25 | 49,828,665 | 3 | 2 | null | 2016-07-25T16:50:52 | 2016-01-17T17:58:21 | Verilog | UTF-8 | Python | false | false | 254 | py |
from __future__ import absolute_import
from .jpeg_prep_cosim import prep_cosim
from .jpeg_v1_intf import JPEGEncV1
from .jpeg_v2_intf import JPEGEncV2
from .jpegenc_v1_top import convert as convertv1
from .utils import set_default_args, get_cli_args
| [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
19f97b46e444e83a2f72744a9002611efe7ccf0a | 69e5676a801c5446ddec5e1cfd8daf527dbb3ab9 | /stringcheese/wrangling/get_fficutout.py | 917178ace1351e624d1dfa092c3a7e383136a123 | [
"MIT"
] | permissive | lgbouma/stringcheese | 96d8d48aaa8da9da92744401bba5498399758636 | e7f5919335f18d54f331e67f4df1a48e4904526d | refs/heads/master | 2020-07-07T10:11:29.697659 | 2020-03-29T19:05:52 | 2020-03-29T19:05:52 | 203,321,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import requests
from astroquery.mast import Tesscut
def get_fficutout(c_obj, cutoutdir=None, sector=None):
# c_obj (SkyCoord): location of target star
print('beginning download tesscut for {}'.format(repr(c_obj)))
try:
tab = Tesscut.download_cutouts(c_obj, size=20, sector=sector,
... | [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
0945e2340abb7961a09bf19356b325727714a0a7 | b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e | /build/shogun_lib/examples/undocumented/python_modular/kernel_spherical_modular.py | ef002d63c31f4dc1896ca111b2223acffcd201b9 | [] | no_license | behollis/muViewBranch | 384f8f97f67723b2a4019294854969d6fc1f53e8 | 1d80914f57e47b3ad565c4696861f7b3213675e0 | refs/heads/master | 2021-01-10T13:22:28.580069 | 2015-10-27T21:43:20 | 2015-10-27T21:43:20 | 45,059,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from tools.load import LoadMatrix
from numpy import where
lm=LoadMatrix()
traindat = lm.load_numbers('../data/fm_train_real.dat')
testdat = lm.load_numbers('../data/fm_test_real.dat')
parameter_list=[[traindat,testdat, 1.0],[traindat,testdat, 5.0]]
def kernel_spherical_modular (fm_train_real=traindat,fm_test_real=te... | [
"prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305"
] | prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305 |
e5606578ee246cb02c6785fd196d6805f1b96756 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/ldif.py | a96b5a03bce37713258634fe0021605318f206ef | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 18,540 | py | """
ldif - generate and parse LDIF data (see RFC 2849)
See http://www.python-ldap.org/ for details.
$Id: ldif.py,v 1.101 2016/11/11 14:41:07 stroeder Exp $
Python compability note:
Tested with Python 2.0+, but should work with Python 1.5.2+.
"""
__version__ = '2.4.28'
__all__ = [
# constants
'ldif_pattern',
... | [
"admin@example.com"
] | admin@example.com |
ec1e5dbc338ecf43d1bd53ded885b1450fb0c5be | da570c2047d335b3553e63c27ac7f60b57b28b7e | /images/urls.py | 6c3df5aaf6b9ca607cd5fbcabe80ae605ee575b6 | [
"MIT"
] | permissive | mfannick/viewImages | 8c799fc52566de03f4909d36f5ccc50e7fff9564 | 27e447faff455fba306ef3e677d5f2f63160065e | refs/heads/master | 2021-09-09T11:53:42.786004 | 2019-10-14T09:21:16 | 2019-10-14T09:21:16 | 214,357,014 | 0 | 0 | null | 2021-09-08T01:21:15 | 2019-10-11T06:11:06 | Python | UTF-8 | Python | false | false | 425 | py | from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
url('^$' ,views.homePage,name='homePage'),
url(r'^search/', views.searchImageByCategory, name='searchImageByCategory'),
url(r'^description/(\d+)',views.imageDescrip... | [
"mfannick1@gmail.com"
] | mfannick1@gmail.com |
546d674261f3df935f47d76c22d816e02e5c5599 | 4e0ee2b68398a90b0986975f645350033a624558 | /tests/onnx_resnet18/test_onnx_resnet18_int8.py | 5c23ade3f33cd92e177415de06a1d717c36ea894 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kindsenior/nngen | 697b80b32cf2b33e7f2c64e4d1a27eb2d739b30c | 301b19b35e50174d8abb1a757b061ae80cdfe612 | refs/heads/master | 2022-09-21T05:53:34.565461 | 2020-05-03T14:58:19 | 2020-05-03T14:58:19 | 269,007,213 | 0 | 0 | Apache-2.0 | 2020-06-03T06:26:43 | 2020-06-03T06:26:42 | null | UTF-8 | Python | false | false | 2,129 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))
import nngen as ng
import veriloggen
import onnx_resnet18
act_dt... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
0c537c7a76a12d5ad4b319e5ecd8695d74b3b0f6 | 5c5458622ab8413fef8ab11ef5e09dcdcd42ff69 | /1.py | ad47b2fba1e02ef70d242917fbf7c8954a6efe8d | [] | no_license | zhenyakeg/Console | 127fbbfe33cf86a0e4d5eb968c783407168364f5 | 31eea7a22a95701049872d4da2c01307f05e920d | refs/heads/master | 2021-01-13T10:06:17.797796 | 2016-10-27T17:59:03 | 2016-10-27T17:59:03 | 72,119,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | __author__ = 'student'
# импортируем модуль
import sys
# выводим на экран список всех аргументов
s=0
for arg in sys.argv:
if len(arg) == 3:
s+=1
print (s) | [
"egor.rozinskiy@mail.ru"
] | egor.rozinskiy@mail.ru |
ed817dc1416c6f9ee3bd63420344cf905981be76 | f8b77d8b7d90dabfa3b222116d9fe462d890e89b | /plans/fixed_ensemble_resnet_linear_4.py | 53480a497b356b8478b73ceacb2478cfd372a96e | [
"BSD-2-Clause"
] | permissive | dbis-uibk/MediaEval2021 | 94e4041d6e82a28ceb95c68994808d0acc725915 | 14d754d9cea36415090aaa115db81f5ace465964 | refs/heads/master | 2023-08-27T19:12:17.758042 | 2021-11-03T12:12:57 | 2021-11-03T12:12:57 | 424,210,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | """Ensemble plan manually split by type moode/theme."""
import json
from dbispipeline.evaluators import FixedSplitEvaluator
from dbispipeline.evaluators import ModelCallbackWrapper
import numpy as np
from sklearn.pipeline import Pipeline
from mediaeval2021 import common
from mediaeval2021.dataloaders.melspectrograms ... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
8c55b1b583c89eaaf63961ca00dde5c69b6b67c5 | 5e5799e0ccce7a72d514fbc76dcb0a2108013f18 | /Textfile2DefDomGeom.py | 710ab37655fe1cd3158b6347c04304f6a2e29644 | [] | no_license | sourcery-ai-bot/dash | 6d68937d225473d06a18ef64079a4b3717b5c12c | e1d1c3a601cd397d2508bfd4bb12bdb4e878cd9a | refs/heads/master | 2023-03-07T17:15:39.174964 | 2011-03-01T17:11:21 | 2011-03-01T17:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #!/usr/bin/env python
#
# Use doms.txt or nicknames.txt file to create a default-dom-geometry file and
# print the result to sys.stdout
#
# URL: http://icecube.wisc.edu/~testdaq/database_files/nicknames.txt
import sys
from DefaultDomGeometry import DefaultDomGeometryReader, DomsTxtReader, \
NicknameReader
if __n... | [
"dglo@icecube.wisc.edu"
] | dglo@icecube.wisc.edu |
0365a71e6ddcbf5d739bd768676f3f793715d525 | 1799fe1d9dfcf5f9619a87a11f3fa6170e1864fc | /00998/test_maximum_binary_tree_ii.py | 44cc467d9b38a539320c803e7bc639b674e44c3e | [] | no_license | SinCatGit/leetcode | 5e52b49324d16a96de1ba4804e3d17569377e804 | 399e40e15cd64781a3cea295bf29467d2284d2ae | refs/heads/master | 2021-07-05T18:51:46.018138 | 2020-04-25T04:06:48 | 2020-04-25T04:06:48 | 234,226,791 | 1 | 1 | null | 2021-04-20T19:17:43 | 2020-01-16T03:27:08 | Python | UTF-8 | Python | false | false | 1,519 | py | import unittest
from maximum_binary_tree_ii import Solution, TreeNode
class TestSolution(unittest.TestCase):
def test_Calculate_Solution(self):
solution = Solution()
# 6
# / \
# 1 4
# / \
# 3 2
t25 = TreeNode(6)
t21 = TreeNode(... | [
"sincat@126.com"
] | sincat@126.com |
1230bd8aea0ed2cf0e02c98811fd1bca3bac9353 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/smallestGoodBase/smallestGoodBase.py | 0fc48f86b09d916c4865349241f9dfd2a7f0a365 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/smallest-good-base/
# Author: Miao Zhang
# Date: 2021-02-15
class Solution:
def smallestGoodBase(self, n: str) -> str:
num = int(n)
# n = 1 + k + k^2+....k^(m - 1)
# i:m
for i in range(int(mat... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
35b1952b06b8274553605dae56d4b25d5da81a3d | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211116215222.py | 58d5bb8d7d70ef65639f0d85425607bc5e56f6aa | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 11,136 | py | import data as list_product
import random
import pandas as pd
# def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
# self.Id = Id
# self.Product_code = Product_code
# self.Product_name = Product_name
# self.Brand = Brand
# self.Year = Year
# self.Size = Size
# Thêm sản phẩ... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
a819988d7ff2b5dd395cdf6647f534d1e2bd76d9 | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/build/v2/test/test2.py | cb74b851f46253b5bae80ccdd8ca872abd5ef6de | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/python
from BoostBuild import Tester, List
from time import sleep
t = Tester()
t.set_tree("test2")
t.run_build_system("-sBOOST_BUILD_PATH=" + t.original_workdir + "/..")
file_list = 'bin/foo/$toolset/debug/runtime-link-dynamic/' * List("foo foo.o")
t.expect_addition(file_list)
t.write("foo.cpp", "int m... | [
"quhang@stanford.edu"
] | quhang@stanford.edu |
b454e42a2bc91d38dbdb4c2052da1a603fdaf6db | 4f026ddcf8f058d884f15259f0e42c2178eb2157 | /clare/clare/application/factories.py | 0dadccd763c699f4a366d61970db657bafff708f | [
"MIT"
] | permissive | dnguyen0304/roomlistwatcher | afd95e5f601f77fc8d7c4cd4307e60f36b53162c | 7ac4d5172de22dd8906662da521995c8e06c2617 | refs/heads/master | 2021-01-20T22:55:04.289589 | 2017-11-16T04:09:49 | 2017-11-16T04:09:49 | 101,829,306 | 0 | 0 | null | 2017-11-16T04:09:49 | 2017-08-30T02:38:56 | Python | UTF-8 | Python | false | false | 2,677 | py | # -*- coding: utf-8 -*-
import Queue
import os
import threading
import uuid
from . import applications
from . import download_bot
from . import room_list_watcher
class Application(object):
def __init__(self, infrastructure, properties):
"""
Parameters
----------
infrastructure ... | [
"dnguyen0304@gmail.com"
] | dnguyen0304@gmail.com |
7b11a37746ad28f3e18303de213f4beb2bbb4404 | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/SimTotem/RPTimingDetectorsDigiProducer/python/BeamMisalignmentFinder.py | 3ff7d944d97f722285c3413832867036093dcd54 | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,414 | py | import ROOT
import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from scipy import exp
parser = argparse.ArgumentParser(description='Finds beam misaligned between given template and misaligned ntuple')
parser.add_argument('template_file', metavar='template_f... | [
"eliza@cern.ch"
] | eliza@cern.ch |
04a0ae35c0b49d0518e6a68d481f6e317f214115 | 3a8c2bd3b8df9054ed0c26f48616209859faa719 | /Challenges/surroundedRegions.py | 570dcbb6b411e6fd035814e01998a9a4779b635f | [] | 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 | 1,718 | py | """
Surrounded Regions
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's in that surrounded region.
Example:
X X X X
X O O X
X X O X
X O X X
After running your function, the board should be:
X X X X
X X X X
X X X X
X O... | [
"bennyhwanggggg@users.noreply.github.com"
] | bennyhwanggggg@users.noreply.github.com |
dece0de38d388908615b7dfa117a5a0a64cc883f | fe40fb53bdeb3d693174a57fe336503e92fe299b | /eheritage/utils.py | f8dbc0756aecfe7426966fb4198086045afbacea | [
"BSD-2-Clause"
] | permissive | uq-eresearch/eheritage | 8c8d096d43888e6e41fbbacdf55f2c6808bace27 | e4a2f01c56d438d8b3f4de63d50d979a8105d652 | refs/heads/master | 2022-07-18T19:21:53.224175 | 2016-08-05T02:40:08 | 2016-08-05T02:40:08 | 18,045,275 | 0 | 0 | BSD-3-Clause | 2022-07-06T19:49:44 | 2014-03-23T22:33:56 | HTML | UTF-8 | Python | false | false | 281 | py | from flask.json import JSONEncoder
class IterableAwareEncoder(JSONEncoder):
def default(self, o):
try:
iterable = iter(o)
except TypeError:
pass
else:
return list(iterable)
return JSONEncoder.default(self, o) | [
"damien@omad.net"
] | damien@omad.net |
53184abe0b9d0cc7e28ab1ab15066c700988bf39 | 22bcb68759d516eea70d18116cd434fcd0a9d842 | /scrap/booksadda_scrap.py | f8cbcbef3fd0f32b0ab736622fb7afee1cde6327 | [] | no_license | lovesh/abhiabhi-web-scrapper | 1f5da38c873fea74870d59f61c3c4f52b50f1886 | b66fcadc56377276f625530bdf8e739a01cbe16b | refs/heads/master | 2021-01-01T17:16:51.577914 | 2014-10-18T15:56:42 | 2014-10-18T15:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,758 | py | import downloader
import dom
import urllib
import re
import time
import datetime
import simplejson as json
import pymongo
from collections import defaultdict
import util
siteurl='http://www.bookadda.com/'
books=[]
book_urls=set()
logfile=open('bookadda_log.txt','w')
dl=downloader.Downloader()
... | [
"lovesh.bond@gmail.com"
] | lovesh.bond@gmail.com |
a07324a9d67bfb019bf47a4e379d797eab6ed5f3 | 728f639b8d536348e200a6c6b8dfd3e70a781d85 | /HTMLTestRunner测试报告&unittest/可以复用项目/webTest/comm/common.py | 967c849ad0793853febfe741f742e28639cee19c | [] | no_license | jingshiyue/my_dict_forPython | 00adad2a1492b7ecff66a3de44793f17682aaea6 | 7a0da28d68eb130e62d196467d0ef0ee3d8ebf95 | refs/heads/master | 2023-04-05T18:29:36.707082 | 2023-03-30T10:30:13 | 2023-03-30T10:30:13 | 192,511,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,436 | py | # -*- coding:utf-8 -*-
import os
import readConfig as readConfig
from xlrd import open_workbook
from xml.etree import ElementTree as ElementTree
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from comm.webDriver import MyDriver as Driver
import time
import comm.runSet as r... | [
"173302591@qq.com"
] | 173302591@qq.com |
a40004ba548e520cede3f28efbf8c20e012e0185 | 373cd41477438cc8826cd2a2f8689be84f486339 | /msticpy/config/ce_data_providers.py | 461dd3a6013e76b92a7875acbbc937f2d5327b61 | [
"LicenseRef-scancode-generic-cla",
"LGPL-3.0-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"ISC",
"LGPL-2.0-or-later",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.1-only",
"Unlicense",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"MIT",
"LGPL-2.1-or-later",
"GPL-2.... | permissive | RiskIQ/msticpy | cd42d601144299ec43631554076cc52cbb42dc98 | 44b1a390510f9be2772ec62cb95d0fc67dfc234b | refs/heads/master | 2023-08-27T00:11:30.098917 | 2021-06-17T22:54:29 | 2021-06-17T22:54:29 | 374,787,165 | 1 | 0 | MIT | 2021-09-16T19:05:43 | 2021-06-07T20:05:09 | Python | UTF-8 | Python | false | false | 1,049 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Data Pr... | [
"noreply@github.com"
] | RiskIQ.noreply@github.com |
09cebb2e4a74f46e415c95b46e898d0f613ea202 | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Grav Comp Ramp.sub.py | d53530d7c120d2b2fbd9cc6eeda242696b5c8d6d | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(0, "Grav Comp", 0.000000)
return prg
| [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
b4e3ece9d63cafcc0094b68b757097aa4f19d1a0 | 6c00499dfe1501294ac56b0d1607fb942aafc2ee | /eventregistry/Query.py | b5101c6dd57c31efc43c5f5eb21add58b4e548fd | [
"MIT"
] | permissive | EventRegistry/event-registry-python | dd692729cb5c505e421d4b771804e712e5b6442b | bf3ce144fa61cc195840591bae5ca88b31ca9139 | refs/heads/master | 2023-07-06T11:04:41.033864 | 2023-06-23T08:40:31 | 2023-06-23T08:40:31 | 40,995,963 | 176 | 48 | MIT | 2020-10-21T09:17:06 | 2015-08-18T20:29:23 | Python | UTF-8 | Python | false | false | 16,151 | py | from .Base import QueryParamsBase, QueryItems
import six, datetime
from typing import Union, List
class _QueryCore(object):
def __init__(self):
self._queryObj = {}
def getQuery(self):
return self._queryObj
def setQueryParam(self, paramName, val):
self._queryObj[paramName] = val... | [
"gleban@gmail.com"
] | gleban@gmail.com |
ecffd0cb40db3a2541dd08f1f6cbc13ea53320ed | ed0dd577f03a804cdc274f6c7558fafaac574dff | /python/pyre/weaver/mills/CxxMill.py | d5307d0adaae8fcbb9fa32dd74b5c3f627978cec | [
"Apache-2.0"
] | permissive | leandromoreira/vmaf | fd26e2859136126ecc8e9feeebe38a51d14db3de | a4cf599444701ea168f966162194f608b4e68697 | refs/heads/master | 2021-01-19T03:43:15.677322 | 2016-10-08T18:02:22 | 2016-10-08T18:02:22 | 70,248,500 | 3 | 0 | null | 2016-10-07T13:21:28 | 2016-10-07T13:21:27 | null | UTF-8 | Python | false | false | 701 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~... | [
"zli@netflix.com"
] | zli@netflix.com |
e4819429a7fe9df8fcb508e0a4e58e531c3b358e | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes/472.py | cd01befc97225989650424096a854c59ae1dc148 | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,948 | py | data = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
... | [
"jonathan.sanderson@northumbria.ac.uk"
] | jonathan.sanderson@northumbria.ac.uk |
d4adbe198d9a9e8a3154b16d3b046067822802d5 | 2836c3caf8ca332635640a27254a345afd449081 | /iem/regain_hour_map.py | b88680e83d256a083176bb0d735984295da3bb65 | [
"Apache-2.0",
"MIT"
] | permissive | akrherz/DEV | 27cf1bac978a0d6bbfba1851b90d2495a3bdcd66 | 3b1ef5841b25365d9b256467e774f35c28866961 | refs/heads/main | 2023-08-30T10:02:52.750739 | 2023-08-29T03:08:01 | 2023-08-29T03:08:01 | 65,409,757 | 2 | 0 | MIT | 2023-09-12T03:06:07 | 2016-08-10T19:16:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,689 | py | """Plot the scam that is DST"""
import ephem
import mx.DateTime
import tqdm
from pyiem.plot import MapPlot
def compute_sunrise(lat, long):
arr = []
sun = ephem.Sun()
ames = ephem.Observer()
ames.lat = lat
ames.long = long
sts = mx.DateTime.DateTime(2018, 3, 10)
interval = mx.DateTime.Rel... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
dd2f007d5531fe7a3a72581701ad253e6d6eb614 | 9815041feb5bd2a89e39d86e544ca44c2e17e318 | /config/settings.py | fdd605a6aef832ee03fc0708d15aa8ca4282d1b3 | [] | no_license | raimbaev223/django-docker-postgres-template | 5ecb62fdc57bb3af77815c3c4d1f03c98d0fdaf3 | f97449cf90b87daed374576ba52e545fc1694be0 | refs/heads/master | 2023-04-03T05:22:38.668148 | 2021-04-05T10:47:52 | 2021-04-05T10:47:52 | 354,720,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | """
Django settings for djangoforprofessionals_ch3 project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings... | [
"raimbaev.223@gmail.com"
] | raimbaev.223@gmail.com |
60d6cb2db006e20e4b18abeedfcd5b7a69a9801b | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /tree/653.two_sum_IV_input_is_a_BST.py | 4ece9fd24ef54b435eb886456dcb70ac2d4e7d17 | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.
Example 1:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 9
Output: True
Example 2:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 28
Output:... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
6c0c670495008cbd06140f21e047f3da7ee7a9c9 | 6ceea2578be0cbc1543be3649d0ad01dd55072aa | /src/examples/elphf/diffusion/mesh1D.py | b8a851a3a7a81fb4e593b52c70dcb733f0cf0331 | [
"LicenseRef-scancode-public-domain"
] | permissive | regmi/fipy | 57972add2cc8e6c04fda09ff2faca9a2c45ad19d | eb4aacf5a8e35cdb0e41beb0d79a93e7c8aacbad | refs/heads/master | 2020-04-27T13:51:45.095692 | 2010-04-09T07:32:42 | 2010-04-09T07:32:42 | 602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,365 | py | #!/usr/bin/env python
##
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "mesh1D.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James Warren <jwarren@nist.gov>
... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
8a6f89c809cc96aab322db6b24f652d3838b3138 | 487fb49582444005fd55158b22b1428b8146adf4 | /models/resnet.py | 11f4cf9e8341e90600c0c78c9b3cd99c77f7d32e | [] | no_license | speciallan/BCNN | c7a7374931b581c73b8b24ec5e31b77578bdf6b0 | 6964181acb35c3005f65fb0aa38263a986efcaf0 | refs/heads/master | 2020-09-21T18:18:03.819322 | 2019-12-23T12:19:25 | 2019-12-23T12:19:25 | 224,879,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,474 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Speciallan
"""ResNet, ResNetV2, and ResNeXt models for Keras.
# Reference papers
- [Deep Residual Learning for Image Recognition]
(https://arxiv.org/abs/1512.03385) (CVPR 2016 Best Paper Award)
- [Identity Mappings in Deep Residual Networks]
(https://arxiv.org/... | [
"350394776@qq.com"
] | 350394776@qq.com |
f1bfe5de0e26671054c332bdfc93d2f0d9d4265e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_070/ch74_2020_04_06_14_56_45_688915.py | fbd6fc22f27f23767e365de5db1099f9b9558694 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | def conta_bigramas(x):
dicionario = {}
for i in range(len(x)-1):
dicionario[x[i],x[i+1]] = 0
for i in range(len(x)-1):
dicionario[x[i],x[i+1]] += 1
return dicionario | [
"you@example.com"
] | you@example.com |
9c71981567308ad84f8cdd6d9663bb32cd4dd6f4 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/neekanee_solr/solr_query_builder.py | bb3792600dc6a9c0af8eefbc4cd05bff2fbb4fb6 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,806 | py | KM_PER_MILE = 1.61
class SOLRQueryBuilder():
"""
Build a SOLR query given a GET QueryDict for a job search.
"""
def __init__(self):
self.qdict = {}
#
# Mapping of refine search query parameter names to SOLR doc
# field names. All refine search query parameters are impl... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
5b08a8497e67c4ad8f4ea6744c7a8bec7de04b04 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_08_01/aio/operations/_ssh_public_keys_operations.py | 3272fd669e75a7dc41ea48ede8265410af966dc1 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 30,872 | 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"
] | kurtzeborn.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.