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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8b4df04ac5379ae33c42c99025eb02dd1e36fbc | 3aa312d1bde2abee1ebc328267f2e00da4285046 | /src/train.py | a12f87b89d58f8ae290b57627ff3f8261abe6c70 | [
"MIT"
] | permissive | mneedham/article-1 | 83d51bc0c8816458fd519a950d14a649d98ab219 | 5523647c74fc6bb27a28e359dcf5ff3d9252a72f | refs/heads/master | 2020-03-14T11:16:10.682636 | 2018-04-23T18:19:51 | 2018-04-23T18:19:51 | 131,587,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py |
import traceback
import os.path
import csv
from datetime import datetime
import tensorflow as tf
import numpy as np
from .args import get_args
from .data import GraphData
from .model import model_fn
def train(args):
# Make our folders
data_method = "random_walk" if args.use_random_walk else "random_rows"
model... | [
"david@sketchdeck.com"
] | david@sketchdeck.com |
65bd2a19a2c6cbdad97b815004c413f342821f98 | 93cfdea3a1a8ef902aebf544836c572afe925203 | /code/mysite__/tests/migrations/0016_auto_20190410_2347.py | c7b2af795cb2ffa16ca8376e5fc32d2851663a60 | [
"MIT"
] | permissive | Jonathan1214/DC_go | 3f1d95d1e805885dc9fce925603575d748573ca0 | c17106ea5a16680e56f043db9a6d97747982de76 | refs/heads/master | 2020-04-13T02:13:15.894054 | 2020-02-19T09:37:14 | 2020-02-19T09:37:14 | 162,897,158 | 1 | 1 | MIT | 2018-12-25T06:43:51 | 2018-12-23T14:21:10 | Python | UTF-8 | Python | false | false | 1,042 | py | # Generated by Django 2.1.2 on 2019-04-10 23:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tests', '0015_auto_20190406_1511'),
]
operations = [
migrations.AlterModelOptions(
name='day',
options={'verbose_name': '实验日... | [
"jonathan1214@foxmail.com"
] | jonathan1214@foxmail.com |
5adb5bb975b23871f0c9ee356f43f781899a4aef | 6dd08ec6b4f6351de8450a3d7e592fd6b4994119 | /cbase/server/cbase-1.8.1/testrunner/lib/couchdb/client.py | ba3525d6e8da70d6bbeaa35aea96ee58f46a2b96 | [
"Apache-2.0"
] | permissive | zhgwenming/appstack | d015e96b911fe318f9fba1bdeeea9d888d57dfba | 8fe6c1dfc2f5ed4a36c335e86ae28c17b3769276 | refs/heads/master | 2021-01-23T13:30:19.507537 | 2015-11-09T06:48:35 | 2015-11-09T06:48:35 | 7,576,644 | 1 | 2 | null | 2016-01-05T09:16:22 | 2013-01-12T15:13:21 | C | UTF-8 | Python | false | false | 42,566 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2009 Christopher Lenz
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
"""Python client API for CouchDB.
>>> server = Server()
>>> db = server.create('python-tests')
>>> ... | [
"zhgwenming@gmail.com"
] | zhgwenming@gmail.com |
ebfbe7693381a9166c0e2662171ca81412c53dbb | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano1012.py | 6041b860e6360ba8cc9e3d691586ee88b397e637 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
5d5eefc1cf8616b0154cad783ee4b94b2de502d7 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/v1_0/usersactions_v1_0/azext_usersactions_v1_0/vendored_sdks/usersactions/aio/operations/_users_onenote_sections_parent_notebook_section_groups_parent_notebook_operations.py | 518daf09bb1d7492b6171617f21f411bd01d930e | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 5,742 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
322f00362698521bf3f4375457fc110364f70ad5 | 993f18c21402d7a4ff21ddb7ff2ec6c80e466f20 | /onnx/backend/test/case/node/if.py | b06cb5420a5b661e4f73c11371b3b8f26ce7a969 | [
"Apache-2.0"
] | permissive | onnx/onnx | 10d3916803c7babff89ec0fa9045127bcccad376 | 8a475b34cb3875df311a46f57571646498f5bda7 | refs/heads/main | 2023-08-18T18:50:03.388353 | 2023-08-16T22:18:46 | 2023-08-16T22:18:46 | 102,692,863 | 16,164 | 4,150 | Apache-2.0 | 2023-09-14T17:10:38 | 2017-09-07T04:53:45 | Python | UTF-8 | Python | false | false | 6,470 | py | # Copyright (c) ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
import numpy as np
import onnx
from onnx.backend.test.case.base import Base
from onnx.backend.test.case.node import expect
def compute_if_outputs(x, cond): # type: ignore
if cond:
return []
else:
return x
cl... | [
"noreply@github.com"
] | onnx.noreply@github.com |
8a3a1ce35f7a2be603cc7a558b468e518c4c5824 | acb082b215e6d214a5065f76c0454dcf1fb2a533 | /src/cobra/apps/organization/migrations/0004_auto_20160104_1129.py | b1f9922069680e4a620caa2c7c7bccd1821f1637 | [
"Apache-2.0"
] | permissive | lyoniionly/django-cobra | 130b25cd897cc94b6a8da722e9a83ecea3b00c49 | 2427e5cf74b7739115b1224da3306986b3ee345c | refs/heads/master | 2016-09-06T10:23:10.607025 | 2016-02-22T14:16:49 | 2016-02-22T14:16:49 | 29,646,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-04 03:29
from __future__ import unicode_literals
import cobra.models.fields.bounded
import cobra.models.fields.foreignkey
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import mptt.fields
class M... | [
"beihua_445566@126.com"
] | beihua_445566@126.com |
4fc43918e3ea028ba308990aa9c804376a3aa123 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/sffdun001/question2.py | 0fcff5419a40546156d49162d8f91f9259e91fb0 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | print("Welcome to the 30 Second Rule Expert")
print("------------------------------------")
print("Answer the following questions by selecting from among the options.")
see=input("Did anyone see you? (yes/no)\n")
if see=="yes":
lover=input("Was it a boss/lover/parent? (yes/no)\n")
if lover=="yes":
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
709b5bd6b2145ac426023a8ced9fafd61d5ffbfc | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /928sxbEt8gyZ5uBBt_24.py | b32d5b4ec5e23b30e13f786787a01ad71c28149f | [] | 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 | 249 | py |
import re
def wurst_is_better(s):
sausages = ['Kielbasa', 'Chorizo', 'Moronga', 'Salami', 'Sausage',
'Andouille', 'Naem', 'Merguez', 'Gurka', 'Snorkers', 'Pepperoni']
return re.sub(r'|'.join(sausages), 'Wurst', s, flags=re.IGNORECASE)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d3e55098ad64dd803d9e537cb15cec4dabd27990 | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /Downloads/PythonPractice-master/WhileLoopDemo.py | 2ba42e39eedd6e7eeb95e9380b0ec4606fb2d26c | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | x=0
while x<5:
print(f'X is {x}')
x=x+1
else:
print('Wrong ..')
| [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
ee16072bc8e83a0ad7d307b37623a25bdbd02e72 | 3e2fda49577459d442f23a20c0668f14dba36abf | /evidently/widgets/prob_class_prod_pr_curve_widget.py | c5e230297948ebbf0a4bdace52b1a61ac1a2291a | [
"Apache-2.0"
] | permissive | jayeshmalu/evidently | 1bde9d34e207572f96b5991c9632cc7eaecf7665 | 789f9a04827d166369d965eacbd11306eac6b961 | refs/heads/main | 2023-03-30T20:25:57.454452 | 2021-04-09T05:51:54 | 2021-04-09T05:51:54 | 352,882,155 | 0 | 0 | Apache-2.0 | 2021-03-30T05:35:18 | 2021-03-30T05:35:18 | null | UTF-8 | Python | false | false | 6,470 | py | #!/usr/bin/env python
# coding: utf-8
import json
import pandas as pd
import numpy as np
from sklearn import metrics, preprocessing
from pandas.api.types import is_numeric_dtype
import plotly.graph_objs as go
import plotly.figure_factory as ff
from evidently.model.widget import BaseWidgetInfo, AlertStats, Addition... | [
"emeli.dral@gmail.com"
] | emeli.dral@gmail.com |
f7f552cb999425b0bfae84b043dbdcd420e8d0bc | a32137e8e0d53ad111fbe0a59e1710c13ce9046e | /analyses/scripts/modify.py | f8da67e21a822beb3e0f8faa4886fc634e592545 | [] | no_license | philip-brohan/SSO-Textract | 12af705aed0284bbbfe13f6e7c061677f19520f6 | ea47bbff2d1cfa5d6fb9c25daf239542692d178e | refs/heads/master | 2020-05-01T16:18:12.743511 | 2019-04-30T15:41:55 | 2019-04-30T15:41:55 | 177,568,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | #!/usr/bin/env python
# Tweak the brightness, contrast, colour and sharpness of an image
from PIL import Image, ImageEnhance, ImageOps
import argparse
import tempfile
from subprocess import call
import os
parser = argparse.ArgumentParser()
parser.add_argument("--source", help="Image file name",
t... | [
"philip@brohan.org"
] | philip@brohan.org |
56dd0f812f47feb5efbfe24570d94a476024004e | ef29c31ef26815a237445b9359da00c4323717d0 | /django/crud-plus/posts/migrations/0001_initial.py | 4fdc1c78374d54e1d06776de67b0858eb2841096 | [] | no_license | gvg4991/TIL-c9 | 3fe59bfe114e3af7f56a9163fa9e7ec83b3f97f0 | 2e4d6b99de2523ac4540cac2acd40342bbd6f9e3 | refs/heads/master | 2020-04-17T17:18:04.146013 | 2019-05-09T06:59:19 | 2019-05-09T06:59:19 | 166,777,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 2.1.5 on 2019-01-28 02:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"14.73oo6o19@gmail.com"
] | 14.73oo6o19@gmail.com |
40130f4782ad018637c7cf0294b0e48ac0f1f220 | a8384f4993731ad2160a7b35ecd65dc90dfa07ee | /escher_cli/script_runner.py | 92ca5a2c8d4ce005a3389d368c54fb3a3ceb413e | [] | no_license | escher-ai/escher-cli | 020d867356380b39f7f4feae41e91ae3d9da7030 | 48880740b163c353a8310daf3e066a08695d4f53 | refs/heads/master | 2021-05-12T11:26:36.561332 | 2018-02-03T19:43:38 | 2018-02-03T19:43:38 | 117,387,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | """escher_cli.run module, all of the run logic for the escher_cli."""
from os import environ, getcwd, chdir
from pprint import pformat
from subprocess import check_call
import click
from _ruamel_yaml import ScannerError
from click import Abort
from escher_cli import helpers, escher_runner
ESCHERRC_PATH = ".escher"
... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
655bf4e6b24ba9d1638686427d62f824dc32d63f | ee71ef2d0ae8ec902d0740f3035cc6d2c3a051a6 | /metaknight/publishers.py | 1700d59c80b4000fde8efb81b5275ac20a5408ac | [] | no_license | kezabelle/django-metaknight | 5592f46ebb4d35e6bdbf3b75b5fdade3b5f3325c | 3b83891b5abf0a551974aff22f02f179adcc1b28 | refs/heads/master | 2016-09-06T10:45:25.196595 | 2014-11-30T16:28:40 | 2014-11-30T16:28:40 | 19,026,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # -*- coding: utf-8 -*-
from nap import rest
from nap.rest.api import Api
from varlet.publishers import PagePublisher
from varlet.publishers import PageSerialiser
class MKPagePublisher(PagePublisher):
pass
v1_api = Api('v1')
v1_api.register(MKPagePublisher, name='pages')
rest.api.register('pages', MKPagePublish... | [
"keryn@kerynknight.com"
] | keryn@kerynknight.com |
e5fa6d73b9519991e35fe64c31d250b8c84598f4 | f2ca5bd2640ac7ca4fd2d1b5852d9db4cb248513 | /searchEngine/searchEngine/urls.py | 68c0f1d4c4553cf2572c9c4cff270703b64404c9 | [] | no_license | mnojha/WebSearch | e38159a644da2babc8d0fc63023efebcc9cb7f86 | 6ec43acf96f1df496ecf4f1480a4197d29861107 | refs/heads/master | 2020-03-31T09:00:38.854127 | 2018-10-22T12:51:57 | 2018-10-22T12:51:57 | 152,079,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | """searchEngine URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"mansi@webllisto.com"
] | mansi@webllisto.com |
129109ea306f5efda6715812ccf17a47d232ae53 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2556/60720/277428.py | 130c92401f961054c9f0e282c7e30b7d8ddb7717 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | list0=input().split()
n=int(list0[0])
l=int(list0[1])
lst=[]
for k in range(n):
list1=input().split()
list1[0] = int(list1[0])
list1[1] = int(list1[1])
lst.append(list1)
sum=0
s=0
for i in range(n):
for j in range(i+1,n):
dis=pow(lst[i][0]-lst[j][0],2)+pow(lst[i][1]-lst[j][1],2)
if d... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
16254a39d7c288c9bb7c0c6717911bf4cddf9461 | 6b284d5c1b92808184f8c02fe38f612851c71770 | /Python/005. Math/07. Triangle Quest.py | 3fdbdf6210f86640894a90ef13ea1245077a07b3 | [
"MIT"
] | permissive | subhadeep-123/HackerRank | 7f13c6cd7df516470fe97239456d10788049525f | 4596915097e58d9fd7a8bfad3194ac35f0c25177 | refs/heads/master | 2021-07-16T08:00:59.054588 | 2020-08-03T17:24:57 | 2020-08-03T17:24:57 | 280,896,082 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | for i in range(1, int(input())):
print(i * ((pow(10, i) - 1) // 9))
| [
"subhadeep762@gmail.com"
] | subhadeep762@gmail.com |
ad0bc00b475059491995f22a3cca97b944e3e861 | 3d3152c2d1a66fdb91db5769906625b64d739348 | /test.py | c88ff4424248398b1b688a60eb71d1f45c4530b1 | [] | no_license | gummibeatz/Toxic | da4d1a025798e8594a0fa897a3a0546765c12282 | 93eb09daaaccec87d0cb796a083c4a59eb898be0 | refs/heads/master | 2021-01-24T23:24:25.446634 | 2014-01-21T10:19:08 | 2014-01-21T10:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import json
import itertools
from time import time
from pprint import pprint
from src.nlp.SemanticString import SemanticString
from nltk.corpus import wordnet
from termcolor import colored
filename = './data/semantic-distance-database.json'
READ = 'rb'
WRITE = 'wb'
APPEND = 'a+'
strings = ["I like dogs :-)","I like... | [
"mac389@gmail.com"
] | mac389@gmail.com |
4123ffa88a76cc97f29040637e66c2bbe179996c | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /17_Deep_Learning_Time_Series_Forecasting/17/01_1d_cnn_model.py | 675796378547be84ae0b807723019439af800ea3 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # cnn model for the har dataset
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import Flatten
from keras.layers.convolutional import Conv1D
from keras.layers.convolutional import MaxPooling1D
from keras.models import Sequential
from keras.utils import to_categorical
from numpy import ... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
908415843d09275a8e29b584eff72d58cb46a26d | 039b53d96fd8c128f980985873311752e5a072be | /Week3/AddMitrices.py | 99481cb185eb15541dce6804f7b9960b8d1114fa | [] | no_license | shweta2425/ML-Python | d528b8950d1b83a856f0dde3166897525cc7192f | 346856eea9496d08d3ed1f8baa764eec5549755b | refs/heads/Developer | 2020-04-26T16:30:12.105050 | 2019-06-20T13:59:06 | 2019-06-20T13:59:06 | 173,681,124 | 1 | 0 | null | 2019-06-14T13:33:03 | 2019-03-04T05:45:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,388 | py | # 1. Write a python program to add below matrices
# X = [[12,7,3],
# [4 ,5,6],
# [7 ,8,9]]
# Y = [[5,8,1],
# [6,7,3],
# [4,5,9]]
from Week3.utility.utility import User
class Parent:
# matrix A
A = [[12, 7, 3],
[4, 5, 6],
[7, 8, 9... | [
"kalereshma96@gmail.com"
] | kalereshma96@gmail.com |
fcb7b4e94bba2bdc190a00c67099f9f98a728e1e | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/23 Miscellaneous Topics/Timing/06-regexs.py | 9a0a78b206ab753633e494cafac019ad8c286339 | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from timeit import timeit
count = 100 * 1000
print("compiled regex ", \
timeit('result = pattern.search(text)', \
'import re;' + \
'text = "This line contains the numbers 8.73 and 4.67";' + \
'numberPattern = r"\d+\.\d+";' + \
'pattern = re.compile(numberPat... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
8e035d67e5e51d1ac0ee5787578f00ab864a1fcc | 01196cb36e60d2f4e0bd04fb8a230c82512c6d1d | /django_forms_multivalue/myapp/migrations/0001_initial.py | 3ac1551f3cfe07470770e4d16ed49f79dcdcf0cc | [] | no_license | dipayandutta/django | ba69b7834bd95d4564e44155504f770b780f3ebd | 3139a7b720911a4f876fb6ef9d086c39f83e3762 | refs/heads/master | 2022-04-27T18:56:18.129939 | 2022-03-23T14:05:22 | 2022-03-23T14:05:22 | 132,355,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.0 on 2019-08-05 08:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Sinppet',
fields=[
('id', models.AutoField(au... | [
"inbox.dipayan@gmail.com"
] | inbox.dipayan@gmail.com |
372d6d8d267d1e3e38a54c14fe0f3db830801d30 | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/python/echomesh/util/math/Interval.py | 775da7c50594a0fdb3cf518aad6137dbd0690eb0 | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from __future__ import absolute_import, division, print_function, unicode_literals
INFINITY = float('inf')
# Includes begin and end!
def interval(count=None, begin=None, end=None, skip=None):
assert count is None or count >= 0
missing = (begin is None or end is None)
assert missing or count is None or ski... | [
"tom@swirly.com"
] | tom@swirly.com |
37c6ef6e3fd56121414b04349672e5d4017d1b31 | cf7d96bdd34205ede987f0985dfc9e3ab415ee06 | /ad_bpa_charge/wizard/wizard_lifton_charge_onshipment.py | 80b687dda0eb862c1c8a8d5e9faa2bfca6f6dfed | [] | no_license | hendrasaputra0501/btxjalan | afc93467d54a6f20ef6ac46f7359e964ad5d42a0 | d02bc085ad03efc982460d77f7af1eb5641db729 | refs/heads/master | 2020-12-30T11:02:05.416120 | 2017-07-31T01:34:08 | 2017-07-31T01:34:08 | 98,836,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,390 | py | from openerp.osv import fields, osv
from openerp.tools.translate import _
class wizard_lifton_charge_onshipment(osv.osv_memory):
def _get_currency_idr(self, cr, uid, context=None):
if context is None:
context = {}
curr_ids = self.pool.get('res.currency').search(cr, uid, [('name','=','IDR')], context=context)
... | [
"hendrasaputra0501@gmail.com"
] | hendrasaputra0501@gmail.com |
429b5e34c7c44127e401396bef3cf64a2917be87 | 42039f4205417adff573aec1818e1b4076127e40 | /qdiff/views.py | f0518b735e764ec8079b53eed6e896849f279777 | [] | no_license | lin13k/qdiff | ce93aa994b94660bc96ea9cca88a82ffe22f8789 | a1059dea7a6623f709c2e693552208e2618d2026 | refs/heads/master | 2020-03-30T07:36:27.136255 | 2018-09-30T09:29:28 | 2018-09-30T09:29:28 | 150,952,333 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,210 | py | from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404, redirect, reverse
from hashlib import sha256
from qdiff.models import Task, ConflictRecord, Report
from qdiff.readers import DatabaseReader
... | [
"lin.13k@gmail.com"
] | lin.13k@gmail.com |
ce55fce3934ae2f6e74e948b380f935666f65659 | 4f65fa1676566c68808f906be152fb1e30dea7f8 | /tests/test_head.py | d0483c201d99cf465c44158edfd5f2a3ab541691 | [] | no_license | nagareproject/renderers-html | 64fbd7ee59849f8f266bcc67c44b6283b463fdf6 | b052e5844fa8a46e4b82982348f282464aa8401f | refs/heads/master | 2023-04-08T00:37:52.908030 | 2023-03-27T15:51:45 | 2023-03-27T15:51:45 | 217,315,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,258 | py | # --
# Copyright (c) 2008-2023 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
try:
from cStringIO import StringIO as BuffIO
except ImportError:
from io import BytesIO... | [
"alain.poirier@net-ng.com"
] | alain.poirier@net-ng.com |
57dbcd0d6a439804a59700f37a2f655b0d62d049 | 2986a62a5221885b2f070060aadb9c9ab1e84035 | /Aula11 - Cores no terminal/aula11 - Cores no terminal.py | b7eeaa95c1a02a0a50439adf476d4840a32abbf5 | [] | no_license | igorkoury/cev-phyton-exercicios-parte-1 | dcb39772be48ba7333a391af4e9fda025654472f | b187565ca996402f4862ad3000d18bfb461e269e | refs/heads/main | 2023-08-28T02:38:32.311162 | 2021-10-06T21:38:39 | 2021-10-06T21:38:39 | 414,375,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """Nessa aula, vamos aprender como utilizar os códigos de escape sequence ANSI para configurar cores para os seus
programas em Python. Veja como utilizar o código \033[m com todas as suas principais possibilidades.
Formato do padrão ANSI:
\033[0;33;44m
onde:
0: style
33: text
44: back
style: ... | [
"noreply@github.com"
] | igorkoury.noreply@github.com |
486b5818afc5ac426a97b8b66d5b9fd9994c0eb9 | 55d52812eda8f50e333d08d13dd46bca5ab24d53 | /migrations/versions/2015_08_05_49de_add_field_slug_in_mailtemplate.py | ed0c0efecc6fd42a276c47af6c7a25de9b8c8a21 | [
"BSD-3-Clause"
] | permissive | uaprom-summer-2015/Meowth | e2c8685e80e5bee26c1c4403167f4698ba14dde0 | 79b1e1071c8b23bb72a100f2c4c4208ffc5b26f5 | refs/heads/master | 2023-01-05T22:41:55.694254 | 2021-02-26T21:13:45 | 2021-02-26T21:13:45 | 38,690,649 | 5 | 9 | BSD-3-Clause | 2022-12-26T19:49:35 | 2015-07-07T13:49:41 | Python | UTF-8 | Python | false | false | 711 | py | """add field slug in MailTemplate
Revision ID: 49dee429367
Revises: 34f15d11d02
Create Date: 2015-08-05 14:23:58.064191
"""
# revision identifiers, used by Alembic.
revision = '49dee429367'
down_revision = '34f15d11d02'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated ... | [
"saklar13@gmail.com"
] | saklar13@gmail.com |
35039f15b4d4ff7ee66b23b54f8b966b6f7bcf32 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/achievement/_admin_update_achievement_list_order.py | 2210bcf0430234d86582d0250c36dcb369757104 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,820 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Achievement Service (2.21.0)
# pylint: disable=duplicate-cod... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
a244d7e1b78d7c5ccf9e6a68fd618ff5061a61d4 | 94d5467b1315791fa75165eb862fdd8fef300958 | /yunyan_baotou/src/business_ultra/eval.py | de3b9d6f4d91228b3fcf322b8daa1434fd5d96b9 | [] | no_license | scmsqhn/code | e31926174c247d49c1db8f121e3ec1b82f8a2d9d | b389d7dc5fafad8a4185a03cd6d5519ccf8f99df | refs/heads/master | 2022-12-09T05:37:07.065840 | 2019-05-14T01:55:07 | 2019-05-14T01:55:07 | 185,903,771 | 1 | 0 | null | 2022-12-08T05:05:51 | 2019-05-10T02:22:28 | Python | UTF-8 | Python | false | false | 343 | py | #!
import sys
import re
import reghelper
import pdb
regHelperInstance = reghelper.RegHelper('dummy')
f = sys.argv[1]
lines = [f]
#lines = open(f,'r').readlines()
#cnt = 10
for line in lines:
result = regHelperInstance.address_formula(re.sub(" ","",line))
print(line, '\n', result)
#cnt-=1
#if cnt<0:
... | [
"2364839934@qq.com"
] | 2364839934@qq.com |
d7398c3fa44fe332f11d855e38c51daf2c609576 | e32fbfdd7e4c8060faf97d0f046b5c957b4695f8 | /app/src/sane.py | e8fa254af297e9e8554d01a167105ac0ee6ae414 | [
"CC-BY-3.0",
"MIT"
] | permissive | fidlej/myerrata | ffeb777cc1b8cd2151b7dc7e79f1e1dd0fabed06 | c5b5cc78303bb783eb59a6d6c628d2b27a6584ca | refs/heads/master | 2020-04-11T16:02:41.134009 | 2010-08-25T15:21:48 | 2010-08-25T15:21:48 | 32,650,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py |
import re
class BadRequestError(ValueError):
pass
def valid_int(value):
"""Converts the value to an integer value or zero.
"""
try:
result = int(value)
except ValueError:
result = 0
return result
URL_PATTERN = re.compile(r"^https?://([^#]+)")
def valid_url(url):
match... | [
"ivo@danihelka.net"
] | ivo@danihelka.net |
e090ef0142007ced03848a9916f30b8e23316c42 | 9d5cebb8bd8d7a1c3d797aff65f960e2f0da3027 | /impressions/config/settings/local.py | ee88ec46a9ddf56ea995df932ea6ce9a1345a490 | [] | no_license | knowyourider/imp_project | fa23de408107ab7ab2c8a45da65fcfe62dd45860 | 20bf3306e10f80cab5615b47ed5f8aa0ad4b2206 | refs/heads/master | 2021-07-14T22:35:19.643424 | 2016-01-25T17:48:29 | 2016-01-25T17:48:29 | 33,201,014 | 0 | 0 | null | 2016-05-19T19:58:33 | 2015-03-31T18:00:15 | Python | UTF-8 | Python | false | false | 698 | py | """
Local Django settings for impression project.
"""
from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Application definition
# only adds mod_wsgi.server
# may not use wsgi express -- don't know how to use it with multiple settings files
#INSTALLED_APPS += ('mod_ws... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
a137613d54a6530cf308236f9088c648f6c94910 | 62ef47b5e63042c46f2a5dd360bfb3dc65cc611f | /tests/test_read_write.py | 3dcd320b6ea2540fac0abc6f90ec62d89ba04823 | [
"MIT",
"Python-2.0"
] | permissive | Mopolino8/NURBS-Python | 3abdd7266312779cc1e860608c304b5703420ace | 009089b27b2a8308b1834ba41b429471346b2654 | refs/heads/master | 2020-04-17T22:29:48.418346 | 2019-01-18T17:09:19 | 2019-01-18T17:09:19 | 166,996,473 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,651 | py | """
Tests for the NURBS-Python package
Released under The MIT License. See LICENSE file for details.
Copyright (c) 2018 Onur Rauf Bingol
Tests file I/O operations. Requires "pytest" to run.
"""
import os
import pytest
from geomdl import BSpline, NURBS
from geomdl import multi
from geomdl import excha... | [
"orbingol@gmail.com"
] | orbingol@gmail.com |
441a8252b91dffe2dec0658c7d27efafbdc33efe | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/collective.siterss-0.4-py2.7.egg/collective/siterss/__init__.py | 68cb8f2d8f2474e3bac99710e0fcae8d1c6d63f0 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from zope.i18n import MessageFactory
siterssMessageFactory = MessageFactory('collective.siterss') | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
57c19697daa852c3b430a37990523487d81e74d4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch78_2020_04_13_16_53_35_215138.py | 096f0be7aeec4d3da246cf6b66cbd5e371c33493 | [] | 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 | 449 | py | jogo = True
import math
while jogo:
a = input("Qual o nome?")
if a == "sair":
jogo = False
else:
b = float(input("Aceleracao?"))
dic = {a:b}
dic2 = {}
soma = 0
for e,v in dic.items():
if e not in dic2:
dic2[e] = math.sqrt(200/v)
if dic2[e] > soma:
... | [
"you@example.com"
] | you@example.com |
93afe11875280c5d052e3f04de87aabfa746ad4a | 32b58322499f797421fe9b990ca33893323d2a59 | /DeepLearning/RCNN/__init__.py | 01c42f354cb3cd61e1cc16b39b3869ad05d67530 | [] | no_license | msw1535540/MachineLearning | 41bba1ef51d430253b8de18c68dd36343f2fff6a | 654079868b43a7e6f357a379aa4645ef23303b81 | refs/heads/master | 2020-04-18T06:22:11.195938 | 2018-09-07T08:21:01 | 2018-09-07T08:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | #-*- coding:utf-8 _*-
"""
@author:charlesXu
@file: __init__.py.py
@desc:
@time: 2017/10/16
""" | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
a0050daaf09e7b8438f357ef9364b2ade05ef3e4 | 3fa4a77e75738d00835dcca1c47d4b99d371b2d8 | /backend/pyrogram/raw/functions/invoke_after_msgs.py | b8c4f607648609c01999aaa9d279d441323bea62 | [
"Apache-2.0"
] | permissive | appheap/social-media-analyzer | 1711f415fcd094bff94ac4f009a7a8546f53196f | 0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c | refs/heads/master | 2023-06-24T02:13:45.150791 | 2021-07-22T07:32:40 | 2021-07-22T07:32:40 | 287,000,778 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"taleb.zarhesh@gmail.com"
] | taleb.zarhesh@gmail.com |
224d4debb8a3d54f9ca540c819c9850d9378bc24 | 199522cb43b4e2c7e3bf034a0e604794258562b1 | /0x04-python-more_data_structures/0-square_matrix_simple.py | db50d70ebf11d52bddb59df0c55f8bfc5b5db934 | [] | no_license | jormao/holbertonschool-higher_level_programming | a0fd92f2332f678e6fe496057c04f2995d24a4ac | 360b3a7294e9e0eadcadb57d4c48c22369c05111 | refs/heads/master | 2020-09-29T01:36:20.094209 | 2020-05-15T03:27:06 | 2020-05-15T03:27:06 | 226,915,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/python3
def square_matrix_simple(matrix=[]):
new_matrix = [x[:] for x in matrix]
for i in range(len(new_matrix)):
for j in range(len(new_matrix[i])):
new_matrix[i][j] = (new_matrix[i][j]) ** 2
return (new_matrix)
| [
"jormao@gmail.com"
] | jormao@gmail.com |
519984856d54f7554922ed0ce55f84bfb172420e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/74/usersdata/238/37278/submittedfiles/lecker.py | 4c83be91631aef269dc46efc3608e7b9db820895 | [] | 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 | 404 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite o valor de 1:'))
b=int(input('digite o valor de 2:'))
c=int(input('digite o valor de 3:'))
d=int(input('digite o valor de 4:'))
if b>a and b>c and d>c:
print('n')
elif c>d and a>b and c>b:
print('n')
elif b>a and b>c or c>b and c>d:
print('s')
elif a>b... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c4f5cbf21d9984c92b829877c3f775d2b25509bf | 2e927b6e4fbb4347f1753f80e9d43c7d01b9cba5 | /Section 15 - Dictionary Exercises/list_to_dict.py | d17f351c4457c4a1733b073d4739eeec5c881ea8 | [] | no_license | tielushko/The-Modern-Python-3-Bootcamp | ec3d60d1f2e887d693efec1385a6dbcec4aa8b9a | 17b3156f256275fdba204d514d914731f7038ea5 | refs/heads/master | 2023-01-22T01:04:31.918693 | 2020-12-04T02:41:29 | 2020-12-04T02:41:29 | 262,424,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # Given a person variable:
# person = [["name", "Jared"], ["job", "Musician"], ["city", "Bern"]]
# Create a dictionary called answer , that makes each first item in each list a key and the second item
# a corresponding value. That's a terrible explanation. I think it'll be easier if you just look at the end goal:
#... | [
"tielushko@mail.usf.edu"
] | tielushko@mail.usf.edu |
37e3a19936698d055d9bdcb29d4f2b34cc2decd9 | 457c673c8c8d704ec150322e4eeee2fde4f827ca | /Programming Basic/First_Steps_in_coding_lab/03_Square_Area.py | b692b0ebee1f98963e97f995b4c1c08c701dcdcd | [] | no_license | xMrShadyx/SoftUni | 13c08d56108bf8b1ff56d17bb2a4b804381e0d4e | ce4adcd6e8425134d138fd8f4b6101d4eb1c520b | refs/heads/master | 2023-08-02T03:10:16.205251 | 2021-06-20T05:52:15 | 2021-06-20T05:52:15 | 276,562,926 | 5 | 1 | null | 2021-09-22T19:35:25 | 2020-07-02T06:07:35 | Python | UTF-8 | Python | false | false | 50 | py | side = int(input())
area = side * side
print(area) | [
"daredevil91138@gmail.com"
] | daredevil91138@gmail.com |
2b0949f1bdc39891ea894463878fd31898a2fa4c | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_38873.py | 4f43ddbbdf285e090d2e88f4a502a1c174902800 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
d2d5b8b0697c9c2131ba821f8fccadc497a428d8 | ecf1ce6f8b592f76c7b7c253608c1264ae0676a3 | /days/day072/exercises/143/test_merge.py | 0ea3322146b085910e0cd6096be52a26292df256 | [] | permissive | alex-vegan/100daysofcode-with-python-course | 94e99880a50ac412e398ad209ed53796f253641f | b6c12316abe18274b7963371b8f0ed2fd549ef07 | refs/heads/master | 2021-07-20T23:05:59.721661 | 2019-01-21T16:18:25 | 2019-01-21T16:18:25 | 150,115,516 | 0 | 0 | MIT | 2018-09-24T14:28:16 | 2018-09-24T14:28:15 | null | UTF-8 | Python | false | false | 695 | py | from merge import get_person_age, NOT_FOUND
def test_regular_name():
assert get_person_age('tim') == 30
assert get_person_age('helen') == 26
assert get_person_age('otto') == 44
def test_case_insensitive_lookup():
assert get_person_age('Tim') == 30
assert get_person_age('BOB') == 17
... | [
"alex-vegan@outlook.com"
] | alex-vegan@outlook.com |
e8dd415ae21ea35301590c91507697e41814c4b4 | 31e41995dea5e4a41bc9b942da7e5266cd686757 | /learning/training/python/py2/pgms/sec4/copylist.py | fdb40c5ca137b7badfba46fd00bb569f25d3a9eb | [] | no_license | tamle022276/python | 3b75758b8794801d202565c05d32976c146beffd | 4fec225d1e5e2bf0adac5048f7f9f3313ac76e23 | refs/heads/master | 2020-04-01T21:03:01.458768 | 2017-03-13T20:47:35 | 2017-03-13T20:47:35 | 64,878,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/env python
# copylist.py - copy list argument
def assign(arg):
arg[0] = 10 # changes list item
arg[1] = "xyz" # changes list item
mylist = [1, "abc"]
assign(mylist[:]) # won't change mylist
print mylist
#####################################
#
# $ copylist.py
#... | [
"tam.le@teradata.com"
] | tam.le@teradata.com |
cb8942131ae2e232fe9349dea82af17940939a02 | a8c1ae727d050d1204c0cc1629b1463440d04837 | /templates/env/bin/pip3 | 9eeefc2441cf966c9945a888f3c2a68c57c8d58d | [] | no_license | lavaniab/madlibs | 7d7a59324012987a3becbfee42afe9a372c4b104 | 77b2286c70825630cedb964de251ac8a46e9964d | refs/heads/master | 2021-01-03T11:31:20.387730 | 2020-02-12T22:15:18 | 2020-02-12T22:15:18 | 240,063,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/engineer/src/madlibs/templates/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
7e9c23f925ed5818efb6c7fd98417d8ea708f523 | 494b1f60198988d897cff48913d0cb53353649f8 | /maqueen-plus/microbit_V2/src/mbservo.py | 15b0dab1722f6b6959ba4efd7791ee377c55017e | [] | no_license | SiChiTong/mbrobot | 8a488fef7a71c559f95b32dadd044af108b26f84 | 3cc058eea83c89092082cddbc2b7ac349d27e652 | refs/heads/main | 2023-08-16T03:37:05.747913 | 2021-10-26T21:44:47 | 2021-10-26T21:44:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | from microbit import i2c, sleep
i2c_adress = 0x10
class ServoPort:
S1 = 0x14
S2 = 0x15
S3 = 0x16
@staticmethod
def list():
return [ServoPort.S1, ServoPort.S2, ServoPort.S3]
class Servo:
def __init__(self, id):
if id not in ServoPort.list():
... | [
"cedonner@gmail.com"
] | cedonner@gmail.com |
6e9bdc205680cc91b554512a439c8803cc54dabc | 71bf619d5fe86570df91775c693fc26d7a080bc1 | /ABC/039/a.py | f8d46a24eeaa9fdadd6e23e99c92d1b375f59ed8 | [] | no_license | tapioka324/atcoder | 4943fd899b3b7c93f205fabe99e7bde7be1f625c | fe726f442145111623d5d204438fa359b5bcf886 | refs/heads/master | 2020-06-09T20:49:10.341027 | 2020-05-10T14:43:18 | 2020-05-10T14:43:18 | 193,503,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | # -*- coding: utf-8 -*-
# input
A, B, C = map(int, input().split())
# solve & output
print(2 * (A * B + B * C + C * A))
| [
"26566765+tapioka324@users.noreply.github.com"
] | 26566765+tapioka324@users.noreply.github.com |
436a764b0dd771c32b2f33d365c2faf251f92de4 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_generated/aio/_client.py | ce2b386deeb54745e3ace188d29263ec5f72e534 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 4,475 | 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"
] | openapi-env-test.noreply@github.com |
3dbcb72d79239a8f5c0210c4d9d24bf957e1ef88 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_straighter.py | 0af84f2306840da7fb1a1db1eb53c76a7ef4a82c | [
"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 | 232 | py |
#calss header
class _STRAIGHTER():
def __init__(self,):
self.name = "STRAIGHTER"
self.definitions = straight
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['straight']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c05f3571986f20831e859d2ba4a9b03c32b1f2aa | 15097e3428df1193b25d8476f49b3f98e9d31e2a | /db/addjob.py | d54912921c51b995b90bb50e196b22e72634f076 | [] | no_license | srikanthpragada/PYTHON_28_JAN_2019_DEMO | 4c19d5116726d7e2b254a50aabe56ccfc0864c3c | 12cba58f76029ec035e2a7c7a6c075528597714b | refs/heads/master | 2020-04-20T04:24:13.066635 | 2019-03-01T02:28:04 | 2019-03-01T02:28:04 | 168,626,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | import sqlite3
con = sqlite3.connect(r"e:\classroom\python\hr.db")
cur = con.cursor()
title = input("Enter job title : ")
minsal = int(input("Enter min salary : "))
cur.execute("insert into jobs(title,minsal) values(?,?)",
(title, minsal))
con.commit()
print("Added a new job successfully!")
con.close()
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
6c353e893a52febc4ecc0222377c5360e02c591b | 4202a7c678e0ec25ab2065c4c2804b0296f94480 | /MOMI_FCS2/momi_priorset_0_asym.py | 62549da80fb22ac05e1da1c3ae89ad00b962d7e3 | [] | no_license | kaiyaprovost/whole_genome_pipeline | f1c479536560c5b8c68fe3a5ba0917140fbb0793 | 8e605d855c9f0cd6e11e1b73a97260e0d4aa3fae | refs/heads/master | 2023-04-22T20:51:01.344297 | 2023-04-06T19:12:11 | 2023-04-06T19:12:11 | 237,044,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | import momi ## momi2 analysis
import logging ## create log file
import numpy as np
import datetime
print("-----\n-----\n-----")
now = datetime.datetime.now()
print("start logging\n")
logging.basicConfig(level=logging.INFO,
filename="momi_log_priorset_0_asym.txt")
print("load sfs\n")... | [
"17089935+kaiyaprovost@users.noreply.github.com"
] | 17089935+kaiyaprovost@users.noreply.github.com |
44d036b37d3111e314ce676ba501df78cefce47f | 5c7e4c9d7b46b0b41fc64fe1d032ffbfb64ad144 | /CommonLib/simon816/util.py | ea21130da0a5a6cacf0ec053c1446457f0f9bb19 | [
"MIT"
] | permissive | simon816/PyS60-Projects | 6ee59617debd95498c03b5633a1ec9abd929ba9b | 6d9ccea8bc3f4303352c7b3c1737d620b34b0081 | refs/heads/master | 2021-01-25T12:24:00.336524 | 2018-07-01T15:33:01 | 2018-07-01T15:33:01 | 5,906,524 | 9 | 3 | null | 2016-09-10T21:12:21 | 2012-09-21T19:46:29 | Python | UTF-8 | Python | false | false | 4,649 | py | import os
import e32dbm
import appuifw
import e32
from stat import *
def select(type="file",initdir="\\",drive="",**options):
def opt(k):
if k in options:return options[k]
initdir=drive+initdir
path= os.path.normpath(initdir)
drive,path=os.path.splitdrive(path)
if not drive or initdir==drive+"\\..\\" and ... | [
"simonbarnes1@googlemail.com"
] | simonbarnes1@googlemail.com |
4cec93fc3c55e71699b914a3541560bfa7671ebc | 2bcd6b3080905a34968a8684f60e184f7b1cf879 | /gmn/src/d1_gmn/tests/test_update_with_sid.py | e9b9481db8c16600c422a0f7aef82914d6e7ecd3 | [
"Apache-2.0"
] | permissive | tomsaleeba/d1_python | 8fdccfa2fefa94f96f2dc738b3353c2bc94f3549 | f9b53cadaa00fea96bc706d07e35f2d708a1bc98 | refs/heads/master | 2020-03-12T19:46:46.418913 | 2018-11-20T04:06:20 | 2018-11-20T04:06:20 | 122,432,518 | 0 | 0 | Apache-2.0 | 2018-02-22T23:45:04 | 2018-02-22T04:55:35 | Python | UTF-8 | Python | false | false | 5,900 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2016 DataONE
#
# Licensed under the Apache... | [
"git@dahlsys.com"
] | git@dahlsys.com |
6fc6c3c5acee160dc7ef7842b56922b6bda85bf6 | 12112cdb7efa8a7026925f3eea9bf096b098ed3b | /wte_api/app/search/ts.py | d3e96f2e48e84f560ca8da5eca8292b6e30648d9 | [] | no_license | smallstrong0/Earth | c377f43216515b21191778c8a529c1c073bd8954 | c81c2e0e0ea18af62ef8f81b2ea84d2cc0faed8d | refs/heads/master | 2021-05-16T00:08:12.047520 | 2019-07-27T01:39:48 | 2019-07-27T01:39:48 | 106,982,264 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/9/17 10:45
# @Author : SmallStrong
# @Des :
# @File : ts.py
# @Software: PyCharm
import core.check as check
import tool.c_utils as c_tool
import tool.t_utils as t_tool
def go():
keys = {
'ts': None,
}
error, params = check.s... | [
"393019766@qq.com"
] | 393019766@qq.com |
d25487fbb72b7180ec7589a7439fee771cbd1482 | 51708d137e77075b2d9b96fd2344ecc5ae9c3208 | /regnskabsite/fixtures.py | 919ff78e4cb511d5443842859f66de8dd46a4f48 | [
"Beerware"
] | permissive | TK-IT/regnskab | f8e506f2323dcacfbfd1640769e78c160bc05c78 | 919010e5d01a3a2d298a76bb3ec0c7070a11b6b3 | refs/heads/master | 2021-01-17T17:25:06.066675 | 2018-04-16T19:08:23 | 2018-04-16T19:08:23 | 70,333,500 | 1 | 0 | null | 2018-06-16T12:57:26 | 2016-10-08T13:38:05 | Python | UTF-8 | Python | false | false | 5,650 | py | import string
import datetime
import itertools
import numpy as np
import collections
from regnskab.models import (
Profile, Title, Alias, EmailTemplate, SheetStatus,
config, BEST_ORDER,
)
from regnskab.legacy.import_sheets import Helper
BEST = sorted(BEST_ORDER.keys(), key=lambda k: BEST_ORDER[k])
EMAIL_TE... | [
"rav@cs.au.dk"
] | rav@cs.au.dk |
c37e98205df4a3c319a47a42096af604a3889861 | f4afb7a16696803942a999b0687e08997defb114 | /build/sensor_fusion_comm/catkin_generated/pkg.develspace.context.pc.py | 578d3bf885a6c08a1db5bfe901c9a33648f08db3 | [] | no_license | EmanueleAucone/ethz_ws | 8d4760109be3b1882d875aa28f7ecfe793b1b9e6 | 883efd2936e8f67e783790d7ac8f3a40e749d1b9 | refs/heads/main | 2023-01-22T04:03:45.341419 | 2020-11-25T10:30:49 | 2020-11-25T10:30:49 | 308,606,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/emanuele/ethz_ws/devel/.private/sensor_fusion_comm/include".split(';') if "/home/emanuele/ethz_ws/devel/.private/sensor_fusion_comm/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtim... | [
"emanuele.aucone95@gmail.com"
] | emanuele.aucone95@gmail.com |
61dc5264044db6f859b3e09d6f345e36dbda9624 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s772529608.py | 141e28b66feb3c340af27f273c0afd8b5d4a7a1f | [] | 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 | 536 | py | n, k = map(int, input().split())
td = sorted([list(map(int, input().split())) for i in range(n)], reverse=True, key=lambda x: x[1])
type = set()
L = []
Sum = 0
for x in td[:k]:
Sum += x[1]
if x[0] not in type:
type.add(x[0])
else:
L.append(x[1])
L = L[::-1]
type_cnt = len(type)
ans = Sum +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5aaa66f502dab8932b009e05b0c3a60fd6815cff | 2e50e69fc234e564c264427e92a891820c7a59e7 | /checkData.py | a0597ae216b101333fb8a8f4013dea85e0c977fd | [] | no_license | SharonLee19/HAN | 6dda3ea1e5f41d99412efc91d03fe62e965a40cd | 5195c3d00a3e8614ab52503e44f3f67d4e88b2e9 | refs/heads/master | 2022-03-06T19:42:09.694032 | 2019-11-20T21:27:20 | 2019-11-20T21:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import time
import numpy as np
import tensorflow as tf
from models import GAT, HeteGAT, HeteGAT_multi
from utils import process
import os
# jhy data
import scipy.io as sio
import scipy.sparse as sp
def sample_mask(idx, l):
"""Create mask."""
mask = np.zeros(l)
mask[idx] = 1
return np.array(mask, dty... | [
"781244184@qq.com"
] | 781244184@qq.com |
5edb8fdd9c45864a867eb9b0acaa1ae35ed76001 | c1b7655fbbf5e647c9de01d55bf31f044e26b7bf | /DCIS/Spatial_Analysis_DCIS/S0_Spatial.py | ff50a340322d6872f1b3cb5a319fdc2090c3d5dd | [] | no_license | sara-kassani/UNMaSk | ef170ddcfd7b8b5599e7d412d547084848308eb1 | c03f56a6e926fe14b1923470d22a112892116e38 | refs/heads/master | 2023-07-17T12:38:46.086746 | 2021-04-29T19:59:48 | 2021-04-29T19:59:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,469 | py | from shapely.geometry import MultiPoint, Point, Polygon
from scipy.spatial import Voronoi
import numpy as np
import matplotlib.pyplot as plt
import cv2
import re,json,collections
import glob
import os
def natural_key(string_):
return [int(s) if s.isdigit() else s for s in re.split(r'(\d+)', string_)]
def centro... | [
"noreply@github.com"
] | sara-kassani.noreply@github.com |
a69516d0342993e015f876e191b7e892691f27b6 | 0502750293383c6dae2aaf4013717d9c83f52c62 | /exercism/python/archive/kindergarten-garden/kindergarten_garden.py | cd7a8012f7aeac50bd3d13855748206572eb2a05 | [] | no_license | sebito91/challenges | fcfb680e7fc1abfa9fea9cd5f108c42795da4679 | b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284 | refs/heads/master | 2023-07-08T15:43:42.850679 | 2023-06-26T19:38:51 | 2023-06-26T19:38:51 | 117,160,720 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | """ Module to present the plants grown in the kindergarten_garden """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
class Garden(object):
""" class to handle the plants in our kindergarten garden """
def __init__(self, garden, students=None):
""" our initialization function """
... | [
"sebito91@gmail.com"
] | sebito91@gmail.com |
5c0b852c984596cf470f2c653db9d325b702db9c | 7623d4ca5cacb259a1b2e7a98b1e8a3011592348 | /SICP/examples/scale_tree.py | 0e6fd4ac73cffce200c82d1454542f0c0bc9dbbc | [] | no_license | nextdesusu/Learn-Python | 3b875ab5093844fe64cc13e717a3637bdfe62a9a | 3212059408eec27ee2ed359ac9d691b3d061372f | refs/heads/master | 2022-01-29T07:39:11.915177 | 2019-07-21T14:18:10 | 2019-07-21T14:18:10 | 198,063,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | def scale_tree(list_, factor):
for index1 in range(len(list_)):
if isinstance(list_[index1], list):
scale_tree(list_[index1], factor)
else:
list_[index1] *= factor
return list_
def scale_tree_map(list_, factor):
def checker(elem):
if isinstanc... | [
"noreply@github.com"
] | nextdesusu.noreply@github.com |
c669df5170ec8ed1e414bc0f53fe4d8d5e34513d | 6ab810f6ca51dc2e2d0b7197fc1866b738ca70a2 | /Code/py3/330.按要求补齐数组.py | 315510b068b9d7cc2c9e0596e83f13f18798c849 | [
"MIT"
] | permissive | ApocalypseMac/LeetCode | 2309223be0c3e2969850cf1770eef2a447d39317 | 84c229eaf5a2e617ca00cabed04dd76d508d60b8 | refs/heads/master | 2023-04-14T19:22:34.340333 | 2021-03-28T05:20:40 | 2021-03-28T05:20:40 | 282,896,723 | 1 | 2 | MIT | 2020-07-29T05:05:19 | 2020-07-27T12:49:40 | Python | UTF-8 | Python | false | false | 591 | py | #
# @lc app=leetcode.cn id=330 lang=python3
#
# [330] 按要求补齐数组
#
# @lc code=start
class Solution:
def minPatches(self, nums: List[int], n: int) -> int:
hi = 1 # match highest range (not including)
m = len(nums)
j = 0 # index of nums
res = 0
while hi <= n:
while j ... | [
"ApocalypseMac@users.noreply.github.com"
] | ApocalypseMac@users.noreply.github.com |
49e5220274d75bbb125b4b58d8416ae13a137503 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/303. Range Sum Query - Immutable.py | 90f1d425af45639b5727be41637d402516ad46ab | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | '''
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.
Example:
Given nums = [-2, 0, 3, -5, 2, -1]
sumRange(0, 2) -> 1
sumRange(2, 5) -> -1
sumRange(0, 5) -> -3
Note:
You may assume that the array does not change.
There are many calls to sumRange function.
'''
impo... | [
"derek.xiao@loftk.us"
] | derek.xiao@loftk.us |
16ba1690e9b6eea84e638fce0ee0dcc52fa4c2a2 | c2db4c0fc6202b84188fec3635f324bdcd555f07 | /analysis/metrics.py | 9c15ded3d5f161153ef965e553d2e4505ce1961d | [] | no_license | jafanello/qy | 54006600b2bc189196746c0e9d9c45d0728cd3f2 | 59dc940911d872b378b3dda66562896066d69a00 | refs/heads/master | 2021-01-01T17:56:16.842846 | 2014-02-24T20:06:00 | 2014-02-24T20:06:00 | 17,366,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import numpy as np
from scipy.stats import ks_2samp
def ks_test(a,b):
''' the KS test between two probability distributions'''
return ks_2samp(a,b)
def trace_distance(a,b):
''' trace distance between two probability distributions [Nielsen and Chuang] '''
return 1-np.sum(np.abs(a-b))/2.
def fidelity(a,b):
'... | [
"pete.shadbolt@gmail.com"
] | pete.shadbolt@gmail.com |
4e52bb0c19c918b0b9e8eb06706a3346fa76760d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2301/60895/305348.py | c3e36996dd5db858571f017db49e20f86be9ccd6 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | n=int(input())
k=n
while(k>2):
a=input()
k=k-1
m,s=input().split(' ')
m=int(m)
if(n==7 and m==3 and s=='qwer'):
print('YES')
print(2)
print('NO')
print(1)
elif(n==3 and m==2 and s=='qwer'):
print('NO')
elif(n==3 and m==4 and s=='qwer'):
print(1)
print('NO')
elif(n==7 and m==1 and s==... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e32e9d5525bc6372d40da73dc6a4c78185f8e73f | ddf878ddf049616d7643380fc7d404b076a080ca | /jupyterhub/.jupyter/config-learning-portal.py | 8ecef13169202ff8dcf1ea45003c010b64aec2e6 | [
"Apache-2.0"
] | permissive | wataitoshihiro/workshop-jupyterhub | db3e6c79c6f3a236c314bbc90a702ba922bcd7ab | 745af2fcc968c9fb048068d99502c295876c7a2a | refs/heads/master | 2020-04-11T20:59:31.860682 | 2018-12-12T07:27:05 | 2018-12-12T07:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,937 | py | # This file provides configuration specific to the 'learning-portal'
# deployment mode. In this mode, anonymous authentication is used, with
# users being given their own unique service account and project to work
# in. The project and service account will be deleted when the session
# goes idle or the time limit for t... | [
"Graham.Dumpleton@gmail.com"
] | Graham.Dumpleton@gmail.com |
fb9f91a399161b9d3e9daa6cb1c1cf1ca5944a05 | 1aecf1b79a56446b631797e5500aff2d7d355b89 | /modules/dirlister.py | c6d48560f3d5b02e020bf5bce33838d182716626 | [] | no_license | Sir-Cyber/chapter7 | 584750c34171eb2facbc8294a28f9318f946e60a | 9e5d757410eb6ef062f9e77e389783efc61c01f4 | refs/heads/master | 2021-08-14T12:38:05.969471 | 2017-11-15T18:43:40 | 2017-11-15T18:43:40 | 110,864,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #!/usr/bin/python
import os
def run(**args):
print "[*] In dirlister module."
files = os.listdir(".")
return str(files)
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
8cc8a2821d806a323a7f5e7f3f6c2e7ecb8e4841 | 93a7db386dfa0ac0dc369cc7f4b974224c801d8d | /deploy/edge-wt-neigh/scripts/main-22.py | eff325e3ed425a614a766b60706c7a733a3ef873 | [] | no_license | lingxiao/good-great-combo | e051f20c89b7317a14ca5cee357bda7b095ce174 | 4d2691866bc21e2c542354ad3aae6f369eb86c87 | refs/heads/master | 2021-01-19T19:30:43.391759 | 2017-04-09T12:35:15 | 2017-04-09T12:35:15 | 83,699,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | ############################################################
# Module : compute edge weight where
# w(s -> t) = | s -> t |
# -------------------
# sum_x | s -> x|
#
# Date : April 2nd, 2017
# Author : Xiao Ling
###########################################... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
54886ccb63faf4572d14b0dcf19199ccf9e6c01d | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /api/allocate/activity/python/test/test_grade_type_category.py | 9af4366e62471a85403d1818ae87386ecc98c0f3 | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 982 | py | # coding: utf-8
"""
Activity API
## API for querying worker activity. This is an early availabilty API, and is subject to change. # noqa: E501
The version of the OpenAPI document: 0.0.1
Contact: support@allocatesoftware.com
Generated by: https://openapi-generator.tech
"""
from __fut... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
5293b6c0aaf972062a83fa3731788f063eb42af1 | c9aaa9ffba721a43e8797c4da500eb2197f250ce | /shoppinglist/migrations/0001_initial.py | 630d918b3f60d094e559ab9971f4454cfcdc81c4 | [] | no_license | TanmayAmbadkar/shopmanage | 7d2b6ae4f01f1f029bcbd3286ba4d16bf4050902 | 92b4f7c54af6f552c5536bc556decf6a904c0266 | refs/heads/master | 2023-03-24T21:56:07.943067 | 2021-03-17T07:24:58 | 2021-03-17T07:24:58 | 348,595,489 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # Generated by Django 3.1.7 on 2021-03-16 17:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"tanmay.ambadkar@gmail.com"
] | tanmay.ambadkar@gmail.com |
90bc67ac4ce8f7fa37f0590d9c83f3b13e5914f2 | 5fc9cad39efe2eb4020d604540d3adc38a89114a | /SecondYear/TextMining/Homework/2048/deep_q_learning_model_128_32_8_package/deep_q_learning_model_128_32_8.py | 5555f62b2bf445c61b8da9326b6a071072da439e | [] | no_license | daneel95/Master_Homework | bf16db69366fe09140c5cdf71c5e98c875611d79 | 7987341c78a6572342b6823ff610d9222d8c3b62 | refs/heads/master | 2022-12-27T04:38:18.358573 | 2020-10-08T12:23:20 | 2020-10-08T12:23:20 | 156,966,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | from base.deep_q_learning_model_base import DeepQLearningModelBase
import keras
from keras.layers import Dense, LeakyReLU, Dropout
from keras.models import Sequential
class DeepQLearningModel_128_32_8(DeepQLearningModelBase):
def __init__(self,
model_file_name='models/DeepQModel.chkpt',
... | [
"holteiu.daniel@gmail.com"
] | holteiu.daniel@gmail.com |
9bf81737b89199ef97cff8f4bac183e0e33b9d98 | 201aa2c55b40897e87dd548251363f67800a56bf | /django_pjt4/accounts/forms.py | 23b5d16a86f990f1638d7850b9dba80097f48109 | [] | no_license | Jeonseoghyeon/Django_PJT4 | 3f69edf05f298ac247f70729c1ba7c057991faa7 | 3021035b8b83e743341f88fa2e950a9798a12885 | refs/heads/master | 2022-07-12T04:31:22.793867 | 2020-05-15T09:43:54 | 2020-05-15T09:43:54 | 263,517,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from . import models
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import get_user_model
from django import forms
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = get_user_model()
fields = ['username','first_name','last_name','email','profile_pic... | [
"jsh28592@gmail.com"
] | jsh28592@gmail.com |
b488d17ecdd4a9db41d65f9756e8a67bb13cb167 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/124701/kaggle-bike-sharing-demand-master/linear_regression.py | a26e049c2368a086853ff511d7f1488bd7ff5f6e | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # Kaggle Bike Sharing Demand
# Joey L. Maalouf
# Approach: Linear Regression
# -- import any necessary modules ----------------------------------------------
import csv
from sklearn import linear_model
# -- define our functions ------------------------------------------------------
def to_int(input):
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
fa3ece74dfd94e5a79f1f87b28eb0442a0544f0f | 5eb2c7eb3eea489907c4128b5ff4181604569353 | /java.py | 6b8e1ea8cf8f307e689f61c54629b9b2eaaf75e8 | [] | no_license | buptlxb/pyasm2 | 71141f99077b605dc9d9006da87c9456f764afff | 299b461f4fc1f774ea7679a095343816fbd786cc | refs/heads/master | 2021-01-22T15:11:30.543621 | 2015-04-28T11:05:13 | 2015-04-28T12:54:39 | 49,175,047 | 0 | 1 | null | 2016-01-07T02:16:38 | 2016-01-07T02:16:38 | null | UTF-8 | Python | false | false | 9,730 | py | """
Java Disassembler & Assembler Engine (C) 2012 Jurriaan Bremer
https://github.com/jbremer/pyasm2
"""
import struct
# http://en.wikipedia.org/wiki/Java_bytecode_instruction_listings
_table = {
0x32: 'aaload',
0x53: 'aastore',
0x01: 'aconst_null',
0x19: 'aload',
0x2a: 'aload_0',
0x2b: 'aloa... | [
"jurriaanbremer@gmail.com"
] | jurriaanbremer@gmail.com |
522813de23bb17d1c9633802a964e73d4a91e1d5 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/689_MaximumSumof3NonOverlappingSubarrays.py | b267c6cbb9c3b09be240a384e574aa586162bc4f | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | """
In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum.
Each subarray will be of size k, and we want to maximize the sum of all 3*k entries.
Return the result as a list of indices representing the starting position of each interval (0-indexed). If there are multiple answ... | [
"here0009@163.com"
] | here0009@163.com |
cd07ca9b2bf31f6a99d2f7d778bfff7b2639cce4 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/view/aurumstore/vgsOffer.py | c91504cc558bc4b166a3bf00925d8de12232481f | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 15,359 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\view\aurumstore\vgsOffer.py
import carbonui.const as uiconst
import dogma.const
import eve.common.lib.appConst as appConst
import signals
import industry
import itertools
import logging
import math
import u... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
2ab1003e9881a740d15277e97ef2de75f5aea2bf | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /251/251.flatten-2d-vector.231418289.Runtime-Error.leetcode.py | 4370d7d295fab4670aa4ddc52b7fff7f62269b13 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | class Vector2D(object):
def __init__(self, vec2d):
self.i = iter(vec2d)
def next(self):
return self.val
def hasNext(self):
if not hasattr(self, 'j'):
try:
self.j = iter(self.i.next())
except StopIteration:
return False
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
7b0bd1f03078f5435b947c20fd57c9106f54beed | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/operation_definition_paged.py | 5740dfc6407092b2dcc07e0cd3f4227ce2614494 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 997 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
b19be71cebb328f0f046d9447750c2c823616557 | b0640fb8fd786771463efaa0b591a2995dfbb6c1 | /mayan/apps/folders/managers.py | 725a39d429394ed8a4481700be7248af6f80d31a | [
"Apache-2.0"
] | permissive | kyper999/mayan-edms | 9a868ee9470e8689bf8c36f3cc6c05bcc2b356a8 | ca7b8301a1f68548e8e718d42a728a500d67286e | refs/heads/master | 2021-01-22T20:18:34.009706 | 2017-03-14T03:58:25 | 2017-03-14T03:58:54 | 85,309,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from __future__ import absolute_import
from django.contrib.auth import get_user_model
from django.db import models
class FolderManager(models.Manager):
def get_by_natural_key(self, label, *user_key):
user = get_user_model().objects.get_by_natural_key(*user_key)
return self.get(label=label, user=u... | [
"roberto.rosario.gonzalez@gmail.com"
] | roberto.rosario.gonzalez@gmail.com |
7c5cb6e996f9f176fa2a26bd6a1d1c633af438f0 | 6e800b3513537622df14bb598abe9c051116106c | /ByteDanceProblems/String/LongestCommonPrefix.py | 7d02afde27745e2861bdb73b4dde504088fd76d2 | [] | no_license | Huxhh/LeetCodePy | fd72f03193d1f0b58c44bffc46a9a59ba9714215 | 6a99e84c5742ca68012b14da362f6c3255e10b21 | refs/heads/master | 2023-06-09T09:23:54.209025 | 2023-05-31T16:29:03 | 2023-05-31T16:29:03 | 148,866,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # coding=utf-8
def longestCommonPrefix(strs):
if not strs:
return ""
minlen = min(strs, key=len)
for i, s in enumerate(minlen):
for others in strs:
if others[i] != s:
return minlen[:i]
return minlen
| [
"563255387@qq.com"
] | 563255387@qq.com |
6a97955fc258fbbd9dc068c9966bac243f3f0bd7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03937/s031370942.py | 084ef239ef57f5999a1605beba242c935fefac75 | [] | 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 | 203 | py | h,w = map(int, input().split())
cnt=0
for i in range(h):
a = list(input())
for tmp in a:
if tmp=="#":
cnt+=1
if cnt==h+w-1:
print("Possible")
else:
print("Impossible") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0d21977a002510c5f8d02516cb21b10ecf8da7d | e75bef3fcd84b713b52ad0d3b69be67f35b8bd6f | /arithmetic_1.py | 7492b28d7e1cbbc0af2746d449902e3fb5141dbc | [] | no_license | spyapali/calculator-2 | 7a3b5994ae2542680701e750add9be7099ebe7ba | e2ba124b95c410df8e1c296e781b81850c0ceb43 | refs/heads/master | 2021-01-10T03:44:07.394038 | 2016-01-07T20:59:41 | 2016-01-07T20:59:41 | 49,170,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # def add(num1, num2):
# return num1 + num2
def add_many(list_of_numbers):
result = 0
for i in list_of_numbers:
result = result + i
return result
def subtract(list_of_numbers):
result = 0
for i in list_of_numbers:
result = result - i
return result
def multiply(list_of_n... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
9843e24027eb2f850e05db3cfcea6138194e21d6 | bc4688c02d16c4f786f0ea835f9e1a7e45272090 | /cnn/keras/metaROItest/model.py | 5d71a09f62e9b8da5f10b916b6a7bb7334f4b87f | [] | no_license | mhubrich/adni-python | 4e3fb24e216fb908eb2426b2fc90482431f3494d | 21e14e4cb5ab8edf33deff7fbe2494bbc396ea35 | refs/heads/master | 2021-06-15T02:04:00.435915 | 2017-02-28T14:25:23 | 2017-02-28T14:25:23 | 69,449,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | from keras.models import Sequential
from cnn.keras.models.metaROI1.model_single_conv import build_model as mod1
from cnn.keras.models.metaROI2.model_single_conv import build_model as mod2
from cnn.keras.models.metaROI3.model_single_conv import build_model as mod3
from cnn.keras.models.metaROI4.model_single_conv import ... | [
"mhubrich@students.uni-mainz.de"
] | mhubrich@students.uni-mainz.de |
a22bb0bcab113fa48e25e1a970ce3e0f59f12880 | cc6618caf3d840a3b7665f0c36c7a0f689788f0f | /mainBot.py | fae6e487dea7dfd2d65133e19fa05ebd9bdfaa19 | [] | no_license | ResQNetMoon/botFilter | 14d93c018d86c4c2379d5bb31162438b8921c300 | f8971ccef296920b986dd7f3f1878a6aea9be8cd | refs/heads/master | 2020-03-23T20:18:12.923613 | 2018-07-24T16:38:07 | 2018-07-24T16:38:07 | 142,033,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | from __init__ import bot, Buttons
from re import sub, findall
from threading import Thread
import settings
import linker
btn = Buttons()
def noticeSpam(text, maxSymbols=70):
print(text)
return len(text) >= maxSymbols
def rban(uid, chid):
print(bot.method("kickChatMember", {'chat_id':chid, 'user_id':uid})... | [
"="
] | = |
1f3b1f39e5d4a0db807ea445998dfa8912bf83a8 | 1c71bbbe175554b03838778be471e08384140b77 | /app/get_statistics.py | 2eeb8e1e36f7fc5a6839c0246ecf99706f80e3fd | [
"MIT"
] | permissive | furkanalpereny/mackolikData | 58a3baaa57694f0fbb2dce47a798df44617fac03 | 8c927c976711002dd324bc52c9577b20bf2e99be | refs/heads/master | 2020-11-29T21:14:08.806701 | 2019-12-29T13:34:40 | 2019-12-29T13:34:40 | 230,217,109 | 2 | 1 | MIT | 2019-12-29T13:33:42 | 2019-12-26T07:28:51 | Python | UTF-8 | Python | false | false | 2,402 | py | from selenium import webdriver
import time
firefox_path = "/home/muschkulpesend/Documents/Projects/mackolikData/geckodriver"
driver = webdriver.Firefox(executable_path=firefox_path)
def get_data(cat_count, loop_count, match_details):
driver.find_element_by_xpath("/html/body/div[6]/div[2]/main/div/div[2]/div/div... | [
"furkan.aalperen@gmail.com"
] | furkan.aalperen@gmail.com |
c00459fc9b11b667e4c2459755c01c834411f7d2 | 4573ac7b8d70683f4b95c68062090a0da63b7940 | /11.py | 4f4b76a90c60abe44b80de00931f973f5054aa50 | [] | no_license | lohitbadiger/basics-python-code | 0141a931aea8e6ace4a5c348994ede6e324c87cf | 0907f5a8b0df60ab1bf021e8bbdd79c3a3dccf04 | refs/heads/master | 2020-08-25T07:21:02.986664 | 2019-10-23T06:13:39 | 2019-10-23T06:13:39 | 199,429,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | a={1,2,3,4,5,6,7,8,8}
print(a)
print("_____________________________________________________")
# Noraml sets
# set()
normal_set=set(["a","b","c"])
print("normal_set", normal_set)
normal_set.add("Nae")
print("normal_set", normal_set)
boxes=['lohit','mohit','suresh','lohit']
for box in boxes[1:3]:
print(box)
| [
"lohit2013n@gmail.com"
] | lohit2013n@gmail.com |
9446db1f68d3c310766f0c1a49e06405dfdd591f | 009ddb09831accc1cdcf28c2aa0ad6ed4f2542db | /templates/django_app_name/api/urls.py | 76fa8987fd48aa34a9a6fd856108a21e055a2e30 | [
"MIT"
] | permissive | luiscberrocal/django_ansible_config | f5a1fa4fbc010cd409b34632346c9720096a1c6c | 0eca2c7a7d7a515efbd143a7b33334f9a0c2f2c5 | refs/heads/main | 2023-08-17T21:40:08.149218 | 2021-10-09T00:14:43 | 2021-10-09T00:14:43 | 322,881,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.urls import path
app_name = "{{django_app_name}}-api"
urlpatterns = [
] | [
"luis.berrocal.1942@gmail.com"
] | luis.berrocal.1942@gmail.com |
b84098408b65a40f42801d52c5bfb23ea621a503 | 088276a2b02f74493c6303cbf17573957e1c2b3e | /BASIC/1_async_test.py | cc4aaf64d97c740c56be5002d71179c01c570e25 | [] | no_license | naikiki87/python | 38f3ec9ed55b48df136708ad8e90e4358d536ca3 | 3c75cace24258c84b682e06033130ee627f7883c | refs/heads/master | 2023-06-05T09:49:51.931345 | 2021-06-30T04:35:41 | 2021-06-30T04:35:41 | 268,022,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import time
import asyncio
async def find_users_async(n):
for i in range(1, n + 1):
print(f'{n}명 중 {i}번 째 사용자 조회 중 ...')
await asyncio.sleep(1)
print(f'> 총 {n} 명 사용자 비동기 조회 완료!')
async def process_async():
start = time.time()
job_list = []
for i in range(1, 5):
job_list.app... | [
"naikiki87@naver.com"
] | naikiki87@naver.com |
cf8f5dc0b48e099283587e1fa5574bc104718925 | b9ed8f5edf787f1a7df567a1b01086dc045427ba | /official/vision/serving/detection_test.py | 21ec7fa75f3c5380ed8049d977cbda90a2c32c58 | [
"Apache-2.0"
] | permissive | stjordanis/models | 787183f973f8cd4152f328de2368dbef17376488 | 84e1f30cdb5015848cb0d9e38e5b3f0551953b7c | refs/heads/master | 2023-03-18T08:46:29.986735 | 2023-03-07T23:26:36 | 2023-03-07T23:27:43 | 143,071,287 | 0 | 0 | Apache-2.0 | 2018-07-31T21:18:06 | 2018-07-31T21:18:05 | null | UTF-8 | Python | false | false | 7,465 | py | # Copyright 2022 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 |
e5d124428049c7bf672885814b8cddbfbbf17610 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/Dongola/common/base_calendar_custom/__init__.py | 4b33f24a885cc69134b159b800488bb62f365842 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,229 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
#from openerp import osv.mode... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
06ab2a426597e3f7e904fb370acc19821a7b5780 | d046fd4ac8e52ed8054199765893f7e1a71302f2 | /master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Computer_checkAndUpdateAllocationScope.py | c05dbde292aedf3b553d24f39573c9967efa6cba | [] | no_license | jakop345/slapos.core | 7538418056be6541e9ee7a70d2d6b694e03daafc | 410dfb506b7ec17745365d573e7401f217b74ed4 | refs/heads/master | 2020-06-18T21:43:39.012812 | 2016-11-24T11:06:49 | 2016-11-24T11:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | from DateTime import DateTime
computer = context
portal = context.getPortalObject()
allocation_scope = computer.getAllocationScope()
computer_reference = computer.getReference()
if allocation_scope not in ['open/public', 'open/friend', 'open/personal']:
return
if allocation_scope == target_allocation_scope:
# al... | [
"alain.takoudjou@nexedi.com"
] | alain.takoudjou@nexedi.com |
a5d49bb12c1b28cde5d86fec29a50e68a2ad31a1 | 8fdab174252614c3d0eea09a4bd7aa262c087fd1 | /python/Zetcode/Python Tutorial/14 - Exceptions/b.py | c4a144a4725a82e3dc6204645aa3555d51c28ec7 | [] | no_license | idreesdb/Tutorials | a5190c72ad9ad25d9e8302c01357939bd62b75d8 | 754cd20250b7f826caf76a1d3c188826a4babbd3 | refs/heads/master | 2021-01-17T07:37:01.623156 | 2016-05-27T14:03:28 | 2016-05-27T14:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# b.py
class BFoundError(Exception):
def __init__(self, value):
print "BFoundError: b character found at position %d" % value
string = "You make me want to be a better man."
pos = 0
for i in string:
if i == 'b':
raise BFoundError, pos
pos +=... | [
"slxecas@gmail.com"
] | slxecas@gmail.com |
4b65ccf653f2827d8e571a0e39c965ad0a552233 | a5931baaae752da67b34c1a357c7fcb7742e4685 | /s3-restrict-object-access-based-on-tags-abac/s3_restrict_object_access_based_on_tags_abac/s3_restrict_object_access_based_on_tags_abac_stack.py | 894136040e2cf2692845359073ffe7ea48fe915d | [] | no_license | BALABHASKARARAO/dev-sec-ops | 89117f1ebd20f83031077c6ebf9f18cbdc4b983b | faf8b69794e8b66b207d197288ba0c3cdeed9b17 | refs/heads/master | 2020-12-02T12:51:51.930315 | 2019-12-22T13:42:00 | 2019-12-22T13:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,718 | py | from aws_cdk import (
aws_s3 as s3,
aws_iam as iam,
aws_secretsmanager as secretsmanager,
core,
)
from custom_resource.my_custom_resource import MyCustomResource
class S3RestrictObjectAccessBasedOnTagsAbacStack(core.Stack):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
... | [
"13oct08@quantumfoam.uni.cc"
] | 13oct08@quantumfoam.uni.cc |
4c21b1351bc305b6f3a74290e38f0b80406b2991 | ddf705744c9f95cac86f3e65be6a8b7f78b382ae | /add-ref.py | bebe9e8868bfe639bc37946074350fda21f2baf8 | [] | no_license | makovalab-psu/g4sscs | b1b98ea21ef68d5574ed283ae85647f9f52deeab | 7cdc5c7802b11cf08c0fb0511531284472a4bf60 | refs/heads/master | 2023-03-21T04:01:54.697269 | 2021-03-02T23:06:03 | 2021-03-02T23:06:03 | 346,180,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | #!/usr/bin/env python3
import argparse
import dataclasses
import importlib
import logging
import sys
from bfx import getreads
import duallib
DESCRIPTION = """Add the reference base to dual sites produced by locate-duals.py."""
def make_argparser():
parser = argparse.ArgumentParser(add_help=False, description=DESCR... | [
"nmapsy@gmail.com"
] | nmapsy@gmail.com |
1850ca07af8124b780bbe7ec6887ed9ed3ec4309 | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/abc196/abc196_b/Main.py | 0cd0e266d6da8383ed5f62c5d4bfa84df7343f3c | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | x=input()
ans=""
for i in x:
if i==".":
break
ans+=i
print(ans) | [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
043f94c0a9ca9395328331b1cead68d12c97b886 | bec8f33002130d8395f4ac4f0c74b785aa22cac5 | /appium/options/ios/xcuitest/wda/allow_provisioning_device_regitration_option.py | c88124b4cecded39480d391ac46f97af45abe873 | [
"Apache-2.0"
] | permissive | appium/python-client | 1c974fdf1ac64ce4ac37f3fc8c0a3e30c186d3ca | 2e49569ed45751df4c6953466f9769336698c033 | refs/heads/master | 2023-09-01T22:14:03.166402 | 2023-09-01T11:52:27 | 2023-09-01T11:52:27 | 18,525,395 | 1,588 | 606 | Apache-2.0 | 2023-09-10T02:00:09 | 2014-04-07T17:01:35 | Python | UTF-8 | Python | false | false | 1,774 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | appium.noreply@github.com |
9955c249ae59f119aac1d62c475d631b8d5e64ea | 5c8d70d30e1fbe2331510822b836280ac88205fe | /legal-api/src/legal_api/reports/registrar_meta.py | 52826f41137a0d99615b0e6bfd3ac38a76154b49 | [
"Apache-2.0"
] | permissive | thorwolpert/lear | f05b91876ac2ad822c6cb81a38b319be600b8fa3 | 9a687444fecd89e646fbbc327f87447413b3e9a9 | refs/heads/master | 2023-08-08T05:22:51.003483 | 2021-05-21T17:52:14 | 2021-05-21T17:52:14 | 191,997,506 | 0 | 0 | Apache-2.0 | 2019-06-14T19:45:14 | 2019-06-14T19:45:13 | null | UTF-8 | Python | false | false | 2,780 | py | # Copyright © 2020 Province of British Columbia
#
# 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 agree... | [
"noreply@github.com"
] | thorwolpert.noreply@github.com |
62383bff1d7ae7044d3e4b516c8ba62eb76d97ba | 5e7251af20a6de453626a78c9c790c05219c31b3 | /Function/century_fun.py | d4d6e3d017d2d92022a70ab4e220574eb1e7496e | [] | no_license | Poonam-Singh-Bagh/python-question | 3d66ddde9977a0f8e286c438eb3b889ffdbc5c47 | f7589c32e4fbad166511d0f7e4ee082d3fe4497a | refs/heads/master | 2022-11-19T13:06:03.421486 | 2020-07-18T12:47:03 | 2020-07-18T12:47:03 | 280,654,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | '''Century'''
def centuryFromYear(year):
century=0
i=0
while i < year:
if i % 100 == 0:
century=century+1
i=i+1
return century
print (centuryFromYear(88))
| [
"you@example.com"
] | you@example.com |
d27e604aff428ab43ff8ccdacfce573e9089499f | 8427faffeb0c920e699e147ce9dd63b5c6cbc6da | /Project-data/guitar/urls.py | 09135a36df2651be433e90fbcb327a78faef02d4 | [] | no_license | asheteh/data | 9c06d34e3de9fc8f8b5ae34a6984fd6623f102cc | aa0a8be9d99135274edc75ef1e087d1eb1aadd70 | refs/heads/master | 2022-12-22T00:15:31.461984 | 2019-12-25T02:03:22 | 2019-12-25T02:03:22 | 204,259,996 | 0 | 0 | null | 2022-12-11T20:18:09 | 2019-08-25T07:17:24 | Python | ISO-8859-10 | Python | false | false | 218,514 | py | path('Teri-Deewani-Kailash-Kher-Harmonium-Sargam-in-Hindi---Abhijeet',views.Teri_Deewani_Kailash_Kher_Harmonium_Sargam_in_Hindi___Abhijeet,name='Teri-Deewani-Kailash-Kher-Harmonium-Sargam-in-Hindi---Abhijeet'),
path('Bahut-Pyaar-Karte-Hain-Tumko-Sanam-Notes-Sargam---Abhijeet',views.Bahut_Pyaar_Karte_Hain_Tumko_Sanam_No... | [
"abhijit.shete@happiestminds.com"
] | abhijit.shete@happiestminds.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.