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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad5fadb608296558550f5931c048d32c377881a6 | cc78de009a8e7805f9f6a852774e0384b11bfdcb | /testcase/page/tests/all_task/all_task_funcs.py | dceebdc1587fa1c6d862a0b5ecf502eb14602ad8 | [] | no_license | williamzxl/app_test_many_devices | c1806e54c17a84f18a04c3808604633c2deba052 | dd5434018fadd11d5462903cafaafbb5b387c24a | refs/heads/master | 2020-03-29T21:20:51.239295 | 2019-03-05T03:13:56 | 2019-03-05T03:13:56 | 150,361,766 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,179 | py | import re
from time import sleep
from testcase.page.tests.all_task.all_task_funs.grammer.error_find import error_find
from testcase.page.tests.all_task.all_task_funs.grammer.gra_choice import gra_choice
from testcase.page.tests.all_task.all_task_funs.grammer.gra_fill import gra_fill
from testcase.page.tests.all_task.a... | [
"1053418947@qq.com"
] | 1053418947@qq.com |
22ac4376de6620f219d11cee55ae014dd5755fc3 | 22bea740c45a8bca47f97a1f2d69c401084a7fa5 | /nakhll_market/migrations/0012_auto_20191214_0244.py | f134cc4cb796a0714152e7a7dddd4e7562ddd534 | [] | no_license | learnasgo/app | 7c60c3556350a6dc00a1c5548b86d1c33d85a920 | 876c1af2e477b66282f11a7119c0f9c6ea47d70c | refs/heads/main | 2023-01-24T06:01:03.300104 | 2020-11-21T15:00:51 | 2020-11-21T15:00:51 | 314,040,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 2.2.6 on 2019-12-13 23:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nakhll_market', '0011_auto_20191213_1608'),
]
operations = [
migrations.AlterField(
model_name='alert',
... | [
"admin@example.com"
] | admin@example.com |
8b2f38aabae5637b1ba9c9871565d5f455ec5f2f | 71e9a9b675123ce4e5db60e149ded88be498c117 | /source2_operators.py | 56ef1b2aaf62dca9f49a0a68d564aa2da5e8104a | [
"MIT"
] | permissive | xphillyx/SourceIO | 493bd1040f9a1967b40c0dc57d9cccde559a2887 | be8773aa487619afb31d5a88b7dd18e64cf0ec98 | refs/heads/master | 2023-01-22T20:44:31.912149 | 2020-12-02T00:47:53 | 2020-12-02T00:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,262 | py | from pathlib import Path
import bpy
from bpy.props import StringProperty, BoolProperty, CollectionProperty, EnumProperty, FloatProperty
from .source2.resouce_types.valve_model import ValveModel
from .source2.resouce_types.valve_texture import ValveTexture
from .source2.resouce_types.valve_material import ValveMateria... | [
"med45c@gmail.com"
] | med45c@gmail.com |
b7d518d6faf6de7d66fd2d1615c2ffd8e79e4dcf | de577e64440d2c330ff0018e8bfb7cf3abf11b70 | /fsleyes/actions/savelayout.py | 91ea7a927c662f35a746e55e31e8fa8ff63bb96a | [
"Apache-2.0",
"CC-BY-3.0",
"BSD-3-Clause"
] | permissive | CGSchwarzMayo/fsleyes | bb887bf8e8dd46bb9e0e3d5c3028d97811fabad1 | 37b45d034d60660b6de3e4bdf5dd6349ed6d853b | refs/heads/master | 2023-09-01T01:39:38.508051 | 2023-08-21T18:21:34 | 2023-08-21T18:21:34 | 272,476,938 | 0 | 0 | NOASSERTION | 2020-06-15T15:34:36 | 2020-06-15T15:34:34 | null | UTF-8 | Python | false | false | 2,530 | py | #!/usr/bin/env python
#
# savelayout.py - The SaveLayoutAction
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides the :class:`SaveLayoutAction` class, an action
which allows the user to save the current layout.
"""
import fsleyes.strings as strings
import fsleyes.layouts as layouts
from . i... | [
"pauldmccarthy@gmail.com"
] | pauldmccarthy@gmail.com |
aa9c44433ea78f88139690946b34a9da844de17f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s467230935.py | 41c765bdaf1bf682d974e7fec07873a30cf24157 | [] | 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 | 429 | py | from sys import exit
n, m = map(int, input().split())
A = [input() for _ in range(n)]
B = [input() for _ in range(m)]
for x, a in enumerate(A):
if x > n - m + 1:
break
for i in range(n - m + 1):
if a[i: i + m] == B[0]:
for j in range(m):
if A[x + j][i: i + m] != B[j]:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1c4958090d67f00121d0c2e36d6270362721623b | 0fbb9807b11d859139bfe4373437e67f8999759e | /regulus/models/inv_reg.py | cb792436fe67acd429e9bfb705d8f2634d82831b | [
"BSD-3-Clause"
] | permissive | yarden-livnat/regulus | e6ef5f73f664fdc3f1014142e0d81233b903aaa2 | ab78a5ef7d2dcdc95f5f8e16dfe58c8db296812f | refs/heads/master | 2021-07-24T23:33:19.900552 | 2020-03-19T20:56:39 | 2020-03-19T20:56:39 | 100,637,501 | 2 | 2 | BSD-3-Clause | 2018-03-30T01:12:41 | 2017-08-17T19:20:24 | JavaScript | UTF-8 | Python | false | false | 3,790 | py | import math
import numpy as np
import pandas as pd
SIGMA = 0.1
N = 40
def radial_kernel(x0, X, sigma):
return np.exp(np.sum((X - x0) ** 2, axis=1) / (-2 * sigma * sigma))
def gaussian(sigma):
f = 1 / (math.sqrt(2*math.pi) * sigma)
def kernel(x, X):
return f * np.exp(np.sum((X - x) ** 2, axis=1... | [
"yarden.livnat@gmail.com"
] | yarden.livnat@gmail.com |
99c395f51fc5d9cb5feca38d7e2bb511713c8e70 | 6d6bf817a49b99c391a2d641474823843a54f78c | /slack_history.py | 15189db64fe5ea5b272e50866440093959f59362 | [] | no_license | ryanvilbrandt/personal | 19e61b158d5a5535f8086165a947af426bb06cbe | 0bf34e792c4239fd1c132f939ec39d99adf2c8c1 | refs/heads/master | 2023-09-01T21:37:00.264945 | 2023-08-22T06:40:53 | 2023-08-22T06:40:53 | 19,037,567 | 0 | 1 | null | 2022-04-25T14:44:29 | 2014-04-22T16:47:04 | Python | UTF-8 | Python | false | false | 7,925 | py | # https://gist.github.com/Chandler/fb7a070f52883849de35
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including w... | [
"ryan.v@zonarsystems.com"
] | ryan.v@zonarsystems.com |
8b25b46c8d9ca7e17242c5a34dc6d503d630471f | 80c8d4e84f2ea188a375ff920a4adbd9edaed3a1 | /third/opencv/browse.py | 188e075680272cef9e5bdda763fa5c013d44cabb | [
"MIT"
] | permissive | Birkid/penter | 3a4b67801d366db15ca887c31f545c8cda2b0766 | 0200f40c9d01a84c758ddcb6a9c84871d6f628c0 | refs/heads/master | 2023-08-22T14:05:43.106499 | 2021-10-20T07:10:10 | 2021-10-20T07:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | #!/usr/bin/env python
'''
browse.py
=========
Sample shows how to implement a simple hi resolution image navigation
Usage
-----
browse.py [image filename]
'''
# Python 2/3 compatibility
from __future__ import print_function
import sys
PY3 = sys.version_info[0] == 3
if PY3:
xrange = range
import numpy as np
i... | [
"350840291@qq.com"
] | 350840291@qq.com |
3a442df05646601d4fa5d4b36b57fc95782001d8 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/leetcode/Reverse_Vowels_of_a_String.py | f7ae8ff6075d0681e1b5e360d2e27a1b5ff371b7 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,282 | py | # Write a function that takes a string as input and reverse only the vowels of a string.
#
# Example 1:
#
# Input: "hello"
# Output: "holle"
# Example 2:
#
# Input: "leetcode"
# Output: "leotcede"
# Note:
# The vowels does not include the letter "y".
class Solution:
def reverseVowels(self, s):
if len(s) =... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
e7ddc3dd7fa21a53a38021be9050cf9f27ed7fa1 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22699.py | cac07875ea0351e9b0584cf795c19c4dc3756a2e | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | # Python threading hanging?
import hanging_threads # https://gist.github.com/niccokunzmann/6038331
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
908841e3cf5b00bca9bca2e35e5e1909f4009e1a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_052/ch149_2020_04_13_20_50_08_951435.py | 9740602280ae16d6f5a919e99b02fe67450aff01 | [] | 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 | 772 | py | perg = float(input("Qual o salario bruto:" ))
if perg <= 1045:
paga = perg * 0.075
elif perg <= 2089.60:
paga = perg * 0.09
elif perg <= 3134.40:
paga = perg * 0.12
elif perg <= 6101.06:
paga = perg * 0.14
else:
paga = 671.12
perg2 = int(input("Numero de dependentes:" ))
base_de_calculo = perg - pa... | [
"you@example.com"
] | you@example.com |
a415a4a5c6620dc4b56879ebd413741e2c2df97e | 638372b5d4fd778b94ef762d3bb5712c9ba259b4 | /post/migrations/0009_auto_20181205_1802.py | 7daa40fe70eda3639325aa064fede8465ff9d546 | [] | no_license | jakiiii/jqurity | 22b9fbde8af534587f73622151c443de3204eee4 | 5b3043c9cb93d078d6ee83168d08edc334f433a1 | refs/heads/master | 2023-04-28T18:24:44.468508 | 2020-08-28T09:25:23 | 2020-08-28T09:25:23 | 159,626,702 | 1 | 0 | null | 2023-04-21T20:33:05 | 2018-11-29T07:38:03 | Python | UTF-8 | Python | false | false | 371 | py | # Generated by Django 2.1.3 on 2018-12-05 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0008_auto_20181205_1757'),
]
operations = [
migrations.AlterField(
model_name='post',
name='timestamp',
... | [
"me.jaki@outlook.com"
] | me.jaki@outlook.com |
915e119feff8686d187643388228352321eac75f | cb5cd4e38761c8d9a0652ad4e4bbf5de762d2f4f | /docker-rf/index.py | 66ec40cda1e3b6d68e9d2417929d01f965e57702 | [] | no_license | TuxML/size-analysis | c59820d2ec638d694005d3f52c4e8ac846e3e19e | 34472bbba01b553b8dd7ec9656018b366abcd4e6 | refs/heads/master | 2022-12-06T15:28:47.703329 | 2022-11-17T23:36:47 | 2022-11-17T23:36:47 | 187,631,160 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from load_dataset import load_dataset
from params import get_params, get_possible_configurations
import traceback
import tux
params, hyperparams_list = get_params()
configs = get_possible_configurations(hyperparams_list)
print(params)
print(hyperparams_list)
df = load_dataset(params["nb_yes"])
params["dataset"] ... | [
"canisback@gmail.com"
] | canisback@gmail.com |
fd6f45e4a60acf59cf02f76b51d925f1b53867ac | f0824eb3137c8a4f9e31d115e087b3ef0892d00b | /calculator.py | 412da3e057db47aa616db97c04e7699ef3639a88 | [] | no_license | nurarenke/hbcalculator-2 | 7e1445789b43582fce49c6f9382459a40ba660e3 | 08304c5740e3ee29a8d38ffee61f45dd777c2dd9 | refs/heads/master | 2021-01-22T02:14:09.344917 | 2017-05-25T00:54:31 | 2017-05-25T00:54:31 | 92,343,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | """A prefix-notation calculator.
Using the arithmetic.py file, we created a prefix
calculator program.
"""
from arithmetic import *
print "howdy welcome to our prefex Calculator! \n "
print "please enter the operators first then operands followed by spaces to complete your equation. \n"
print "instructions: \n "
... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
6c2a616ad6157414c7ad57067323f6546676501e | 789a540bbb79c334cbeaf3687876bfd939e4290b | /app/handlers/private/default/callback_query/referral_system/__init__.py | 996ae6f01d3fbc5656f5ec0cd614b4da63270e0e | [] | no_license | ExissBrr/TRIGON-GARANT-BOT | 2cc96f5f6f195f4e76c164db4f8acafbfa5b7662 | 812acf060eb92e6fad21568a75e6dba7ce0da4d9 | refs/heads/main | 2023-07-04T18:22:43.507453 | 2021-08-17T14:51:30 | 2021-08-17T14:51:30 | 392,725,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | from .show_users_top import dp
from .show_menu_about import dp
__all__=['dp'] | [
"vladbelykh2002@gmail.com"
] | vladbelykh2002@gmail.com |
8d15f73e7cba852ea0857c7670a99fd4c287fbfb | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Main_20190118175254.py | 241e7426634658a519dc1ac1a47e9e9f0f5d45c2 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,015 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
# Maya Header
import maya.cmds as cmds
import maya.mel as mel
import maya.OpenMayaUI as omui
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
f... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
1ed2b55c584c472a5654adc5c74ca125583d1947 | addcbb3df26cafd9fa761754b241c9e975a59606 | /game/play_test.py | 84c19ea3458b95ac1f43f307dd87144300b16071 | [] | no_license | leebinjun/cchess-armbot | 1ae974fe98af6d1eb2bcc499be01f3cf50d6cc8d | acffd245e6a22c008d933e0b283c44673bde1b03 | refs/heads/master | 2020-05-19T03:29:23.189789 | 2019-06-06T15:29:03 | 2019-06-06T15:29:03 | 184,787,294 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,453 | py | import sys,os
sys.path.append(os.path.dirname(__file__) + os.sep + '../')
import time
import cv2
import numpy as np
from armbot.robot import Armbot
from vision.classify import Classify
# from strategy.cyclone.cyclone_strategy import StrategyCyclone
from strategy.alphazero.cchess_alphazero.mytest2 import StrategyAlph... | [
"296735774@qq.com"
] | 296735774@qq.com |
5e8b3c8854edb7309548e0cdf62a7cf91fe5d16d | af4aa2e443abaa39b802b57919e9d0c418d17cdd | /2017/Helpers/day_04.py | 08d2a39e746ebe689917c51a469e8fba0b4736f7 | [] | no_license | daverayment/aoc | 902d414b15a2746bdec1bb40e9029891ca800066 | c7e9b6249b4e9d95b9b0d14192818e9a1841f3fd | refs/heads/master | 2023-02-08T10:48:23.103729 | 2020-12-26T05:26:02 | 2020-12-26T05:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/env python3
def get_desc():
return 4, 'Day 4: High-Entropy Passphrases'
def calc(log, values):
ret = 0
ret2 = 0
for cur in values:
cur = cur.split(' ')
if len(set(cur)) == len(cur):
ret += 1
cur = ["".join(sorted(x)) for x in cur]
if len(set(cur)... | [
"scott.seligman@gmail.com"
] | scott.seligman@gmail.com |
37dc4ca6c890736e037a421ed9f8aa757a3f8cd6 | 6bfc9ab12f53cc5362e69c42d3e7f1a5ccbccfa5 | /RNA-seq/callEditing.py | 6667b457564ad4b566c39904ab96bcbf2a00d14e | [] | no_license | Yixf-Self/NGS_Pipeline | c7cf7a468ee58eca74589ecb337531b35b4ed318 | 126dbc4829c2e9ec7181fcba6a9fe453babe7a35 | refs/heads/master | 2020-03-31T06:52:00.641508 | 2018-08-15T09:09:18 | 2018-08-15T09:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | #!/usr/bin/env python2.7
#--coding:utf-8--
"""
callEditing.py
"""
__author__ = "CAO Yaqiang"
__date__ = "2018-08-08"
__modified__ = ""
__email__ = "caoyaqiang0410@gmail.com"
#systematic library
import os, gzip, time
from glob import glob
#3rd library
from joblib import Parallel, delayed
#my own
from Biolibs.rel.Gen... | [
"caoyaqiang0410@gmail.com"
] | caoyaqiang0410@gmail.com |
573692187cfea3c7607dff8ea62aa1de2658bfb6 | ec08266a1f6970b6b54f12b80dd0a7f67bb96b61 | /run_script.py | 5a819fca87176a87fae8ebc18f0a7ff5adc33205 | [] | no_license | zchking/ctdata | fef7fd77a56d888d109694138d4bc65f6b967c76 | 88ad8c83006b43ad11575705933545cdd333bf1b | refs/heads/master | 2021-09-14T04:16:05.619877 | 2018-05-08T10:54:34 | 2018-05-08T10:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from lazada import Lazada
l = Lazada()
l.start_update_product_desc()
| [
"typefj@gmail.com"
] | typefj@gmail.com |
ecc363019d1ac8c95b62a1d3d4efaf459d126566 | 1ccdc9c527953d235542b6964ceb898687b6e01b | /spectral_density_discretization/spectral_density.py | 21145590a59df1debe2146405d8bc750ec1f4de0 | [
"MIT"
] | permissive | gharib85/spectral_density_discretization | 5746a2ef5914b07c805ac87060d94f7996d31fd2 | a523bb753405c89077a30e1cde9b4bafae59d71c | refs/heads/master | 2022-01-03T09:42:01.397337 | 2016-04-14T21:47:25 | 2016-04-14T21:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | #!/usr/bin/env python
import math
import pandas as pd
def print5(one, two, three, four, five):
fivestr = "%.10f %.10f %.10f %.10f %.10f" % (one, two, three, four, five)
return fivestr
def print_column(v, N_max):
out_str = ""
if (N_max == 0):
out_str += "0.0"
for i in range(N_max / 5):
... | [
"dwhs@hyperblazer.net"
] | dwhs@hyperblazer.net |
9bb43f0d892c62971f389c9a5987b03b2318efb6 | ce550f6daa8925d5bf7b2d7e7e59caa8f69303b3 | /unittests/call_policies_tester.py | 114921f34faa4e0be8c48714bb0f983785dc4bcf | [
"BSL-1.0"
] | permissive | laxris/pyplusplus | 6222e67d1e21d7f758c20d4957e69006f0f56741 | 18485e9013e30b1f7776b6039eeaa2fbdb73f183 | refs/heads/master | 2021-01-15T21:50:10.454863 | 2013-01-30T02:20:18 | 2013-01-30T02:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import sys
import unittest
import fundamental_tester_base
from pyplusplus.module_builder import call_policies
get_si... | [
"mmoll@rice.edu"
] | mmoll@rice.edu |
422af4a161f6ee63a1501fe9f3e5954324df42da | 11c063b9e950d9a3b1197ff6ac10ddd9e4dfd05c | /tests/test_helpers.py | 6d787ae78f710e68440833419f3c2b55b29f5ede | [
"MIT"
] | permissive | joehybird/factory_boy | 115c438c8f6cfe699a96bd5ea8c5209b4c8f0218 | 3d0c247ba12c93da950f3f9f57121874a0135430 | refs/heads/master | 2020-03-28T15:19:36.768739 | 2018-09-13T04:24:03 | 2018-09-13T04:44:30 | 148,580,861 | 0 | 0 | MIT | 2018-09-13T04:13:47 | 2018-09-13T04:13:48 | null | UTF-8 | Python | false | false | 1,597 | py | # -*- coding: utf-8 -*-
# Copyright: See the LICENSE file.
import logging
from factory import helpers
from .compat import io, unittest
class DebugTest(unittest.TestCase):
"""Tests for the 'factory.debug()' helper."""
def test_default_logger(self):
stream1 = io.StringIO()
stream2 = io.Strin... | [
"raphael.barrois@polytechnique.org"
] | raphael.barrois@polytechnique.org |
ff7c5a81527acf7053254fb7ab66fa9403ebeb5f | add72f4d6f9f7af1f437d19213c14efb218b2194 | /icekit_events/migrations/0005_auto_20161024_1742.py | a7bda0b59eda2038978717c86cf357857a3ec8a6 | [
"MIT"
] | permissive | ic-labs/django-icekit | 6abe859f97c709fcf51207b54778501b50436ff7 | c507ea5b1864303732c53ad7c5800571fca5fa94 | refs/heads/develop | 2022-08-08T21:26:04.144852 | 2018-01-08T02:55:17 | 2018-01-08T02:55:17 | 65,470,395 | 53 | 12 | MIT | 2022-07-06T19:59:39 | 2016-08-11T13:11:02 | Python | UTF-8 | Python | false | false | 812 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('icekit_events', '0004_eventbase_part_of'),
]
operations = [
migrations.AddField(
model_name='eventbase',
... | [
"greg@interaction.net.au"
] | greg@interaction.net.au |
6de3d7a442d61c6a04b0a0f013b409eb58553d08 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/payment_alipay/controllers/main.py | 5763313b1a936c8939a555d07d058c58db11e05f | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 3,001 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import pprint
import requests
import werkzeug
from odoo import http
from odoo.http import request
_logger = logging.getLogger(__name__)
class AlipayController(http.Controller):
_notify_url = '/paym... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
0bd3f8e113b7ff3a27c77251717ebdf08b8043a7 | c55c9580207a2e29c14a12a7f8521b9ae3d75e67 | /keras_module/data_gen/pascal_gen.py | f683c0f2782ed76de2b074dd548f5a949687eb15 | [
"Apache-2.0"
] | permissive | sinianyutian/pycharm-project | f98fc9988eda9c010d066703ff414393a76faff5 | 29e677418820a620e58dd22a85feb4ac3f28651a | refs/heads/master | 2020-03-14T06:58:27.431980 | 2017-04-17T07:07:25 | 2017-04-17T07:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,163 | py | import os.path as osp
import os
import numpy as np
import scipy.misc
from keras.applications import vgg16
from keras.preprocessing import image
from keras.preprocessing.image import load_img
from segmentation_dataset import SegmentationDatasetBase
class PascalVOC2012SegmentationDataset(SegmentationDatasetBase):
... | [
"614047311@qq.com"
] | 614047311@qq.com |
ccb54840756b8ddc1ab10ca8cb027ed01483b33f | 4a97017eab020738da4a337eaaba05e9989220ba | /features/steps/zz_15_cube_steps.py | ee5c47712be02d34a3c382330634580adc5a2893 | [
"MIT"
] | permissive | tewarfel/RayTracerChallenge_1 | 27c62f3e42a03ae96756e32eefcf86a576b9264d | 736cc5d159c267c9bcc14d42abb03eedc2f7e5f1 | refs/heads/master | 2020-12-06T07:01:04.467636 | 2020-01-10T03:03:37 | 2020-01-10T03:03:37 | 232,382,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,880 | py | from behave import *
from hamcrest import assert_that, equal_to
from vec3 import Vec3, vec3
from vec4 import Vec4, point, vector
import numpy as np
from shape import material, sphere, test_shape, default_world, point_light
from base import equal, intersect_world, shade_hit, is_shadowed, color_at, World, render, transla... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
bb2e48105480a020306c05505f7edec079238102 | 458873dcd530591e9c738cb84bc5c923bf324153 | /projects/ashg13/prepare_hetnet.py | 9f52151329e071775e2f984507875d76d8157b81 | [
"BSD-2-Clause-Patent"
] | permissive | dhimmel/serg-pycode | d6206e09b3f0e1f2751b58ba53ded54cf2779df8 | 075de0ba470e4fbda5e33dfc23cb9ecd86ec53b7 | refs/heads/main | 2022-12-29T04:16:52.698397 | 2020-10-17T15:59:11 | 2020-10-17T17:17:47 | 304,333,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | import collections
import hetnet
import hetnet.agents
import hetnet.algorithms
network_dir = '/home/dhimmels/Documents/serg/ashg13/131219-1'
graph_agent = hetnet.agents.GraphAgent(network_dir)
# Load graph
print 'loading graph'
graph = graph_agent.get()
print 'graph loaded'
metagraph = graph.metagraph
#graph_agent.... | [
"daniel.himmelstein@gmail.com"
] | daniel.himmelstein@gmail.com |
b22d18b6847282b1230593ec2a02bd23a8c21207 | a7d41aa056165fc33b0c1d8edd50b8557f642548 | /Python/List-2/count_evens.py | e819c054d54df2f3f583377dbfb3c3e7526cb379 | [] | no_license | jemtca/CodingBat | 3243ec9c5309f8581e1a54fba0b076069cec7d74 | 8545a70348dd621070c8b3efa280ca79a24f9d5a | refs/heads/master | 2023-04-05T03:20:17.416495 | 2023-03-31T06:35:08 | 2023-03-31T06:35:08 | 147,287,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
# return the number of even ints in the given array
def count_evens(nums):
count = 0
for x in range(len(nums)):
if nums[x] % 2 == 0:
count += 1
return count
print(count_evens([2, 1, 2, 3, 4]))
print(count_evens([2, 2, 0]))
print(count_evens([1, 3, 5]))
| [
"30645648+jemtca@users.noreply.github.com"
] | 30645648+jemtca@users.noreply.github.com |
316f52f9561d6d750b36ab14d74faea28bfe62d3 | 0afdbc5584b3b432026a751fbab24c4c6be2ca29 | /saywiti/api_v1/urls.py | cbfca3563d08f3eddc545ad9714a6426aad27b8a | [
"MIT"
] | permissive | erickgnavar/saywiti | 000d95b5b354f3e6636063d8fb951ea7460b6806 | ec3edc5fe722ee17699c0320ddb766a09147f66e | refs/heads/master | 2020-04-12T03:55:10.745965 | 2017-03-26T22:13:22 | 2017-03-26T22:13:22 | 63,273,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^posts/$', views.posts, name='posts'),
url(r'^posts/(?P<post_id>\d+)/$', views.post_detail, name='post-detail'),
url(r'^projects/(?P<slug>[\w-]+)/issues/$', views.issue_list, name='issue-list'),
]
| [
"erick@navarro.io"
] | erick@navarro.io |
0e69db7c43a643176f428a86be1ffc9d8688c07d | 7b971c4465797ef3561c69d7dd819fcd5d2a3736 | /support/detectability.py | 95ff69bab586025ec7a2278b0fcd09aa39f569ca | [] | no_license | rkdarst/pcd | 978d898a3ab1a1fd8fbb48e644234d66fe7ab95f | 54dda49ce8a248446b236a42b9d313ce410cf58b | refs/heads/master | 2021-01-23T12:38:09.042817 | 2016-11-01T18:02:25 | 2016-11-01T18:02:25 | 22,289,583 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | # Richard Darst, 2013 September
| [
"rkd@zgib.net"
] | rkd@zgib.net |
5ff645abf23c2051a8da67a096d4206ae68624c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02412/s575578444.py | 9025c9e6860832472f2eeca288103241063f02ba | [] | 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 | 267 | py | while True:
n,x=[int(i) for i in input().split()]
if n==0 and x==0:
break
s=0
for i in range(1,n+1):
for j in range(i+1,n+1):
for k in range(j+1,n+1):
if i+j+k==x:
s+=1
print(s)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
49b32bf10fb7436a885fa373261b843f5081002e | 42f418a4535c269ea1fbf2a023acf9805ee72c0a | /exploration/executables/October17/pca.py | 9d0dcc0ddf280fbfe15bc1c6c2a289ebe558a95a | [] | no_license | yumilceh/artificialbabbling | 10e6fe2fe19edbc0263c61b2897514cbae9a1c1f | 680b720e48b787bac1c626c597fd690159edd777 | refs/heads/master | 2022-11-12T22:21:38.606407 | 2018-04-24T14:37:20 | 2018-04-24T14:37:20 | 270,961,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,173 | py | '''
Created on Oct 10, 2016
@author: Juan Manuel Acevedo Valle
'''
from matplotlib import pyplot as plt
from sklearn.decomposition import PCA
import numpy as np
import h5py, os, sys, random
from scipy.stats import gaussian_kde
from scipy.stats.distributions import norm
def plotPDFx_y(figs, axes, directories, col... | [
"jmavbpl@gmail.com"
] | jmavbpl@gmail.com |
0004b4efd230e5631947136b4da206dac169b877 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/django/contrib/markup/templatetags/__init__.py | 007a849af693ad167c816aa5e8e04b9846d64f68 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/django/contrib/markup/templatetags/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
9e40763ead2a5c16069a4e64c120a5094a63c04b | 21263d445ca87670d164282ac961ca6fc60f21bd | /knapsack/01Knapsack.py | 520dea161d571843a57940827fca37b64fc559ea | [] | no_license | unsortedtosorted/DynamicProgramming | f7f809a1bbf6250bbd05736820f2541b6063eff1 | 93bba23c39c7dd93323b8f0587d10ea70ecc7f2a | refs/heads/master | 2020-04-25T00:37:32.613855 | 2019-05-13T17:41:23 | 2019-05-13T17:41:23 | 172,383,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | """
Given two integer arrays to represent weights and profits of ‘N’
items, we need to find a subset of these items which will give us maximum
profit such that their cumulative weight is not more than a given number ‘C’.
Each item can only be selected once,
which means either we put an item in the knapsack or we skip i... | [
"noreply@github.com"
] | unsortedtosorted.noreply@github.com |
04ab021c81f13922e97f2a895932d1f434b5f6ca | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/crud/gnmi/models/cisco-ios-xr/Cisco-IOS-XR-ipv4-arp-cfg/gn-create-xr-ipv4-arp-cfg-11-ydk.py | 2f940177bb916766695e178c77d57a3e21fa4596 | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,803 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# 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 applicab... | [
"deom119@gmail.com"
] | deom119@gmail.com |
4119859e8a50f3beb5536ff6fed1a9f181be6837 | a60fd500982f165c885cc807403f73e111e0ef5c | /utils/export_data.py | 95ed85156ada6964e510e691505a7d11070f235a | [] | no_license | cash2one/internet-content-detection | d1a75743bb2e1cbcf9a23faa0bf380d9b9760c28 | e07cdc5da67c2a5cf3104c9e3f6fec38685accc7 | refs/heads/master | 2021-01-19T03:41:29.946909 | 2017-02-23T06:35:39 | 2017-02-23T06:35:39 | 84,409,514 | 2 | 0 | null | 2017-03-09T07:04:01 | 2017-03-09T07:04:01 | null | UTF-8 | Python | false | false | 5,670 | py | # -*- coding: utf-8 -*-
'''
Created on 2017-01-11 15:41
---------
@summary: mongo 导数据 到oracle 或 mysql
---------
@author: Boris
'''
import sys
sys.path.append('..')
import init
from db.mongodb import MongoDB
from db.oracledb import OracleDB
from db.mysqldb import MysqlDB
from utils.log import log
import... | [
"boris_liu@foxmail.com"
] | boris_liu@foxmail.com |
5254588fc6a11162ff294fd5b3a52a38aed5c5c0 | 01d360be0804364f476d5fe6db8098ac209f3ab1 | /test/test11.py | 5667130fe38b78ad5f2fe292ddccaaac1cfaaae5 | [] | no_license | Annihilater/jinzhongbao | 8cedf76330880bb8abe83b24cf665a3f38791b65 | 824e0a4ccb5e4f0b98a50704541e2165e644c6e6 | refs/heads/master | 2022-12-17T05:48:32.696849 | 2019-03-13T09:58:14 | 2019-03-13T09:58:14 | 167,774,589 | 0 | 0 | null | 2022-12-08T01:34:48 | 2019-01-27T05:41:28 | Python | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019/3/5 13:14
# @Author: PythonVampire
# @email : vampire@ivamp.cn
# @File : test11.py
import datetime
text = "201901"
y = datetime.datetime.strptime(text, "%Y%m")
print(y)
print(type(y))
| [
"yanmiexingkong@gmail.com"
] | yanmiexingkong@gmail.com |
21cf291495c6ae170093b467bde80006ef984972 | 4e5655384af29ca5e771bf29b362aa36f8f22169 | /数学/69.x的平方根.py | 3ac9e942b43669f4bc2bfb788309b058eba3fa68 | [] | no_license | wanwanaa/Leetcode | 222ca30186be5b4d17a7b01c5a8cd8692d452b77 | 23c0c9036fbd7c77d41b2944ed609e5dfc5ad975 | refs/heads/master | 2020-08-17T13:24:28.330995 | 2019-10-17T12:00:32 | 2019-10-17T12:00:32 | 215,673,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # 69.x的平方根(二分法)
def mySqrt(self, x: int) -> int:
if x == 0:
return 0
if x == 1:
return 1
i = 1
j = x // 2
mid = (i+j) // 2
while j - i > 1:
if x > mid**2:
i = mid
else:
j = mid
mid = (i+j) //2
if j**2 <= x:
return j
... | [
"1551612415@qq.com"
] | 1551612415@qq.com |
42d84ac0c7b466ee88a5805f9f80478b6d42f60a | b924891e6c6b1a2c1ef08870d1b2c939408cb207 | /rolepermissions/utils.py | dde3bd454873e61db021d4983d78af72d125d22c | [
"MIT"
] | permissive | giorgil/django-role-permissions | 3b62451b275bb31de427adc0a9c578a2fafa106f | 05170f575c8a9088c781a8990aa0dab8047dc1c8 | refs/heads/master | 2021-06-30T19:43:16.819996 | 2017-09-21T13:49:57 | 2017-09-21T13:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from __future__ import unicode_literals
import re
import collections
def user_is_authenticated(user):
if isinstance(user.is_authenticated, collections.Callable):
authenticated = user.is_authenticated()
else:
authenticated = user.is_authenticated
return authenticated
def camelToSnake(s)... | [
"filipeximenes@gmail.com"
] | filipeximenes@gmail.com |
70236d86b3776459c21bf69c5553b3e0c870be19 | 02508aa773dcbd9939eb879952ee2cb3dd90bcad | /test/distributions/test_transforms.py | 8dbbc5eb2b9f5ad4e99d78b12e8755462da9e8dd | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | dhivyadharshin/pytorch | d8a3b7f3c03e21e776ea34788d13743467b738c8 | 6a170011876bb8bd1909e8f60fba1270ac7a5577 | refs/heads/master | 2023-07-18T07:31:52.918955 | 2021-08-17T18:12:01 | 2021-08-17T18:12:01 | 397,330,616 | 5 | 0 | NOASSERTION | 2021-08-17T18:12:02 | 2021-08-17T16:57:16 | null | UTF-8 | Python | false | false | 19,368 | py | from numbers import Number
import pytest
import torch
from torch.autograd.functional import jacobian
from torch.distributions import Dirichlet, Independent, Normal, TransformedDistribution, constraints
from torch.distributions.transforms import (AbsTransform, AffineTransform, ComposeTransform,
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b01db968e823908f76d9ec6ff624a2092720f385 | 3b8387d770b33850dca55a1f0657167906697b5b | /kth_largest_element_in_an_array.py | ab49e1f33487d02057175a51c0b6a2cd04323bfb | [] | no_license | BigZihao/Leetcode | fe2795d5485e4780c1ec79558eaf9017a830a516 | 95ec42c241a4815a8b35f7a71948f1bc4e58b5b3 | refs/heads/master | 2021-01-13T00:59:12.489768 | 2018-06-21T21:50:33 | 2018-06-21T21:50:33 | 48,407,360 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Solution(object):
# k+(n-k)*log(k) time
def findKthLargest1(self, nums, k):
heap = nums[:k]
heapq.heapify(heap)
for num in nums[k:]:
if num>heap[0]:
heapq.heapreplace(heap, num)
return heap[0]
def findKthLargest2(self, nums, k):
return heapq.nlargest(k, nums)[k-1]
| [
"zihao.zhang.ustb@gmail.com"
] | zihao.zhang.ustb@gmail.com |
419abdb366180599c55ba444c2a515e9c6e1a55b | f6eefa39aa02e860acc9385827227752bab0ed22 | /m_explorer/m_comics/migrations/0004_auto_20160505_1822.py | 1171f3e2362d4c80845d7a92163e4b52be109282 | [
"MIT"
] | permissive | marvel-explorer/marvel-explorer | 31fbc310ae1eb827b74c4f84eda157dc295ad5c0 | 5c88f113e3526b347e589a540e21ac4b925dc106 | refs/heads/master | 2021-01-17T12:54:25.173005 | 2016-06-30T01:51:35 | 2016-06-30T01:51:35 | 56,878,556 | 3 | 1 | null | 2016-06-30T01:51:36 | 2016-04-22T18:58:37 | Python | UTF-8 | Python | false | false | 1,104 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-06 01:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('m_comics', '0003_auto_20160505_1743'),
]
operations = [
migrations.AlterFiel... | [
"nadia.bahrami@gmail.com"
] | nadia.bahrami@gmail.com |
413df6b8813d9503b8db6d0ef4df122d2ea7f044 | 7afaa97f5349549ac29faa726fe8fb8249dce8bf | /SDK/PlotOptSub.py | e7a2033426b146b97709e13be17540cfeb5dbc81 | [] | no_license | juanlianren0515/SandPlate | e6963e08e990c892d067d62148a5d9dea57152a5 | 71eeb23255fe665b446738b28314f911fbe0d788 | refs/heads/master | 2020-09-09T22:42:39.948365 | 2019-12-05T22:35:08 | 2019-12-05T22:35:08 | 221,588,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # encoding = utf-8
import math
def addXticklabel(ax, df_date_S, x_amount, fontsize=5, rotation=90):
"""
将字符串列用作x轴标签
:param ax:
:param df_date_S: sh_index['date']
:param x_amount: x轴最多40个label,多了太密
:return:
"""
xticks = range(0, len(df_date_S), int(math.ceil(len(df_date_S) / x_amo... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
c6a3875b2ebf4875105e29fa55df89f9913ef989 | f9b7dcbd841a0b3dd0fcd2f0941d498346f88599 | /tools/perf/core/minidump_unittest.py | 7c196d6449ee0ac2bd5642177a403c3e9c3489c0 | [
"BSD-3-Clause",
"Zlib",
"LGPL-2.0-or-later",
"MIT",
"LGPL-2.1-only",
"APSL-2.0",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | browser-auto/chromium | 58bace4173da259625cb3c4725f9d7ec6a4d2e03 | 36d524c252b60b059deaf7849fb6b082bee3018d | refs/heads/master | 2022-11-16T12:38:05.031058 | 2019-11-18T12:28:56 | 2019-11-18T12:28:56 | 222,449,220 | 1 | 0 | BSD-3-Clause | 2019-11-18T12:55:08 | 2019-11-18T12:55:07 | null | UTF-8 | Python | false | false | 9,650 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import logging
import os
import re
import time
from telemetry.testing import tab_test_case
from telemetry import deco... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
69f2419eae020ef92aca9343e2867b19fbd6cfcd | 95540a155c043dd84ea6c0fb7d59ba06dc78b875 | /python/预科/第三天/1.if条件判断表达式.py | 8c2ed6c04cb53805c5bbbd7cae7c1b1b5b4829c2 | [] | no_license | Lilenn/must | 41b95d8e80f48a6b82febb222936bbc3502cc01f | a510a8d0e58fde1bc97ab7ad9bd2738158dcba5e | refs/heads/master | 2020-04-09T23:09:20.116439 | 2018-12-06T09:02:09 | 2018-12-06T09:02:09 | 160,648,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py |
age = 10
name ='小明'
if age < 4 :
print('幼儿')
if age < 12 :
print('儿童')
if age < 18 :
print('青少年')
if age < 25 :
print('青年')
if age < 100 :
print('少于100')
else :
print('大于100')
if age < 10 :
print('age')
if name == '小明':
print('小明')
# 局部变量 影响部分代码 在部分代码中有效
# 全局变量 在全部代码中都有效
if age < ... | [
"846077763@qq.com"
] | 846077763@qq.com |
ec0915fa2463fb1da2bb9ad4a5b55793d40fac93 | 124081e8c2e25b44e678f85fbd98226e9c6ccc85 | /09 Tuples/9-01_1.py | d947f0488a34567ec336c79201387af96c4002bd | [] | no_license | paalso/learning_with_python | 934266bdeb282304ab2a80e52137f53a0b42e68f | ed2b43c819690fcbfabf5c6d6a6f74a83cd2b48d | refs/heads/master | 2021-11-22T17:17:14.931265 | 2021-09-13T13:52:49 | 2021-09-13T13:52:49 | 192,216,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | ## Chapter 9. Tuples
## http://openbookproject.net/thinkcs/python/english3e/tuples.html
## Exercise 1
## ===========
# We’ve said nothing in this chapter about whether you can pass tuples as
# arguments to a function. Construct a small Python example to test whether this
# is possible, and write up your finding... | [
"40a.pvl@gmail.com"
] | 40a.pvl@gmail.com |
994179b65a3bb03fc700e3909c5c6fb5a599176c | 731c3f2f85f6002725322eedc0b2c8b5e74f610e | /0-jakc/jakc_point_of_sale/__openerp__.py | dbf581f96df9e0585853347d0fe4e145ce84d5bb | [] | no_license | babarlhr/project-0021 | 1ac824657f893c8f25d6eb3b839051f350d7cc9d | e30b8a9f5d2147d3ca5b56b69ec5dbd22f712a91 | refs/heads/master | 2021-09-22T15:45:47.431000 | 2018-09-11T14:59:49 | 2018-09-11T14:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # -*- coding: utf-8 -*-
#################################################################################
#
# Copyright (c) 2016-Present Jakc Labs. (<http://www.jakc-labs.com/>)
#
#################################################################################
{
'name': 'Jakc Labs - POS Enhancement',
'summa... | [
"wahhid@gmail.com"
] | wahhid@gmail.com |
ddd3e27abc37a22ed72742b905bfa81d247b447e | 6febd920ced70cbb19695801a163c437e7be44d4 | /leetcode_oj/divide_and_conquer/findMedianSortedArrays.py | d5acaebb7a6e93b08e1d8366a741f488ff77a74b | [] | no_license | AngryBird3/gotta_code | b0ab47e846b424107dbd3b03e0c0f3afbd239c60 | b9975fef5fa4843bf95d067bea6d064723484289 | refs/heads/master | 2021-01-20T16:47:35.098125 | 2018-03-24T21:31:01 | 2018-03-24T21:31:01 | 53,180,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | '''
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
'''
class Solution:
# @param {integer[]} nums1
# @param {integer[]} nums2
# @return {float}
def findMedianSortedArrays(self, nums1,... | [
"dhaaraa.darji@gmail.com"
] | dhaaraa.darji@gmail.com |
3e73db004ccc472253cc1d8abbb17c752629b76b | 0f2b226f8f28db835bd31179371d87f0605c3e78 | /library/remove_blank_dup_lines.py | ce0ce6eaf210bbe7d218bd4ede50b6c456901566 | [] | no_license | srikanthpragada/PYTHON_15_MAY_2018_DEMO | 5a358b293f69532ba19fbe5aa9161cc1fd6523ea | 5724d4dd701bf20797d7c1dfb94ab379e19a0c8a | refs/heads/master | 2020-03-17T13:02:20.552185 | 2018-05-31T06:00:32 | 2018-05-31T06:00:32 | 133,614,433 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 451 | py |
lines =[]
with open(r"e:\classroom\python\may15\names.txt","rt") as file:
for line in file.readlines():
# print(line, len(line), len(line.strip(" ")))
if len(line.strip(" ")) == 1:
continue
if not line in lines:
lines.append(line)
with open(r"e:\classroom\python\m... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
9d3e33b0d2da7bcc0c999066aecdc1fc3498715b | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /data/dacon/comp3/dacon_LSTM.py | 3fc791e00e67c4bb022a98be4e760266017c66e8 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,059 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split, KFold
from sklearn.preprocessing import StandardScaler, RobustScaler
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import LSTM, Dense, Dropo... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
3a6d52c5057a2bea8991ca37bce5d3a80414ce12 | 318785f1aa24101fb9ba5b637d9cc1162fd5ad9a | /bankapp_project/manage.py | a2c21d8575a0753e8eb0bc97a74a562829529cbd | [] | no_license | Mesaj2000/Banking-Application | 05f9e1da06afb217190adf77403d4821673d3ad4 | cd727c8bd7ed038eaf3e8c24daf13726d7e5a5c6 | refs/heads/master | 2023-01-13T05:25:41.506355 | 2020-11-21T20:44:35 | 2020-11-21T20:44:35 | 297,799,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bankapp_project.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"="
] | = |
4472f417603415db203dfe661507ddec4c8e6d5d | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/messenger/proto/xmpp/__init__.py | ff7b7e2752f8b5924a8cadc3907cd59921261bdb | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 517 | py | # 2016.02.14 12:43:00 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/messenger/proto/xmpp/__init__.py
from messenger.proto.xmpp.plugin import XmppPlugin
from messenger.proto.xmpp.XmppServerSettings import XmppServerSettings
__all__ = ('XmppPlugin', 'XmppServerSettings')
# okay decompyling c:\Users\PC\w... | [
"info@webium.sk"
] | info@webium.sk |
6d90d092d96a1284e86207e28d2d4e581c3a3842 | cf1b3312af6395c0f8cc7d3ef7d6310a125816bf | /paddlenlp/datasets/iwslt15.py | 4cfdc63fdb466091fd13c9a5a15667ceb018ed1f | [
"Apache-2.0"
] | permissive | thomas-yanxin/PaddleNLP | 92db7b4c5eef4494f6e770eaebd80001e66494d2 | 1ddc5bbeeb587a20c10629d17b030214aba77990 | refs/heads/develop | 2023-06-22T18:00:34.532679 | 2021-07-21T06:12:58 | 2021-07-21T06:12:58 | 388,380,705 | 1 | 0 | Apache-2.0 | 2021-07-22T08:11:12 | 2021-07-22T08:11:11 | null | UTF-8 | Python | false | false | 5,143 | py | # Copyright (c) 2020 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"
] | thomas-yanxin.noreply@github.com |
9b2901843937c194b24370251634787b21136656 | 482eda407c9ce5fbfe9399972f23b03757ef575f | /medialinkfs/metadata.py | 0bd0f4ceb35a57cea4db88e00158810576e695fa | [] | no_license | nick5429/medialinkfs | fe25371845d4b16c0806ccee74964bb278e7bed6 | 9544fa8a639450cb0ab6ae63c05ccb5a2598a373 | refs/heads/master | 2021-01-22T10:56:27.096738 | 2015-07-18T15:44:16 | 2015-07-20T18:20:20 | 39,271,208 | 0 | 0 | null | 2015-07-17T19:15:55 | 2015-07-17T19:15:54 | null | UTF-8 | Python | false | false | 1,653 | py | # Responsible for loading an item's metadata
from .deepmerge import deep_merge
from .parsers import load_parser
import logging
import os.path
import re
import traceback
logger = logging.getLogger(__name__)
def load_item(settings, name):
logger.debug("Loading metadata for %s"%(name,))
path = os.path.join(settings['s... | [
"hufman@gmail.com"
] | hufman@gmail.com |
7eb3ed0f994105e20f7f1cb491ec847c4aa89950 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_vpn_ssl_settings.py | 9441c97b12edb54f598f2d9f8a28994b0a7b1187 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 34,822 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
4d5f51042a8efc67a36bc6eca237392861be35b2 | 5407e718bf2e688d1335fe0cafaa8abd33e628ff | /gameserver/fb_permissions_to_sql.py | 3975e1828d8152b1aed91e068b4b6f16d6023b2e | [
"MIT"
] | permissive | cash2one/assignment1 | 0bd6582963f6a6a843c270cb2235c624ae5beccb | 56923b4afa8a10e61b339fbea5cfb49279023f81 | refs/heads/master | 2021-01-12T16:51:09.894575 | 2015-01-25T18:33:40 | 2015-01-25T18:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,966 | py | #!/usr/bin/env python
# Copyright (c) 2015 SpinPunch. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file.
# dump "log_fb_permissions" from MongoDB to a MySQL database for analytics
import os, sys, time, getopt
import SpinConfig
import SpinNoSQL
... | [
"dmaas@spinpunch.com"
] | dmaas@spinpunch.com |
f482d294ff4f1c7fb55a9f60bc7da0d0f11ee8aa | 7a7bbdaab3cedcd9b89d9245d67fe7cc472fc288 | /Math2/1002.py | ce5bdd654f450b9a9412b1e55c922f219e2e678e | [] | no_license | rheehot/baekjun | cd213c6903e69a8e48b4942c950048c1c3e03c34 | 44792c6d125af7d9b0739c571e7918c802f73c01 | refs/heads/master | 2023-02-12T08:42:47.578842 | 2020-12-21T00:40:35 | 2020-12-21T00:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | N = int(input())
for _ in range(N):
jo_x, ba_x, j_r, jo_y, ba_y, b_r = map(int, input().split())
between = ((ba_y - jo_y) ** 2 + (ba_x - jo_x) ** 2) ** 0.5
if between == 0 and j_r == b_r:
print(-1)
elif between == (b_r + j_r) or between == abs(j_r - b_r):
print(1)
elif abs(j_r - b... | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
13e3cc728ae6a9feb744154511c8605688c2a490 | 37d6ba9865ff154ffe337b73a2fd6824874385d5 | /website-backend/ava/capture/tests.py | b9f995a8c1ac88e75c1f6d6bc21c12e0544e002c | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | electronicarts/ava-capture | fc11291432153a58179c0eedce99f537e9c13bbf | fc6a1f89706309139f5ce0976e5a29969158a191 | refs/heads/master | 2023-07-05T20:31:03.083021 | 2022-12-07T22:19:16 | 2022-12-07T22:19:16 | 100,387,988 | 63 | 16 | NOASSERTION | 2023-09-04T23:33:41 | 2017-08-15T14:52:07 | Python | UTF-8 | Python | false | false | 128 | py | #
# Copyright (c) 2018 Electronic Arts Inc. All Rights Reserved
#
from django.test import TestCase
# Create your tests here.
| [
"edanvoye@ea.com"
] | edanvoye@ea.com |
fdfc4a6b513c97d5897296e999bf8768fda8ca16 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/bigtable/clusters/list.py | b8923836c2d2e9d00d0453a74172e2fa2d07c3e6 | [
"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,061 | 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 |
4e426673f1f0d01f47296b2a767e85e794a6409a | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc081/B/3566177.py | 2cdb20e12b8d2befbce561764d4702bbe164cab2 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import sys
mod = 10**9 +7
N = int(input())
S1 = input()
S2 = input()
H = ''
for i in range(N):
if S1[i] == S2[i]:
H += 't'
else:
H += 'Y'
H = H.replace('YY','y')
K = len(H)
if K == 1 :
print(3*N)
sys.exit()
if H[0] == 'y':
ans = 6
prev = 'y'
else:
ans = ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
0b753f845d02f83457b12497e444a7bc7ce43a36 | 567789f5bf150097ef23e8208363ca617668f07b | /tests/test_cli_unicodes.py | a3d33ebca369cb828142363c3d782c58bc1ebde0 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | shollingsworth/v0tools | 026bba69bcca6ac2cfd420595779817a4aba1ea5 | a68e9bba6e4b3b63c70e1435c0916c1fdf25422f | refs/heads/main | 2023-07-19T16:18:52.118315 | 2021-09-08T13:41:16 | 2021-09-08T14:32:42 | 400,639,062 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""UNIT Test for Cli bin/unicodes.py."""
from v0tools.cli import Cli
from v0tools import exceptions
import unittest
from io import StringIO
import sys
import contextlib
import pathlib
BASE = pathlib.Path(__file__).parent.parent.resolve()
sys.path.append(str(BASE.joinpath... | [
"shollingsworth@barracuda.com"
] | shollingsworth@barracuda.com |
b0177f5cd3b77fed9037bf5406ea79d48c17c3d1 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/fbs_2243+392/sdB_fbs_2243+392_coadd.py | 4d9f358f0740db02c95ac825398d3b74a8cbef23 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[341.446333,39.443556], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_fbs_2243+392/sdB_fbs_2243+392_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/s... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f15e2e332c029b72b450061d14cd752e958de243 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/auth/util.py | 4aff5136a542c3ef983c1550001a8d8a6702cd71 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 6,167 | 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... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
6e6d4890784972cce5e47e1830a9ee3a8d25e0cc | 0907894ad8f051bd0fa77d6a81c93131a846d199 | /mega_tutorial/venv/bin/pip | b39df44d0d2f6292e30ddc11d0af5dd4538c3c0d | [] | no_license | mobin-zaman/misc_django_flask | cff3465e6002b4caae71afb3818a58400ba9df19 | d5e652bec580b198cdf40b1eb62a3ee73add32ef | refs/heads/master | 2020-05-01T15:06:37.517233 | 2019-05-11T11:59:19 | 2019-05-11T11:59:19 | 177,538,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | #!/home/terminal/abc/misc_django_flask/mega_tutorial/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"mobin_zaman@hotmail.com"
] | mobin_zaman@hotmail.com | |
179efa4dd071c62f08d2b2c7ea29308b8adcf058 | 1dcfcd8fe7465781b58f2026579a1c02a103ba3c | /tests/integration-tests/tests/storage/test_ebs.py | 07d685ff8279a4564350a26b77316ec8f0dead04 | [
"Apache-2.0"
] | permissive | asford/aws-parallelcluster | f30e5bd8f7c43055a4e4a61cd0e4a8a8b30031bc | b58a79cdcfa2e02a91fea3dcefea0429eccd7003 | refs/heads/master | 2020-05-31T20:00:26.877414 | 2019-06-05T20:51:48 | 2019-06-05T20:51:48 | 190,466,176 | 0 | 0 | null | 2019-06-05T20:47:15 | 2019-06-05T20:47:14 | null | UTF-8 | Python | false | false | 4,432 | py | # Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file acc... | [
"demartinof@icloud.com"
] | demartinof@icloud.com |
66145b16026c8ca963a8c5af9d35d6840ec57e40 | 677a3a76807d8585f65ec0e0839bb3a8b833e2fb | /1.First Steps in OOP/Lab/Excercise/01.py | 67beeb37c7ee5a46102c01b7b4ee628de2f0008a | [] | no_license | negative0101/Python-OOP | 0d531a1b72beb3e58f9486df88d457ecd59be10e | b5825e66a909c947a46458712d683e8a38035912 | refs/heads/main | 2023-07-14T11:27:34.841594 | 2021-08-20T08:49:04 | 2021-08-20T08:49:04 | 381,475,313 | 0 | 0 | null | 2021-07-25T19:52:38 | 2021-06-29T19:26:42 | Python | UTF-8 | Python | false | false | 262 | py | class Shop:
def __init__(self, name, items):
self.name = name
self.items = items
def get_items_count(self):
return len(self.items)
shop = Shop("My Shop", ["Apples", "Bananas", "Cucumbers"])
print(shop.get_items_count()) | [
"noreply@github.com"
] | negative0101.noreply@github.com |
027d2933695027051fb8f780b07b4202c1dae3fe | 4c4378386eb09182f1baec6f6636119682e29bfd | /nnvm/tests/python/frontend/coreml/model_zoo/__init__.py | aa28475776ef9c5195e321051aee2bde7e03538a | [
"Apache-2.0"
] | permissive | microsoft/onnxruntime-tvm | 2e4a64b3358d43a15a586c1da9d323326c4fcafd | 984dc1b111aeb02c8a8c68e9724ecff814db11ff | refs/heads/master | 2023-09-04T18:53:53.705339 | 2022-11-28T19:09:42 | 2022-11-28T19:09:42 | 191,660,018 | 24 | 14 | Apache-2.0 | 2022-11-28T19:09:44 | 2019-06-12T23:55:56 | Python | UTF-8 | Python | false | false | 905 | py | import os
from PIL import Image
import numpy as np
from tvm.contrib.download import download_testdata
def get_mobilenet():
url = 'https://docs-assets.developer.apple.com/coreml/models/MobileNet.mlmodel'
dst = 'mobilenet.mlmodel'
real_dst = download_testdata(url, dst, module='coreml')
return real_dst
d... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
0b12e14c23e7d78c5148ac53f01fb786cf9cf0ba | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/a94156227d25a64f458517587f104ce41b72241b-<_get_credentials>-fix.py | c343e2ee1f23125802d7ca11e4f3a149425c60c5 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | def _get_credentials(self):
'Wait for the CloudStack simulator to return credentials.\n :rtype: dict[str, str]\n '
client = HttpClient(self.args, always=True)
endpoint = ('%s/admin.json' % self.endpoint)
for _ in range(1, 30):
display.info(('Waiting for CloudStack credentials: %s' ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
595d9e3f710a4618ffc778b8fd526246943b85a7 | f2a2f41641eb56a17009294ff100dc9b39cb774b | /current_session/python/210_redo2.py | af00c1b3b8e19dd2b469c45d9196bf815c8a4b6a | [] | no_license | YJL33/LeetCode | 0e837a419d11d44239d1a692140a1468f6a7d9bf | b4da922c4e8406c486760639b71e3ec50283ca43 | refs/heads/master | 2022-08-13T01:46:14.976758 | 2022-07-24T03:59:52 | 2022-07-24T04:11:32 | 52,939,733 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """
210
"""
from typing import List
import collections
class Solution:
def findOrder(self, N: int, pre: List[List[int]]) -> List[int]:
# make a prerequisite dict
cd = collections.defaultdict(list)
for a, b in pre:
cd[a].append(b)
# dfs
self.visited = set()
... | [
"yunjun.l33@gmail.com"
] | yunjun.l33@gmail.com |
1b0e71392c38ac89716ace5401343c6f6d95bc02 | 124e5d045597bdd7bdd1ef75fa6448f7982b7de5 | /sanode/my_suggest_normalization_param.py | bab706bcf7da80525679eed67db097f1069f34cb | [] | no_license | cudmore/saNode | 5949f78bc6d02e8373f01b228352ec25bef889f7 | 7041e990539e5fea11324389d77807e6b916ca3c | refs/heads/master | 2023-03-27T19:06:13.959716 | 2021-03-25T03:53:13 | 2021-03-25T03:53:13 | 284,132,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | import numpy as np
from scipy.stats import norm # used by my_suggest_normalization_param
def my_suggest_normalization_param(structure_img0, verbose=False):
"""
clone of aics segmentation code. Just added return values.
Used as intensity_scaling_param parameter for intensity_normalization()
"""
m, s = norm.fit(str... | [
"robert.cudmore@gmail.com"
] | robert.cudmore@gmail.com |
fbe15e7bccf6dbda7e7e6b9bd105a7fcd64082aa | 02930724e3ee451c2d47e6e57b81389d81692a94 | /Pipeline/LDA/Rc/rc_run_uj1.py | 3f423212d81951bf8247f46b94ebe5327471672e | [] | no_license | Vivekdjango/hadoop_automation | 5b0713b416b5f5a458f00d00ef5227bb8e5d9439 | 40144d45ccb115119a8b4fffb70c8cae6e08ec77 | refs/heads/master | 2021-01-20T04:18:32.388130 | 2018-09-01T13:15:55 | 2018-09-01T13:15:55 | 89,673,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #!/usr/bin/python
#Vivek Sinha
print "Content-Type: text/html"
print
import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() )
ssh.connect(<host>, username='<username>', password='<password>')
stdin, stdout, stderr = ssh.exec_command('/opt/gridscripts/gridopstools/bin/lda... | [
"viveksinha@IC0532-L0.corp.inmobi.com"
] | viveksinha@IC0532-L0.corp.inmobi.com |
60f43fa72335152a028dc59b1ae8f5fb0ea62998 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22301.py | 3c9ba18aa9ce9275f16da1c699df2d7be5e6ed9b | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | # Use variable in variable name
for i in range(1, 256):
name = "key{}".format(i)
print globals()[name]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
ea60fb4950504528ec9b240fdfdbdc72212de2a9 | 5a623dd74795946ff56f05f99769ed89856d683f | /pre_learning/dic_2.py | baa40fce71907a40a277f20009a5d26ab47cf55d | [] | no_license | vxda7/end-to-end | aee6b8212fd1476c2ae4ad5f847eb906a5b8d20c | 7beff5cb1783774f5255d3dc98cc7587241d23e4 | refs/heads/master | 2020-06-17T14:39:59.896278 | 2019-08-31T09:44:08 | 2019-08-31T09:44:08 | 195,953,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | have = {
"TV": 2000000,
"냉장고": 1500000,
"책상": 350000,
"노트북": 1200000,
"가스레인지": 200000,
"세탁기": 1000000,
}
def makesort(have,result):
big=0
cnt=0
big_key=''
for key, value in have.items():
if big < value:
big = value
big_key = key
else:
... | [
"vxda77@gmail.com"
] | vxda77@gmail.com |
20543cc607782ed6e576263939f7a802b235d559 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Cocoa/Examples/AppKit/DatePicker/setup.py | be8d8d3a5f91e3e838ab1129c771ff9a5aa204e0 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 251 | py | """
Script for building the example.
Usage:
python3 setup.py py2app
"""
from setuptools import setup
setup(
name="DatePicker",
app=["main.py"],
data_files=["English.lproj"],
setup_requires=["py2app", "pyobjc-framework-Cocoa"],
)
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
59bda19069ce8961da2a1aab260114c3abfcf5cb | 3856dbedcf846f9845290e9b2efa4d18e300623d | /swagger_client/models/command_data.py | 0806b4cccb02bdb6c0d30614ef2f221b376c3d10 | [] | no_license | Valandur/webapi-client-python | 5b314da41803f5b55a5c6cce62d2384b86d0fa37 | 8502726bf3facb17c6fa681faf0f600207eb61ae | refs/heads/master | 2022-02-04T21:45:37.686703 | 2019-07-23T12:11:47 | 2019-07-23T12:11:47 | 113,748,693 | 2 | 0 | null | 2019-01-09T16:07:31 | 2017-12-10T12:38:14 | Python | UTF-8 | Python | false | false | 8,384 | py | # coding: utf-8
"""
Web-API
Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELET... | [
"inithilian@gmail.com"
] | inithilian@gmail.com |
970926f7081df7adc29f84b44e579fb8f6461d5f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/secdev_scapy/scapy-master/scapy/layers/tls/crypto/ffdh.py | 7451c96e52788284fc101ecf1b149038a66d9657 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 12,861 | py | ## This file is part of Scapy
## Copyright (C) 2007, 2008, 2009 Arnaud Ebalard
## 2015, 2016 Maxence Tury
## This program is published under a GPLv2 license
"""
This is a register for DH groups from RFC 3526 and RFC 4306.
XXX These groups (and the ones from RFC 7919) should be registered to
the cry... | [
"659338505@qq.com"
] | 659338505@qq.com |
c42e37be5b3ff7671175225f7da8a0c6eefd9e3c | 0a5acfbbc0e252e874fb2b8f3c11204a6c71b00c | /오픈채팅방.py | ff4dc2705e2594ae0bfb217f822872d6af3e66fa | [] | no_license | ppp7720/programmers | 12e62c5d4a292de3ca76886a8531e198cc57b5f2 | 3f0a8ede0bda6aad42387933e251c21e27fd1dca | refs/heads/main | 2023-04-08T06:30:47.732224 | 2021-04-20T09:31:29 | 2021-04-20T09:31:29 | 353,857,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,448 | py | record = ["Enter uid1234 Muzi", "Enter uid4567 Prodo","Leave uid1234","Enter uid1234 Prodo","Change uid4567 Ryan"]
def solution(record):
Ma = {"Enter":"님이 들어왔습니다.", "Leave":"님이 나갔습니다."}
ID = {}
r = [i.split(' ') for i in record]
for i in r:
try:
ID[i[1]] = i[2]
exce... | [
"noreply@github.com"
] | ppp7720.noreply@github.com |
1080e4c22e8a86bc15c6f29ae38915624b686fc5 | 90ab150948d5bf8431548a99ce6230b59f2cdf3a | /invoice/urls.py | 0c15c84d6c6a4ea8612d42af10330e27c3d6e529 | [] | no_license | fadhlimulyana20/halo_bisnis_api | a180768086211d36ea3253fa7db3968818ac97b5 | 20dd00973c1def65b3290f1a640fa0218381e2f8 | refs/heads/master | 2022-11-22T03:57:27.691220 | 2020-07-11T10:24:16 | 2020-07-11T10:24:16 | 278,766,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | from rest_framework import routers
from .api import (
InvoiceProductAPI,
InvoiceProductCreateAPI,
ProductBasketAPI,
PaymentConfirmationAPI,
ProductBasketListAPI,
InvoiceProductItemAPI,
InvoiceProductItemCreateAPI,
PaymentMethodAPI,
PaymentAccountAPI
)
from django.urls import pat... | [
"baba.fadhli@gmail.com"
] | baba.fadhli@gmail.com |
c90695709f8ce240ef5ce878effad063d02e9c3c | 24a9841bdf076ac6b99fb9824c0a041302563fa1 | /generateds/tests/simplecontent_restriction1_sub.py | 95de1b73ee77422d05479f73d0c1606ead17ef9b | [
"MIT",
"Apache-2.0"
] | permissive | Shivayogi123/contrail-api-client | 3240b7e4a00a4302851c583f340bcbc81f1b7b34 | 5cd4894c8651cf4525aa91709b413f42f2502a36 | refs/heads/master | 2021-04-09T10:40:43.232198 | 2018-03-21T23:29:29 | 2018-03-21T23:29:29 | 125,281,012 | 0 | 0 | Apache-2.0 | 2018-03-19T20:48:18 | 2018-03-14T22:22:03 | Python | UTF-8 | Python | false | false | 6,107 | py | #!/usr/bin/env python
#
# Generated by generateDS.py.
#
import sys
import simplecontent_restriction2_sup as supermod
etree_ = None
Verbose_import_ = False
( XMLParser_import_none, XMLParser_import_lxml,
XMLParser_import_elementtree
) = range(3)
XMLParser_import_library = None
try:
# lxml
from lxm... | [
"roque@juniper.net"
] | roque@juniper.net |
0f0795a45bab0c72403ca0d69da9d43940380e6a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2633/60648/320912.py | 1037a07ac41ccc99064d99a25c38f63ff31274b5 | [] | 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 | 503 | py | l=input().split()
n=int(l[1])
l=input().split()
for i in range(n):
s=input()
l.append(s)
if l==['1', '2', '6', '2', '8', '6', '1 2 4 1 2 ', '2 3']:
print(9)
elif l==['1', '2', '6', '2', '8', '6', '10', '24', '1 2 5 3 2 ', '2 8']:
print(24)
elif l==['1', '2', '6', '2', '8', '6', '1 2 4 1 2 ', '2 6']:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b08fdc3b306531d12ec39154e8c3b2fceb6c18f4 | 7251f3d4223bd74ce06a20298baa4afda667cdcd | /controllers/tools.py | b6af20303e66a0c3c350c1cfd6e054b8db68f31f | [
"LicenseRef-scancode-public-domain"
] | permissive | ruvex/7pay_in | 3c026e7d1b113df8adfd609d97416344204be784 | 7c943a074d91b229de4135ac58c3f4385d16d6ff | refs/heads/master | 2021-05-23T14:57:41.412607 | 2020-03-17T21:05:56 | 2020-03-17T21:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,503 | py | # coding: utf8
##from __future__ import print_function
import socket
session.forget(response)
# vvv=True - включает секртную сессию и выдает страницу ошибки
def not_is_local(vvv=None):
http_host = request.env.http_host.split(':')[0]
remote_addr = request.env.remote_addr
#http_host[7pay.in] remote_addr[91... | [
"icreator@mail.ru"
] | icreator@mail.ru |
e1ec302ec8565f23e781194a79cb42ea8710853c | 710e96b1435bc43cc260512df75af5dd3b2afd13 | /code/1149.py | d8b37efa4a4e94e3dd2b492d03637401ca214c30 | [
"MIT"
] | permissive | minssoj/Learning_Algorithm_Up | 94ca8166c9a5d87917cf033ad8415871684241c4 | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | refs/heads/main | 2023-01-08T20:52:32.983756 | 2020-11-05T17:49:45 | 2020-11-05T17:49:45 | 301,926,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | # 두 수 중 큰 수
# minso.jeong@daum.net
'''
문제링크 : https://www.codeup.kr/problem.php?id=1149
'''
a, b = map(int, input().split())
print(a if a> b else b) | [
"minso.jeong@daum.net"
] | minso.jeong@daum.net |
e958249874de7b8c1501612d36a24a541d08e97e | 8cc6fbdcb8f4c75b090f3446b5411c382d0b8489 | /imtools/gt_lar_smooth.py | 7e97cd1dd6478d8402e078c3956312ac3d26a6ce | [
"MIT"
] | permissive | mjirik/imtools | ef9bba31aa5de2d68fc5bd3197651c4814119d75 | b7ff33631a035db5fa5156adc5d8536650e4573b | refs/heads/master | 2021-07-09T11:59:06.206329 | 2021-04-26T13:05:07 | 2021-04-26T13:05:07 | 44,472,679 | 7 | 1 | MIT | 2018-08-06T18:32:07 | 2015-10-18T09:41:24 | Python | UTF-8 | Python | false | false | 14,966 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Generator of histology report
"""
import logging
logger = logging.getLogger(__name__)
# import funkcí z jiného adresáře
import sys
import os.path
path_to_script = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(path_to_script, "../../lar-cc/li... | [
"miroslav.jirik@gmail.com"
] | miroslav.jirik@gmail.com |
d483236174f94f7be6f1eba68b790bf9144eec70 | 26ab661683af0da28dc61a4c9bc069d08a46b0a0 | /projetoDjango/venvFinal/Scripts/rstpep2html.py | caa189e52c81ec872fcad6f7d974bcd3934a5f0d | [] | no_license | kcpedrosa/SalvusCRUD | c884218bf247928e54981764e2cd5afacf04fd4a | aeff261bf8ee044b2295412fdc819f28358b8585 | refs/heads/master | 2022-12-06T15:12:51.372737 | 2020-09-02T20:11:57 | 2020-09-02T20:11:57 | 292,370,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!c:\users\natha\projetofinaldjango\venvfinal\scripts\python.exe
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enha... | [
"kattine.costa@gmail.com"
] | kattine.costa@gmail.com |
10bf00c0f09feb5b1a16fe1a4347d2c616ff503e | 8b748f874a791c79afbd9839ad939cf145738fb8 | /comcenterindicator/setup.py | cd75ad95dbad46697774dd599cd314f50fdac462 | [
"Apache-2.0"
] | permissive | tongpa/bantak_program | cb47a3bd654e1cbb454afb35a8bbcdb25a079826 | 66edfe225e8018f65c9c5a6cd7745c17ba557bd5 | refs/heads/master | 2021-01-15T11:58:29.748505 | 2017-09-02T04:18:10 | 2017-09-02T04:18:10 | 99,638,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # -*- coding: utf-8 -*-
import sys, os
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
install_requires=[
"TurboGears2 >= 2.3.9",
"tgext.pluggable"
]
here = os.path.abspath(os... | [
"tong_pa@hotmail.com"
] | tong_pa@hotmail.com |
4b10b2c9d7be490833ebaafa8685f7cb882a7020 | cf2b8c952512a16bc7a1038f3239370cada02561 | /OJ/test1053.py | 05ef5e22f92b2018698907afbda752f0d0199e4e | [] | no_license | liupengzhouyi/LearnPython3 | ad382b99423b7bb10612c255bbbeabbbf79500ad | 6b001ae169288af1dd0776d4519905a6e0d1ab87 | refs/heads/master | 2023-04-07T20:08:41.207008 | 2023-03-27T04:18:43 | 2023-03-27T04:18:43 | 174,716,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # -*- coding: UTF-8 -*-
# -*- author: liupeng -*-
# -*- fileName: test1053.py -*-
# -*- data: 2019-11-26 -*-
# -*- problem url: https://imustacm.cn/problem/getProblem/1053
def Fb(n):
if n == 2:
return 2
elif n == 1:
return 1
else:
return Fb(n-1) + Fb(n-2)
n = int(input())
while n >... | [
"liupeng.0@outlook.com"
] | liupeng.0@outlook.com |
7edf2c0d176c472e7ec4a03e737151846455d49b | 15a4d26bd9809a32dc5cf488c21b283dae8ff30a | /ideasbox/search/management/commands/reindex.py | 26836635423394b862acad3ccca703b2cdcc4f81 | [] | no_license | fo0nikens/ideasbox.lan | c556b65fc110665ae40b0f647e6a6cfe229d38dd | f9cbb2b08fcdcb4d0851fb6f8c85249bff4c46e9 | refs/heads/master | 2021-01-17T10:01:26.661695 | 2015-09-04T16:22:45 | 2015-09-04T16:22:45 | 43,330,370 | 1 | 0 | null | 2015-09-28T22:20:49 | 2015-09-28T22:20:49 | null | UTF-8 | Python | false | false | 612 | py | from django.core.management.base import BaseCommand
from ideasbox.search.utils import create_index_table
from ideasbox.search.models import SEARCHABLE
class Command(BaseCommand):
help = 'Reindex all the searchable objects'
def handle(self, *args, **kwargs):
create_index_table()
for model in ... | [
"yb@enix.org"
] | yb@enix.org |
a625f3a3aa7f562a3c515e09d78109fb2f2e380e | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/snxkai001/question4.py | 5f181590140fb7e3f84bf9dbd911676eb103c6fd | [] | 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 | 606 | py | #kairav soni
marks0=[0,0,0,0,0]
marks=input("Enter a space-separated list of marks:\n")
mark=marks.split()
for i in range(len(mark)):
symb=eval(mark[i])
if(symb>=75):
marks0[0]=marks0[0]+1
elif(70<=symb<75):
marks0[1]=marks0[1]+1
elif(60<=symb<70):... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
51d7bee1b1d086e66e58a357bb81921fa18752dd | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Skimage_numpy/source/skimage/data/__init__.py | 6dc5dd8edc6dc899b85433529f4e9762a5b47e42 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 6,698 | py | """Standard test images.
For more images, see
- http://sipi.usc.edu/database/database.php
"""
import os as _os
from .. import data_dir
from ..io import imread, use_plugin
from .._shared.utils import deprecated
from ._binary_blobs import binary_blobs
__all__ = ['load',
'camera',
'lena',
... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
a7d19fcff3c081130bd03cc4253eb4eafc335cc2 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL16_mMed-1000_mDark-20_ctau-5_unflavored-down_cff.py | ddfe67c484fa31c170fdc9626748bb7bda2111c3 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,961 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
63f224485b1f70c42e341a91bb80519fac1b0861 | e086d1527495a8645d256383b9f5a3150899930c | /vardbg/output/__init__.py | d41da1144436cdfe7f8f0acb7e82ada25ff1e510 | [
"MIT"
] | permissive | joskid/vardbg | 044920d643c7929f1bc5c87b77a0fe403770f5c7 | a7af439f43efa8da2b862507321ea9b9e29cf305 | refs/heads/master | 2020-12-23T00:01:14.412232 | 2020-01-29T05:50:34 | 2020-01-29T05:50:34 | 236,969,984 | 1 | 0 | MIT | 2020-01-29T11:47:11 | 2020-01-29T11:47:10 | null | UTF-8 | Python | false | false | 187 | py | from .console_writer import ConsoleWriter
from .json_writer import JsonWriter
from .output_delegate import OutputDelegate
from .video_writer import VideoWriter
from .writer import Writer
| [
"danny@kdrag0n.dev"
] | danny@kdrag0n.dev |
adb5145da5c5e11b6e0eb594938296b0017bd7f4 | 0744d457ef8b11eebd1596c84804d36551cfadfb | /paas-ce/websocket/blueapps/account/components/bk_token/middlewares.py | 46fe40c9ae140950df59b3ab89d998935ab98bf6 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"Apache-2.0"
] | permissive | macaty/opsany-paas | 9310f633b70bc2e2d43919534a0224101caf778e | 5605f76d217789412ae8bde7f5372dc9b319bbe9 | refs/heads/main | 2023-07-01T05:20:08.148387 | 2021-08-08T13:39:11 | 2021-08-08T13:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | # -*- coding: utf-8 -*-
import logging
from django.conf import settings
from django.contrib import auth
try:
from django.utils.deprecation import MiddlewareMixin
except Exception:
MiddlewareMixin = object
from config import BK_URL, APP_CODE
import settings as env_config
from blueapps.account.conf import ConfFi... | [
"zhaoshundong@womaiyun.com"
] | zhaoshundong@womaiyun.com |
ccbe3833b360b978b9a9177fe947c27d0cf516d7 | 70054615f56be28373b00c9df96544ec822be683 | /res/scripts/client/gui/scaleform/locale/dialogs.py | bc6b5063e848e76563cc17ba0d1447c0588f1823 | [] | no_license | wanyancan/WOTDecompiled | c646ad700f5ec3fb81fb4e87862639ce0bdf0000 | 9ffb09007a61d723cdb28549e15db39c34c0ea1e | refs/heads/master | 2020-04-17T23:13:15.649069 | 2013-11-15T16:37:10 | 2013-11-15T16:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,726 | py | # 2013.11.15 11:26:30 EST
# Embedded file name: scripts/client/gui/Scaleform/locale/DIALOGS.py
class DIALOGS(object):
GATHERINGXPFORM_SORTBY_VEHICLE = '#dialogs:gatheringXPForm/sortBy/vehicle'
GATHERINGXPFORM_SORTBY_XP = '#dialogs:gatheringXPForm/sortBy/xp'
COMMON_CONFIRM_SUBMIT = '#dialogs:common/confirm... | [
"james.sweet88@googlemail.com"
] | james.sweet88@googlemail.com |
962380d41399c338e3d1f979f5e10208d5a0132f | 56e0a74d5e16e0d1066efb98151b0052e171ceff | /mtn_userprofile/serializers.py | 396ff36f231cd238c380d867d810d145619af34b | [] | no_license | bitapardaz/mci_app | f567b5473f33a264ddf6e785b71e18ae09c47d74 | 1c0d15d811fcefef00171aab7e4716399c2a4eed | refs/heads/master | 2021-01-17T02:19:08.970418 | 2017-06-11T13:53:06 | 2017-06-11T13:53:06 | 51,643,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from rest_framework import serializers
from .models import MTN_UserProfile
class MTN_UserProfileSerializer(serializers.ModelSerializer):
class Meta:
model = MTN_UserProfile
| [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
765be40b011a0dba15c3c484b5b38b36f594f3a8 | a4daf0bfff6cfdb9ae9d9fd99fbb2df1a9aea845 | /easy_images/ledger/base.py | 6611356332b96e3b40743a2340b26c9a869da993 | [] | no_license | Gointer/easy-images | ca29dcf4f88b88e5014c8792c882af871f84f799 | 132d43c507ce0e5355757923a28f81889bdb7e82 | refs/heads/master | 2021-01-23T23:25:17.012989 | 2015-07-07T01:04:39 | 2015-07-07T01:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | from __future__ import unicode_literals
import abc
from .filename_info import FilenameInfo
class BaseLedger(object):
filename_info_class = FilenameInfo
filename = '{info.src_dir}{info.hash}{info.ext}'
"""
The default file name format for generated images.
See the :cls:`~easy_images.ledger.filena... | [
"smileychris@gmail.com"
] | smileychris@gmail.com |
cbc1373e864e8ecfc048f16adbcbb273b2c3337e | eda68efd3b399e2392456534ea630a0911f669fb | /jumpstart/urls.py | 801d1c648a58adc1394c74a5efb8a24d0ba36c5c | [] | no_license | silvano905/jumpstartweb | 1d8f34e99a364a67cc53a125b017d65f5157fe9f | 8ba924f3d172eb0860b074ab422b2fecb195f943 | refs/heads/master | 2020-04-24T07:11:10.657364 | 2019-09-22T01:13:22 | 2019-09-22T01:13:22 | 171,790,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django.urls import path, include, re_path
from django.contrib.auth.views import LoginView, LogoutView
from django.views.generic import TemplateView
from . import views
app_name = 'jumpstart'
urlpatterns = [
path('', views.home_view, name='home'),
path('car-not-starting/', views.car_not_starting, name='ca... | [
"silvanovaldez90@gmail.com"
] | silvanovaldez90@gmail.com |
fa37b6407b83f05ada3e891a46670c80cef6a794 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /functions_legacy/TwistFPMomMatch.py | f05a350c2a40639106b0168c11ce5a1cd87d8a66 | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import matplotlib.pyplot as plt
from numpy import tril, ones, zeros, r_, array, int
plt.style.use('seaborn')
from MinRelEntFP import MinRelEntFP
def TwistFPMomMatch(x, p, mu_, s2_=None):
# This function twists Flexible Probabilities p by Entropy Pooling to match
# arbitrary moments mu_ sigma2_
# INPUTS
... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
7a934a4d23f7b455c9d698d251b6ba21294f6718 | 373b98b8bfdcac86036fd4b6f8e1b412ef6cc2bc | /Scripts/samples/ExportPoints.py | 7fd66b0017860352175daf0b790aedea46e0771b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mcneel/rhinoscriptsyntax | a6473f597bd1b65f32a0ce4baead9938dc946619 | c49bd0bf24c2513bdcb84d1bf307144489600fd9 | refs/heads/rhino-6.x | 2023-08-19T03:41:31.721066 | 2020-10-23T08:41:44 | 2020-10-23T08:41:44 | 1,159,110 | 149 | 55 | null | 2022-12-22T12:29:57 | 2010-12-11T17:12:46 | Python | UTF-8 | Python | false | false | 1,185 | py | # Export the coordinates of point and point cloud objects to a text file.
import rhinoscriptsyntax as rs
def ExportPoints():
#Get the points to export
objectIds = rs.GetObjects("Select Points",rs.filter.point | rs.filter.pointcloud,True,True)
if( objectIds==None ): return
#Get the filename to create
... | [
"steve@mcneel.com"
] | steve@mcneel.com |
9e66a906021901e0ab1034aea6937300c0e08000 | dadb7de8dc4b43aff916fead4cf36e7b80131b02 | /models/srl/highway.py | 2156429d135470d957e7021c02390ba4dbb82267 | [
"MIT"
] | permissive | EuphoriaYan/ICCRE | 71f92559f417a6bec19de07f7ab3bd2f0edd589a | 0f5a969a0ab195161d1995540a7464d14836ed99 | refs/heads/master | 2022-12-02T04:53:52.567908 | 2020-09-22T18:30:57 | 2020-09-22T18:30:57 | 228,592,004 | 2 | 1 | MIT | 2022-11-22T17:22:23 | 2019-12-17T10:30:12 | Python | UTF-8 | Python | false | false | 2,184 | py | import os
import sys
root_path = "/".join(os.path.realpath(__file__).split("/")[:-4])
if root_path not in sys.path:
sys.path.insert(0, root_path)
import torch
import torch.nn as nn
class HighwayMLP(nn.Module):
def __init__(self,
input_size,
gate_bias=-2,
... | [
"ysq58000@foxmail.com"
] | ysq58000@foxmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.