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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f0b0e2ec965e20e43fb23b5448100e0bb25dab7 | 07c4c39a3f43aa41327702329cddf555ac489f0e | /.PyCharmCE2019.1/system/python_stubs/1499390420/_testimportmultiple.py | a121bb80866df319713807e747fdff1ed537edf3 | [] | no_license | shirotakoki/teran | a2ba42c2d2c605c7421b35dc1dfa5f51baec0fd7 | 13c5e8d7484d148c3490726aa860d5a10165381b | refs/heads/master | 2023-02-04T21:18:51.829188 | 2020-09-27T08:26:54 | 2020-09-27T08:26:54 | 323,551,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # encoding: utf-8
# module _testimportmultiple
# from (pre-generated)
# by generator 1.147
""" _testimportmultiple doc """
# no imports
# no functions
# no classes
# variables with complex values
__loader__ = None # (!) real value is '<_frozen_importlib_external.ExtensionFileLoader object at 0x000001822B6AC278>'
__s... | [
"teranosinn@gmail.com"
] | teranosinn@gmail.com |
be18bcdf9daed43e4433f0eb5f5327324f0db047 | ab4f0df599159b2c3929c24b12e2766718efdacb | /pyplan/pyplan/company_preference/service.py | eeebe73da3ea4ef65ac600982c1505f4f7cefead | [
"MIT"
] | permissive | jorgedouglas71/pyplan-ide | f01ec438f727ee0dea01b0d265155b49a26ccdb8 | 5ad0e4a2592b5f2716ff680018f717c65de140f5 | refs/heads/master | 2020-09-25T03:10:01.201707 | 2019-12-04T15:39:55 | 2019-12-04T15:39:55 | 225,904,173 | 0 | 0 | MIT | 2019-12-04T15:57:06 | 2019-12-04T15:57:05 | null | UTF-8 | Python | false | false | 1,118 | py | from pyplan.pyplan.common.baseService import BaseService
from pyplan.pyplan.company_preference.models import CompanyPreference
from pyplan.pyplan.preference.models import Preference
from .models import CompanyPreference
class CompanyPreferenceService(BaseService):
def getCompanyPreferences(self):
compan... | [
"fbrussa@novix.com"
] | fbrussa@novix.com |
77ca2e55850dee360a2258f208c9483676318f27 | 8a452b71e3942d762fc2e86e49e72eac951b7eba | /leetcode/editor/en/[1561]Maximum Number of Coins You Can Get.py | 3224533336f1c74620a3a7f2ac88d5f9692ff51e | [] | no_license | tainenko/Leetcode2019 | 7bea3a6545f97c678a176b93d6622f1f87e0f0df | 8595b04cf5a024c2cd8a97f750d890a818568401 | refs/heads/master | 2023-08-02T18:10:59.542292 | 2023-08-02T17:25:49 | 2023-08-02T17:25:49 | 178,761,023 | 5 | 0 | null | 2019-08-27T10:59:12 | 2019-04-01T01:04:21 | JavaScript | UTF-8 | Python | false | false | 1,863 | py | # There are 3n piles of coins of varying size, you and your friends will take
# piles of coins as follows:
#
#
# In each step, you will choose any 3 piles of coins (not necessarily
# consecutive).
# Of your choice, Alice will pick the pile with the maximum number of coins.
# You will pick the next pile with ... | [
"31752048+tainenko@users.noreply.github.com"
] | 31752048+tainenko@users.noreply.github.com |
65acca24329e31fa6f34791b79dd3b892a004aa4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch69_2020_04_23_19_56_49_896891.py | 32c0e7e037c8186b883fa9aa542a755a7df87196 | [] | 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 | 205 | py | def junta_listas(listas):
nova = []
i = 0
while i < len(listas)
for numeros in listas[i]:
if not numeros in nova:
nova.append(numeros)
i+=1
return nova
| [
"you@example.com"
] | you@example.com |
62bb102ba2a60596fb372265c4e05426253a5f45 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/621-tideGauge.py | 02ca572a84e429a8c0dd07bb3bd2d32cdf4d89d9 | [] | 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 | 7,456 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
4602c28a5f519c2be2037d886b225ed82cb9ff2f | 98b7f4195e7021fea7734dba67de32449ab1b77c | /blog/migrations/0014_auto_20180717_1728.py | a3f3cbdce9cc0f279c9d71924e7780e28a476d46 | [] | no_license | muremwa/Manhattan | 828029e8cf3ffa01d3397d024867e0d5fe44a310 | 1e67a1b1903484412eec1c09fca62e327b73f529 | refs/heads/master | 2021-06-30T19:48:27.066501 | 2020-09-09T13:42:48 | 2020-09-09T13:42:48 | 139,947,468 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Generated by Django 2.0 on 2018-07-17 14:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0013_auto_20180717_1719'),
]
operations = [
migrations.AlterField(
model_name='comment',
... | [
"danmburu254@gmail.com"
] | danmburu254@gmail.com |
469da78c4edb785be0d614e0aef5b409d4900e96 | 726fd38b76b337e9e12c95e41888741f83aab774 | /examples/sync_client.py | 11aeceec2fab02920f635c78706a6d123e0339f4 | [
"Apache-2.0"
] | permissive | oh8/rpc.py | 587f2270bf00eb1e076d3f08fe8c8a733a3137c5 | dab30df04b4d4f64100f83dc267ddc4adb8b7785 | refs/heads/master | 2023-03-04T01:34:35.313950 | 2021-02-17T14:34:48 | 2021-02-17T14:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from typing import Generator
import httpx
from rpcpy.client import Client
from rpcpy.typing import TypedDict
app = Client(httpx.Client(), base_url="http://127.0.0.1:65432/")
@app.remote_call
def none() -> None:
...
@app.remote_call
def sayhi(name: str) -> str:
...
@app.remote_call
def yield_data(max_num... | [
"me@abersheeran.com"
] | me@abersheeran.com |
51c18e9051a72e439d7206a22796eec295f47247 | f0270e8e90376ba2c5bfe46aa8f477adf1dfb47c | /problems/tests/test_kth_largest_element_in_an_array.py | e6ceb3b48b1b66156617948cc33d8b4db9026d38 | [
"MIT"
] | permissive | alijay110/fuck-coding-interviews | 55464fb46a31605d8f6c6abacdb27f86b2c57021 | 96d1de59c7630f7dca5d90b29fb84c02d85c9882 | refs/heads/master | 2022-12-24T23:01:11.347188 | 2020-10-06T11:11:10 | 2020-10-06T11:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | # coding: utf-8
import unittest
from problems.kth_largest_element_in_an_array import Solution
from problems.kth_largest_element_in_an_array import Solution2
from problems.kth_largest_element_in_an_array import Solution3
class TestCase(unittest.TestCase):
def setUp(self):
self.solution = Solution()
d... | [
"vinta.chen@gmail.com"
] | vinta.chen@gmail.com |
6c06faa7fc967f84b88cb58b26e95f9db5c1b7ec | 73305ddcc6dc9775b1e9a71506e2f3c74f678edc | /dags/cm360_conversion_upload_from_sheets_dag.py | b742fb8d4c116b2c75feaefdb2e88cc6c524476c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | google/starthinker | ef359557da4140275a8524d0d813eecf022ece9e | b596df09c52511e2e0c0987f6245aa4607190dd0 | refs/heads/master | 2023-08-25T21:16:45.578012 | 2023-07-17T22:19:18 | 2023-07-17T22:20:10 | 123,017,995 | 167 | 64 | Apache-2.0 | 2023-08-02T01:24:51 | 2018-02-26T19:15:09 | Python | UTF-8 | Python | false | false | 6,260 | py | ###########################################################################
#
# 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
#
# https://www.apache.org/l... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4761d4aa5cb4aa7877cadb298f38086cf783f747 | 19bc4d44dc7303e23a6949b1bc7b98b65bcf80e9 | /python/Linear Regression in Python/Simple Linear Regression/Introduction to Linear Regression/equation_of_a_line.py | 8faa1b551fd4ccfb1552b18caf7a662eeacd40e5 | [] | no_license | henry1034/Challenge-Project-of-CodeCademy | c66190ff3a318e22f263fcf78344632773065c24 | 61ebe84696cec120393acca62b4fce4bdea0fb30 | refs/heads/master | 2023-07-04T01:04:16.978374 | 2021-07-29T17:27:56 | 2021-07-29T17:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Load libraries
import codecademylib3
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Read in the data
students = pd.read_csv('test_data.csv')
# Write equation for a line
predicted_score = 10 * students.hours_studied + 45
# Create the plot
plt.scatter(students.hours_studied, students.score)... | [
"noreply@github.com"
] | henry1034.noreply@github.com |
17ca94e38ab40632304ef1ff8c3384b432b0b15c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03504/s226486800.py | 456e15462b7145c4c423f68bc4bf533248d4749d | [] | 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 | 874 | py | import sys
from collections import *
import heapq
import math
# from math import gcd
import bisect
import copy
from itertools import permutations,accumulate,combinations,product
def input():
return sys.stdin.readline()[:-1]
def ruiseki(lst):
return [0]+list(accumulate(lst))
mod=pow(10,9)+7
al=[chr(ord('a') + i)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bb362717290258804fe7054c4500e37ccc5b3102 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/python/keras/_impl/keras/layers/pooling.py | 3cba7821d3afe6f1dde4e35a66a74fd5091962f6 | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/python/keras/_impl/keras/layers/pooling.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
03cc8f9c062cd26652f112d452b6a5f2c2703411 | d9f52125601ec26f79202f0e912891b31b60ffc4 | /오전반/Strings/1_sWAP_cASE/1_sWAP_cASE_LGY.py | ee26dc6ae77eee149d933f3e4d271250f5188cd0 | [] | no_license | YoungGaLee/2020_Python_coding-study | 5a4f36a39021c89ac773a3a7878c44bf8b0b811f | b876aabc747709afa21035c3afa7e3f7ee01b26a | refs/heads/master | 2022-12-12T13:34:44.729245 | 2020-09-07T04:07:48 | 2020-09-07T04:07:48 | 280,745,587 | 4 | 4 | null | 2020-07-22T03:27:22 | 2020-07-18T21:51:40 | Python | UTF-8 | Python | false | false | 260 | py | def swap_case(S):
total = ""
for s in S:
if s.isupper() == 1 :
total += s.lower()
else:
total += s.upper()
return total
if __name__ == '__main__':
s = input()
result = swap_case(s)
print(result)
| [
"noreply@github.com"
] | YoungGaLee.noreply@github.com |
76752f99b2cbf458d9e766dd8092ebb468d75387 | 6d69b249a81e076d79787dd08eb8957908052052 | /core/storage/postponed/debug/debug.py | 22712ff1b0d25899424b23ade487e51ed13cb45e | [] | no_license | 2vitalik/wiktionary | 02ee1f1327c3b82fc7b4d7da12083b1431b1eb8b | 8edae2f7dcf9089084c5ce7033c4fb0b454f4dfa | refs/heads/master | 2023-02-06T11:28:41.554604 | 2023-02-05T22:49:01 | 2023-02-05T22:49:01 | 121,025,447 | 7 | 2 | null | 2021-10-13T17:36:32 | 2018-02-10T15:06:24 | Lua | UTF-8 | Python | false | false | 489 | py | from libs.utils.debug import debug
from libs.utils.dt import dt
class DebugMixin:
@debug
def _debug_title(self, i, title):
print(dt(), i, title, ' -- ', end='')
@debug
def _debug_info(self, info):
print(info, ' -- ', end='')
@debug
def _debug_skipped(self):
print('s... | [
"vitaliy.lyapota@anvileight.com"
] | vitaliy.lyapota@anvileight.com |
c25c4216e448b3ffcf0f6d74eab73a513d285644 | 029f2b24b29ad833c41205c1d364d855b6cf954e | /backend/tracim_backend/lib/webdav/resources.py | cb7e1f86efccb2db0e6f8207abff17b21574323d | [
"MIT"
] | permissive | RoPP/tracim | 9f52edb2216f0cc1bf3f833758b2d2c9dbac5712 | 2f04c4f5b4825327f72a3637a50c151129ddeed3 | refs/heads/master | 2020-04-10T01:56:18.944851 | 2018-11-16T14:42:53 | 2018-11-16T14:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,055 | py | # coding: utf8
import logging
import os
import transaction
import typing
import re
from datetime import datetime
from time import mktime
from os.path import dirname, basename
from sqlalchemy.orm import Session
from tracim_backend.config import CFG
from tracim_backend.lib.core.content import ContentApi
from tracim_b... | [
"guenael.muller@algoo.fr"
] | guenael.muller@algoo.fr |
8ae26c0f0b7bdcc8898d6291053ce928d4fae2af | cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819 | /Regular Expression Matching.py | 1db2be838d381b3afb158fc8f1dd0d895e65868d | [
"Apache-2.0"
] | permissive | sugia/leetcode | 9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | refs/heads/master | 2021-06-05T07:20:04.099488 | 2021-02-24T07:24:50 | 2021-02-24T07:24:50 | 29,124,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | '''
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
Note:
s could be empty and contains only lowe... | [
"noreply@github.com"
] | sugia.noreply@github.com |
390f12aad10cdfa405d013246f9d9748696e733d | bdccea86a910a21c8ad31048b715d436be9c5b50 | /firstproject/urls.py | c66c23eb0d7c784b0ebdcf21721af22a520b91f2 | [] | no_license | Hyo-gyeong/Django_add_9 | f5067b9d7c9db614b218883eb97e351e3d269b19 | 5e3b2557178b94ed7dcc5ce2e9fccab1825a04f9 | refs/heads/main | 2023-08-17T05:22:56.657516 | 2021-09-22T13:13:40 | 2021-09-22T13:13:40 | 358,803,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('like.urls')),
path('account/', include('account.urls')),
path('email/', include(... | [
"cdkrcd8@gmail.com"
] | cdkrcd8@gmail.com |
f863df68ac09804500c4e5a36d1558c5604e5630 | cd0f3fa5c3b202599812ac8b49e374fe2b2f2e8b | /ExerciciosAprendizagem/CapApendices/ApBex10.py | c6085712b7cb2cde9d4d6c9007dc870fd28524d7 | [] | no_license | J-AugustoManzano/livro_Python | 46c14dc4bc5fb361d850fcd361477a952de172c2 | e42b79ef78c6b1ab936fe9a13d32ddc94deeb2a8 | refs/heads/main | 2023-06-25T03:10:30.297226 | 2023-06-08T23:34:54 | 2023-06-08T23:34:54 | 354,116,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | def cls():
import subprocess
import platform
sistema = platform.system()
if (sistema == "Windows"):
subprocess.call("cls", shell = True)
elif (sistema == "Linux" or sistema == "Darwin"):
subprocess.call("clear", shell = True)
cls()
print("Teste")
enter = input("\nP... | [
"noreply@github.com"
] | J-AugustoManzano.noreply@github.com |
34caee59c294237cad9f8d461efe74e105e2c89c | b8ef1a5cd3856a8e9134c3313a4e23522f199df7 | /SWEA/5201_컨테이너 운반/5201_컨테이너 운반.py | dfab00902bf5815bc5c4980fa8b07ff399ec76cc | [] | no_license | scl2589/Algorithm_problem_solving | 910623d9675ae0219320abfd1fefc7d576027544 | 80db697cdd0180a7d4dbcfae4944d4a54191bddf | refs/heads/master | 2023-07-29T10:56:38.225206 | 2021-09-11T13:50:46 | 2021-09-11T13:50:46 | 235,363,353 | 0 | 0 | null | 2021-03-04T15:39:41 | 2020-01-21T14:36:41 | Python | UTF-8 | Python | false | false | 654 | py | T = int(input())
for tc in range(1, T+1):
#N:컨테이너 수, M: 트럭 수
N, M = map(int, input().split())
#freight_weight: N개의 화물의 무게, loading_capacity:M개 트럭의 적재용량
freight_weight = list(map(int, input().split()))
freight_weight.sort(key=lambda x: -x)
loading_capacity = list(map(int, input().split()))
lo... | [
"chaelinshin96@gmail.com"
] | chaelinshin96@gmail.com |
2ffef5d0fb740fbbfb06fa4bcc031a180df7628b | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/14a261b921e41156e3927d3f062c06e67cbe8728test_resolve.py | 14a261b921e41156e3927d3f062c06e67cbe8728 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 1,672 | py | from egginst.vendor.six.moves import unittest
from enstaller.repository import Repository
from enstaller.tests.common import dummy_repository_package_factory
from ..requirement import Requirement
from ..resolve import Resolve
class TestResolve(unittest.TestCase):
def _repository_factory(self, packages):
... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
bbd1ecf433159246f393be92dd5f803fec2fb6b5 | d93638facfff67c79e7f446973dcfdb3a041e096 | /week3/hrwros_ws/build/hrwros_gazebo/cmake/hrwros_gazebo-genmsg-context.py | 106afa8b665e3ac58bb85520efb042859e361f23 | [] | no_license | MarzanShuvo/ROS | 9f5b10826530bec0b63c0485d6d8e91c295fb1d7 | 5ec53e56d7e2437a078ee1c40c369b9d79669559 | refs/heads/master | 2021-05-21T23:26:49.734472 | 2020-04-16T09:24:37 | 2020-04-16T09:24:37 | 252,854,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/marzan/hrwros_ws/src/hrwros_gazebo/msg/ConveyorBeltState.msg;/home/marzan/hrwros_ws/src/hrwros_gazebo/msg/VacuumGripperState.msg;/home/marzan/hrwros_ws/src/hrwros_gazebo/msg/Proximity.msg;/home/marzan/hrwros_ws/src/hrwros_gazebo/msg/Model.msg;/h... | [
"marzanalam3@gmail.com"
] | marzanalam3@gmail.com |
52a72d26818b3c4853efa6565061e677032d2613 | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_images_operations.py | 56da38ca564f098b8482a8aafde9af260e03e245 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 29,212 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
2914b96aba65bac7564fb08d1d2fece5ff74d5a2 | 8f2602f877f5a2efe39c49f8a65c8b7bbb33f8c7 | /stack/percentage.py | a9f1c4b544f2ce6211d31ff1c770d61c6e0a96c0 | [] | no_license | sharmakajal0/geeks_for_geeks | 6bf765ac626acd4ca023a9a7327fb32683efdd71 | ac8965973ed5b63cfd79a4f4a2c3f934827892d5 | refs/heads/master | 2022-07-08T14:57:59.217872 | 2022-06-04T16:43:10 | 2022-06-04T16:43:10 | 192,764,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | t = int(input())
while(t > 0):
name = input()
while(t > 0):
a, b, c = map(int, input().split())
sum = a + b + c
div = sum / 300
per = div * 100
print(per)
t -= 1 | [
"sharma.kajal.sitm@gmail.com"
] | sharma.kajal.sitm@gmail.com |
57180299009c69ebe81bd95dfbed87a61ceab355 | b69f65a9c7bfbd76668def8e59726a8d093ed7ee | /server/workspace/api_server/start.py | fbc1d919e01d0273fff06d2c94a46cff8b6507a4 | [] | no_license | cash2one/beiqi_ssp | 999341e16b5ff8a244fff1d5c0bb999dec38972d | 51516c9e3da35c8eee5b2cccd2957c01848a919b | refs/heads/master | 2021-01-13T08:51:00.946064 | 2016-06-20T09:20:38 | 2016-06-20T09:20:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/python2.7
# coding=utf-8
"""
Created on 2015-4-25
@author: Jay
"""
import site, os; site.addsitedir(os.path.dirname(os.path.realpath(__file__))); site.addsitedir(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))); site.addsitedir(os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__fil... | [
"yangwei@beiqicloud.com"
] | yangwei@beiqicloud.com |
2018605778481cf9e4946f97aa6ccdb7d17d3cc6 | 71b8b60c5627ace1bbda39f679f93f60b55543ca | /tensorflow_federated/python/core/templates/errors.py | cac11c5bc8b4e303217e5f9922e2eeac7d851608 | [
"Apache-2.0"
] | permissive | tensorflow/federated | ff94b63e9f4af448795bae77cee5b627dcae9051 | ad4bca66f4b483e09d8396e9948630813a343d27 | refs/heads/main | 2023-08-31T11:46:28.559047 | 2023-08-31T02:04:38 | 2023-08-31T02:09:59 | 161,556,784 | 2,297 | 631 | Apache-2.0 | 2023-09-13T22:54:14 | 2018-12-12T23:15:35 | Python | UTF-8 | Python | false | false | 1,427 | py | # Copyright 2020, The TensorFlow Federated Authors.
#
# 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 o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
199ecabb78f0833bdfe12a9c3dbb06ca16dab416 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02260/s587543030.py | ecb2543c3ae77c87f4830a6f9af7325370fc78b9 | [] | 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 | 487 | py | # -*- coding: utf-8 -*-
def selectionSort(A, N):
count = 0
for i in range(N):
minj = i
for j in range(i, N):
if A[j] < A[minj]:
minj = j
if minj != i:
count += 1
A[i], A[minj] = A[minj], A[i]
return A, count
if __name__ ==... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
492f00261cbcb1aed4d5d3d4f64231ada9929d5f | 8310622d9f504b6ffdac62b57727afbc0af9992e | /problems/problems@201~700/problem_435/Polynomials_of_Fibonacci2.py | 41db99bbfffa2470aebdac6367c22b83c1ec446b | [] | no_license | smsxgz/euler_project | aba61131682d04ee614167181e7d77e979db7e02 | df373a5cdf2c3c106763ee2c25671f85f9ec3a9b | refs/heads/master | 2023-02-22T12:00:24.801942 | 2023-02-04T13:23:27 | 2023-02-04T13:23:27 | 98,957,903 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | import sys
class Matrix():
def multiply(self, x, y, mod):
results = [[0 for j in range(len(y[0]))] for i in range(len(x))]
for i in range(len(x)):
for j in range(len(y[0])):
for k in range(len(y)):
results[i][j] = (results[i][j] + x[i][k] * y[k][j]) ... | [
"smsxgz@gmail.com"
] | smsxgz@gmail.com |
7a6d5a5b99029f55e21009c8ac66c6234cc107b5 | 1aeb828e57be9b046ee25433fff05956f01db53b | /python_bms/accounts_prcatice/accounts/views.py | 1ba1d92216f52d86b764b41afecd3d307a11981d | [] | no_license | LynnYeonjuLee/TIL_BMS2 | 11f2753e2e82c4898a782d6907a21e973c34cf69 | f363723391598caf5ec6b33925fcb8a13a252d9f | refs/heads/master | 2023-01-22T00:45:25.091512 | 2020-12-04T00:22:44 | 2020-12-04T00:22:44 | 290,238,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | from django.shortcuts import render, redirect
from .forms import CustomUserCreationForm, CustomUserChangeForm
from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm
from django.contrib.auth import login as auth_login
from django.contrib.auth import logout as auth_logout
from django.contrib.au... | [
"lynnlyj9@gmail.com"
] | lynnlyj9@gmail.com |
1fc56383a6c061c16178eb8d19720f3ca7808160 | 59d268e78752f487a26141f81585b9cf25d1cc9f | /train_model.py | 33e0f2183fa811b644d2930ad12ace1f5fc6cb81 | [] | no_license | CheungBH/sport_classification | 0e5e4b6bbe61ab8cdc52976d83ad871a14c299b3 | 91e5a3ea4f2e394037b7e7a103583b2c63e796df | refs/heads/master | 2020-07-26T01:02:51.576399 | 2019-12-12T18:18:25 | 2019-12-12T18:18:25 | 208,480,545 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | # -*- coding:utf-8 -*-
from __future__ import print_function
from model import sport_model
from trainer import trainer
from dataset import dataset
from config import config
import torch.nn as nn
import torch.optim as optim
import time
import os
device = config.device
feature_extract = config.feature_extract
num_epochs... | [
"534660436@qq.com"
] | 534660436@qq.com |
a15850d6876c693fcafdfdffaf8c2ad30076ad3e | a38633ae2ddd2f444b769a26045666ba2b845f9b | /parser/run_gui.py | 3d3fe7d241d6aa9abaa44827c873283938ac8cbf | [] | no_license | drusk/uvic-transcript-parser | 037937a15b4a44ef1bee3a64b48245a633af7ab2 | 8ace1176b74611092e532e8afab62303af01d7e5 | refs/heads/master | 2016-09-06T00:43:28.013036 | 2013-05-05T03:22:22 | 2013-05-05T03:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | # Copyright (C) 2012 David Rusk
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distr... | [
"drusk@uvic.ca"
] | drusk@uvic.ca |
1a6abed4645719e12cda13411c39119cce217173 | 6680d30cd4cdf55f43d3c6f507ce13ec5367f754 | /tests/functional/test_create.py | fb1d49d9306a0991f384eb5f3b527812120e263d | [
"MIT"
] | permissive | ionelmc/virtualenv | e6711179230f8b2733b3dae359326e20844f8d76 | 5f25d585af3e8b671a8e9dd189ff33a5e87eca5b | refs/heads/develop | 2023-05-28T02:49:13.122758 | 2016-01-21T15:52:13 | 2016-01-21T15:52:13 | 28,580,890 | 7 | 2 | null | 2016-08-29T16:20:31 | 2014-12-29T05:02:43 | Python | UTF-8 | Python | false | false | 13,051 | py | import os
import sys
from itertools import chain
from itertools import product
import pytest
import scripttest
IS_WINDOWS = (
sys.platform.startswith("win") or
(sys.platform == "cli" and os.name == "nt")
)
IS_26 = sys.version_info[:2] == (2, 6)
IS_PYPY = hasattr(sys, 'pypy_version_info')
def locate_on_path(... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
aec494b3897f00ac766edf4a78e2b199c6dc47ba | 4751fd86184b64316d694a98671d34faae76ffe6 | /plannerrr/admin.py | 83cea6ab0ceb683066a599beb2794d7566daaff3 | [] | no_license | mohammedaliyu136/dg_planner | 8a6a4888cc109d6c3a1cb115494a1e6decbb864a | a0fb87e182527e541e7758a2c4720ddbb2438145 | refs/heads/master | 2020-04-03T08:09:02.020426 | 2018-10-29T19:57:16 | 2018-10-29T19:57:16 | 155,124,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from django.contrib import admin
# Register your models here.
from plannerrr.models import School_option, Major_option, Schedules, Courses, Department, Pre_req, \
Degree_req, Profile, Free_elective
admin.site.register(School_option)
admin.site.register(Major_option)
admin.site.register(Schedules)
admin.site.regis... | [
"mohammedaliyu136@gmail.com"
] | mohammedaliyu136@gmail.com |
33653ba34c95095385270178f6de428c93c2998d | 107fdd20682510440fc002c5b26ce6d51227d23d | /p35_mhd_galaxy_formation/p35_test.py | aa4dc5f8b785251dc10eefa1e28c2dbcb77bf584 | [] | no_license | dcollins4096/ytscripts | bddb1a82b30d533e5789a16109dca9226713c76d | 52d8337dbbcba5d004663ec2cd1d2a15503c952d | refs/heads/master | 2022-07-29T07:44:18.847626 | 2022-07-18T13:17:11 | 2022-07-18T13:17:11 | 185,677,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py |
if 'flt' not in dir():
flt = taxi.fleet(['n01','n03'])
fields = ["Dark_Matter_Density", "Density", "Electron_Density", "GasEnergy", "H2II_Density",
"H2I_Density", "HII_Density", "HI_Density", "HM_Density", "HeIII_Density", "HeII_Density", "HeI_Density", "Temperature", "TotalEnergy"]
flt['frames'] = range(27)
flt[... | [
"none@none"
] | none@none |
ed14ff98c2dbb8b6ef625bd4a2776e207b70568f | 4044331f9b22c76a16a7b02bb570531cb68640d0 | /src/bb_eval_engine/util/importlib.py | 6ea208aefc2f1bc830b0fc5997a00f31654bda82 | [] | no_license | kouroshHakha/blackbox_eval_engine | c7a0c9616ff9dce316609f97892f57d0e876ce0f | e0d40b29098b1f11b7820c039d766d1aab74d8e1 | refs/heads/master | 2022-05-19T08:33:18.951028 | 2022-01-26T16:54:08 | 2022-01-26T16:54:08 | 214,871,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from typing import Union
from pathlib import Path
from ..base import EvaluationEngineBase
from utils.file import read_yaml
from utils.importlib import import_class
def import_bb_env(env_yaml_str: Union[str, Path]) -> EvaluationEngineBase:
specs = read_yaml(env_yaml_str)
env = import_class(specs['bb_engine'])... | [
"kourosh_hakhamaneshi@berkeley.edu"
] | kourosh_hakhamaneshi@berkeley.edu |
5c154ae06b065fcf5a870c2a5380e865800382f3 | cceda0ed268253be60c549ee957804d367bc3ca3 | /from_cpython/Lib/test/test_wave.py | 3f684037ef3c5d096974f173ec690c650e67cd87 | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | mcanthony/pyston | 3bc6a45e5c118fb6860427c9b0cc885dec8f5b6e | eed1d41307b578ff8d873b92b8b4db24775d5daf | refs/heads/master | 2020-12-29T00:55:11.099535 | 2015-10-23T22:28:07 | 2015-10-23T22:28:07 | 44,902,270 | 2 | 0 | null | 2015-10-25T08:34:09 | 2015-10-25T08:34:08 | null | UTF-8 | Python | false | false | 4,640 | py | # expected: fail
from test.test_support import TESTFN, run_unittest
import unittest
from test import audiotests
import sys
import wave
class WaveTest(audiotests.AudioWriteTests,
audiotests.AudioTestsWithSourceFile):
module = wave
test_unseekable_write = None
test_unseekable_overflowed_write... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
b9324bc5fa81c244c42c8b33bdb0823c4d854543 | 22ef1c581ee1dc9a7ab52b12d42208c1fe2d9d23 | /shexer/io/shex/formater/statement_serializers/base_statement_serializer.py | bae9cc4472ca281888577bc093d89a58d11f449c | [
"Apache-2.0"
] | permissive | andrawaag/shexer | 85de89b92dcc24110805cedb026c8a1eb5487c56 | f68a631871ba395f3de5de18f5ece2b3f7591d7b | refs/heads/master | 2020-12-08T03:35:41.090505 | 2019-10-21T19:47:32 | 2019-10-21T19:47:32 | 232,872,867 | 0 | 0 | Apache-2.0 | 2020-01-09T18:04:14 | 2020-01-09T18:04:13 | null | UTF-8 | Python | false | false | 4,218 | py | from shexer.io.shex.formater.consts import SPACES_GAP_BETWEEN_TOKENS, \
COMMENT_INI, TARGET_LINE_LENGHT, SPACES_GAP_FOR_FREQUENCY, KLEENE_CLOSURE, POSITIVE_CLOSURE
from shexer.model.IRI import IRI_ELEM_TYPE
from shexer.model.shape import STARTING_CHAR_FOR_SHAPE_NAME
class BaseStatementSerializer(object):
de... | [
"danifdezalvarez@gmail.com"
] | danifdezalvarez@gmail.com |
730f921581a936522fd1de117c49ada258e7755b | bf1d4cf83e663e102cbaf77681aeee27f0fd57b1 | /nlpaug/util/file/library.py | 0ebde6473afafd3e6624b6f04996a67af562430d | [
"MIT"
] | permissive | makcedward/nlpaug | 1616ed30de030d7ec8ef6baf0d3dcc91cc30fed7 | 23800cbb9632c7fc8c4a88d46f9c4ecf68a96299 | refs/heads/master | 2023-06-25T01:07:59.107131 | 2022-07-07T05:16:43 | 2022-07-07T05:16:43 | 176,858,880 | 4,128 | 476 | MIT | 2023-03-04T04:13:01 | 2019-03-21T03:00:17 | Jupyter Notebook | UTF-8 | Python | false | false | 368 | py | import os
import nlpaug
class LibraryUtil:
"""
Helper function for retreiving library file
>>> from nlpaug.util.file.library import LibraryUtil
"""
@staticmethod
def get_res_dir():
"""
>>> LibraryUtil.get_res_dir()
"""
lib_dir = os.path.dirname(nlpaug.__file... | [
"makcedward@gmail.com"
] | makcedward@gmail.com |
cd671474040114db4c1ce3f7305c17904a20e2a7 | 496d3438c33196bc62a15a009cc892b69bef3fd6 | /hataripy/modpath/mp.py | d972ee5edb9d3973b30669f0fe4360367f6c7af6 | [
"MIT"
] | permissive | hatarilabs/hataripy | 9cb7749a93a5f35a71a4ee4538ce4686e13c3b77 | 7db7869f34b875c9f76d42b7a4801b0c23738448 | refs/heads/master | 2021-11-23T08:06:39.912715 | 2019-10-18T20:09:55 | 2019-10-18T20:09:55 | 216,093,522 | 4 | 1 | MIT | 2021-11-16T21:11:54 | 2019-10-18T19:27:15 | Python | UTF-8 | Python | false | false | 15,875 | py | import numpy as np
from ..mbase import BaseModel
from ..pakbase import Package
from .mpsim import ModpathSim
from .mpbas import ModpathBas
import os
class ModpathList(Package):
"""
List package class
"""
def __init__(self, model, extension='list', listunit=7):
"""
Package constructor.... | [
"hatariresearchlabs@gmail.com"
] | hatariresearchlabs@gmail.com |
8aeb19b1a5139d2d2ad6e4c5b47ea551f74098fe | 83b12ff945e56ce896f538e1f7a12215118e7d7f | /pinstagram/wsgi.py | 38472139f7c4a4275e0a05e7b44fb17393b1c2b3 | [
"MIT"
] | permissive | COdingaorg/Instagram_clone | 89df42884f0744de81b002186ce08a645842c54a | 0ddb4d505551f80a34ca4a83eed808b7a86bdfd9 | refs/heads/main | 2023-06-17T11:58:21.088152 | 2021-07-14T12:52:43 | 2021-07-14T12:52:43 | 384,664,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for pinstagram project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"calemasanga@gmail.com"
] | calemasanga@gmail.com |
25d19e21eeac3d581fa331b7cfb52df75294be1f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/116/usersdata/167/26730/submittedfiles/al1.py | 18a5bfb1cf075517e92969199419e7b0a0456ae6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | v=(float(input(3.14159*('digite R**2)*('digite altura'))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fe7ef5336152c88574d8a8e9c43b5a428e07de00 | f1738cd603e0b2e31143f4ebf7eba403402aecd6 | /ucs/mail/univention-mail-postfix/conffiles/create-archivefolder.py | b04eea9532c198f31cc27370692bb4311dcb18dc | [] | no_license | m-narayan/smart | 92f42bf90d7d2b24f61915fac8abab70dd8282bc | 1a6765deafd8679079b64dcc35f91933d37cf2dd | refs/heads/master | 2016-08-05T17:29:30.847382 | 2013-01-04T04:50:26 | 2013-01-04T04:50:26 | 7,079,786 | 8 | 6 | null | 2015-04-29T08:54:12 | 2012-12-09T14:56:27 | Python | UTF-8 | Python | false | false | 1,469 | py | # -*- coding: utf-8 -*-
#
# Univention Mail Postfix
# listener module: creates mailboxes
#
# Copyright 2005-2012 Univention GmbH
#
# http://www.univention.de/
#
# All rights reserved.
#
# The source code of this program is made available
# under the terms of the GNU Affero General Public License version 3
# (GNU AGPL ... | [
"kartik@debian.org"
] | kartik@debian.org |
673f50be77982f685ce1558d953d21a73b8431ed | 691c86fdec8b6018331b857066fca10d17c1a7a1 | /venv/Lib/site-packages/pip/utils/glibc.py | e73393d25ceac56340581b2859547fa921f53fea | [] | no_license | samingdeveloper/SamingWebsite | 11e1dd2c9d246d5f2092fbaf23164cad4ba940ad | 1f7ea69fbf35882005ce1b0269afc640af3307dd | refs/heads/natworpong | 2022-11-06T15:37:23.729659 | 2018-10-23T05:24:25 | 2018-10-23T05:24:25 | 107,875,163 | 4 | 3 | null | 2022-10-18T20:09:17 | 2017-10-22T14:52:25 | Python | UTF-8 | Python | false | false | 3,020 | py | from __future__ import absolute_import
import re
import ctypes
import platform
import warnings
def glibc_version_string():
"Returns glibc version string, or None if not using glibc."
# ctypes.CDLL(None) internally calls dlopen(NULL), and as the dlopen
# manpage says, "If filename is NULL, th... | [
"choyaichaiyo@gmail.com"
] | choyaichaiyo@gmail.com |
6a354dd779f47c2c1bf3455b0ea67803dc6273e0 | bdadee64ca8c143a925ec84736e3966ef0183bce | /Analysis/Tools/spatialSeries_returnBothInnerAndOuter/UzMean.py | 218e9c7efc6f238c6e931167c4ed7c034d6b2fe2 | [] | no_license | snow-stone/python | fcb69950f5984d654f555ca591583c0a0763bef4 | 0e79a0fb265a22a409309b1c0f992f00ef588f95 | refs/heads/master | 2020-03-11T10:51:53.268373 | 2019-10-18T14:24:45 | 2019-10-18T14:24:45 | 129,953,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | import numpy as np
import general_settings as gs
import reference_database as rdb
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
def main():
plt.style.use('seaborn-white') # from defaut
plt.rcParams.update({'font.size': 30})
plt.rcParams['savefig.dpi'] = 100
from matplotl... | [
"haining.luo@doctorant.ec-lyon.fr"
] | haining.luo@doctorant.ec-lyon.fr |
0bf01e444df9cb173fcfe363ed88da9a91d42442 | bcd41df6c8f6a9e8e7d127c715506cd2206c618c | /samples/dom-api/dom-context-item.py | 645f55e89be463ec84a8ad82e0ae2e7efbbf885f | [] | no_license | cefn/pyXQilla | 42b6470675f2f0ca55e087f8a47bc54384ea2dfe | 36d2024b88d8f2f6ec64e2bb9f5711abbd09dd16 | refs/heads/master | 2020-12-11T02:11:06.624015 | 2014-03-30T13:02:37 | 2014-03-30T13:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # -*- coding: utf-8 -*-
import sys
import Xerces, XQilla
def main():
xqillaImplementation = Xerces.DOMImplementationRegistry.getDOMImplementation('XPath2 3.0')
try:
# Create a DOMLSParser object
parser = xqillaImplementation.createLSParser(Xerces.DOMImplementationLS.MODE_SYNCHRONOUS, '')
parser.getDomConfig()... | [
"mugwort.rc@gmail.com"
] | mugwort.rc@gmail.com |
129b4f54fa67686b47e7de926e826b4cf5cf0bbb | 548921526134435754294544a64c343572c56524 | /cloudscale/distributed_jmeter/run_test.py | 40d3b292e713ffabc9d944fb807be4a6b8df9868 | [] | no_license | ivansek-magistrska/distributed-jmeter | 956706b5b366479bed1de84f99af99344a95b692 | bda2200eff6f3c537a90f2dd59f8a9497eb3ac76 | refs/heads/master | 2021-01-10T19:55:51.134070 | 2015-09-20T10:39:38 | 2015-09-20T10:39:38 | 42,809,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | import os
import uuid
import shutil
from math import ceil
from cloudscale.distributed_jmeter.aws import AWS
from cloudscale.distributed_jmeter.google import Google
from cloudscale.distributed_jmeter.helpers import read_config
from cloudscale.distributed_jmeter.openstack import OpenStack
def run_test(infrastructure, c... | [
"simon.ivansek@xlab.si"
] | simon.ivansek@xlab.si |
49b1e5daa406ea5bd33032fcd3daa4781ad95f8f | 4fa832c70c3afbb55efc005b5c40167df52c18e0 | /Python Crash Course/vAnil/Chapter-2/2.8.py | 940bfd50ee89cf4f5ab50f77abd310eca68830a5 | [] | no_license | DimpleOrg/PythonRepository | 76f87d21bfbbcc332f1b02956c4a0b48f084a97d | 82ce549c7c08366a368d4e439e8ff4d66a4176ee | refs/heads/main | 2023-06-09T21:54:28.330130 | 2021-05-06T13:00:48 | 2021-05-06T13:00:48 | 340,079,685 | 0 | 0 | null | 2021-07-01T12:41:39 | 2021-02-18T14:43:09 | HTML | UTF-8 | Python | false | false | 139 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 29 16:15:57 2020
@author: ANIL
"""
print(5+3)
print(10-2)
print(4*2)
print(16/2) | [
"anil.kumar4@hp.com"
] | anil.kumar4@hp.com |
ece9aca9a812196d50949e0b1162c646f6f28e58 | cf3645e1bbfde328aec2175b3fa5d6eda6b5e2b1 | /jay-scraper/crawling/pipelines/watchstation_pipeline.py | f3eef59645f8e836128bef0b80c3b98d34b09dae | [] | no_license | ShichaoMa/old-spider | f74f00d6a6c114aa6878662907c70ebe42f9ea09 | cf030b655434a3adb6094302b1d2650f6521d1d3 | refs/heads/master | 2020-03-06T15:53:49.709223 | 2018-03-27T09:36:58 | 2018-03-27T09:36:58 | 126,963,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | import re
import json
from toolkit import re_search
from . import KafkaPipeline, FilePipeline
from .formatter import BaseAdapter
from .utils import format_price
class WatchstationPipelineAdapter(BaseAdapter):
@staticmethod
def is_main(image_block):
return WatchstationPipelineAdapter.get_type(image_... | [
"308299269@qq.com"
] | 308299269@qq.com |
aff8b1561e51595f22a769c16e90b694efa4717f | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/com_day_cq_rewriter_processor_impl_html_parser_factory_properties.py | 00694efb1d288ecfb3fb714de45438f097904050 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 7,438 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
26396f99eb814bc9302e977365af9af0bcf8882d | 35fb8ef7f2b6673931b951c4e85a6f817238c528 | /LeetCode/831.py | 55b7ae84d97ee45416f5ed29c5d8e61640f51c03 | [] | no_license | cylinder-lee-cn/LeetCode | 0baa3cc663d54305100affa394391325abdc8766 | 62ccbdedf4e1fb9788acfeb2a5bfce70f86c68b6 | refs/heads/master | 2021-07-09T15:41:56.980481 | 2021-01-11T03:14:24 | 2021-01-11T03:14:24 | 219,885,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | """
831. 隐藏个人信息
给你一条个人信息 string S,它可能是一个邮箱地址,也可能是一个电话号码。
我们将隐藏它的隐私信息,通过如下规则:
1. 电子邮箱
定义名称 <name> 的长度大于2,并且只包含小写字母 a-z 和大写字母 A-Z。
电子邮箱地址由名称 <name> 开头,紧接着是符号 '@',后面接着一个名称 <name>,再接着一个点号 '.',
然后是一个名称 <name>。电子邮箱地址确定为有效的,并且格式是"name1@name2.name3"。
为了隐藏电子邮箱,所有的名称 <name> 必须被转换成小写的,
并且第一个名称 <name> 的第一个字母和最后一个字母的... | [
"noreply@github.com"
] | cylinder-lee-cn.noreply@github.com |
07350b42a2f0086b80f900c7ec016980c56d0245 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/sklearn/preprocessing/tests/test_imputation.py | 74d14b8c1d9c92946a940c9f63a318c82a6d40ce | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b576943a3d58d2b99a3d26bd9b38df4b5a1783cc73f76e9c2b7fe65a5c5ba5f3
size 12642
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
43261b00968ab365aa0a17c0725bfb7f35c714d8 | 91f23bf8a1edb99877f5eb5cd9aa0cfd4c49473c | /mychannel/sample/sample/asgi.py | 994fd167746519f6c1e9881b48da781bcc862543 | [] | no_license | ujrc/Tutorials | 49f401d4a7c1192a1c794ffa3bef9c589cf89d24 | 4f325d8ddc667da4b654196fee54886551db8e6b | refs/heads/master | 2020-04-12T09:34:22.522129 | 2016-09-28T17:34:43 | 2016-09-28T17:34:43 | 51,226,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | """
ASGI entrypoint file for default channel layer.
Points to the channel layer configured as "default" so you can point
ASGI applications at "liveblog.asgi:channel_layer" as their channel layer.
"""
import os
from channels.asgi import get_channel_layer
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sample.settings... | [
"uwjearc@yahoo.com"
] | uwjearc@yahoo.com |
b065e07eafb5ea68ff5834f8fcf8ee7ac6f57a14 | d29fd8ac20bf53f366821892bf5a80005a9cef36 | /tests/apps/generated_component_trigger_binding.py | c8691eea95153e778bdd11ac38b8882cdab4420b | [
"MIT"
] | permissive | T4rk1n/dazzler | d325ff664c6e310374f08cea84bd53aa1ca2ca43 | 69c49422dc19c910445ab265b1d3481041de8f43 | refs/heads/master | 2023-02-11T02:39:08.423597 | 2021-12-06T03:16:49 | 2021-12-06T03:34:25 | 191,060,792 | 19 | 7 | MIT | 2023-01-23T11:02:57 | 2019-06-09T22:16:59 | Python | UTF-8 | Python | false | false | 850 | py | from dazzler import Dazzler
from dazzler.components import core
from dazzler.system import Page, Trigger, BindingContext
app = Dazzler(__name__)
page = Page(
name='home',
url='/',
layout=core.Container([
core.Button('click', identity='click'),
core.Container(identity='output'),
co... | [
"t4rk@outlook.com"
] | t4rk@outlook.com |
ddd3475e04afa73964c5f2b3d26d45d5aad95b21 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PhysicsAnalysis/HiggsPhys/HSG5/HSG5DPDUtils/share/ZHnunubb_unboostedFilter.py | fe364512ae4a43045974df63b86e661dc0e73fc7 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py |
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
from AthenaCommon.AlgSequence import AlgSequence,AthSequencer
# create electron and muon selectors
sequencer = AthSequencer("HSG5ZHMETU_Sequencer",
StopOverride=False)
# MET selector
from D2PDMaker.D2PDMakerConf import D2PDMissingEtSe... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
faf869497c4c7cb3771438ebc8753f050d1d04e6 | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /g-code-testing/g_code_test_data/http/http_configurations.py | dcce567118fce93ec1a997a6c6e4900adc71e1a5 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 495 | py | from g_code_test_data.http.robot.robot import ROBOT_CONFIGURATIONS
from g_code_test_data.http.modules.magdeck import MAGDECK_CONFIGURATIONS
from g_code_test_data.http.modules.tempdeck import TEMPDECK_CONFIGURATIONS
from g_code_test_data.http.modules.thermocycler import THERMOCYCLER_CONFIGURATIONS
HTTP_CONFIGURATIONS =... | [
"noreply@github.com"
] | Opentrons.noreply@github.com |
ffd8daa4cef5e26687bbf2c661698c05112e8cde | f3e75fe5b09ef8056028941aac8d2d8f54c25695 | /AppReportes/Reporte0004.py | e43ec47a8200ea702b1e63eec9f77e7e13143041 | [] | no_license | ryali93/SegmRural | ad07cef3c77ad268bf30d7c2c64309123595c3e7 | c5f116fa6a4a5586a1604ecc630a179ce4112093 | refs/heads/master | 2021-05-16T17:59:08.611957 | 2019-09-06T17:38:50 | 2019-09-06T17:38:50 | 103,148,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,646 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# IMPORTANDO LIBRERIAS NECESARIAS
from reportlab.platypus import Image, Spacer, Table
from reportlab.lib.pagesizes import A4
from reportlab.lib import colors
from reportlab.lib.units import cm
from reportlab.platypus import SimpleDocTemplate, Paragraph, TableStyle, PageBrea... | [
"ryali93@gmail.com"
] | ryali93@gmail.com |
0966811296c136c7d105a16d89586e58d3d3e48a | 714268a27bd4cc34ec053cb3d991012151554aad | /LeetCode/38. Count and say.py | 5114cc7286565d3c415afd237e7b8af414b654c2 | [] | no_license | yashhR/competitive | 2b649011c2cea74eea8d9646bcfafc73743651eb | 37f2ec68b33828df4692bc23f28d532cb8d4a358 | refs/heads/master | 2022-11-10T04:53:47.634062 | 2020-06-22T16:43:03 | 2020-06-22T16:43:03 | 274,190,602 | 0 | 0 | null | 2020-06-22T16:36:02 | 2020-06-22T16:36:02 | null | UTF-8 | Python | false | false | 2,094 | py | # def countAndSay(n):
# sequence = ['1', '11', '21', '1211']
# def next(bro):
# prev = bro
# distincts = [prev[0]]
# counts = []
# count = 1
# for i in range(1, len(prev)):
# if i == len(prev) - 1:
# if prev[i] == distincts[-1]:
# ... | [
"17131a05h5@gvpce.ac.in"
] | 17131a05h5@gvpce.ac.in |
791c9610b81e272c355c03c4ce71a2f5829049b5 | 23f7d11ac20d68e31ba69b3ec626d957cf724e83 | /labpack/performance/performlab.py | 0e9b8b98266d504dd4fb37e46c610e216ba3bd3c | [
"MIT"
] | permissive | collectiveacuity/labPack | 6049ed4e583dc0e191ecd3a77ab585fa16b75c5b | c8fb0d1ee23608f6dbcb99c232373eee886000fd | refs/heads/master | 2021-05-21T11:19:03.133586 | 2021-03-31T01:46:51 | 2021-03-31T01:46:51 | 60,033,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | __author__ = 'rcj1492'
__created__ = '2016.05'
__license__ = 'MIT'
from time import perf_counter as timer
from labpack.randomization import randomlab
from copy import deepcopy
def repeat(function, kwargs, title, count, verbose=True):
t0 = timer()
id_list = []
while len(id_list) < count:
... | [
"richard@collectiveacuity.com"
] | richard@collectiveacuity.com |
93d59e5693b24431d7f07d40dca719cab8387471 | b68d4e7826c29a22b002ff9c10583faeb7a10455 | /uwsgi-tutorial/lib/python3.4/sre_constants.py | f063b3be64680044be9b2921d1400d6aeaecbccd | [] | no_license | mikanyman/.pyenv_versions-legacy | ec392821290bd38873b25824c4261b15dc1a5067 | 5a42c7c21e800610f4f5f322d73d1dbd62a081b9 | refs/heads/master | 2022-10-13T10:22:13.956161 | 2017-01-31T20:10:04 | 2017-01-31T20:10:04 | 80,555,789 | 0 | 1 | null | 2022-09-30T13:39:01 | 2017-01-31T19:49:56 | Python | UTF-8 | Python | false | false | 65 | py | /home/mnyman/.pyenv/versions/3.4.1/lib/python3.4/sre_constants.py | [
"mika.nyman@synapse-computing.com"
] | mika.nyman@synapse-computing.com |
0097ace2c6768dd86f5c37419615995a6d034522 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03156/s809892406.py | 41fae3effe172d4087d8d8dc001702eed3474f5c | [] | 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 | 326 | py | def main():
n = int(input())
a, b = map(int, input().split())
p = list(map(int, input().split()))
cnt = [0]*3
for v in p:
if v <= a:
cnt[0] += 1
elif v <= b:
cnt[1] += 1
else:
cnt[2] += 1
print(min(cnt))
if __name__ == "__main__":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
541cf909777a5d61f748d0c436ff16f76ebc128c | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/384a8b05-81fc-4141-83ce-8b6e652c9219__Anagrams.py | 2457fc326be525381f55080409095ffc1441a06e | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | class Solution:
# @param strs, a list of strings
# @return a list of strings
def anagrams(self, strs):
res = {}
for x in strs:
sort_x = ''.join(sorted(x))
if sort_x in res:
res[sort_x] += [x]
else:
res[sort_x] = [x]
... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
07fae73bf1b40e363852fe239530e14d20da5971 | 7a2408f4428e1d08a786f67ab45e16082eda7d00 | /src/SubscriptionApp/urls.py | 597c0508d0602d065b14d468a668875a737c7226 | [] | no_license | raselcse07/Subscription-Apps | a0d4323bc59cf5ab572ab056a519631967525628 | c19ebb592e45cae3a3e73df4990e3cbcdee63801 | refs/heads/master | 2021-04-15T10:27:40.440544 | 2019-04-22T17:39:57 | 2019-04-22T17:39:57 | 126,645,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | """SubscriptionApp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"rasel_cse07@yahoo.com"
] | rasel_cse07@yahoo.com |
47612a45628f4a3a65eb6a8307b43d153d062eb0 | ffd784f6535459e33f523aff58ab6b482da45589 | /venv/Scripts/pip3-script.py | 451d318c6f35d2f29209e0c43c8feda6d6b13009 | [] | no_license | CQZYQ1994/auditSystem | a85b8c6016ff5ca6b4e865086cb96694a87127bd | 2d65514187df58e5324688cedf0e97e8539f9549 | refs/heads/master | 2020-07-16T07:55:46.682819 | 2019-08-23T09:27:21 | 2019-08-23T09:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!E:\LabProject\auditSystem\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"793098580@qq.com"
] | 793098580@qq.com |
7b35fe9306b98107167e720292b44a2f2bf9d231 | 733b161d88197457d67d2697f14be77866bd8542 | /python/tosses.py | fac6475316359d1fdbc3e8d4641e8e62902436d3 | [] | no_license | sindhugudivada/python_stack | 950a2801389f828ccd59b0f7d380008eeccb4e43 | d01453c628bd2d50ce1b289932ee50a1bc4fd3be | refs/heads/master | 2021-05-03T19:04:19.068586 | 2018-02-06T07:40:52 | 2018-02-06T07:40:52 | 120,418,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import random
random_num = random.random()
def tosses(num):
print "starting the program..."
count=0
count1=0
for i in range(0,num+1):
x=random.random()
x_rounded = round(x)
if x_rounded == 0:
count=count+1
print "Attempt #",i,": Throwing a coin... It's a head! ... Got",count,"head(s) so... | [
"sindhugudivada67@gmail.com"
] | sindhugudivada67@gmail.com |
dbc94b36d80617248357d6bcd893d5e73722f375 | 2a7c70bbcffe6841c7882c449558f9ee76c3fdb7 | /tests/test_lib.py | 319cd16417ff89e80c7b2b753ae0cbb58c284773 | [
"Apache-2.0"
] | permissive | sebescudie/dtformats | 98b7d3a74ba432eec6bcf57e7c8046bd5013a132 | c48f7167e5d8618d64d2faf33ab2803913c4a6e0 | refs/heads/main | 2023-07-09T02:01:30.837911 | 2021-08-22T17:05:24 | 2021-08-22T17:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # -*- coding: utf-8 -*-
"""Shared test case."""
import os
import unittest
from dtformats import output_writers
class BaseTestCase(unittest.TestCase):
"""The base test case."""
_TEST_DATA_PATH = os.path.join(os.getcwd(), 'test_data')
# Show full diff results, part of TestCase so does not follow our naming
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
5791e26515cedbbd4bb9feb1c4787319a7d57f81 | fd540b341a290a37c3a3a7e8fbffda93bfed2864 | /cloudops/devops/usercenter/migrations/0019_auto_20180329_1420.py | 582b59ce40364106844c4bf2ad40ef57f6645b94 | [] | no_license | bopopescu/devops | 69d88b8209d744d4e722b482d1a7b1a5e95b0850 | 6a03805fc805f7604273e92f19f7fdea953451c2 | refs/heads/master | 2022-11-28T17:58:42.923890 | 2018-11-16T09:49:07 | 2018-11-16T09:49:07 | 281,549,091 | 0 | 0 | null | 2020-07-22T02:01:07 | 2020-07-22T02:01:06 | null | UTF-8 | Python | false | false | 7,578 | py | # Generated by Django 2.0.1 on 2018-03-29 14:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('usercenter', '0018_auto_20180319_1521'),
]
operations = [
migrations.AlterModelOptions(
name='permission',
opt... | [
"83098148@qq.com"
] | 83098148@qq.com |
da898683306525c5b796fb98f37023e9bd2df661 | 55a29edce1d39894eb646ef469e54be9486dd652 | /HandsOn/Aula06/docker_integration.py | 592a2c7f11c9a3b563db573605f2a3e8a760c258 | [] | no_license | Gamboua/python-sysadmin | d48072088b57ec1d4a59243dcf8e2bae04b326b8 | 59d77d512cdf912c3deb4b6fb40853b50784767a | refs/heads/master | 2021-01-19T21:23:55.023715 | 2018-01-18T17:11:15 | 2018-01-18T17:11:15 | 88,652,387 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from docker import Client
cli = Client(base_url="tcp://0.0.0.0:2376", version='auto')
class DockerManager:
def __init__(self):
try:
self.cli = Client(base_url="tcp://0.0.0.0:2376", version='auto')
except Exception as e:
raise Exception(e)
def getContainers(self, todos=... | [
"gabriel.bonfim@4linux.com.br"
] | gabriel.bonfim@4linux.com.br |
57ddd2705fe75dbe00b1eaed7814d0d48fbc1432 | 2f963d7989749037a3ec27aaa39b31416b33cbb2 | /django_swagger_utils/core/parsers/swagger_parser.py | 96b956314216a5bbc663fe1a099fa30b8365923d | [] | no_license | migsantos121/phd3-backend | 3cd014908856c995de3c4473d82059bc9c1b5794 | 9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e | refs/heads/master | 2022-12-12T17:25:59.334509 | 2020-03-09T09:24:08 | 2020-03-09T09:24:08 | 245,991,086 | 0 | 0 | null | 2022-06-28T14:45:50 | 2020-03-09T09:17:18 | Python | UTF-8 | Python | false | false | 5,516 | py | class SwaggerParser(object):
"""
we validate and pass every element of the spec file in the below methods
"""
def __init__(self, spec_json):
'''
:param spec_json: spec file
'''
self.sepc_json = spec_json
def consumes(self):
return self.sepc_json.get("consum... | [
"migsantos121@outlook.com"
] | migsantos121@outlook.com |
78e0ba6572060c32d5c8f1754fdedf1c95f61c74 | 81fed06e7dd7125341c95c71def06ea3afb558f2 | /chat.py | 316d8db22ec7d121efa19beea07602bf24299445 | [] | no_license | andrew-thox/twitterMPs | 55635972eb1abf21fd0395ca881702f49d272076 | 9b3120a64c27a407c14e5e12fed6e4da7c7f15b5 | refs/heads/master | 2021-03-27T14:14:58.187402 | 2017-07-17T22:18:47 | 2017-07-17T22:18:47 | 95,992,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | #!/bin/env python
from app import create_app, socketio
import os
cwd = os.getcwd()
app = create_app(debug=True)
app.template_folder = '/'.join((cwd, 'build'))
app.static_folder = '/'.join((cwd, 'build/static'))
if __name__ == '__main__':
print(app.template_folder)
socketio.run(app)
| [
"andrewkenyon123@gmail.com"
] | andrewkenyon123@gmail.com |
d6a0cc8c1dbf2a023655595177a0e706225f4c24 | 1bb3c20ce5a53889eac280826d7d54194c7db33f | /sort/2108.py | 2c0732c39fcd26478e955be1dc28ae35ff21adeb | [] | no_license | yejiiha/BaekJoon_step | bd2c040597766613985ae8d3a943999cb35d6671 | 3eaedbb832f14c51f3fb990e7e140f00d732df1e | refs/heads/master | 2023-03-24T06:36:28.851139 | 2021-03-21T14:15:40 | 2021-03-21T14:15:40 | 285,825,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | ## 통계학
import sys
from collections import Counter
n = int(input())
num_li=[]
for _ in range(n):
num_li.append(int(sys.stdin.readline()))
def mean(x):
return round(sum(x) / len(x))
def median(x):
return sorted(x)[len(x) // 2]
def mode(x):
cnt = Counter(sorted(x))
modes = cnt.most_common()
... | [
"1126yezy@gmail.com"
] | 1126yezy@gmail.com |
029c678eee9e5149fac9b2e7590413ba7ba3a72d | 2ecb1c63b33ba30c1f5c23e5e72b184637a9a076 | /data-processing/entities/citations/commands/upload_citations.py | 54395106a467c70c79b77b32317af38f2e8014f6 | [
"GPL-1.0-or-later",
"AGPL-3.0-only",
"Apache-2.0",
"AGPL-3.0-or-later"
] | permissive | rishamsidhu/scholar-reader | 76a1c0e4ef8f3e04520d76647cd6cb18aca723c7 | fa97cd5fb57305ff96ac060e225d1c331da31654 | refs/heads/master | 2022-11-15T14:25:19.229461 | 2020-07-14T17:46:47 | 2020-07-14T17:46:47 | 257,456,808 | 0 | 0 | Apache-2.0 | 2020-04-21T02:15:01 | 2020-04-21T02:15:01 | null | UTF-8 | Python | false | false | 4,520 | py | import ast
import dataclasses
import logging
import os.path
from typing import Dict, Iterator, List, cast
from common import directories, file_utils
from common.commands.database import DatabaseUploadCommand
from common.types import (BibitemMatch, BoundingBox, CitationData,
EntityInformation,... | [
"head.andrewm@gmail.com"
] | head.andrewm@gmail.com |
d316f5e1d2904723ec510d87c17c9ef35f45b114 | 2fc334fc61ac7605411328097c2c5e234ca3fb3a | /test_files/doubley linked list/test_countchain.py | fd4f790f8bdc7c35408e29e5ce59d5ff33d11c19 | [] | no_license | lebeausc/caching | 583f8f16483218ddead82ac895d5d00875f3c3e1 | fddfac3e255f31c9e1cd9a79d15900e4d27c302d | refs/heads/master | 2023-03-14T07:19:49.477415 | 2021-03-14T11:02:24 | 2021-03-14T11:02:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | import unittest
import math
from count_chain import CountChain
class TestLRUChain(unittest.TestCase):
@classmethod
def setUpClass(cls):
""":arg
this runs once at the start of test
"""
print('setupClass')
@classmethod
def tearDownClass(cls):
""":arg
... | [
"emylincon@gmail.com"
] | emylincon@gmail.com |
84e2a162b357df036b6911869d75e10427a0d77f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Arcface_for_PyTorch/inference.py | 3e5156e8d649954837e397c2ff15ec29995e7502 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,033 | py | import argparse
import cv2
import numpy as np
import torch
from backbones import get_model
@torch.no_grad()
def inference(weight, name, img):
if img is None:
img = np.random.randint(0, 255, size=(112, 112, 3), dtype=np.uint8)
else:
img = cv2.imread(img)
img = cv2.resize(img, (112, 11... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
473611edbc124beb08bb6d96faca8425820dc525 | 82149a84b47fb37238452a658d5f3a8f23342658 | /Launchkey_MK3/device.py | 96ed22e6d4f1d211f2d629b80d4fa69c504939b3 | [] | no_license | maratbakirov/AbletonLive11_MIDIRemoteScripts | 408c90522d8f54b878e595b0d8af28ad5008a4a1 | 2b25ba9351764c49f7fd1f99875e28e67b002f30 | refs/heads/master | 2023-04-12T04:44:16.715220 | 2021-05-09T11:48:24 | 2021-05-09T11:48:24 | 365,708,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | #Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchkey_MK3/device.py
from __future__ import absolute_import, print_function, unicode_literals
from future.moves.itertools import zip_longest
from past.builtins import unicode
from _Generic.Devices ... | [
"mbakirov@hotmail.com"
] | mbakirov@hotmail.com |
0c29c5851d78181c5933efb4c8ca76eebb1b11e5 | f17941744cd6896d55d17e5531c74241891eca39 | /ternary_to_binary.py | e1f65331682aca549319c59c3b089cc2a9ccdd25 | [] | no_license | snpushpi/CTCL-Solutions | ca95ebd9080ce06a509f52488bf3060729874470 | 5610580d106b17f51356e311bf33d35eb6a1a337 | refs/heads/master | 2023-01-05T13:33:58.678766 | 2020-11-07T06:47:19 | 2020-11-07T06:47:19 | 304,759,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def distinct_pair_k(l,k):
count=0
for i in range(len(l)):
count+=(l.count(l[i]-k)+l.count(l[i]+k))
return count/2
print(distinct_pair_k([4,4,4,3,3,3],1))
| [
"55248448+snpushpi@users.noreply.github.com"
] | 55248448+snpushpi@users.noreply.github.com |
fb835f723f628908ab5e95ac21e25933e8a75b34 | e535afd3e5cdab2b9cde0f58e7a96f6270498b8b | /supervised_learning/0x00-binary_classification/11-neural_network.py | d5feb858ce1a6625142d60d1a56711a1eab2573b | [] | no_license | mlgomez0/holbertonschool-machine_learning | c54445d550c80ab5341605816f5e93f674dda55d | 492ffe5c334f57ea65ce2cc8fcdf9f14528653cc | refs/heads/master | 2022-12-26T21:21:19.304858 | 2020-10-06T19:10:47 | 2020-10-06T19:10:47 | 279,394,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #!/usr/bin/env python3
"""class NeuralNetwork with one hidden layer"""
import numpy as np
class NeuralNetwork:
"""defines single NeuralNetwork for Binary Classification"""
def __init__(self, nx, nodes):
if type(nx) != int:
raise TypeError("nx must be an integer")
if nx < 1:
... | [
"mlgomez230@hotmail.com"
] | mlgomez230@hotmail.com |
a0316a8320b409ad4638de1727d7778428804162 | 13101de2704f3bf05de54f5d3315d6581f463d2c | /examples/test_ezmap2.py | 90c872534df2eabcc521eaeaa02e98efdf3eb95b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kashenfelter/pyina | f30ed2139d3a39cf67bdf07dca7caaa28c5c46de | 8f37f5e8eb42fd9720bee3f67201802eb6c364c8 | refs/heads/master | 2020-03-08T22:25:26.384959 | 2018-01-07T23:26:22 | 2018-01-07T23:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2018 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/py... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
3141bab73719198a5d2aed119154605fd42e14e3 | 001ee6b21c88dafe330d5ec37ecca60ec98d86b3 | /fluentcms_filer/picture/tests.py | 5e398c033c3b1666862b5b22527acd82184f3833 | [
"Apache-2.0"
] | permissive | bashu/fluentcms-filer | fe71f9bd5ba07aadbb047cefe879bd8e8654c2ea | fcb11c94b7b048c42ca9806406ef048288b45667 | refs/heads/master | 2021-11-26T21:25:25.868340 | 2021-11-22T08:57:46 | 2021-11-22T08:57:46 | 41,464,879 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from django.test import TestCase
from django.core.files import File as DjangoFile
from django.core.files.uploadedfile import SimpleUploadedFile
from fluent_contents.tests.factories import create_content_item
from fluent_contents.tests.utils import render_content_items
from filer.models import Image
from fluentcms_file... | [
"basil.shubin@gmail.com"
] | basil.shubin@gmail.com |
1346ba96f14ec2ebadc90653f1f216a95a3a2e4f | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/fb_post_learning/fb_post/utils/__init__.py | e8c1406c73d81c373cdfd2acd6e27902c9402cf6 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | {"filter":false,"title":"__init__.py","tooltip":"/fb_post_learning/fb_post/utils/__init__.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":4,"column":30},"end":{"row":4,"column":46},"isBackwards":false},"options":{"guessTabSize":true,"useW... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
2481b278129e663a508abdffee089b229ae816cd | eded9c139afb4fe9db0c38988ab5e52258c9aecd | /python/embed-target-code-in-one-image.py | 86d68b3b79dda1254ca303c9003f4cce86a0cf0e | [] | no_license | oritalul1/rekognition-challenge | 0aac45fe663c0c285e1449edbf0906bd74b2192a | cb4791949759fa3771e061864213b78cbaf4635a | refs/heads/master | 2020-07-06T12:09:17.985210 | 2020-02-26T07:17:45 | 2020-02-26T07:17:45 | 203,012,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
import boto3
from io import BytesIO
import random
import string
import os
textColor = (0,0,255)
font_size = 40
font = ImageFont.truetype('/Library/Fonts/Arial.ttf', font_size)
maxCelebsIndex = 5467
sourceImage = "target-images/2811.jpg"
target... | [
"oritalul@amazon.com"
] | oritalul@amazon.com |
93a2f12b03b90d732e917ce2dd771d1f1fb05e38 | 6390bd9eff502d4c6116087f62992b961aacbd78 | /menagerie/helpers.py | f4978656b988509a0ad1a915dd90c1793342e94e | [
"Apache-2.0"
] | permissive | phonkee/menagerie | 73da804afe683e0aacf4537ed621aa563000731e | 09ee1d5205912c6f7bbeea3a28188fd271aecb39 | refs/heads/master | 2020-12-27T02:26:51.707065 | 2014-10-22T00:37:45 | 2014-10-22T00:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | import logging
import os
from django.conf import ENVIRONMENT_VARIABLE, Settings, settings
from django.core.exceptions import ImproperlyConfigured
from kazoo.client import KazooClient
from menagerie.holder import ZooKeeperSettingsHolder
logger = logging.getLogger(__name__)
def configure(module=None, client=KazooCl... | [
"ted@kaemming.com"
] | ted@kaemming.com |
d002e1aa1110a3fbe660b51ceab78485885a1ce0 | 4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7 | /geotrek/trekking/migrations/0027_auto_20210121_0943.py | 708d7b07a410110920e0b534bb6dead9ee557562 | [
"BSD-2-Clause"
] | permissive | GeotrekCE/Geotrek-admin | c13d251066e92359c26f22d185b8bd2e26e622ef | a91b75261a876be51ad2a693618629900bea6003 | refs/heads/master | 2023-08-21T12:45:25.586551 | 2023-08-09T12:28:33 | 2023-08-09T12:28:33 | 9,886,107 | 71 | 56 | BSD-2-Clause | 2023-09-13T09:40:33 | 2013-05-06T12:17:21 | Python | UTF-8 | Python | false | false | 4,587 | py | # Generated by Django 3.1.5 on 2021-01-21 09:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trekking', '0026_auto_20201217_0940'),
]
operations = [
migrations.AlterField(
model_name='accessibility',
name='pic... | [
"gael.utard@makina-corpus.com"
] | gael.utard@makina-corpus.com |
dbe5d15ad2ff1da3a8f02138b1f1c9ef42a941e6 | ef4da0745ef7b9023fe4740aab329f88d6f1deeb | /docs/source/usrman/conf.py | 87cba653151ddab33626f98ef4e5e13acedf26b7 | [] | no_license | shuds13/mpi4py | 797f2b43211828a288cb31472c701cc54c0c5852 | 5333adda4164160cdef3372e272284973708a6d0 | refs/heads/master | 2021-07-05T01:05:06.145471 | 2017-09-29T22:46:38 | 2017-09-29T22:46:38 | 105,322,475 | 0 | 0 | null | 2017-09-29T22:32:19 | 2017-09-29T22:32:18 | null | UTF-8 | Python | false | false | 10,544 | py | # -*- coding: utf-8 -*-
#
# mpi4py documentation build configuration file, created by
# sphinx-quickstart on Thu Jan 19 17:29:48 2017.
#
# 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
# autogenerated file.
#
# Al... | [
"dalcinl@gmail.com"
] | dalcinl@gmail.com |
e72c74054deb4cf45315cb51aeac0b9a0f59f620 | c00da3e0600ffd6c1d738a7885ce3834df101670 | /end/demo1/mytext.py | 9fadc260740babed2d2a58d515c95daace7c47ec | [] | no_license | 1987617587/py1911project | 60cd8d9a474c947462829b338d1cf50a96c1f023 | c730861d846cbcb4dbfe92109cfd48b2b6623e9a | refs/heads/master | 2023-01-09T13:54:21.487166 | 2020-04-27T01:19:47 | 2020-04-27T01:19:47 | 239,649,427 | 0 | 0 | null | 2023-01-05T10:20:38 | 2020-02-11T01:22:33 | Jupyter Notebook | UTF-8 | Python | false | false | 17 | py | # import requests | [
"1987617587@qq.com"
] | 1987617587@qq.com |
59353a34df373c5d13438f16c28a57343e0ef74c | 5d5e924eec544e08d0c18343590d1d10cd5704a1 | /range-queries/FenwickTree.py | 292c6d6387ecdc3547fe350dc2089f9cfcfcd18c | [] | no_license | cosmicRover/algoGrind | 9681a88e8500381cff5426371ff322194aed202d | 9e53ce83e36b88a164e1c11570b55781396b4d7d | refs/heads/master | 2021-08-16T18:05:48.661748 | 2021-06-18T20:49:25 | 2021-06-18T20:49:25 | 189,326,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | # Fenwick or Binary Indexed Tree is a neat space/time efficient DS to calcualte range sum queries.
# This DS depends on finding the least significant bit. Find a lsb using num & -num expression
class FenwickTree:
def __init__(self, inputArr:[int]):
self.inputArr = inputArr
self.buildPrefixTree()
... | [
"jpaul3250@gmail.com"
] | jpaul3250@gmail.com |
c30584013fca2b1dc991a3683de4ef8df6459fc6 | f22599ee9ab6b5d0b441e9d898a9c482967ff510 | /osef/apps/users/migrations/0007_account.py | 2cea5963759bd795dd377b095bb86bf6725ef0d6 | [] | no_license | DJeanCar/Osef | 11ce033ec60a8db5340564cba059a73712d0431b | 6661aa08ffbead7b2aad039a78135c569fe602e1 | refs/heads/master | 2020-05-22T04:35:28.577613 | 2017-04-01T22:01:19 | 2017-04-01T22:01:19 | 65,255,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-24 15:33
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20160923_... | [
"jean_carlos104@hotmail.com"
] | jean_carlos104@hotmail.com |
b2eda1c711695e149462c4872b050b80f5a5af07 | 6817c0ca3f3a0340d4741e8850477c4bcc26300a | /examples/tensorflow/image-classification/run_image_classification.py | b115906064f4fd8b7fe2dc7679ce79e722e666f6 | [
"Apache-2.0"
] | permissive | cedrickchee/transformers-llama | 4df9d829e9e07cd7f813db6f3fbb1bc892cc443a | 98467b6d9276ed857238173776ec39d05f14346c | refs/heads/llama_push | 2023-05-23T12:37:44.608815 | 2023-03-17T10:17:14 | 2023-03-17T10:17:14 | 609,750,737 | 27 | 4 | Apache-2.0 | 2023-03-17T10:17:16 | 2023-03-05T05:39:49 | Python | UTF-8 | Python | false | false | 24,560 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | [
"noreply@github.com"
] | cedrickchee.noreply@github.com |
e2511022150f73d1cd61633474ff1da1c244df88 | 4a7856e8e2051d0b097d6e82d19848041461f3c0 | /21cookbook_gevent/3.线程间通信.py | 520cfdf80a0dabd9536bba2fdee21e8024f27ce8 | [] | no_license | z991/python_mianshi_self | 18e7ee4487a4138f90b99d35f6c12e7720dfb3dc | 204be15986094e6a276ead0c8ca7c110dec09b03 | refs/heads/master | 2022-04-05T11:56:22.484667 | 2020-02-10T10:30:38 | 2020-02-10T10:30:38 | 239,090,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from queue import Queue
from threading import Thread
def producer(out_q):
while True:
# Produce some data
out_q.put(data)
def consumer(in_q):
while True:
# Process the data
data = in_q.get()
print(data)
q = Queue
t1 = Thread(target=consumer, args=(q,))
t2 = Thread... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
eb313d72c25d6b2371d576fddd9fde15f56c6e64 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/pocs/bugscan/exp_1286.py | f485bd542ae1460ff8a1620d0fc4bb4f65d87592 | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
from dummy import *
from miniCurl import Curl
curl = Curl()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#__Author__ = 01001000entai
#_PlugName_ = heeroa
#__Refer___ = http://www.wooyun.org/bugs/wooyun-2010-058143
def assign(service, arg):
if service == 'heeroa':
retur... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
2100a15df86b464d7ae853655da8753dd6116aea | fc4aaf15ef2b10c89728651316300ada27f14ae3 | /amazon/settings.py | 678fae2f298d4d2c2c5843bcd0a5ce2f4b7f906f | [] | no_license | ethicalrushi/seller | 7f6231e710b32e8d7700e32e321879728de65546 | 9473fcb6595c27c7adbcea24990b6e8f006d3e8a | refs/heads/master | 2020-03-08T04:00:59.089892 | 2018-04-04T17:48:19 | 2018-04-04T17:48:19 | 126,335,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | """
Django settings for amazon project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
i... | [
"pupalerushikesh@gmail.com"
] | pupalerushikesh@gmail.com |
893d13a598e92099086f324e094bfc2148c8a10c | 89b9b5a41f1d79f3b8e2949cc4390ecf9d23993b | /ArticleSpider/tools/selenium_spider.py | f44a08be662e8e2592c31fa577a2a2b62f515b39 | [] | no_license | yasin007/ArticleSpider | 738c6507208282128f770d6a561062be6e958b15 | 1e31cf22288482cd947624a70df89b30176a5d75 | refs/heads/master | 2020-03-22T17:05:53.001149 | 2018-07-25T10:25:39 | 2018-07-25T10:25:39 | 140,057,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | """
create by 维尼的小熊 on 2018/7/25
"""
__autor__ = 'yasin'
from selenium import webdriver
from scrapy.selector import Selector
import pandas as pd
browser = webdriver.Chrome(executable_path="/Users/yiyang/Desktop/chromedriver")
browser.get("http://s.weibo.com/top/summary?cate=realtimehot")
t_selector = Selector(tex... | [
"yangyi@gogopay.cn"
] | yangyi@gogopay.cn |
7a9dd854243bca760b17c1a25f644dd136621139 | 339477561185ef89482de98bc85b56ecd2657b7b | /src/python/dart/test/schema/test_trigger.py | 574cb0934a5a3c11c4b44260d8d26959d379d823 | [
"MIT"
] | permissive | RetailMeNotSandbox/dart | 68d875f71fab4ec00021fe795736226d932d6363 | 58a05f56c04fadd6741501262d92aeb143cd2f2e | refs/heads/master | 2020-04-04T07:36:36.549190 | 2017-09-11T14:40:01 | 2017-09-11T14:40:01 | 53,060,421 | 18 | 15 | null | 2017-10-24T17:11:28 | 2016-03-03T15:16:33 | JavaScript | UTF-8 | Python | false | false | 1,382 | py | import unittest
from dart.model.trigger import Trigger
from dart.model.trigger import TriggerData
from dart.model.exception import DartValidationException
from dart.schema.base import default_and_validate
from dart.schema.trigger import trigger_schema
from dart.trigger.workflow import workflow_completion_trigger
cla... | [
"dmcpherson@rmn.com"
] | dmcpherson@rmn.com |
271c94a815637f2e963b2224338874835ff8227a | 91fb65972d69ca25ddd892b9d5373919ee518ee7 | /pibm-training/sample-programs/py_everything_is_an_obj_004.py | 847a21659d889003a72e6a6be39cefd8c0483fb4 | [] | no_license | zeppertrek/my-python-sandpit | c36b78e7b3118133c215468e0a387a987d2e62a9 | c04177b276e6f784f94d4db0481fcd2ee0048265 | refs/heads/master | 2022-12-12T00:27:37.338001 | 2020-11-08T08:56:33 | 2020-11-08T08:56:33 | 141,911,099 | 0 | 0 | null | 2022-12-08T04:09:28 | 2018-07-22T16:12:55 | Python | UTF-8 | Python | false | false | 410 | py | #py_everything_is_an_obj_004.py
a = "spam"
b = "spam"
#
print(id(a))
print(id(b))
#
# id() returns the actual memory location where the variable is stored.
# Since id(a) = id(b), we know that a and b both point to a single variable,
# that resides in a single memory location.
# This is what we mean by “multiple na... | [
"zeppertrek@gmail.com"
] | zeppertrek@gmail.com |
800e89f58da02490701613fa12344266ba897b14 | 2ca7eda87460f702bec33708d8a494d8c701a7b2 | /tensorflow/python/autograph/core/converter_testing.py | 4b170159b8b41763d79b70a872ecc3cc2e5f3e64 | [
"Apache-2.0"
] | permissive | xiaolinpeter/tensorflow | 7f931b294a434d731185131c22034c6b68cdf2b7 | 28aa08fc1e017355fc1118913bd988cf7890bec5 | refs/heads/master | 2021-05-19T06:55:47.491635 | 2020-03-31T09:02:33 | 2020-03-31T09:05:54 | 251,556,442 | 2 | 0 | Apache-2.0 | 2020-03-31T09:24:32 | 2020-03-31T09:24:31 | null | UTF-8 | Python | false | false | 6,303 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
aa469f6faeacae98bc37215c471a7d29514e111b | aab50ee31f6107fd08d87bd4a93ded216eebb6be | /com/two/dyb作业/day1105/myrequest/requestmodelapp/models.py | 20b808039a0077f840e7bed84fa66da2dd3bf6b1 | [] | no_license | dyb-py/pk | deaf50988694475bdfcda6f2535ba0e728d79931 | b571b67a98fa0be6d73cccb48b66386bc4dfd191 | refs/heads/master | 2020-12-29T15:06:20.294353 | 2020-02-06T09:05:08 | 2020-02-06T09:05:08 | 238,646,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.db import models
# Create your models here.
class User(models.Model):
name = models.CharField(max_length=20)
pwd = models.CharField(max_length=20)
| [
"m15935117233@163.com"
] | m15935117233@163.com |
fc7504f64fcb26c7d5035fbee786a7e57a2c34ac | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /isSymmetric.py | 79f00566f77d274d7d7a0a251bd743ace6f9d2e4 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from typing import *
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def isSymmetric(self, root: TreeNode) -> bool:
return self.check(root,root)
def check(self,a,b):
if ... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
34541a220f0021e2fc626e4ea65244a21a173ebb | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/datashare/data_set.py | d5f3710f761c8cc8664bcddd11bc2dee047f48de | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 11,144 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
10ba3fbfaf460a0e41a84e2f69bf19fd96bca9dd | cead744e9e6beadfeec6bc31d81344957240c984 | /tests/test_config.py | e2376eae130597a2b256e0451d69cb1dfcfba1e3 | [
"MIT"
] | permissive | KarrLab/bpforms | fe99a4bf574663f29355faceec5f6637d01342fe | 24ffbcc744594f827acce7a5306655630b89ff1b | refs/heads/master | 2021-06-28T15:27:43.041208 | 2020-10-05T22:01:17 | 2020-10-05T22:01:17 | 168,573,218 | 6 | 2 | MIT | 2019-02-11T08:11:22 | 2019-01-31T18:16:59 | HTML | UTF-8 | Python | false | false | 276 | py | """ Tests of config module
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2019-03-11
:Copyright: 2019, Karr Lab
:License: MIT
"""
from bpforms import config
import unittest
class ConfigTestCase(unittest.TestCase):
def test_get_config(self):
config.get_config()
| [
"jonrkarr@gmail.com"
] | jonrkarr@gmail.com |
b48d585eccf2183f629aa48e1034f9be4ee17f4c | a7889814723299c76c4c570f6c9947603dc23c08 | /main.py | dca1d661fea74c9bed1f885c1eff29810d833ad2 | [] | no_license | hristo-grudev/greatwesternbank | 2614a3642dfc46aa8ea75c8b9933b9c18754ce1d | 37640e3143be51b5882a1258560ef35cf79317b2 | refs/heads/main | 2023-04-10T22:57:16.666606 | 2021-04-01T10:53:10 | 2021-04-01T10:53:10 | 353,667,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl greatwesternbank".split()) | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
1f61d824ef04633f5659b49cfc0df6cfd24fb6cc | e64de58e38fcccc05d979754f37fa372cde2d854 | /herrera_payment/report/__init__.py | 4301a21cd5d7fb01ef872aecccfdaca6c020ab6b | [] | no_license | adrt271988/herrera_v7 | 9865fe09dc29e1c45566c198c86a6e8058febf27 | da981908d4cb537484a02a4c431aa54ef20c6a12 | refs/heads/master | 2021-01-10T14:55:22.936097 | 2016-03-05T12:49:15 | 2016-03-05T12:49:15 | 53,201,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | import pay_planning
| [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
66426b3c06b57f340c699169e8b46eeafc9388ce | 5b4f53eb2fbceead172dd216bc22df153cb354ff | /evaluation/an_cost.py | d68c4929a85a36c572fe31bae328617f64c7218c | [] | no_license | openMECPlatform/fast-simulator | cf726e056fd0f1bc093177a6c26e50b2fa01fcb1 | 08102f45608c4623eba37a75d0ffa2d3e60f39fb | refs/heads/master | 2023-03-10T04:22:20.968619 | 2021-02-12T12:18:14 | 2021-02-12T12:18:14 | 338,309,826 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,483 | py | import pickle
import matplotlib.pyplot as plt
# import cPickle as pickle
from matplotlib import legend_handler
import numpy as np
# rsfca_line4_list = pickle.load(open("rsfca_box4.pickle", "rb"))
path = "/home/test/00-fast-journal/moop/fast-integration/fast-simulation/evaluation/results/sample/"
# ==================... | [
"tung.doan_van@tu-dresden.de"
] | tung.doan_van@tu-dresden.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.