blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57edf54968bd8f9aa604b3bbd370aaea01c0058b | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/service_management/versions/list.py | 1081f25ed6fabb18de91f5f9a1c4a374c6715256 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 2,323 | py | # Copyright 2016 Google Inc. 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 ag... | [
"toork@uw.edu"
] | toork@uw.edu |
ce1cc692b3dac30760be2df29f35c3e908af13ed | 625108dc5a9b90d0f22609788ff52aff155a2c99 | /selection/randomized/intervals/umvu.py | 244b7ab95787db5cfc5734333bfeef20955d59c1 | [] | no_license | guhjy/Python-software | 0169f6618a570bb5a5e3aaf29e895d2251ca791c | 061a050bd17ca6f276296dbfa51573f001c320b1 | refs/heads/master | 2021-01-09T20:55:01.417131 | 2016-09-12T20:43:43 | 2016-09-12T20:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py | import numpy as np
from scipy.optimize import minimize
from matplotlib import pyplot as plt
from selection.sampling.randomized.tests.test_lasso_fixedX_saturated import selection
from selection.sampling.randomized.tests.test_lasso_fixedX_saturated import test_lasso
from selection.sampling.randomized.intervals.estimati... | [
"jonathan.taylor@stanford.edu"
] | jonathan.taylor@stanford.edu |
ec92755ec5da66c7597fc099c86e14dfdfc2c8b4 | 4d26e3a96beeac06d876a3b1b77254f3bdc53561 | /examples/housing/pipelines.py | 7ae60b36dbef559c3dc35b80e9bf1e9aaa8c9ec2 | [
"Apache-2.0"
] | permissive | etrain-xyz/tabml | d009e49118688a52abf2ce53798ca50d0de2ce1e | 51433b74db8165d41e4bb98fdce8a005d9c56b4d | refs/heads/master | 2023-06-14T03:14:57.577226 | 2021-07-05T23:39:45 | 2021-07-05T23:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from tabml.pipelines import BasePipeline
def train_lgbm():
path_to_config = "examples/housing/configs/lgbm_config.pb"
pipeline = BasePipeline(path_to_config)
pipeline.run()
pipeline.analyze_model()
if __name__ == "__main__":
train_lgbm()
| [
"vuhuutiep@gmail.com"
] | vuhuutiep@gmail.com |
706e7cfa01a1f6be1e657f6749c50b67dfd031f6 | 5b07cea70547789bab8221fef116b62f743922ca | /AtCoder/ABC145/C.py | e7d1949c1ba955ad998d2e276938b51af0270f78 | [] | no_license | bokukko7/AOJ_AtCoder | 0f504b3c39843ffd9b3fc5f0146a64c7416a26e3 | 3f60aca57b9529545c710b6ce7d4ea35253562b0 | refs/heads/master | 2023-01-08T21:31:30.105860 | 2020-11-15T14:39:45 | 2020-11-15T14:39:45 | 260,136,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from itertools import permutations
from math import sqrt
n=int(input())
permlist = list(permutations(range(n)))
#print('permlist: {}'.format(permlist))
x = []
y = []
for i in range(n):
xi,yi = list(map(int,input().split()))
x.append(xi)
y.append(yi)
lengths = 0.0
for p in permlist:
length = 0.0
f... | [
"bokukko7@gmail.com"
] | bokukko7@gmail.com |
2023f651669af2731fb4b0a7c994aab320deaf9a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_292/ch1_2020_03_04_00_28_27_767956.py | 970407c158dd2cfc23d97ad47cc78ddd880d5202 | [] | 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 | 142 | py | def calcula_valor_devido(valor_emprestado, número_de_meses, taxa_de_juros)
valor_devido=valor_emprestado*(1+taxa_de_juros)**número_de_meses | [
"you@example.com"
] | you@example.com |
ae595e2ffdc2214c90eb0db12aca48dc0d1411c1 | 5113ceae178ba76f1b3fca9a0fc2832ea6ba7e07 | /imageclassification/src/sample/diffeo/_temperature_range.py | 45c6ae612aa29d39110cbfede3c8fb2568ec5e43 | [
"MIT"
] | permissive | waikato-datamining/keras-imaging | ccb3c75298001648505916eb25bea4583002d6c2 | d3136b14484e26caa2c6f2b984b40be671bef174 | refs/heads/master | 2022-03-19T09:17:39.519958 | 2022-03-08T21:27:03 | 2022-03-08T21:27:03 | 215,889,543 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import math
def temperature_range(n: int, c: int):
"""
Determines the minimum and maximum temperatures that will result in a
diffeomorphism given image size n and cut-off mode c. See Appendix B
of the paper for details.
Modified from function 'temperature_range' at
https://github.com/pcsl-epf... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
7be075383d8d80ec66ba738d5f1ee256b83de563 | 840c19fdeb97216ad66b3e7fe236cfc17a061606 | /workshop1/sample09_제공파일.py | 1804be9417d434b83af4b40bef2284b75da714c9 | [] | no_license | choicoding1026/data | 07b431abdf36bcf7aefdf249fd1251acfd1e0334 | 684ca791108bc6ba0c315a70e3fa712c0ab2cca6 | refs/heads/master | 2022-12-24T17:55:25.092085 | 2020-10-08T04:54:39 | 2020-10-08T04:54:39 | 302,201,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
import pandas as pd
import numpy as np
df = pd.read_csv('data/sample_data.csv', index_col=0)
print(df)
### 코드 구현 ######
df.loc[df['age'] < 30, 'score'] = 99
print(df)
### 코드 구현 ###### | [
"justin6130@gmail.com"
] | justin6130@gmail.com |
6c8e9fad9edd29991a97ba44dd68804f2e3e9278 | 92eec9d251e24f48fa42160e5061c5fb3120fdbb | /ipython/branches/prototype1/ipython1/distutils/sysconfig.py | 83488cb9237fe2b320dfc36325c236534d5f0782 | [] | no_license | minrk/ipython-svn-archive | 55dde54f52284c5c3b32ac2a12bb4734e5f8e7f8 | 9b32089282c94c706d819333a3a2388179e99e86 | refs/heads/master | 2022-12-24T19:50:01.359278 | 2020-09-25T09:34:04 | 2020-09-25T09:34:04 | 298,268,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | print "Here is ipython1.distutils.sysconfig!!!!!!"
import distutils.sysconfig
import os
def customize_compiler(compiler):
"""Do any platform-specific customization of a CCompiler instance.
Mainly needed on Unix, so we can plug in the information that
varies across Unices and is stored in Python's Makefil... | [
"ellisonbg@gmail.com"
] | ellisonbg@gmail.com |
57fd75a10db96e1c4b6fbae197c09c8d1a063470 | 73770ddb5441f589742dd600545c555dd9922ae8 | /db_scripts/versions/5065adebbe16_sixth.py | 3b3d9028de8426521aaca2aa477b85ca75e31749 | [] | no_license | annndrey/trainingsite | c200a203c7a5fe832de70e9497a93df3745d63ef | 6dce55dc25b2a6f5285a8cfba1fbd7d83dbbe96b | refs/heads/master | 2020-03-29T16:11:06.336532 | 2018-09-24T12:53:55 | 2018-09-24T12:53:55 | 150,102,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """sixth
Revision ID: 5065adebbe16
Revises: 3c3dfeb27069
Create Date: 2017-07-24 16:49:07.404058
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5065adebbe16'
down_revision = '3c3dfeb27069'
branch_labels = None
depends_on = None
def upgrade():
# ### comm... | [
"annndrey@trololo.info"
] | annndrey@trololo.info |
6eae110f8a21a4340376d9ade86431c282a646e3 | 13313192ec3fae980293a207ae7c3080a19cf636 | /backend/instrument/migrations/0004_auto_20200513_2303.py | acf244540558c1dd8fb719bb9f7f3fea15317604 | [
"MIT"
] | permissive | zecaclasher/financial-management-gate | 36e937024d738d5150aa41d90184719b3bd0edc9 | 4bcbba04bf1f366d75263239758a12bf6246bdcd | refs/heads/master | 2023-08-13T10:59:30.171723 | 2020-09-13T00:54:41 | 2020-09-13T00:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Generated by Django 3.0.3 on 2020-05-13 23:03
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('instrument', '0003_auto_20200513_2143'),
]
operations = [
... | [
"felipe.maion@gmail.com"
] | felipe.maion@gmail.com |
905ba3f6b2a01a93b4ebcbb63049ce4efe55efde | 5184c107af659380eee3f0ea1d80aebd76de0610 | /reinforcement_learning/modules.py | 9235bf1de342f497ffbaa8848f7e578d9cb7ebc1 | [
"BSD-3-Clause"
] | permissive | capybaralet/examples | bcb6fa952edb2f3778afcabc0c405771c7ef215e | 318c036bf6c19e027e7adabde61146dc756e7310 | refs/heads/master | 2021-01-20T05:43:44.545610 | 2019-08-13T04:50:23 | 2019-08-13T04:50:23 | 89,801,363 | 0 | 0 | null | 2017-04-29T17:28:47 | 2017-04-29T17:28:47 | null | UTF-8 | Python | false | false | 7,768 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.autograd as autograd
from torch.autograd import Variable
class StateDiscriminator(nn.Module):
"""
Very similar to reward predictor; the main differences are in the construction of the... | [
"davidscottkrueger@gmail.com"
] | davidscottkrueger@gmail.com |
3ab6f99f34cc9268d5d65dce60b899b360c5b5a6 | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/2010-local-film-festivals/depositor.py | b9b63bc785bacb25c08cef0c0c0a357d49b9d18b | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/views/yggg-xf4b/rows.csv?accessType=DOWNLOAD")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/2010-local-film-festivals/data.csv", "wb") as f:
f.write(r.content)
outputs = ["/home/alex/Desktop/urban-physiology-nyc-catalog/catal... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
541de4cd6b66ab3e11895ee2efee08c139b731f4 | bce44ee712171b79161716379ac0607cd28573c7 | /devasc/5_consuming_REST_based_APIs/basic_softcoding.py | 5ecaa3f51faad17c6b919054338b0023c66fd00b | [] | no_license | jmstudyacc/Cisco_DevNet | 0d620338f2846ea8c473eedbe0d8c7672306b214 | fd30676dfbacdd5097b8883818c646db73b34543 | refs/heads/master | 2023-07-03T08:25:10.958914 | 2021-08-08T23:22:40 | 2021-08-08T23:22:40 | 275,610,846 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import configparser
import requests
def api_call(context, result_limit=10):
config = configparser.read('api_key.ini')
api_key = config['api_key']
# url is read from the application context - this represents the runtime configuration of the application
# application context usually contains data that ... | [
"jmstudyacc@gmail.com"
] | jmstudyacc@gmail.com |
8f0a1e9b5f884897337355f39cf14aeb2ef02ee2 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2014_09_16_stress_colony_mks/error_boxplot_stress.py | 1a494dcab39430d2684d30cb554c465de8e2992b | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 23 12:24:47 2014
@author: nhpnp3
"""
import numpy as np
import matplotlib.pyplot as plt
ns = 50
set_id = 'val'
typ = 'sigma'
## el is the # of elements per side of the cube
el = 21
## vector of the indicial forms of the tensor components
real_comp_desig = ['11','12','... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
fc0f40ee09c2131a6dadf48882817e236568e680 | 859edec8005915b420ef5411a95a68d139771e88 | /ex41_LearningToSpeakObjectOriented.py | 5bd927c40518cf4b7b4776e0d409197506fa9722 | [] | no_license | shunz/LearnPython3TheHardWay | f470044f61bd52b1457127578d86297e5f06a761 | fec84970929683d3322a452bd5a175d64a740662 | refs/heads/master | 2021-05-26T16:07:07.090545 | 2020-05-22T17:16:12 | 2020-05-22T17:16:12 | 254,131,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | # Exercise 41: Learning to Speak Object Oriented
"""学习面向对象术语
专有词汇练习
• 类(class): 告诉Python创建新类型的东西
• 对象(object): 两个意思,即最基本的东西,或者某样东西的实例。
• 实例(instance): 这是让Python创建一个类时得到的东西。
• def: 这是在类里边定义函数的方法。
• self: 在类的函数中,self指代被访问的对象或者实例的一个变量
• 继承(inheritance): 指一个类可以继承另一个类的特性,和父子关系类似
• 组合(composition): 指一个类可以将别的类作为它的部件构... | [
"rockucn@gmail.com"
] | rockucn@gmail.com |
ac2736279f951e6d8698e7f07093f91d13ed767f | 33a0d5ec6ca440986f22b010ffb310bf34c4fcac | /Basic_grammar/LIst1/冒泡.py | e006acb7f03191a8d334e4638da3a353cca3bcc6 | [] | no_license | zhaozongzhao/learngit | c3de619f07840839819ffee4bbacb590caba8dbe | a6471e6d63b298882ceed020cc3b56e457ed2ca0 | refs/heads/master | 2023-07-21T23:04:51.249300 | 2021-09-17T10:29:54 | 2021-09-17T10:29:54 | 100,707,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | lt = [3, 5, 2, 1, 8, 4]
n= len(lt)
for x in range(n-1):
for y in range(n-1-x):
if lt[y]>lt[y+1]:
lt[y],lt[y+1]=lt[y+1],lt[y]
print(lt) | [
"2206321864@qq.com"
] | 2206321864@qq.com |
bb7a466945d30e9980eb89775dbc8012e249c57d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/52/usersdata/97/22317/submittedfiles/matriz1.py | e264c3d8a0b65c6d65599cb634273845c508aae5 | [] | 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 | 1,056 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def ColunaEsquerda(a):
CE=0
for i in range(0,a.shape[0],1):
for j in range(0,a.shape[1],1):
if 1 in a[i,j]:
CE=i
break
return CE
def ColunaDireita(a):
CD=0
for i in ran... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d206717159e61438f87b34145c86b11a66097d31 | eeb469954b768095f2b8ad2376f1a114a3adb3fa | /113.py | 0438c7010f47d215267882c9f866b91982bd7cb6 | [
"MIT"
] | permissive | RafaelHuang87/Leet-Code-Practice | ef18dda633932e3cce479f7d5411552d43da0259 | 7754dcee38ffda18a5759113ef06d7becf4fe728 | refs/heads/master | 2020-07-18T20:09:10.311141 | 2020-02-11T09:56:39 | 2020-02-11T09:56:39 | 206,305,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> List[List[int]]:
self.res = []
self.total = sum
def caculate(root, sum, tem... | [
"rafaelhuang@163.com"
] | rafaelhuang@163.com |
9b4d9e0b5a90a993a5b770668a2015d3aacd5b4a | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_01_01_preview/operations/_operations.py | 7e220da70af20592fc4c781a3986faa093b25983 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 4,892 | 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"
] | gaoyp830.noreply@github.com |
2dfdee26985ccf9e59eb22e2936471d607662e89 | e747bac825ed5807f72654030e108b8c8f96b902 | /mysite/.history/blog/models_20200714093422.py | 79abb682a3340117534f7fa9d4a7d0bca5ea13ba | [] | no_license | AyatSoft/Tech_blog | 4415ab7dfb04bc53bddaf16fd4772e8554680ae8 | 4728c44e0685c3b97038db5e0232e12f35446e23 | refs/heads/master | 2022-11-15T23:01:52.310968 | 2020-07-16T08:52:51 | 2020-07-16T08:52:51 | 280,103,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth.models import User
class Post(models.Model):
author = models.ForeignKey(
User, on_delete=models.CASCADE, related_name='post_author')
title = models.CharField(max_length=200)
text... | [
"tanviredu2018@gmail.com"
] | tanviredu2018@gmail.com |
e5805117879335454dedbbddb73c2f1537d1d593 | b2e1897754b2327e7c422c6158cde55c827e1f28 | /landing/admin.py | 800841ccb1baed543c3b8f42de4c80a1f80b501e | [] | no_license | Nsokol44/FulminEnergy | eacb2c04ed0585c24b3d704f2f16a957f58c02f3 | e4a4ca330ba2310ebdbec011838f9711fe76a7c6 | refs/heads/master | 2023-02-16T22:56:27.552780 | 2021-01-16T21:27:43 | 2021-01-16T21:27:43 | 329,776,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from django.contrib import admin
from landing.models import Information
from django.http import HttpResponse
import csv, datetime
# Register your models here.
class ExportCsvMixin:
def export_as_csv(self, request, queryset):
meta = self.model._meta
field_names = [field.name for field in... | [
"nsokol@nicholass-mbp.lan"
] | nsokol@nicholass-mbp.lan |
64865dece054b9272f7454911cb5de996a8bc26e | ab04a15c9999870d1f1a76be4e9c46e31c9cf4e9 | /py/sxcorpus/preprocess.py | 619bcf0e88867a407fda512618600b2a3fc7b04d | [] | no_license | shixing/SDA-LDA | 87fdc72d809cdc657e0e7a0062de10024451ad14 | 266f5879155c1a7d50c3bf766d417776e7db36d5 | refs/heads/master | 2021-01-22T03:40:08.320004 | 2014-05-11T21:33:34 | 2014-05-11T21:33:34 | 19,208,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import sys
def preprocess_wiki(fn,output_fn):
f = open(fn)
output = open(output_fn,'w')
lid = 0
for line in f:
line = line.strip().split()
line = line[2:-1]
line = ' '.join(line)
line = line[1:-4]
line = line.decode('string_escape')
output.write(line+'\n'... | [
"shixing19910105@gmail.com"
] | shixing19910105@gmail.com |
30d1b593deaddf2edc1877c9bd75fbbaff1a14fb | c3132612a7ac311e501e432e1a4c7592bbd7a713 | /day09/code/01_Day08作业.py | 74ba4861c656ee14efd56e4a314440154128ce98 | [] | no_license | everqiujuan/python | 7b8e169107012c3d7829d4ebd9860482fc0d8fec | b0a98de943217e24da60f79dec4fe8ebf4f1c713 | refs/heads/master | 2020-06-21T16:57:22.260311 | 2019-07-18T05:58:44 | 2019-07-18T05:58:44 | 184,990,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | #
# 【以下功能都使用函数封装】
#
# 初级
# 1.计算从1到某个数以内所有奇数的和并返回
def fn1(n):
s = 0
for i in range(1, n+1):
if i%2:
s += i
return s
res = fn1(100)
print(res)
# 2.判断某个数是否是偶数,返回结果
def fn2(n):
if n%2 == 0:
return True
return False
print(fn2(10))
# 3.判断某个数是否是素数,... | [
"1748636236@qq.com"
] | 1748636236@qq.com |
e8b6280f3ecc17834eb025d368b83b8753906e94 | 7950091dfd123b9fbe020cb8c9f529e98f7a89d8 | /weatherenv/Lib/site-packages/pipenv/vendor/tomlkit/toml_char.py | 02c55172893519fe850b4a96487ada8c921ad46b | [
"MIT",
"BSD-3-Clause"
] | permissive | diyajaiswal11/Weather-App | d0000ebd12fb051cca8a4c56da4418c89714fb3e | f5e1bca505f6643d870b905577a383a10d17b026 | refs/heads/master | 2022-12-11T05:16:38.941949 | 2020-08-25T18:02:18 | 2020-08-25T18:02:18 | 231,254,913 | 3 | 0 | MIT | 2022-12-08T03:22:58 | 2020-01-01T19:25:37 | Python | UTF-8 | Python | false | false | 1,731 | py | import string
from ._compat import PY2
from ._compat import unicode
if PY2:
from pipenv.vendor.backports.functools_lru_cache import lru_cache
else:
from functools import lru_cache
class TOMLChar(unicode):
def __init__(self, c):
super(TOMLChar, self).__init__()
if len(self) > 1:
... | [
"shubhijaiswal2000@gmail.com"
] | shubhijaiswal2000@gmail.com |
57a83cd4fb5a7d86d1c007a7c3dae272ad8ea86d | 23daedb0a969a5b86fdd6ace4657f7a6521bfdc7 | /aula_1/exercicio_1.py | 7c1f8f1069060719eb29cbabfcf934bca39001c3 | [] | no_license | Paulo201898/Python520 | 3c6ed4ab8e42dd4759705cb2d1c552a3486b3e7a | ca47b6216053d9bc933979893c2500c1961d5f6d | refs/heads/master | 2020-05-16T15:06:41.582922 | 2019-04-26T01:19:21 | 2019-04-26T01:19:21 | 183,123,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #!/usr/bin/python3
import banco
# print(banco.lista_de_usuarios)
# exercício 1:
# Imprima somente os usuários
# cujos emails contenham as letras:
# 'a' ou 'k' ou 'm' ou 'l'
# e cujas idades sejam
# maior que 30 e menor que 40
# Dica de exercício
# Condições ou
#if 2 < 4 or 5 < 10:
# print('Condição OU')
# Cond... | [
"leonardo.mendes@4linux.com.br"
] | leonardo.mendes@4linux.com.br |
a6c66d435501d3489109d1ca3740bc76f1ae505b | 3a02bff6397eb23afd55cc17faf81c24a8751f2d | /sample/findPhoneandEmail.py | a0997fcda408cc82086268878b5b4d8649c0f7da | [] | no_license | cothuyanninh/Python_Code | 909fd4d798cbd856e8993f9d4fea55b4b7c97a1f | 7f657db61845cf8c06725a2da067df526e696b93 | refs/heads/master | 2022-11-06T01:00:39.939194 | 2019-01-13T15:27:38 | 2019-01-13T15:27:38 | 164,468,626 | 0 | 1 | null | 2022-10-13T16:16:21 | 2019-01-07T17:40:51 | Python | UTF-8 | Python | false | false | 660 | py | import pyperclip , re
phoneRegex = re.compile(r'''(
\d\d\d\d\d\d\d\d\d\d
)''', re.VERBOSE)
emailRegex = re.compile('''(
[a-zA-z0-9._%+-]+
@
[a-zA-Z0-9.-]+
(\.[a-zA-Z]{2,4})
)''', re.VERBOSE)
text = str(pyperclip.paste())
matches =[]
for groups in phoneRegex.findall(text):
phoneNum = '-'.join([groups[1], gro... | [
"cothuyanninh@gmail.com"
] | cothuyanninh@gmail.com |
beac795b49d9336674df84e12f075b919e9f5808 | 82a63effc9886c749b349bb0672238dc4a68e66d | /2019/007_Pixel_3a_low_level_checker/research_gamut_convertion.py | 411c0317fa05802968ff646b672f315bd0ccaab1 | [
"BSD-3-Clause"
] | permissive | toru-ver4/sample_code | 6250f4bf7b437b7ee394cbc198d48fd2de209c3f | 58e9925af645e110e4a4a306001ba73599d0b192 | refs/heads/develop | 2023-07-22T00:52:48.568631 | 2023-07-15T07:03:00 | 2023-07-15T07:03:00 | 201,731,599 | 32 | 4 | BSD-3-Clause | 2023-09-10T14:46:41 | 2019-08-11T07:19:29 | Python | UTF-8 | Python | false | false | 5,290 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Gamut変換の特性を調べる。
"""
# 外部ライブラリのインポート
import os
import numpy as np
import matplotlib.pyplot as plt
# 自作ライブラリのインポート
import test_pattern_generator2 as tpg
import color_space as cs
import transfer_functions as tf
from CalcParameters import CalcParameters
import plot_utili... | [
"toru.ver.11@gmail.com"
] | toru.ver.11@gmail.com |
b12597f4221e2687dd364edd97cec9dd89047ece | a2ab6c23253badb3be54b19ba061e1aeaac6a8cd | /obj_detection/tf_api/object_detection/metrics/tf_example_parser_test.py | ccdd9a3af3bd58c339c2c4075adfc3a0b17e542d | [] | no_license | vivek09pathak/ImageDetection_RealTime | 0720fb4a6f35a81591f401a04ae44aa3bbea013f | d9e376b41a1216aecaacc9626cee59d45001695c | refs/heads/master | 2022-12-26T22:04:18.328476 | 2020-09-30T10:20:15 | 2020-09-30T10:20:15 | 152,729,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,830 | 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... | [
"anupamb266@gmail.com"
] | anupamb266@gmail.com |
bc1c48c64041fc8cb40fd91552cbfbcc92b6e5aa | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/refinement/real_space/tst_fit_residue_5.py | f62cb9cb9d3df4b89d3f96097a747cc23034e446 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 5,784 | py | from __future__ import absolute_import, division, print_function
import time
import mmtbx.refinement.real_space
import mmtbx.refinement.real_space.fit_residue
import iotbx.pdb
pdb_answer = """\
CRYST1 14.230 10.991 17.547 90.00 90.00 90.00 P 1
ATOM 43 N GLY A 8 3.000 7.369 9.591 1.00 6.97... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
9b786a1a18ca9e5791cd4ae48d7e88091fd19dd5 | d7a4701e18be0f38820f5c15d80099fda6385f9f | /ABC037/C.py | 729bef25e1c0c093583abb30e8b1e3e118fed324 | [] | no_license | shiki7/Atcoder | 979a6f0eeb65f3704ea20a949940a0d5e3434579 | c215c02d3bfe1e9d68846095b1bd706bd4557dd0 | refs/heads/master | 2022-05-21T16:59:01.529489 | 2022-04-29T11:26:42 | 2022-04-29T11:26:42 | 201,536,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | n, k = map(int, input().split())
a = list(map(int, input().split()))
prev = sum(a[0:k])
total = prev
for i in range(1, n - k + 1):
prev = prev - a[i - 1] + a[i + k - 1]
total += prev
print(total)
| [
"noreply@github.com"
] | shiki7.noreply@github.com |
b6c22bbbe84cc0ce7c65d0e9adc185cd9bb40998 | 45e03dd61493195cbbbce14fa54a787715c7c1fb | /Python_Keywords/raise.py | 5eb8f7ecb20633c5f7a183beb25fb11eb7f2542b | [] | no_license | VaishnaviReddyGuddeti/Python_programs | c55ee69c05d78a70a44385ee2e66365f69546035 | 309a1786fa5a3886d516cd49eb09f9cd847389df | refs/heads/master | 2023-02-17T03:41:31.480858 | 2021-01-14T15:39:52 | 2021-01-14T15:39:52 | 279,762,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # To raise an exception
# Raise an error and stop the program if x is lower than 0:
x = -1
if x < 0:
raise Exception("Sorry, no numbers below zero")
# Raise a TypeError if x is not an integer:
x = "hello"
if not type(x) is int:
raise TypeError("Only integers are allowed")
| [
"vaishnavireddyguddeti@gmail.com"
] | vaishnavireddyguddeti@gmail.com |
a6724b60a634053953e431e87677dc5905fef1e7 | 33e7c2f724cf5ce21ec612d44f2173a439acf0f8 | /convokit/hyperconvo/communityEmbedder.py | dd76d05ef41861e6e68598736eaeba88f850044f | [
"MIT"
] | permissive | aparnathinks/Cornell-Conversational-Analysis-Toolkit | 250731692797d351d01138eebba338643f269ad4 | a012fb07968b4f0ab811c3a3789a597f9239f821 | refs/heads/master | 2022-06-27T01:55:32.243730 | 2022-05-30T19:54:13 | 2022-05-30T19:54:13 | 159,894,640 | 0 | 0 | MIT | 2018-12-01T00:49:55 | 2018-12-01T00:49:55 | null | UTF-8 | Python | false | false | 3,091 | py | import numpy as np
from sklearn.decomposition import TruncatedSVD
from sklearn.manifold import TSNE
from collections import defaultdict
from convokit.transformer import Transformer
from convokit.model import Corpus
from typing import Optional
class CommunityEmbedder(Transformer):
"""
Must be run after thread... | [
"calebchiam@gmail.com"
] | calebchiam@gmail.com |
c645796862017d4e320528f190d23794153f204c | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/alicloud/ActionTrailLogAllEvents.py | 34dc29b9676dd6063cae700da888f1739a07fd86 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 856 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
from typing import Any
class ActionTrailLogAllEvents(BaseResourceValueCheck):
def __init__(self) -> None:
name = "Ensure Action Trail Logging ... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
e490ae05be8718be57563181db39803656d84c2e | 39d676452a212f58ba205ff5fd23b4d2a012538b | /utils/bylineimagecrop.py | de28fa7d062c4c3de9691e000a3ae0b1533eed50 | [] | no_license | haakenlid/hken.no | bcb03ec711cf1b82ff2b528afdd43aa732f3ecdf | 7c34936523b46e51abdba57296a02c3cc8212518 | refs/heads/master | 2020-12-12T16:16:11.819547 | 2019-01-01T23:37:16 | 2019-01-01T23:37:16 | 53,275,814 | 2 | 1 | null | 2019-06-21T07:21:39 | 2016-03-06T20:57:12 | JavaScript | UTF-8 | Python | false | false | 1,526 | py | import PIL
import io
import glob
import base64
import random
import IPython
from utils.cropengine import FaceDetector, Feature
def image_to_data(image, width=200):
image = image.resize((width, width * image.height // image.width))
bytesio = io.BytesIO()
image.save(bytesio, 'PNG')
data = base64.encode... | [
"haakenlid@gmail.com"
] | haakenlid@gmail.com |
38cb745773a5c17120792aa35c1c7911a8b91588 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day12_mysql/book_author/m2m2_bk_au_add_insert.py | 6cfaef4722ad770a235361274991a0bd8d2bd034 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 3,595 | py | # _*_coding:utf-8_*_
'''
多对多关联
现在来设计一个能描述“图书”与“作者”的关系的表结构,需求是
一本书可以有好几个作者
一个作者可以写好几本书
书和作者之间的关系是多对多
解决办法:
除了作者表(id,auth_name),
图书表(id,book_name,pub_date);
还要建立和作者表及图书表映射的第三张表--作者-图书映射表
a_id,b_id,该表连id都没有。a_id和b_id两个都是外键,分别
关联作者表的id和图书表的id.
2,插入数据
'''
import m2m1_bk... | [
"sgq523@163.com"
] | sgq523@163.com |
499fed4b4e0fc4aede038e919bad9389416aef7d | 3b6b832117f22175854ac88da9b497e86230560a | /edparser/common/dataset.py | 61f5ba7516c7a677316f85def8611ec441ee54f2 | [
"Apache-2.0"
] | permissive | attardi/iwpt-shared-task-2020 | 5bccda528e039b8d97a05d604bb97d0d3f5c42ff | 3a70c42d53716678776afcccf02d896655777353 | refs/heads/master | 2022-11-11T15:57:05.597015 | 2020-06-27T08:17:34 | 2020-06-27T08:17:34 | 275,322,631 | 0 | 0 | Apache-2.0 | 2020-06-27T07:32:43 | 2020-06-27T07:32:42 | null | UTF-8 | Python | false | false | 6,372 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-05-09 20:27
from abc import ABC, abstractmethod
from copy import copy
from typing import Union, List, Callable, Iterable
import torch
from torch.nn.utils.rnn import pad_sequence
from torch.utils.data import Dataset, DataLoader
from edparser.common.transform import ... | [
"jfservice@126.com"
] | jfservice@126.com |
6c45dbcdfb1bde4ed7979a8803854b3825efc020 | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/api/types/__init__.py | b546195c1c6eb0cdea5bf517332e58a2731799ae | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 476 | py | """
Public toolkit API.
"""
from pandas._libs.lib import infer_dtype
from pandas.core.dtypes.api import * # noqa: F401, F403
from pandas.core.dtypes.concat import union_categoricals
from pandas.core.dtypes.dtypes import (
CategoricalDtype,
DatetimeTZDtype,
IntervalDtype,
PeriodDtype,
)
... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
8ec0a55debb2aecf52bb19ea18e09d88c87f0d75 | bf79a856c8a9dd2d72190883dc31f5e652a3b9e7 | /run/jobs/e2e_test.py | 262f34fd0f0185597fb4bfcb953389efadf0273e | [
"Apache-2.0"
] | permissive | aog5/python-docs-samples | 5630c2864ee4f141e09d6909de3a3b7ac211703a | 300527f4b12369f6b0ad59fba42cc66159853bdd | refs/heads/master | 2022-10-28T04:48:52.060095 | 2022-10-18T06:50:12 | 2022-10-18T06:50:12 | 157,914,880 | 2 | 0 | Apache-2.0 | 2018-11-16T19:55:30 | 2018-11-16T19:55:30 | null | UTF-8 | Python | false | false | 2,997 | py | # Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | aog5.noreply@github.com |
64dfecec24fade51132563ecb284cc9b85e87074 | 5df5aaec5921b8f88d567c25380892fe19147c2b | /figures/FDRC/model/DPD/DPD/pic_fct.py | 288af76e3c1f88ab116b213898a8e30dc50fa7de | [] | no_license | 0zhongying0/docpaper | d838625682f762ac508fe582720da6a4720b0d7d | b89db80f6b88e24d3c39115faf91bcf88db648e4 | refs/heads/master | 2020-12-03T23:29:51.467911 | 2018-04-16T02:41:27 | 2018-04-16T02:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # encoding: utf-8
import numpy as np
import matplotlib.pyplot as plt
import sys
from pylab import *
from matplotlib import rcParams
rcParams.update({'font.size': 18,'weight' : 'bold'})
patterns = ('/','//','-', '+', 'x', '\\', '\\\\', '*', 'o', 'O', '.')
N=9
threshold_lax=0.6
threshold_tight=0.3
DMIN=0.05
DMAX=0.1... | [
"zganghanhan@foxmail.com"
] | zganghanhan@foxmail.com |
928aac26f644ac8b58a402969f84cfe97f1238e9 | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/material/material_name.py | ea008a2ff957d7807a709fd42f791f687eebf30f | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | material_name = {
"input_folder_name": "Material_Methods",
"input_file_name": "MaterialName",
"output_package_name": "material",
"output_module_name": "material_name",
"doc_html": """
Returns or modifies a material's user-definable name.
""",
"syntax_html": {
0: ... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
93cc72b72fc26234c2cc97d69a16234866495e8f | 5581d05569ad275f05099ccb84b1c9a9bd081257 | /docs/source/tutorials/src/ucs/lwpolyline.py | 164eea2840f2ae8d96db5a2f1a17fc9b864fc223 | [
"MIT"
] | permissive | mherzog01/ezdxf | 9c676f7a9a6e437579e84fa9a33033356f37c086 | 1325714c8455d571d5119e0d0edd54d1a3c23e41 | refs/heads/master | 2022-11-20T07:19:50.489715 | 2020-07-14T00:44:30 | 2020-07-14T00:44:30 | 279,442,947 | 0 | 0 | MIT | 2020-07-14T00:40:08 | 2020-07-14T00:40:07 | null | UTF-8 | Python | false | false | 744 | py | # Copyright (c) 2020 Manfred Moitzi
# License: MIT License
from pathlib import Path
OUT_DIR = Path('~/Desktop/Outbox').expanduser()
import math
import ezdxf
from ezdxf.math import Vector, UCS
doc = ezdxf.new('R2010')
msp = doc.modelspace()
# The center of the pentagon should be (0, 2, 2), and the shape is
# rotated ... | [
"me@mozman.at"
] | me@mozman.at |
a9149cea304f647316d83823c8b5a3d81d8a16fd | 4de28b1f6d97640834e4a795e68ca9987f9e2cd5 | /check plugins 2.0/arcserve_udp/lib/check_mk/base/cee/plugins/bakery/arcserve_udp.py | e4c0bcc24ec8ef271f4077e636eb87d0d4ec01e6 | [] | no_license | Yogibaer75/Check_MK-Things | affa0f7e6e772074c547f7b1df5c07a37dba80b4 | 029c546dc921c4157000d8ce58a878618e7bfa97 | refs/heads/master | 2023-09-01T15:52:28.610282 | 2023-08-29T06:18:52 | 2023-08-29T06:18:52 | 20,382,895 | 47 | 16 | null | 2023-07-30T15:52:22 | 2014-06-01T18:04:07 | Python | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/env python3
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# (c) Andreas Doehler <andreas.doehler@bechtle.com/andreas.doehler@gmail.com>
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation i... | [
"andreas.doehler@gmail.com"
] | andreas.doehler@gmail.com |
f3353809e7e9ee5a95b52725bb5ec6f3cbac1efd | 47ff744da519c525cccfad1d8cead74f7e2cd209 | /uge3/.history/mypackage/demo_20200214142346.py | 759667e1bed9980110a74ecf33a6f1a34c00473c | [] | no_license | Leafmight/Python | f6098395a7a13dd6afe6eb312a3eb1f3dbe78b84 | d987f22477c77f3f21305eb922ae6855be483255 | refs/heads/master | 2020-12-21T14:21:06.802341 | 2020-05-22T10:21:37 | 2020-05-22T10:21:37 | 236,457,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | from mypackage.classes.course import Course
from mypackage.classes.data_sheet import DataSheet
from mypackage.classes.student import Student
import sys
import random
import platform
import csv
print('__file__:{}\n__name__:{}\n__package__:{}\n'.format(__file__,__name__,str(__package__)))
lst_teachers = ["Elon Musk", "S... | [
"jacobfolke@hotmail.com"
] | jacobfolke@hotmail.com |
6bcd4b43eb8df43cb40cdde464719c37dabaa03e | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/Common/python/miscProducers/deltaRJetMuons_cfi.py | ce21b3760f01a493498a637747dac12b4bf94cb6 | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 601 | py | import FWCore.ParameterSet.Config as cms
deltaRJetMuons = cms.EDProducer(
"DeltaRVetoProducerPFJet",
inputCollection = cms.InputTag('cmgPFJetSel'),
MatchingParams = cms.VPSet(
cms.PSet(
vetoCollection=... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
0704b0d6d7d9f8d4ab96f9ec57b28ff7f2ba49dc | 81b80dcb5dae151903bed55bc717942edb4ecadb | /42. Trapping Rain Water.py | 99af093753e21df578093caabd7721f1f8c63868 | [] | no_license | chuzcjoe/Leetcode | 742bbb71e08ae8833865174b40e4a8f3c2529916 | a6eb22c3f84459c3c054c00aec59d0d87b685bfa | refs/heads/master | 2021-07-10T15:40:47.332063 | 2020-09-27T23:54:13 | 2020-09-27T23:54:13 | 198,936,895 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
# from left to right, fill up water
l_to_r = copy.deepcopy(height)
for i in range(0,len(height)-1):
if l_to_r[i+1] < l_to_r[i]:
... | [
"noreply@github.com"
] | chuzcjoe.noreply@github.com |
7e6d9e40331f632c1afb6899286a729b86bd0938 | 384d0be5ac54b306b945cf38c10d9b0a44c975ea | /stack/nova/nova/api/ec2/apirequest.py | 803413898c33966999b92cf2b00b4ac2c0402420 | [
"Apache-2.0"
] | permissive | ashokcse/openstack-bill | 05ae313637b3cfecba946d2a9b32e8c7609fc721 | 1a3d7575d4b341f64fa1764ed47e47a7504a9bcc | refs/heads/master | 2021-01-18T14:05:24.696165 | 2012-09-12T11:29:20 | 2012-09-12T11:29:20 | 5,424,267 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | [
"ashokcse@live.com"
] | ashokcse@live.com |
00c993d3b1ab696659998931975f443747222157 | 97072bdb023dd3916d0ced6aba1c98ec0893ee01 | /app/requests.py | 9849528b6cbeab02574080d5ea664eb382887722 | [
"MIT"
] | permissive | AnumAsif/my-blogs | ed814d0559a1d84e138a02b846d2a2b85aacfebd | 8dd6d8e9e84867582dad10265203d1219c00926c | refs/heads/master | 2020-04-23T01:51:07.902859 | 2019-02-19T12:18:42 | 2019-02-19T12:18:42 | 170,826,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import urllib.request, json
from .models import Quote
quote_url = None
def configure_request(app):
global quote_url
quote_url = app.config["QUOTE_API_URL"]
def get_quotes():
'''
Function that gets the json response
'''
quoteUrl= "http://quotes.stormconsultancy.co.uk/random.json"
with urll... | [
"anum@cockar.com"
] | anum@cockar.com |
8ff633fc5f9ac0a49a8310035ccde27e984ae723 | bfaf64c553eb43684970fb3916eedaafbecf0506 | /set9/div_mod.py | 95955c2b6b83113a548e60b453fab0364f4561cb | [] | no_license | santhoshbabu4546/GUVI-9 | 879e65df0df6fafcc07166b2eaecf676ba9807a2 | b9bfa4b0fa768e70c8d3f40b11dd1bcc23692a49 | refs/heads/master | 2022-01-24T15:22:34.457564 | 2019-07-21T14:20:35 | 2019-07-21T14:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | a3=['/','%']
while True:
a2=input().split()
if a3.index(a2[1]) ==0:
print(int(int(a2[0]) / int(a2[2])))
else:
print(int(a2[0]) % int(a2[2]))
| [
"noreply@github.com"
] | santhoshbabu4546.noreply@github.com |
47380c9f5892c22838e3bb8dbdc8486d35f70108 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/bio_engineer/bio_component/shared_bio_component_clothing_field_bleeding_2.py | 8db5283e9156c25af899d98e480525a838f22dd1 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 495 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/bio_engineer/bio_component/shared_bio_component_clothing_fi... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
6b787a056f8d8ee5a43f696283be304531d26411 | eb66f122da246af7e5f342c5a3be3a02d0957d04 | /python_code/Inca2000/operations.py | 5b5912ce8d8e8ac55fe0d2f903e8f344d69e259b | [
"WTFPL"
] | permissive | zhchwolf/pylearn | 00838be6f5f68176ba3d0131f223839469a16a55 | 5dc2d39a90dd064ac88669d4535ad08b082bf04f | refs/heads/master | 2022-08-27T03:25:10.854780 | 2019-09-27T09:38:47 | 2019-09-27T09:38:47 | 157,136,924 | 0 | 1 | null | 2022-08-06T05:22:44 | 2018-11-12T00:56:12 | Python | UTF-8 | Python | false | false | 974 | py | from random import *
import pygame
# Layers for entities. Barebones render-sorting.
layers = []
for i in range(10):
layers.append([])
# List of random numbers.
r = []
for i in range(16):
r.append(0)
# Scramble all random numbers.
def calcRands():
global r
for i in range(16):
r[i] = randint(0, 255)
# Change col... | [
"zhchwolf@sina.com"
] | zhchwolf@sina.com |
1556a62bc11e52572d0ee6a968c3bdf2961c9ec2 | 9b527131c291b735a163226d1daac2397c25b712 | /Lecture3/print_binary.py | 01199376a4e5639a59d94e11b3c5507cec1e6287 | [] | no_license | arnabs542/BigO-Coding-material | dbc8895ec6370933069b2e40e0610d4b05dddcf2 | 3b31bddb1240a407aa22f8eec78956d06b42efbc | refs/heads/master | 2022-03-19T18:32:53.667852 | 2019-11-27T23:55:04 | 2019-11-27T23:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py |
def printBinary(n, prefix=""):
"""
print all the binary with n digits
"""
print('printBinary(n = {} prefix = {})'.format(n, prefix))
if n == 0:
print(prefix)
else:
printBinary(n-1, prefix + "0")
printBinary(n-1, prefix + "1")
printBinary(3)
| [
"tranhoangkhuongvn@gmail.com"
] | tranhoangkhuongvn@gmail.com |
26bf8206c7ef9bf0de5c1860e320e07bd7db7b75 | cd8021ffbd42e38b2844b539a8524ea9c6c348b8 | /week9/day2_election.py | 2f8b96aed945a1d76e01085bc3df7af143b6dad9 | [] | no_license | cjredmond/class_notes | 5ea15cdaaa9a41a518f29e810a755fd19d821491 | 5884ed3f90be9013d6f2bd137df882957297f67f | refs/heads/master | 2020-04-16T01:41:24.100784 | 2016-11-09T16:57:57 | 2016-11-09T16:57:57 | 68,213,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import requests
import time
from data_miner import DataMiner
from messenger import Messenger
messenger = Messenger()
dm = DataMiner()
while True:
if dm.is_new_data:
base_sms = dm.message
print(base_sms)
messenger.send(base_sms)
time.sleep(600)
| [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
58a6b1cc1f5a5af676e488fc6c46894ffa4cb9df | 0a567d3417fbdf68fdbd1bf4ef9778518e898678 | /runOracleAPI.py | 79b7c39ed320dcecf015ac62b96c1483ee194c61 | [] | no_license | maxberggren/sinus | 1d8890009f1eb28d49688883836d0ec2822163ad | 5f85858c0f48927486a3f96d8251ffedbfc3e553 | refs/heads/master | 2020-05-16T11:32:42.516246 | 2016-02-16T09:59:36 | 2016-02-16T09:59:36 | 24,930,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#import matplotlib
#matplotlib.use('Agg')
from oracleAPI import app
app.debug = True
app.run(host='0.0.0.0', port=5011) | [
"maxberggren@gmail.com"
] | maxberggren@gmail.com |
ed9a0b4dbf4249b3fdd67319419d388482f0d63c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02258/s141979860.py | 95ea4162163725d0f178d02cb53e3b815991f0d0 | [] | 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 | 190 | py | import sys
s_max = -float('inf')
s = 0
n = int(input())
r = list(map(int, sys.stdin.read().split()))
for i in range(1, n):
s = max(s, 0) + r[i] - r[i-1]
s_max = max(s, s_max)
print(s_max)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7d8b0631467dc37c2a939adf87e32e05ad077f41 | 0298d082bd92e8c56bdf8a1698d233302feca387 | /scripts/azurerm_shared_image.py | 79a36371d335356a1a7be7429bea0ed57dcb5385 | [
"MIT"
] | permissive | reyrahadian/py-az2tf | 500372021e82dd9353c926d96d4fe5b5ab5846bd | 735527e2017291ef396874573f18c3e71162efe3 | refs/heads/master | 2020-07-03T22:50:19.820155 | 2019-09-02T06:18:22 | 2019-09-02T06:18:22 | 202,077,610 | 0 | 0 | null | 2019-08-13T06:18:29 | 2019-08-13T06:18:27 | null | UTF-8 | Python | false | false | 3,988 | py | # azurerm_snapshot
def azurerm_shared_image(crf,cde,crg,headers,requests,sub,json,az2tfmess):
tfp="azurerm_shared_image"
tcode="342-"
azr=""
#cde=True
if crf in tfp:
# REST or cli
# print "REST snapshot"
url="https://management.azure.com/subscriptions/" + sub + "/providers/Micros... | [
"andyt530@outlook.com"
] | andyt530@outlook.com |
a303bbfdbb9c8a3abe298c24dbdf240be898bbf6 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /direct/showbase/ObjectReport.py | df5d2a0eddfe952e1f8f688d2ece1762f288e70d | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 5,015 | py | # File: d (Python 2.4)
__all__ = [
'ExclusiveObjectPool',
'ObjectReport']
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.showbase import DirectObject, ObjectPool, GarbageReport
from direct.showbase.PythonUtil import makeList, Sync
import gc
import sys
import __builtin__
class Excl... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
8e0eeac9766e352d2591b6f7602f1a0f4777e51d | 64ee2a144acbaf7565560aa51ba6dd7eb4f6b8b8 | /廖雪峰网页学习/009_迭代工具.py | d3785656e4eed6739a3c112d424690f9692a7f5d | [] | no_license | HimriZngz/Code | c61c5ecd9b18157089b49089f22bb7d335a6f4f5 | a7eb93ddcde88075bb2217fc285c19ca349af8d7 | refs/heads/master | 2020-09-14T01:32:19.819942 | 2020-03-24T06:16:49 | 2020-03-24T06:16:49 | 222,969,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import itertools
# num1 = itertools.count(1)
# con1 = itertools.takewhile(lambda x: x <= 20, num1)
# print(list(con1))
# 打印结果 : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
# for chain1 in itertools.chain('abc', 'ABC'):
# print(chain1)
# for key, group in itertools.groupby('AABBCCaacc... | [
"yingqi1561@qq.com"
] | yingqi1561@qq.com |
865ad6e7bab279137f3e0be24cebee73518d904c | c25a3deda78914c41e36e236f0378928d5d73631 | /testlib/test_debug.py | eb85b0da89e78f740d0d5a697ad4ea189e922b0d | [
"MIT"
] | permissive | mniyas/gramex | 542718f3bb17b1f6f01f66c4e9a9c2fc67568b84 | b1d21067cb3939e8be63542336bc716038f37815 | refs/heads/master | 2023-01-29T05:02:40.813373 | 2020-11-25T04:09:08 | 2020-11-25T04:09:08 | 260,702,762 | 0 | 0 | NOASSERTION | 2020-05-24T14:36:28 | 2020-05-02T14:19:59 | null | UTF-8 | Python | false | false | 2,679 | py | import os
import six
import inspect
import unittest
from io import StringIO
import gramex.debug
from gramex.debug import timer, Timer
from testfixtures import LogCapture
from nose.tools import eq_, ok_
testfile = __file__.replace('.pyc', '.py')
def line_no():
'''Returns current line number in file where it is ca... | [
"root.node@gmail.com"
] | root.node@gmail.com |
713e138af752f82e20c2dee6c884f6c7dd8fc2b2 | 4806d5b15b45e30be16c857faaacaa278eba09d3 | /task/split/searchlist/gsxt_searchlist_zhejiang_worker.py | f4b63345f0b8ca9185020fa6bde05665be1ab297 | [] | no_license | osenlin/gsxt_spider | 9ebc90b778ca1fe31f3339ddeccdac66808a1d96 | 6e75fe9802620284e8c19c6f23a9a90911b39016 | refs/heads/master | 2020-03-20T01:10:50.348913 | 2018-06-12T12:34:53 | 2018-06-12T12:34:53 | 137,068,844 | 5 | 9 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from task.search.cracker.gsxt_zhejiang_worker import GsxtZheJiangWorker
class GsxtSearchListZheJiangWorker(GsxtZheJiangWorker):
def __init__(self, **kwargs):
GsxtZheJiangWorker.__init__(self, **kwargs)
def get_detail_html_list(self, seed, session, param_l... | [
"694982665@qq.com"
] | 694982665@qq.com |
8d18acb130c99fd137d6201e095a1263b6120076 | 3c585b51d5aad9aeb67f20fce6443f84ef27d883 | /second_app_23014/settings.py | f1593197a43d252f17a836c19f4ae1b630a639d1 | [] | no_license | crowdbotics-apps/second-app-23014 | 2f0ee3072a40775b3a4128c91698a17de59dc855 | c40d7f25856fa3419efe09fbf0e7d1b8ff3a1592 | refs/heads/master | 2023-01-29T01:56:21.459374 | 2020-12-07T19:10:53 | 2020-12-07T19:10:53 | 316,477,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,789 | py | """
Django settings for second_app_23014 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b573cb3b93532a632b3b62a0d3b2c2160bbf80ed | 9888b66468aad7155a2a84079239e88ddb50d507 | /jactorch/train/env.py | 1f230442e8eeacc708da59ffa44749e893ca5a8b | [
"MIT"
] | permissive | Qcactus/Jacinle | d5c9de235d17fd6da461a1199f901fb3019e0e99 | 5133b8dfad9d11dde92ec772c315ee55c53cb8b9 | refs/heads/master | 2021-01-02T03:55:15.858429 | 2020-02-07T04:34:48 | 2020-02-07T04:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,651 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : env.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 05/09/2018
#
# This file is part of Jacinle.
# Distributed under terms of the MIT license.
import os.path as osp
import time
import torch
import torch.nn as nn
from jacinle.event.regist... | [
"maojiayuan@gmail.com"
] | maojiayuan@gmail.com |
8210706029aeb493d55c265d9f989856f236ba14 | f1c0659c437445349e74c1f52080b275997526a2 | /openie/run.py | 0ac305c7b9c68538eb10553c34ae67c7be638c19 | [
"Apache-2.0"
] | permissive | hthuwal/ARC-Challenge | dbf9db322b9ac399000df1b4e579254b0b3c5915 | 6b1b2899a4d6e5ea58c7fce0f32d382dbdbfa748 | refs/heads/master | 2022-03-06T22:10:06.864034 | 2022-03-04T16:11:04 | 2022-03-04T16:11:04 | 142,573,683 | 1 | 0 | Apache-2.0 | 2022-03-04T16:11:05 | 2018-07-27T12:20:51 | Python | UTF-8 | Python | false | false | 6,153 | py | from graph import Graph
from gsa import GSA
from operator import itemgetter
from tqdm import tqdm
import click
import json
import os
import time
import dill as pickle
import utils
def get_corpus_graph(corpus_triplets_file, stem):
"""
Create Corpus Graph given its openie triplets
in the stanford openIE fo... | [
"hthuwal@gmail.com"
] | hthuwal@gmail.com |
000d0b2d01963b9cb692fe75187f64cdeb19d1bc | 621158c15629243f3525b45351a2c886e9a0ca33 | /panda/find_duplicates.py | 7c06e05f8cfc8f7daac0edef80ca2e6ddf438162 | [] | no_license | lopuhin/kaggle-panda-2020 | 65a4e8bba5ec481db811bb46764c1d97d7b695f4 | e6d46b707de0e098660e3aa51f91450938fbf24a | refs/heads/master | 2022-07-29T13:29:44.657151 | 2020-06-18T18:27:41 | 2020-06-18T18:27:41 | 258,861,726 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | from multiprocessing.pool import ThreadPool
from pathlib import Path
import cv2
import pandas as pd
import turbojpeg
import tqdm
def main():
def id_by_path(path):
return path.name.split('_')[0]
paths = list(sorted(Path('data/train_images/').glob('*_2.jpeg')))
path_by_id = {id_by_path(p):... | [
"kostia.lopuhin@gmail.com"
] | kostia.lopuhin@gmail.com |
7c5f53a0a8337bc17d1df48962a7a817a1bc26e4 | 52bb00d5e9dd936fb11aff2adb8c6d0f94849dc8 | /CircularLinkedList/SwapFirstLastNode.py | 58e8d54a1ffbca3cd012a74515ce8493c03abbd9 | [] | no_license | anildhaker/DataStructures | 1c7815d2bb1dc9d8ebd51e1ec868df8260557519 | e333fa5b95ecfc08a036bbeadfc4244f64361d7d | refs/heads/master | 2020-04-24T14:07:44.240689 | 2019-11-24T21:21:03 | 2019-11-24T21:21:03 | 172,009,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class CircularLinkedList:
def __init__(self):
self.head = None
#insert Node at beginning
def push(self, data):
new_node = Node(data)
temp = self.head
new_no... | [
"anildhaker777@gmail.com"
] | anildhaker777@gmail.com |
7637316429809dcb28e9248accf308ba1c63ac8e | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /src/stk/molecular/reactions/reactions/reaction/reaction_result.py | 0042008986814cbfe53fa69c63a2e9614251b0cf | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | """
Reaction Result
===============
"""
from ....atom import Atom
from ....bond import Bond
from .new_atom import NewAtom
__all__ = (
'ReactionResult',
)
class ReactionResult:
"""
The result of a reaction.
"""
__slots__ = [
'_new_atoms',
'_new_bonds',
'_deleted_atoms'... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
d070f56afab6c652fcd408fac50b23bb9a301706 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20200401/get_packet_capture.py | cfd94396284ccf340cff44afde608ab5a4aa7aae | [
"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 | 7,304 | 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
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
6bb7030310d37dc101db36d1e46d65341bc7b147 | 8ebf1eef75f159af06709f6eaf39c96520cdbe8d | /python3/56-merge_intervals.py | db2f02260220c849e5824b8b8a78a5d9908dea38 | [] | no_license | ethanlow23/leetcode_algorithms | d4ccaf3553717e319942767db86adf74752e349e | 3d4b0fef3e397cd8c6cafded5dd11250313574d9 | refs/heads/master | 2021-08-04T19:05:17.294842 | 2021-02-26T18:00:31 | 2021-02-26T18:00:31 | 243,878,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # 56. Merge Intervals
def merge(intervals):
ans = []
intervals.sort()
for interval in intervals:
if not ans or ans[-1][1] < interval[0]:
ans.append(interval)
else:
ans[-1][1] = max(ans[-1][1], interval[1])
return ans
| [
"ethanlow223@yahoo.com"
] | ethanlow223@yahoo.com |
f92bb956b156f2dde0cb383c50f7bf2a7fb7ec9d | b1fe732c6abb51d44bd965cbbf259bb2d93e4514 | /Day3/filter.py | 3dd1cce1e3863585d6fecc54e9985713871715c4 | [] | no_license | RahulSinghDhek/GettingStartedWithPython | 04c85c2c370e7ea93b16dade44e5eea633ec284c | c655e3376707b8e4e14ed352a8bc07b010c31e12 | refs/heads/master | 2020-05-07T17:15:38.120491 | 2019-04-11T05:39:12 | 2019-04-11T05:39:12 | 180,721,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | __author__ = 'rdhek'
l = range(1,50)
print filter(lambda n: n%7 == 0,l)
def sumit(a,b):
print "[{},{},{}]".format(a,b)
return a +b
l = range(1,11)
print reduce(sumit,l) | [
"rdhek@qti.qualcomm.com"
] | rdhek@qti.qualcomm.com |
b87d6d854c82400ce6fec858c4f90fda0d921382 | b00873d36e44128ce30623da0ee3b556e4e3d7e7 | /solutions/solution122.py | 78afb0fde6e53f633c47905f4fe4e384a983a7fd | [
"MIT"
] | permissive | Satily/leetcode_python_solution | b4aadfd1998877b5086b5423c670750bb422b2c8 | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | refs/heads/master | 2021-07-18T07:53:10.387182 | 2021-07-17T06:30:09 | 2021-07-17T06:30:09 | 155,074,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) == 0:
return 0
result = 0
left = prices[0]
for index in range(1, len(prices)):
if prices[index] < prices[index - 1]:
... | [
"houjiaxu@xiaomi.com"
] | houjiaxu@xiaomi.com |
e2740e23d6f5884893e29eea1620673aff306a64 | dd1676c374470743e1eaac4ad179633224644c04 | /backend/home/migrations/0001_load_initial_data.py | 7d588a5527bcc08ef60c57df8157f093190d2c36 | [] | no_license | crowdbotics-apps/newapp-28748 | 76a0a5100234eaf3b0f85be5d53aa1d1d84388db | 8c1ad59d491b9cda7fd7e5bca58585e870b80bbe | refs/heads/master | 2023-06-19T09:11:12.681524 | 2021-07-12T10:38:54 | 2021-07-12T10:38:54 | 385,208,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "newapp-28748.botics.co"
site_params = {
"name": "NewApp",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_create(def... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dee84cca5e663c6d43bf1b75338315a1dfd427ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_thrown.py | d9528e76d367dd223a66a940af890691155354c5 | [
"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 | 218 | py |
#calss header
class _THROWN():
def __init__(self,):
self.name = "THROWN"
self.definitions = throw
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['throw']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ca9464b5384483823957c25c377a934cafa21165 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-CoreSpotlight/PyObjCTest/test_cssearchableitemattributeset.py | 18fcee6c1869973772d772ac35a51d89635dd40d | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | from PyObjCTools.TestSupport import *
import sys
if sys.maxsize > 2 ** 32:
import CoreSpotlight
class TestCSSearchableItemAttributeSet(TestCase):
def testMethods(self):
self.assertArgIsBOOL(
CoreSpotlight.CSCustomAttributeKey.initWithKeyName_searchable_searchableByDefault_... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
5ea6ded9687b81316844896028a4772699571f0d | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/find_ports.py | 66a3c465c786df2e08c65631b7ff94f6850592fd | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 1,321 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
1c3fea4b9d349757f1a8850a6794dafea6a22777 | 0e2ebe5d9564dee2fd3207fe5e998083b79b6a32 | /binary_search.py | fb795292994194f5dc1a88fd6b04b2eaf168da15 | [] | no_license | ksnt/Sorting_Algorithms_C_and_Python | 981bdfc3aa74ce35cd5bc7ff3d3e9e7e520b0af2 | cf02e91f8a7c3219a50d5addeb0ef157e24fca55 | refs/heads/master | 2021-04-29T13:33:47.786841 | 2018-05-17T21:23:35 | 2018-05-17T21:23:35 | 121,753,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # Binary Search
# ksnt
# Example
# (1)
# $ python binary_search.py
# Enter an integer you want to look for:
# 10
# Enter the numbers in a list: 100 99 88 10 34
# Found!
# (2)
# $ python binary_search.py
# Enter an integer you want to look for:
# 10
# Enter the numbers in a list: 1 2 9 100 99 99 22
# Not Found
def b... | [
"ksn0215@gmail.com"
] | ksn0215@gmail.com |
0f0c6e5b4fe88d355c0c7209030a77c49c06096b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_merchandises.py | c189f1a14c3f75d6d9743a90666c97299246df60 | [
"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 | 273 | py |
from xai.brain.wordbase.verbs._merchandise import _MERCHANDISE
#calss header
class _MERCHANDISES(_MERCHANDISE, ):
def __init__(self,):
_MERCHANDISE.__init__(self)
self.name = "MERCHANDISES"
self.specie = 'verbs'
self.basic = "merchandise"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c45d58f4cef64efb0e5de150b4f14c0ce8b64d08 | b2264a5c756be06459949f5fea2e901a96dd215f | /tutorial/examples/table/simple.py | 8608328bd6496d8f31897e420ac27a6ecebf7aa0 | [
"MIT"
] | permissive | yiyisf/dash-docs | c6f7d9dce7081550491c6df518af966626ea263f | 45108cd302bdee3f76bdbf61b3e234d9bee0027d | refs/heads/master | 2020-04-23T22:02:11.517321 | 2019-02-18T15:57:17 | 2019-02-18T16:07:45 | 171,488,096 | 1 | 0 | MIT | 2019-02-19T14:27:23 | 2019-02-19T14:27:23 | null | UTF-8 | Python | false | false | 363 | py | import dash
import dash_table
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
app = dash.Dash(__name__)
app.layout = dash_table.DataTable(
id='table',
columns=[{"name": i, "id": i} for i in df.columns],
data=df.to_dict("rows"),
)
if __name__ == ... | [
"chris@plot.ly"
] | chris@plot.ly |
79bca7297042ffea5915efe0adb675d42bff0a07 | 853de87a319f62a877064e4f5465b54af87402cc | /mango/apps/proposal/forms.py | cdd9b9c2061396b730255627d497f6109cbf1e1e | [
"ISC"
] | permissive | bituka/django-mango | 5d3df825eee4262da1c1e1d8cb6115fea7023cc3 | 259657df86cb92672759131ce7eff2374d297c9a | refs/heads/master | 2020-12-25T12:18:00.966338 | 2012-07-12T22:00:47 | 2012-07-12T22:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from django import forms
from proposal.models import Proposal
from proposal.fields import TimeDurationField
class ProposalForm(forms.ModelForm):
duration = TimeDurationField(required=False)
class Meta:
model = Proposal
exclude = ('speaker', 'slug', 'status',)
def clean(self):
da... | [
"caketoad@gmail.com"
] | caketoad@gmail.com |
fe095a80fb9a46f9f7ec94e8b67506b21a3ae196 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02584/s920598446.py | 19f0c3e74320ae2f19203cb73cfd1104e793f365 | [] | 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 | 175 | py | X,K,D=list(map(int,input().split()))
if X<0:
X=-X
if X-K*D>=0:
print(X-K*D)
else:
N=X//D
if (K-N)%2==0:
print(X-N*D)
else:
print((N+1)*D-X) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2e37b0fcfc6ddd936ac04cefa6b604f24496dc86 | 845295bf8219b337f74529aa71878cf7b299d877 | /analysis/analyses/num_chance.py | 14ef57b9820fc404d4ed8457c0609d23f96f436e | [] | no_license | berkeley-cocosci/mass-inference | fdf1d72a085d3cee18d7c8e8da2a96e7606e81dd | f880d218367d942a4d5cc6d4a1cfba45db57fc8e | refs/heads/master | 2021-01-19T08:12:20.483546 | 2017-06-07T18:00:11 | 2017-06-07T18:00:11 | 10,046,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #!/usr/bin/env python
"""
Computes the number of stimuli for which people were not significantly above
chance in judging which mass was heavier. Produces a csv file with the following
columns:
version (string)
the experiment version
kappa0 (float)
the true log mass ratio
stimulus (string)
... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
9910620d7fddacd357798ed4aefd5ee351bb5c19 | e22d4b37236a0327f26159856c7d151826bdd49d | /leonardo/decorators.py | fef545dfaf1c88f93f2466a9bbf2b3b1cb134554 | [
"BSD-2-Clause"
] | permissive | django-leonardo/django-leonardo | 8fe1fc6299c5e3d3c0bff96cb7e80d48f7b7e1de | 7d3f116830075f05a8c9a105ae6f7f80f7a6444c | refs/heads/master | 2022-09-29T02:23:14.426984 | 2020-09-08T13:58:46 | 2020-09-08T13:58:46 | 33,533,052 | 108 | 64 | BSD-3-Clause | 2022-09-16T19:34:25 | 2015-04-07T09:05:44 | Python | UTF-8 | Python | false | false | 2,871 | py |
"""
General-purpose decorators for use with Leonardo.
"""
from __future__ import absolute_import, unicode_literals
import functools
import sys
from django.utils.decorators import available_attrs # noqa
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import PermissionDenied
try:
... | [
"6du1ro.n@gmail.com"
] | 6du1ro.n@gmail.com |
e1e379e36d454ef3fe4174df9beaebf7d09e90bc | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-machinelearningcompute/tests/test_mgmt_machinelearningcompute.py | 771403cdfbf16cefaecbfead64343f7b3b515072 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 7,455 | py | from azure.mgmt.resource import ResourceManagementClient
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer, AzureMgmtPreparer
from devtools_testutils.resource_testcase import RESOURCE_GROUP_PARAM
from azure.mgmt.machinelearningcompute import models, MachineLearningComputeManagementClient
NAME_PRE... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
d77a1baf98b17677abc10a10b6a1c86e9b314600 | 6b6a18001a3a0931bbe8b5185179223b7bd2879a | /fusion_sensor_unit_test/TestScripts/obs/tc.upload.reli.007.py | ce924328b36ae3fb833ff385c4fa662eace35d10 | [] | no_license | hufengping/percolata | cfa02fcf445983415b99c8ec77a08b3f0b270015 | b643e89b48c97a9be3b5509120f325455643b7af | refs/heads/master | 2020-04-06T07:04:22.076039 | 2016-04-25T08:02:40 | 2016-04-25T08:02:40 | 42,929,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,047 | py | #!/usr/bin/env python
# created by Yifei.Fu at 2015-03-25
TESTCASE_ID = "Tc.upload.func.007"
TESTCASE_PRI = "M"
import os
import sys
import pexpect
import time
if __name__ == '__main__':
"""When network restore from breakdown, \
those data which havent been uploaded can be uploaded now."""
#####... | [
"fengping.hu@percolata.com"
] | fengping.hu@percolata.com |
fc89e5cf3e088b3c0bab449e9528daafadf0c83c | d7d26c42cd541417edcd7b1992027286ecef7f04 | /application/network/webapp/flaskwebapi/dist/views.py | 79ba9994e67bfb99767f837a64de1f06eb04c909 | [] | no_license | plutoese/pluto_archive | bfba8df48ee5639a2666b33432004519b93ecbf7 | e6ea64aaf867fd0433714293eb65a18a28d3136d | refs/heads/master | 2021-10-22T14:46:20.540770 | 2019-03-11T12:31:08 | 2019-03-11T12:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # coding=UTF-8
from flask import Blueprint, request
from flask_restplus import Resource, Api
from flask_restplus import Resource, fields
myapp = Blueprint('api', __name__)
myapi = Api(myapp)
@myapi.route('/hello')
class HelloWorld(Resource):
def get(self):
return {'hello': 'world'}
model = myapi.model('... | [
"glen.zhang7@gmail.com"
] | glen.zhang7@gmail.com |
b7759fba303285dffc74440b7bb0d74429facd7b | f991b6f8d24a9537821e9cc99369abd96119ccb4 | /notes/migrations/0006_content_order.py | 5316554531387e9ae195603a792b2177aa0d0bca | [] | no_license | luqmantuke/Faulu-Hub | 01c0aec5d96b45702835d5150400f91f2b530384 | b00c48399f4e8ef514d5f6e52d493db253d23242 | refs/heads/master | 2023-07-11T08:43:34.712484 | 2021-08-20T17:43:33 | 2021-08-20T17:43:33 | 322,248,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.1.4 on 2020-12-21 01:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes', '0005_content_image'),
]
operations = [
migrations.AddField(
model_name='content',
name='order',
... | [
"lsuleiman2002@gmail.com"
] | lsuleiman2002@gmail.com |
bea8b27f5389332c7e629a210422bfaa016d5d20 | 1763f88965393a8594d78b4b6e1f9ae0c681568f | /find_all_links.py | 509956a9e99da950d84276bf571b6515f00f4515 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vonzhou/python-scripts | 97d136982b4269aabcca2def81bbde02bf00f7a5 | 1d5d23f5009a4835abcb72aec4959c877727f5b8 | refs/heads/master | 2021-01-10T01:32:36.270328 | 2015-12-08T08:51:56 | 2015-12-08T08:51:56 | 47,610,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import requests
import re
# get url
url = 'http://www.baidu.com'
# connect to the url
website = requests.get(url)
# read html
html = website.text
# use re.findall to grab all the links
links = re.findall('"((http|ftp)s?://.*?)"', html)
# or use xpath() to parse <a> tags ...
# output links
for link in links:
p... | [
"vonzhou@163.com"
] | vonzhou@163.com |
1355a63bf33e318e453546878eff5124845ebb24 | 71d3632c19ada5585223d4800f681718af0e1f87 | /algorithm/day12/yesankwanlee.py | 197138898ef20e68866694e6213d8047f6cfcdf6 | [] | no_license | hyunwoo-song/TOT | 640433b909913098699ff517698e71a1b8661cff | 76a8c18af942d9ed3d636fcec35001ae70b6b8d2 | refs/heads/master | 2023-01-05T08:11:38.858134 | 2019-08-14T08:53:23 | 2019-08-14T08:53:23 | 162,208,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import sys
sys.stdin = open('input.txt', 'r')
# def DFS(i):
# global result
#
# result += n_list[i]
#
# if result <= 40:
# Result.append(result)
#
# for j in range(i + 1, n):
# DFS(j)
# result -= n_list[j]
#
# else:
# return
def DFS(now,sum):
if ... | [
"gerrar486@gmail.com"
] | gerrar486@gmail.com |
e697100920acbb425c47e4b33773bc3e0a9ef8de | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/web_tests/external/wpt/html/cross-origin-embedder-policy/resources/corp-image.py | e507846181d980fe045028b0aacd9e31600b3b89 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,186 | py | import json
import base64
# A 1x1 PNG image.
# Source: https://commons.wikimedia.org/wiki/File:1x1.png (Public Domain)
IMAGE = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII="
def main(request, response):
response.headers.set(b'Acce... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
bdef273d52e185b35989f775947b54698088da55 | b04cc98a746d1df457183bc14908094a8be00ba1 | /paddleslim/quant/constraints/conv_bn_constraints.py | 2b89b782279c460e607282c700afc47017ce39b8 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSlim | a3bcaef0c92016b7f6946d58787f87c7db8ff3f8 | bb02b103a89a09635941bc0bbbd38506d7412468 | refs/heads/develop | 2023-08-31T01:47:27.824722 | 2023-08-25T08:06:08 | 2023-08-25T08:06:08 | 228,290,594 | 1,534 | 402 | Apache-2.0 | 2023-08-29T09:37:55 | 2019-12-16T02:56:50 | Python | UTF-8 | Python | false | false | 2,497 | py | # Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
feaf294bc441389360dd20606b01b82afba9636c | 0fdc732fcdad1c0d76d6ec80cb6e25b6ec17d6e1 | /django_uuid/uuid_app/models.py | 7e3ba9ecc22f2bca148c9cc604246e759d64fc0d | [
"MIT"
] | permissive | markbirds/Django-Code-Repo | 9b3c8bfba948dd8ea1be71e31cbfd2ef26bfa157 | b55762d2dab00640acf2e8e00ddc66716d53c6b5 | refs/heads/master | 2023-01-05T22:44:16.405853 | 2020-11-03T07:17:50 | 2020-11-03T07:17:50 | 299,615,438 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import uuid
from django.db import models
class MyUUIDModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(unique=True,max_length=50)
description = models.TextField()
| [
"fowenpatrick@gmail.com"
] | fowenpatrick@gmail.com |
0f8c09573f86b22cf3638154ea59ca73fb373526 | 66107c6533ec83a127f0436c6d8a4c110a213203 | /numpy_programs/array_linear_algebra_operations.py | e49bc936ad8494e45e151e3a73bb4801fb4f7dcc | [] | no_license | vibhorgoyal18/ai_training | 97abfdd2543a24f8bc7e09ab260289ceadf92ca4 | 56d832bdea6898e0e91f5d9fccc6704cf20674a2 | refs/heads/master | 2020-08-23T03:25:05.544871 | 2020-02-11T06:57:09 | 2020-02-11T06:57:09 | 216,533,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Find the inverse, eigenvalues, eigenvectors, determinants of a given matrix 'array_1'.
import numpy as np
input_list = [[1, 2, 3], [2, 3, 4], [4, 2, 6]]
list_1 = input_list[0]
list_2 = input_list[1]
list_3 = input_list[2]
array_1 = np.array([list_1, list_2, list_3])
eigen = np.linalg.eig(array_1)
inv = np.linalg.i... | [
"goyal1992.vibhor@gmail.com"
] | goyal1992.vibhor@gmail.com |
ceb367b8feec4bfb97f5c192d58076f11d2b38f9 | cdf2508d4a3e71c3066ef956b5a2b3944c28bfea | /group_norm.py | 4e44cac133276eb6a711e7ce9fc5500e6d8dc771 | [
"MIT"
] | permissive | Owaiskhan9654/Keras-Group-Normalization | a75e46a65f38fff161b878e1ad6c8c083037e90c | cfa4ad7a221cf0ed2413a4bcd2a70e2064bdd69b | refs/heads/master | 2022-12-20T04:33:44.667791 | 2020-09-25T22:57:08 | 2020-09-25T22:57:08 | 272,839,227 | 2 | 0 | MIT | 2020-06-17T00:16:14 | 2020-06-17T00:16:14 | null | UTF-8 | Python | false | false | 7,952 | py | from keras.engine import Layer, InputSpec
from keras import initializers
from keras import regularizers
from keras import constraints
from keras import backend as K
from keras.utils.generic_utils import get_custom_objects
class GroupNormalization(Layer):
"""Group normalization layer
Group Normalization divi... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
b3cca4456e72cb9e3c702c23ee7aa29c3ab92627 | 92e3a6424326bf0b83e4823c3abc2c9d1190cf5e | /scripts/icehouse/opt/stack/tempest/tempest/api/compute/keypairs/test_keypairs_negative.py | 0da449b64de8c53124adfbb3ef4df3556c39544d | [
"Apache-2.0"
] | permissive | AnthonyEzeigbo/OpenStackInAction | d6c21cf972ce2b1f58a93a29973534ded965d1ea | ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e | refs/heads/master | 2023-07-28T05:38:06.120723 | 2020-07-25T15:19:21 | 2020-07-25T15:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | # Copyright 2012 OpenStack Foundation
# Copyright 2013 IBM Corp
# 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/LICE... | [
"cody@uky.edu"
] | cody@uky.edu |
a2a2f562ddd411d04198bcbbd041b73c860fb5ba | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /iHfq7KA8MBuZqBGgo_14.py | e223421564d2f05588ccadbe447c5fea6b88bba5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py |
def is_legitimate(lst):
touch_lr = all([sublist[0]==0 and sublist[-1]==0 for sublist in lst])
touch_ud = 1 not in lst[0] and 1 not in lst[-1]
return touch_lr and touch_ud
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
119c6411630cb56caa3d402e1af8fd195aa19f71 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/ibm/qradar/plugins/modules/rule_info.py | 174d407921225e5c7a34b7842f992bbb0c8eeb44 | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 4,064 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2019, Adam Miller (admiller@redhat.com)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = """
---
module: rule_info
short_d... | [
"sifang@cisco.com"
] | sifang@cisco.com |
d972b2ba575a17abe30c6349d040a3d3c88e48fd | 00f36f77d786ad6f8901669fe250035dd21f8e04 | /tools/fmt_test.py | 4b066a47b50da67e8b4015b3c4a527db00c1cec9 | [
"MIT"
] | permissive | HoweelZhang/deno | 163cf641eef07da321022114be25ccf6e91b4e56 | 9d025facaa9b97a27d751dbcd67d8c003c77f3c2 | refs/heads/master | 2020-04-24T13:27:50.939228 | 2019-02-21T20:52:35 | 2019-02-21T20:52:35 | 171,988,948 | 1 | 0 | MIT | 2019-02-22T03:34:03 | 2019-02-22T03:34:03 | null | UTF-8 | Python | false | false | 1,104 | py | #!/usr/bin/env python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import os
import sys
from util import mkdtemp, root_path, tests_path, run, green_ok
import shutil
def fmt_test(deno_exe):
sys.stdout.write("fmt_test...")
sys.stdout.flush()
d = mkdtemp()
try:
fixed_... | [
"ry@tinyclouds.org"
] | ry@tinyclouds.org |
a44de00f48fe6b30ea8611235238eb08878f00d2 | ffc1ab091d54635c96cd4ed6098c4bf388222f02 | /HCP/ciftify-master/ciftify/bin/ciftify_seed_corr | e5db6397c0d7934bd4ade14157ddcc5253b04692 | [
"MIT"
] | permissive | bharathlakshman/brainintensive | fc7833078bb6ad9574e015004f2b3905c85b699e | eec8a91cbec29ba27d620984394d3ee21d0db58f | refs/heads/master | 2021-01-01T19:04:25.724906 | 2017-07-28T01:48:28 | 2017-07-28T01:48:28 | 98,499,935 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,239 | #!/usr/bin/env python
"""
Produces a correlation map of the mean time series within the seed with
every voxel in the supplied mask. This function assumes all supplied
images are the same size.
Usage:
ciftify_seed_corr [options] <func> <seed>
Arguments:
<func> functional data
<seed> seed ... | [
"ibharathlakshman@gmail.com"
] | ibharathlakshman@gmail.com | |
682c21fea914ab9541f90e8b2d222bede2ec6723 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/jacobi-2d/tmp_files/4538.py | 8ebba6b88a86f00341821e9c94b03059a1d8eb60 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/jacobi-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/jacobi-2d/tmp_files/4538.c')
procedure('kernel_jacobi_1d')
loop(0)
known(' n > 2 ')
tile(0,2,16,2)... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
e5dd97b69277a7698c69a9faed9bb1fe71823d85 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_241/ch165_2020_06_22_00_19_32_361977.py | 819a55e4ada5a4c021397d75edab75dae4357f0c | [] | 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 | 366 | py | def mais_populoso(dicionario):
lista = dicionario.keys()
maiorP = 0
nomeEstado = ''
for estado in lista:
populacoes = dicionario[estado].values()
soma = 0
for valor in populacoes:
soma += valor
if soma > maiorP:
maiorP = soma
nomeEstado... | [
"you@example.com"
] | you@example.com |
1abeed7b216d8892eb788ca3792ee130af6631b4 | f169b5efa5727f1431e95eaa294f8f33aa093979 | /dropme/error.py | 2c15d80e491037ea14b873717a75a66167a22e80 | [
"Apache-2.0"
] | permissive | tivaliy/dropme | 15f9dc5274c378cdf62dfd8fa1c18334b0b68d69 | 3d760e1da8182cdf62ab2a6f357dea923fca3cd7 | refs/heads/master | 2021-09-10T09:19:59.404022 | 2018-03-23T12:39:51 | 2018-03-23T12:39:51 | 108,733,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | #
# Copyright 2017 Vitalii Kulanov
#
class ClientException(Exception):
"""Base Exception for Dropme client
All child classes must be instantiated before raising.
"""
pass
class ConfigNotFoundException(ClientException):
"""
Should be raised if configuration for dropme client is not specif... | [
"vitaliy@kulanov.org.ua"
] | vitaliy@kulanov.org.ua |
725774408d469c43efc921e65311c019061d15c3 | 54f41c4020ce0f3159dd044618b57843310fe070 | /drivers/plot_hr.py | ce1627d7ec2f0f522cec60543ad4f5bc2dee1ed3 | [
"MIT"
] | permissive | lgbouma/billy | f8205ce64667c3495ecbf3032629acc7395798a8 | aa70e55c61085464945a49c806a2f96911f35706 | refs/heads/master | 2023-08-06T16:04:46.733163 | 2021-09-17T23:15:13 | 2021-09-17T23:15:13 | 247,311,434 | 0 | 1 | null | 2020-05-19T23:04:02 | 2020-03-14T16:22:55 | TeX | UTF-8 | Python | false | false | 211 | py | import os
import billy.plotting as bp
from billy import __path__
RESULTSDIR = os.path.join(os.path.dirname(__path__[0]), 'results')
PLOTDIR = os.path.join(RESULTSDIR, 'cluster_membership')
bp.plot_hr(PLOTDIR)
| [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.