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
a75a6a9fff392c36a2f7ea0a26ceb9742e30b997
1a2bf34d7fc1d227ceebf05edf00287de74259c5
/flask/Day02/fisher.py
1cc4adb358cfd1bff444552db2490d00e0e84b5b
[]
no_license
lzn9423362/Django-
de69fee75160236e397b3bbc165281eadbe898f0
8c1656d20dcc4dfc29fb942b2db54ec07077e3ae
refs/heads/master
2020-03-29T18:03:47.323734
2018-11-28T12:07:12
2018-11-28T12:07:12
150,192,771
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
# 从flask框架中导入Flask这个类 from flask import Flask #初始化一个flask对象 #需要传递一个参数__name__ # 1.方便flask框架去寻找资源 # 2.方便flask插件比如flask-Sqlalchemy出现错误的时候,好去寻找问题所在的位置 app = Flask(__name__) @app.route('/') def hello_world(): return 'hello world' #如果当前这个文件是作为入口程序运行,那么就执行app.run() if __name__ == '__main__': #启动一个应用服务器,来接受用户的请求 ...
[ "411121080@qq.com" ]
411121080@qq.com
a813c48c1eaee83257117b19fbeecd6ea97aaf61
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/Vulkan/DescriptorSetLayoutBinding.py
0479636cd1074bcea3d9e51d4a14b5da89e17818
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,259
py
# encoding: utf-8 # module gi.repository.Vulkan # from /usr/lib64/girepository-1.0/Vulkan-1.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes of th...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
dc8ac8f98abdd3d2476ff6576232b08b43103914
b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf
/000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p03st06TASK06_20210205_datatypes.py
117d126123441b6fb42d7d39b655d4b2bc394545
[ "Apache-2.0" ]
permissive
SafonovMikhail/python_000577
5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4
f2dccac82a37df430c4eb7425b5d084d83520409
refs/heads/master
2022-12-08T10:53:57.202746
2022-12-07T09:09:51
2022-12-07T09:09:51
204,713,341
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
''' Напишите программу, которая считывает две строки и выводит на экран конкатенацию этих строк Примечание: конкатенация - операция "сложения" двух строк Sample Input 1: Язык программирования Python Sample Output 1: Язык программированияPython Sample Input 2: 37 81 Sample Output 2: 3781 ''' s1, s2 = input(), inpu...
[ "ms33@inbox.ru" ]
ms33@inbox.ru
058a05a4499c06f74891be9ead56d0e1c7689246
5810e290cd89e6e6d04cb19fb7af063c8a868b4c
/Aplikace_1_0/Source/ewitis/gui/dfTableTimes.py
e6d00fbe89517001b771345c60e5e2aa72553e40
[]
no_license
amoydream/ew_aplikace
0a0e1af79aa74378e4040cb563c4d573f8af9ebf
f7868d4924dc2cae6ab79efda4662aee7465bdbf
refs/heads/master
2023-06-14T06:25:40.122872
2021-07-12T21:07:56
2021-07-12T21:07:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,291
py
# -*- coding: utf-8 -*- ''' Created on 30.07.2015 @author: Meloun ''' import time, os import pandas as pd from PyQt4 import QtCore, QtGui from libs.myqt.DataframeTableModel import DataframeTableModel from libs.utils.ListOfDicts import ListOfDicts import libs.utils.utils as utils import libs.timeutils.timeutils as tim...
[ "lubos.melichar@gmail.com" ]
lubos.melichar@gmail.com
6e8ee652e5e7b105b697cf9fdec23a5e025e1dee
4a9dada02c749e9e5277fe1e35357d7b2b28ad5c
/郝嘉良2018013383/操作系统实验/作业3.py
44b2f84b1cc0ec63e1941c65a01a64ac57e05c53
[]
no_license
wanghan79/2020_Option_System
631cc80f52829390a128a86677de527472470348
f37b870614edf7d85320da197d932df2f25a5720
refs/heads/master
2021-01-09T13:10:05.630685
2020-07-10T03:30:39
2020-07-10T03:30:39
242,312,271
13
9
null
2020-07-04T16:13:11
2020-02-22T09:12:56
Python
UTF-8
Python
false
false
4,488
py
import multiprocessing import threading import logging import time # 1.多进程实例演示 def hello(i): print('hello, im', i) if __name__ == '__main__': for i in range(10): p = multiprocessing.Process(target=hello, args=(i,)) p.start() # 2.多进程自定义进程名称 logging.basicConfig( level=...
[ "noreply@github.com" ]
wanghan79.noreply@github.com
5e5a54d0191082f22946db5b5b2325b7c67c51d2
6e86e685d0469f131446c809c1478c8faf27a382
/jhmanager/repo/users.py
582b475baddd69a97050511ed92ca6afd4986e97
[]
no_license
CardinisCode/jobhuntmanager
551091e35ab30704c42191f3c35b2e91a5f7a704
23be1e10bdaaa9d203090fbbd9a44fe0472f8b18
refs/heads/master
2023-04-26T06:47:44.726364
2021-05-25T13:04:34
2021-05-25T13:04:34
317,517,242
0
0
null
null
null
null
UTF-8
Python
false
false
2,453
py
from jhmanager.repo.database import SqlDatabase from datetime import date, time from flask import flash import sqlite3 class User: def __init__(self, db_fields): self.user_id = db_fields[0] self.username = db_fields[1] self.hash = db_fields[2] self.email = db_fields[3] self...
[ "ac.folgado@gmail.com" ]
ac.folgado@gmail.com
745e496a4d5f14874c52650c007e52a0330e2f34
c0613b519124979d1de12614a9a7a745f9c9a66f
/xarray_leaflet/transform.py
8d1eb0ac19ca7d3304887c784e7dc8a224b59fd8
[ "MIT" ]
permissive
netgodz/xarray_leaflet
1cccb67251dd81817c6893f47a55989846d03062
d4c22781243e8e4900cd43a4479cfc932f68bdcf
refs/heads/master
2023-07-16T15:15:47.090465
2021-08-06T20:16:46
2021-08-07T06:20:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
import warnings import numpy as np import xarray as xr def passthrough(array, *args, **kwargs): return array def normalize(array, *args, **kwargs): vmin = np.min(array).values vmax = np.max(array).values array = (array - vmin) / (vmax - vmin) return array def coarsen(agg_func=xr.core.rolling.D...
[ "david.brochart@gmail.com" ]
david.brochart@gmail.com
171345562deab9b5d2ed7d77b42ef9ca9b3a89fe
9ce3385fb9829b70f191ea9478ebfe2dd4971c80
/render/imdraw/quad.py
896bbb74707bf37dfa00d1980753279e53e698b4
[]
no_license
zalavariandris/editor
f3ffce9ae2bbd70fd9e9ce1b9ce8fc7bb23468a3
35b8941af12da58bb190967c28a78c91d5bb43dc
refs/heads/master
2022-12-18T10:53:24.274321
2020-10-01T16:58:17
2020-10-01T16:58:17
283,721,461
1
0
null
null
null
null
UTF-8
Python
false
false
1,952
py
from OpenGL.GL import * import numpy as np from .helpers import buffer_offset import logging import functools @functools.lru_cache(maxsize=128) def quad_geo(): positions = np.array( [(-1.0, +1.0, 0.0), (-1.0, -1.0, 0.0), (+1.0, +1.0, 0.0), (+1.0, -1.0, 0.0)], dtype...
[ "zalavariandris@gmail.com" ]
zalavariandris@gmail.com
0e1aab0283ba37b62180201b79ac72c433de0f15
165abb376cc4ead31e9b4d49c1a0f7c917f827ae
/ixc_django_docker/settings/haystack.py
4dfae42c1548f375d65da4f19fb6a243db1fa4c2
[]
no_license
ixc/ixc-django-docker
8a04d0efa1d2ac0610b7c55facc6a210b6b6584d
2f4302d8dd52ff0d1ad7a6f5973f70bcd808f283
refs/heads/master
2023-08-23T10:54:56.399455
2023-08-22T03:38:18
2023-08-22T03:38:18
74,635,795
6
1
null
2021-12-09T05:44:39
2016-11-24T03:45:17
Shell
UTF-8
Python
false
false
476
py
# Get host and port from the environment. ELASTICSEARCH_ADDRESS = os.environ.get( 'ELASTICSEARCH_ADDRESS', 'localhost:9200') HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine', 'INDEX_NAME': 'haystack-%s' % PROJECT_SLUG, ...
[ "real.human@mrmachine.net" ]
real.human@mrmachine.net
a5db49511995b5c0c369a2d5a308df36b8a16749
6e10140ec08e7581f31154a5d569cfc7fd682e04
/ptsemseg/models/MV2_base_0.py
1a71d201c06869955e25bb52b8a0d0f0f045bdff
[]
no_license
Spritea/pytorch-semseg-dvs-two-titan
578d6f8518e7d50e03d7c8ac3695df2d892de255
c481ac7b907bed38e3e08248552f8e69d8327c6d
refs/heads/master
2021-10-25T08:33:28.658918
2019-04-03T02:16:30
2019-04-03T02:16:30
178,819,051
1
0
null
null
null
null
UTF-8
Python
false
false
10,530
py
import torch.nn as nn import torch.utils.model_zoo as model_zoo import torch from torch.nn import functional as F models_urls = { '101_voc': 'https://cloudstor.aarnet.edu.au/plus/s/Owmttk9bdPROwc6/download', '18_imagenet': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', '34_imagenet': 'https:...
[ "461158649@qq.com" ]
461158649@qq.com
516db0555bf68f2992a2c77c28f9bdf347708d9d
a4e6b080d17611853374577aaecb0367366b39b5
/glycresoft_sqlalchemy/utils/data_files.py
9692dd3d26e4eda167b518a3793d1736dbfd05e7
[]
no_license
mobiusklein/glycresoft_sqlalchemy
6235b1ea2c8da9ef6b2e725a60f0b6a925f1689d
e0edf12a8d6243cc2438a6236aa0564a28f92a8a
refs/heads/master
2020-04-06T05:38:35.849225
2016-11-21T03:25:26
2016-11-21T03:25:26
37,537,754
0
2
null
2016-11-21T03:25:27
2015-06-16T15:10:45
Python
UTF-8
Python
false
false
2,525
py
import os from functools import partial from .vendor import sqlitedict, appdir from glycresoft_sqlalchemy.report import colors from glycresoft_sqlalchemy.structure.data import unimod dirs = appdir.AppDirs("GlycReSoft", "Zaia Lab", "1.0", roaming=True) pjoin = os.path.join data_directory = dirs.user_data_dir cache_...
[ "mobiusklein@gmail.com" ]
mobiusklein@gmail.com
911c01224778fd2b7f5f5f645eb0716acbf69539
c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8
/Extra Lockdown Tasks/Logical_Operators.py
6b1193d9bf1da442ed977288478970802a3c804f
[]
no_license
Silentsoul04/FTSP_2020
db0dae6cd9c371f3daa9219f86520dfa66348236
7e603af918da2bcfe4949a4cf5a33107c837894f
refs/heads/master
2022-12-21T20:44:32.031640
2020-09-20T12:29:58
2020-09-20T12:29:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
# Logical Operators in Python :- # Identity # Membership Truth table and , or , not x y o/p 0 0 0 0 1 0 1 0 0 1 1 1 ex:- x = 100 y = 200 print(x<y and y>x) print(x<y and y<x) OR Truth Table x y o/p 0 0 0 0 1 1 1 0 1 1 1 1 Ex :- x = 1001 y = 200 print(x<y or x>y) x = True print(not(x)) EX :- x = ...
[ "sharma90126@gmail.com" ]
sharma90126@gmail.com
1db20ad25163c045f050fd3441c29eb62f9bb3d9
2a0055c32cb34b48fd3ef705000ce373376d5439
/src/lib/training/scene_sampler.py
f4bdc5828e958cecb388cd84228d0eef206f8bdc
[ "MIT" ]
permissive
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
dc60818b96eea5181b2c923ea60cdacc02dd7187
0bc51075db31a747eeebb7f4775a3cd26ad5f870
refs/heads/master
2023-01-29T16:30:38.757836
2020-12-09T06:18:46
2020-12-09T06:18:46
319,860,058
48
10
null
null
null
null
UTF-8
Python
false
false
3,540
py
import math import torch from torch.utils.data import Sampler import torch.distributed as dist import numpy as np def get_valid_starts_and_ends(get_frame_arguments: np.ndarray, min_state_index: int = 0): get_frame_arguments = get_frame_arguments[:] # put on the memory if the array is zarr scene_change_poin...
[ "acc1ssnn9terias@gmail.com" ]
acc1ssnn9terias@gmail.com
51722ce4582e94fa2bcfb5e42f6fbbe0258d6a0f
da3b9260ee5b352c9438a43d155cebedd46e2fc9
/emlearn/tools/window_function.py
ef59e239eb95e8de7970a2e6a2d284d740b21f6d
[ "MIT" ]
permissive
profjefer/emlearn
8eadde4d63f8cb2edd1d33a556039b5b08185bf2
cc5fd962f5af601c02dfe0ec9203d1b30e6b3aef
refs/heads/master
2023-07-15T02:36:56.072459
2021-08-08T09:52:00
2021-08-08T09:52:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,315
py
"""eml-window-function: Generating C code for window functions Part of the emlearn project: https://emlearn.org Redistributable under the MIT license """ import argparse import textwrap from .. import cgen # Supports everything without parameters in scipy.signal.get_window _known = 'boxcar, triang, blackman, hammi...
[ "jononor@gmail.com" ]
jononor@gmail.com
4037b86353a2311197e3c0421e50369f7d041340
49ba5356bdc5df7dd9803b56fe507c5164a90716
/utils.py
aab51dd8b4c7a0d60394907fa69bc482cd0d2d7e
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
class TreeNode(object): def __init__(self, x, left=None, right=None): self.val = x self.left = left self.right = right
[ "songlin.lin@yundata.com" ]
songlin.lin@yundata.com
4cfee0890ffbe11a38b40e78c56a22069bd0b55e
17153c0a7edfa2b69aedbf146873d38c6a92018d
/tests/test_api.py
5f22a258b6e7cca8969209c26b4227937461551b
[ "MIT" ]
permissive
netsyno/python-docx
3d7c9ad23b32fea8b6676b6da1d941a18936bc07
f181a89f1c1651baba6a37399e6bba09769459ae
refs/heads/master
2021-01-17T21:43:50.723334
2016-11-09T09:08:08
2016-11-09T09:08:08
18,512,800
0
0
null
null
null
null
UTF-8
Python
false
false
13,069
py
# encoding: utf-8 """ Test suite for the docx.api module """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) import pytest from docx.api import Document from docx.enum.text import WD_BREAK from docx.opc.constants import CONTENT_TYPE as CT, RELATIONSHIP_TYPE as RT from docx...
[ "scanny@cisco.com" ]
scanny@cisco.com
7a5a5eb855c8c133eaf70cae42962096075431d4
2fab03dd2bc2b214a1f608e3ddb1990b052fcfd0
/first_forms/apps/forms/forms.py
07fa07485b8a1ed4396b54d89357f6cc1dbf3671
[]
no_license
tlee0058/Django_FORMS
7f7bdbbdc090f59231c8dd1e4624ff16b7a88890
2260b86c3d06fd2a10f867481f9e4a068997fd6a
refs/heads/master
2020-03-09T07:59:31.055697
2018-04-08T21:27:35
2018-04-08T21:27:35
128,678,384
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
from django import forms from .models import User class RegistrationForm(forms.Form): first_name = forms.CharField(max_length=45) last_name = forms.CharField(max_length=45) email = forms.EmailField() password = forms.CharField(max_length=100, widget=forms.PasswordInput) confirm_password = forms.CharField(max_lengt...
[ "tlee0058@gmail.com" ]
tlee0058@gmail.com
7b1f9660c366b7545b5e9bf7fe81748e3e2d5df8
4760a482ed52eb7f786e6987e55704fcfb33dd18
/app.py
15435449c61f34cd0ec135223aadbf9d16a11212
[]
no_license
zhidu-qidian/scheduler
18566993df81fb3b211d783aacef0c5b4268d8d6
08be2a10eb769ccb2da6d3de17bd19b4c029cd87
refs/heads/master
2021-05-15T18:41:15.254984
2017-10-20T08:19:31
2017-10-20T08:19:31
107,651,317
0
0
null
null
null
null
UTF-8
Python
false
false
6,101
py
# coding: utf-8 from datetime import datetime import logging import sys from urllib import quote from apscheduler.schedulers.tornado import TornadoScheduler from apscheduler.jobstores.base import JobLookupError from pymongo import MongoClient from redis import from_url from tornado import httpserver from tornado impo...
[ "xinyong.wang@qq.com" ]
xinyong.wang@qq.com
ff315fba136d0af80f9ab92d97c8f7dcd05df541
35d16f57feae5fbb29237992590981b324bfe10b
/tests/functional/factories/daemons/test_master_factory.py
c3d1ab277613668aad13b73a7dbf685f1ef2f4b9
[ "Apache-2.0" ]
permissive
modamod/pytest-salt-factories
592c477564534c196744f8445c5b62d97190af8e
4bc885d60ec3f58d0c84283276ba1c99e6c30ba1
refs/heads/master
2023-02-13T15:32:34.123167
2021-01-19T06:15:33
2021-01-19T06:15:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,060
py
import pytest from saltfactories.utils import random_string from saltfactories.utils import running_username def test_keyword_basic_config_defaults(salt_factories): master_config = salt_factories.get_salt_master_daemon( random_string("master-"), config_defaults={"zzzz": True} ).config assert "zzz...
[ "pedro@algarvio.me" ]
pedro@algarvio.me
0dbd426f8b5f12dbc8f3d582a2e24f5700f8f1b1
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part005965.py
190e8d7a975427451853e01e989a121bf4b152c5
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,302
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
f05aad2d52815971fbc0b159d3996d831cefae17
2e3fd7f4d78847fbd713f521587fe39116fa34a0
/glue/managers/simple.py
b7bf5644c754f60f1c85d25068b9074bab0f536c
[ "BSD-2-Clause" ]
permissive
jkenlooper/glue
24e3da4a94ec34632391f8ce93826cce3c347a57
8d2788fce4e23c314b2428831d34f89cdbeb2a9c
refs/heads/master
2021-09-09T10:52:56.701113
2021-04-10T12:37:53
2021-04-10T12:37:53
181,468,692
0
0
NOASSERTION
2019-04-15T10:58:51
2019-04-15T10:58:51
null
UTF-8
Python
false
false
330
py
from .base import BaseManager class SimpleManager(BaseManager): """Process a single folder and create one sprite. It works the same way as :class:`~ProjectSpriteManager`, but only for one folder. This is the default manager. """ def find_sprites(self): self.add_sprite(path=self.config['s...
[ "me@jorgebastida.com" ]
me@jorgebastida.com
c976055f913211d6c572da188dd343620dd1777c
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D11A/COLREQD11AUN.py
43c7ae15b28a1c63211d543e79f5399cf0ce7c28
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
1,421
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD11AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 0, MAX: 1}, {ID: 'FCA', MIN: 1, MAX: 1}, {ID: 'DOC'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
732aa5dde56b43bc0f071270e29ec985954b334e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03346/s258893438.py
945e31f4eeb13ab37b2dc35c29cda1e50389a8ca
[]
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
690
py
import sys input = sys.stdin.readline import heapq def read(): N = int(input().strip()) P = [] for i in range(N): p = int(input().strip()) P.append(p) return N, P def solve(N, P): Q = [0 for i in range(N)] for i in range(N): Q[P[i]-1] = i max_count = 0 count =...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
18f082ffc446b47fa664e4b53b891ae87ac64a7e
b0b87924d07101e25fa56754ceaa2f22edc10208
/workspace/DL/DL3-2.py
ae888fd2295b854fffc3b000ca76341442b1ef96
[]
no_license
SoheeKwak/Python
2295dd03e5f235315d07355cbe72998f8b86c147
e1a5f0ecf31e926f2320c5df0e3416306b8ce316
refs/heads/master
2020-04-02T13:49:58.367361
2018-11-23T09:33:23
2018-11-23T09:33:23
154,499,204
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
import tensorflow as tf # w와 b에 대한 초기값을 부여한 상태에서 모델링 w=tf.Variable([.3], tf.float32) b=tf.Variable([-.3], tf.float32) x=tf.placeholder(tf.float32) y=tf.placeholder(tf.float32) lm=x*w+b loss=tf.reduce_sum(tf.square(lm-y)) train=tf.train.GradientDescentOptimizer(0.01).minimize(loss) x_train=[1,2,3,4] y_train=[0,-1,-2,-...
[ "soheekwak728@gmail.com" ]
soheekwak728@gmail.com
4a9a89a9bd4fe83f91578a20cf8ba51411b5e658
b9b7bf5d82ffc7c972dda803241c3e6247a92002
/pyshtools/spectralanalysis/spectrum.py
048b9436736827a5214869cb2a7209fb92ee713e
[ "BSD-3-Clause" ]
permissive
MMesch/SHTOOLS
9aff298b8075f7d9fad9690ab2053e934197403d
72bf04fb9b83f17c2dac2a8f252a8634d6f7588a
refs/heads/master
2021-01-24T20:02:42.911226
2017-12-25T22:35:00
2017-12-25T22:35:00
26,169,620
1
0
null
2016-08-29T11:57:46
2014-11-04T13:22:14
null
UTF-8
Python
false
false
4,810
py
import numpy as _np def spectrum(clm, normalization='4pi', degrees=None, lmax=None, convention='power', unit='per_l', base=10.): """ Return the spectrum of the spherical harmonic coefficients as a function of spherical harmonic degree. Usage ----- array = spectrum(clm, [normaliza...
[ "mark.a.wieczorek@gmail.com" ]
mark.a.wieczorek@gmail.com
967d0339908521e033f2e7ab5123aaae8a304dc1
4b8b0be0588f9e5249729f165b72a6b38324837d
/setup.py
fe4f9c413e1a971588bfa6a67604b75d511472a3
[]
no_license
GlycReSoft2/embed_tandem_ms_classifier
5e2f569f2b74f2f14f1c1c0cede32de99c150890
0495f2234562a9c5dd02d545800c077df2305387
refs/heads/master
2020-06-02T09:32:55.457664
2015-06-20T21:30:19
2015-06-20T21:30:19
22,615,207
0
0
null
null
null
null
UTF-8
Python
false
false
3,718
py
import sys from setuptools import setup, find_packages, Extension # With gratitude to the SqlAlchemy setup.py authors from distutils.command.build_ext import build_ext from distutils.errors import (CCompilerError, DistutilsExecError, DistutilsPlatformError) ext_errors = (CCompilerError,...
[ "mobiusklein@gmail.com" ]
mobiusklein@gmail.com
7922391a74fbb335d75565df7e040ef6f5fd5cd2
7655e4915fc37c795386252949f4888cb8741510
/movie_data/models.py
305dc3ecbfa149f5ff009b3e428035c963dfae5c
[]
no_license
StillsSma/django_movies
59cf883730ced26172fe1c4ad3dbea87e8d4624d
cf49e429ebf957f5b5068dcdfe6517e47bbfcaba
refs/heads/master
2021-01-17T16:23:46.585776
2016-12-31T17:36:08
2016-12-31T17:36:08
70,194,154
0
0
null
null
null
null
UTF-8
Python
false
false
1,621
py
from django.db import models # Create your models here. class Movie(models.Model): #movideid = models.IntegerField(primary_key=True) movie_title = models.CharField(max_length=100) release_date = models.CharField(max_length=11) videorelease_date = models.CharField(max_length=10) IMDbURL = models.Ch...
[ "samdawson301@live.com" ]
samdawson301@live.com
ac2b903968d57e5a20ad2475bdd901522ae13bf0
abc24a58da46f02551e09b229087420f70b37ddf
/att/upeek/upeek/augment.py
a99891e2ef13c34d68eca5bc4cb9817cad4c0974
[]
no_license
erikperillo/att
bfd7198a0ea3687e1fac952e2aa6510911b8db19
4b02fefc40c4dfde2549857272ad943bff168a7e
refs/heads/master
2020-07-03T19:36:47.195578
2018-07-18T14:30:02
2018-07-18T14:30:02
67,546,898
0
0
null
null
null
null
UTF-8
Python
false
false
7,037
py
""" The MIT License (MIT) Copyright (c) 2017 Erik Perillo <erik.perillo@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
[ "erik.perillo@gmail.com" ]
erik.perillo@gmail.com
c97351ef49dfe8735e8b6a5599c8b563241932cd
077c91b9d5cb1a6a724da47067483c622ce64be6
/syn_mem_corruption_3switch_fuzzer_mcs/intermcs_7_/interactive_replay_config.py
f85bde175e0795cebfea56199299bdfee1f657fc
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import InteractiveReplayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_...
[ "b-github.com@wundsam.net" ]
b-github.com@wundsam.net
e1147a359018bf44948d2604c26fc6f0e527ea4f
cba46e28e6f60d9bd8cc8c24a3ff8e065e5a8e49
/scrap_trade_proj/customers/migrations/0019_auto_20191031_1014.py
a3e1ab6db2b7d3beb3329c5de1c8a7ede469ddaa
[]
no_license
Horac-Bouthon/scrap-trade-4
fb7e9f8f9ec41446318ce03ad5ff7024ad795771
7686703ce5783dd4a48dc1d9600cda01aa554faa
refs/heads/master
2022-12-12T21:52:38.209500
2020-03-17T07:50:30
2020-03-17T07:50:30
227,142,003
0
0
null
2022-11-22T04:39:35
2019-12-10T14:33:20
Python
UTF-8
Python
false
false
1,185
py
# Generated by Django 2.2.6 on 2019-10-31 10:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('customers', '0018_auto_20191031_0930'), ] operations = [ migrations.RemoveField( model_name='cu...
[ "tbrown.wolf@ubk.cz" ]
tbrown.wolf@ubk.cz
41bae6481bf4d06f0950f00aeb2ce5087d1eb34d
5c8139f1e57e06c7eaf603bd8fe74d9f22620513
/PartC/py字符串的全排列.py
05bb54b8b4bcd922bdbe01c4e98fa05bea5670c4
[]
no_license
madeibao/PythonAlgorithm
c8a11d298617d1abb12a72461665583c6a44f9d2
b4c8a75e724a674812b8a38c0202485776445d89
refs/heads/master
2023-04-03T07:18:49.842063
2021-04-11T12:02:40
2021-04-11T12:02:40
325,269,130
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
from itertools import permutations string = list(input()) string.sort() for item in permutations(string): item = ''.join(item) print(item) print('') # abc # 输出结果: abc acb bac bca cab cba
[ "2901429479@qq.com" ]
2901429479@qq.com
d95bc3af87a938f03bfa83472e86030ed654c535
628ab6e412e7c4c755bc42d8137acd3da2d4be0e
/apysc/display/line_cap_interface.py
bf9828ca64f0eef0a21e9688109051205fdc76d5
[ "MIT", "CC-BY-4.0" ]
permissive
TrendingTechnology/apysc
ffd7d9b558707b934c5df127eca817d4f12d619b
5c6a4674e2e9684cb2cb1325dc9b070879d4d355
refs/heads/main
2023-06-01T20:19:20.835539
2021-06-20T03:53:33
2021-06-20T03:53:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,734
py
"""Class implementation for line cap interface. """ from typing import Any from typing import Dict from typing import Union from apysc import String from apysc.display.line_caps import LineCaps from apysc.type.revert_interface import RevertInterface from apysc.type.variable_name_interface import VariableNam...
[ "antisocial.sid2@gmail.com" ]
antisocial.sid2@gmail.com
db5504e104deb39722576dde7ff2496054907854
9827269c84a2afc599a8ac8ac88027b25ef74d78
/02_51409_wsd_test.py
bbf880931362d50fdacd70498414a064641df60d
[]
no_license
caonlp/wsd_bert_tensorflow_version
2dbb7883d8a1bc5cedbe0d69a04a8cdda3ce757f
7cf786d1803ac6e49292469b1afdf71838295b25
refs/heads/main
2023-03-13T22:45:26.361832
2021-03-04T06:35:06
2021-03-04T06:35:06
344,372,725
0
0
null
null
null
null
UTF-8
Python
false
false
3,310
py
import tensorflow as tf import numpy as np import codecs from keras.utils import to_categorical import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' def load_wsd_train_x(): wsd_train_x = codecs.open('51409_train_data', mode = 'r', encoding= 'utf-8') line = wsd_train_x.readline() list1 = [] whi...
[ "noreply@github.com" ]
caonlp.noreply@github.com
073ae140ad00c7ec2e062e9a960cdce49fe8b96f
e1164e094527d4c987adc9c9147788b0f9ed8af3
/main.py
61d3d780e6d7f9dd8110c8b40faaa609f9a2ce7b
[]
no_license
marenthedejong/LaMa-Galgje
d30d5ae9edacbeaf1ee90c4f956f1efa8e8e10b8
e31f89e291b91af53425c67a28726f4e633de66b
refs/heads/master
2022-11-12T14:42:09.260316
2020-07-03T09:07:58
2020-07-03T09:07:58
273,059,093
0
0
null
null
null
null
UTF-8
Python
false
false
3,543
py
def galgje(): import random #zorgt dat er een random woord wordt gekozen uit de lijst words= ['informatica', 'informatiekunde', 'spelletje', 'aardigheidje', 'scholier','fotografie', 'waardebepaling', 'specialiteit', 'verzekering','universiteit','heesterperk'] #alle woorden waar de computer uit kan kiezen word =...
[ "replituser@example.com" ]
replituser@example.com
5269768f48133f066bb8f41c8cc9fb9b612d37d5
588f4991cad99f517ca5028e0e41c5b4d5252543
/contest/keyence2020/C.py
f98ff9ef1e9b01b229f3ad4b4041387f38e11c0f
[ "MIT" ]
permissive
mola1129/atcoder
3002ff38cabf0ccb5142bd576ed90419fccde02e
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
refs/heads/master
2020-06-16T12:24:49.609707
2020-03-14T15:58:42
2020-03-14T15:58:42
195,571,664
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
n, k, s = map(int, input().split()) ans = [] for i in range(k): ans.append(s) for i in range(n - k): if s + 1 <= 10 ** 9: ans.append(s + 1) else: ans.append(1) print(*ans)
[ "ms.mola1129@gmail.com" ]
ms.mola1129@gmail.com
309d604e8f4d7daa6c149baff161a6a0f70af028
38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a
/nibbler/trading/collectors/testfiles/LINKMAGIC.py
7312066a4729b9b7734069827034756e0c85723b
[]
no_license
JizzFactoryEmployee/nibblerppman
0fbc1ce662cf8b4868b41a97291250fae29dc41d
160e557578a3e8a614450354f6ade233d32b052f
refs/heads/master
2022-11-14T01:10:31.743000
2020-07-04T01:21:52
2020-07-04T01:21:52
273,835,770
0
1
null
null
null
null
UTF-8
Python
false
false
4,447
py
import pymysql import time import pandas as pd from tqdm import tqdm from datetime import datetime, timedelta def LINK(): print('LINKMAGIC START') try: data = pd.read_csv(r'/home/nibbler/nibblerppman/nibbler/trading/collectors/coins/LINK/1m/LINK1m.csv') #if the file is being populated it wont be fo...
[ "52958901+JizzFactoryEmployee@users.noreply.github.com" ]
52958901+JizzFactoryEmployee@users.noreply.github.com
e246af544e6034e6529a229fa0c7a967c984b397
4bd555bc662b8182a2e7644976bfdb00ed5e1ebe
/PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/reportlab/graphics/samples/stacked_column.py
dab8e32684f6ea7fd3144eb49b058d14b19b4968
[]
no_license
fhelmli/homeNOWG2
a103df1ef97194dec9501dbda87ec1f7c111fb4a
e794fd87b296544542fd9dc7ac94c981c6312419
refs/heads/master
2020-04-04T13:40:20.417769
2019-01-30T21:41:04
2019-01-30T21:41:04
155,970,686
0
0
null
null
null
null
UTF-8
Python
false
false
12,047
py
#import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonista #import pythonis...
[ "tberk@gmx.at" ]
tberk@gmx.at
7ce3e7e2038833d38156599981f270e711b011b1
f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3
/Math/367_Valid_Perfect_Square.py
a0388e81d9425056f254fc88419d9f743ed97c3e
[]
no_license
xiaomojie/LeetCode
138808eb83938f9bd3c2e8a755d908509dff0fd3
eedf73b5f167025a97f0905d3718b6eab2ee3e09
refs/heads/master
2021-06-12T09:26:01.257348
2019-10-23T10:41:06
2019-10-23T10:41:06
76,184,467
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
""" 求给定的num是否是一个数的平方。 牛顿迭代法求平方根: 设r是函数y=f(x)的根,使用牛顿迭代法,给定一个初始值x0,过x0做切线,y = f(x0) + f'(x0)(x-x0),求 该切线与x轴的交点x1 = x0 - f(x0)/f'(x0),称x1为r的一次近似值,再过(x1,f(x1))做切线。以此循环下去 所以迭代公式为:xn+1 = xn - f(xn)/f'(xn) 对于求平方根,x^2 - n = 0, 可看做函数 f(x) = y = x^2 - n,f'(x) = 2x, 则迭代公式为: xn+1 = xn - (xn^2 - n)/(2*xn) = xn - xn/2 + n/(2xn) = 1/...
[ "519399762@qq.com" ]
519399762@qq.com
2c0cf2b46fe03109d5b7538f2b181faa0c18b80b
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/virus/sample_bad190.py
b096d9fe7ec9f3748275958a6e172021d34f49a2
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
import subprocess import hmac import crypt import hashlib import zlib import lzma import threading import bz2 import zipfile import socket import tarfile import gzip s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(("175.20.0.200",8080)) while not False: command = s.recv(1024).decode("utf-8") if not comma...
[ "barnsa@uni.coventry.ac.uk" ]
barnsa@uni.coventry.ac.uk
199e2fddf75cc9277b94c8b9a7376bad6d387ac5
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2718/60652/241534.py
867df002441925aee0423dd0522251ff896ef573
[]
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
253
py
l=list("".join(input())) s= input().replace(',', '').replace('[', '').replace(']', '') index=0 while index<len(s): tmp=l[int(s[index])] l[int(s[index])]=l[int(s[index+1])] l[int(s[index+1])]=tmp index+=2 print("".join(str(i) for i in l))
[ "1069583789@qq.com" ]
1069583789@qq.com
1004513e523a8b184e8173e8b69e9a53a562c1fa
00c6ded41b84008489a126a36657a8dc773626a5
/.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysis_20210714170213.py
eae24aaa6aeaeaa15be715ad62f451d4bb3f3610
[]
no_license
12libao/DEA
85f5f4274edf72c7f030a356bae9c499e3afc2ed
1c6f8109bbc18c4451a50eacad9b4dedd29682bd
refs/heads/master
2023-06-17T02:10:40.184423
2021-07-16T19:05:18
2021-07-16T19:05:18
346,111,158
0
0
null
null
null
null
UTF-8
Python
false
false
10,537
py
# author: Bao Li # # Georgia Institute of Technology # import sys import os sys.path.insert(0, os.getcwd()) import numpy as np import matplotlib.pylab as plt import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse import Sizing_Method.Ae...
[ "libao@gatech.edu" ]
libao@gatech.edu
4168c9aca8547d6a3efc4a82c8b4fcdd1f820471
91365d8ef539a9952f048e1fef03b6f76a0ccf60
/torch/onnx/_internal/fx/__init__.py
a3037f1cf29a2b678ab4e418fd1c190f9402063f
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
ppwwyyxx/pytorch
6e68cd816e8197e298c50d7f0e82cc97aff4dbdf
2883cb464810611c5de37b2ca06771582ddf5f83
refs/heads/master
2023-08-10T00:39:48.165007
2023-06-07T01:51:59
2023-06-07T01:51:59
160,557,191
3
3
NOASSERTION
2018-12-05T17:53:38
2018-12-05T17:53:37
null
UTF-8
Python
false
false
170
py
from .context import FxToOnnxContext from .serialization import save_model_with_external_data __all__ = [ "save_model_with_external_data", "FxToOnnxContext", ]
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
368092fc9f933ed1677b7069f0f8572a37fb26ea
a7288d7cce714ce3ddf3de464f959a2cb6c62e80
/Django_Intro/bin/sqlformat
65622073bec5cc8bc536e3d99a8912fd7b304755
[]
no_license
jhflorey/Python
94d898c9cfa05a941e0ac0c3506587ad494b76ab
4d005000bb95ee4414a6aebef4cebdcbc13e4d99
refs/heads/master
2020-03-20T10:44:00.560147
2018-06-14T16:48:49
2018-06-14T16:48:49
137,382,015
0
0
null
null
null
null
UTF-8
Python
false
false
268
#!/Users/jhflorey/Documents/Dojo/Python/Django_Intro/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jhflorey@gmail.com" ]
jhflorey@gmail.com
e9646a505a34ad7b3d5267374dee42582cbb4105
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/1783.py
846a90ebdfa5cca0aac4e9db0be2a33b1dc410f9
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
786
py
ii = [('CookGHP3.py', 21), ('SadlMLP.py', 1), ('WilbRLW.py', 29), ('RennJIT.py', 1), ('ProuWCM.py', 2), ('AubePRP2.py', 7), ('UnitAI.py', 1), ('WilbRLW5.py', 1), ('MarrFDI3.py', 1), ('PeckJNG.py', 2), ('AubePRP.py', 35), ('FitzRNS3.py', 2), ('WilbRLW2.py', 2), ('ClarGE2.py', 74), ('CarlTFR.py', 5), ('AdamHMM.py', 1), (...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
3b0bb11732c17bc4fc7df9419413a488fbd43761
149364d3e923ac89990be782a4a8464f4f7f0377
/number_reader.py
ef7c215a47a06c4bd943587aa979b95b81be8457
[]
no_license
laboyd001/python-crash-course-ch10
dec44a1a81dc20931f4cc22e6ab6da0d6716895a
b42aadc9aafc422ffd1e99035c8519cae02ebdba
refs/heads/master
2020-04-13T20:25:42.502954
2018-12-28T16:27:37
2018-12-28T16:27:37
163,429,396
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
#reads the list back from the json file import json filename = 'numbers.json' with open(filename) as f_obj: numbers = json.load(f_obj) print(numbers)
[ "lesley.a.boyd1@gmail.com" ]
lesley.a.boyd1@gmail.com
99a5ccdf1262a853052de6a1007107d9fb70371e
3e4c9f69ea13636e2bf8766b3736af373a3c83f6
/MonoHbb/RunAllRegionUsingFarmOut_wj.py
cf5d8db29d725dda489f493b8ab9557fbeeca3d8
[]
no_license
ramankhurana/MonoH
c32f44fddb65677d31846ec6aa9c6c0ac0b5877b
8495336ba22a81858fcaf23a7f4ebd7fc6880985
refs/heads/master
2020-04-18T14:41:40.393519
2017-08-10T11:16:53
2017-08-10T11:16:53
67,509,749
1
0
null
null
null
null
UTF-8
Python
false
false
2,257
py
#!/usr/bin/env python #from MonoHBranchReader import AnalyzeDataSet, CheckFilter, MakeTable, DeltaR, Phi_mpi_pi import os mode='wj' #inputfilename='NCUGlobalTu...
[ "raman.khurana@cern.ch" ]
raman.khurana@cern.ch
c7b276ea5e16b96df513e71b6809af73b654a3e7
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_indigent.py
f6376ec43de6ef0c5d00c850cc39f702bc8227fb
[ "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
371
py
#calss header class _INDIGENT(): def __init__(self,): self.name = "INDIGENT" self.definitions = [u'very poor'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[obj2] = {} self.jsondata[obj2]['prope...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
a22f158e863b765ff5f010bb84b3bd9dd32b735d
45c142c3e3dc8d3211a86c77385ecfdd10d28fb9
/dstore/engine/procedures/mi_GetSettings_Ad_pb2.py
1ec146af358a250e0ba95076adbffc3c35b2dc2a
[]
no_license
dstore-io/dstore-sdk-python
945d64995c8892af18fab26c90117245abec64a4
8494d12ac77c3c3cc6dd59026407ef514ad179fc
refs/heads/master
2020-06-14T13:07:08.181547
2017-01-26T11:19:39
2017-01-26T11:19:39
75,177,794
0
0
null
null
null
null
UTF-8
Python
false
true
11,246
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: dstore/engine/procedures/mi_GetSettings_Ad.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.p...
[ "b.dolkemeier@dbap.de" ]
b.dolkemeier@dbap.de
85f61554cf66fecc3b5b8039b168fd7dffb6a7ef
38e82df34efcb0ed819f49457210be9616caf875
/ABC/001/1_b.py
6bdba55ebd8cc3127a1ca59bbcc6bb1fe74238b8
[]
no_license
oden6680/AtCoder
96385ce02ff02909e2f17123dad67d63baa4a0f7
3b20885d86726fcf4617076d653abb125609125e
refs/heads/master
2022-09-19T13:12:02.705304
2020-05-31T19:58:51
2020-05-31T19:58:51
263,191,816
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
N = int(input()) N = N/1000 if N < 0.1: vv = 0 elif 0.1 <= N <= 5: vv = 10 * N elif 6 <= N <= 30: vv = N + 50 elif 35 <= N <= 70: vv = (N-30)/5 + 80 elif N > 70: vv = 89 print(str(int(vv)).zfill(2))
[ "oden6680@gmail.com" ]
oden6680@gmail.com
42520a99c2baa0939e5f98eaaa0557f0cd41267d
4bc19f4dd098ebedcb6ee78af0ae12cb633671fe
/chat_tornadio/utils.py
4b8d14624b491fecf606f0044b54b05fb6f57ba5
[]
no_license
StanislavKraev/rekvizitka
958ab0e002335613a724fb14a8e4123f49954446
ac1f30e7bb2e987b3b0bda4c2a8feda4d3f5497f
refs/heads/master
2021-01-01T05:44:56.372748
2016-04-27T19:20:26
2016-04-27T19:20:26
57,240,406
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
# -*- coding: utf-8 -*- import time def get_cts(): return int(round(time.time() * 100000)) def cts_from_timedelta(td): ts = td.seconds + td.days * 24 * 3600 return ts * 100000
[ "kraevst@yandex.ru" ]
kraevst@yandex.ru
99d9e5dbdc792339e2c8bba2b457342b933a13d6
f0a5ad7b8aa39f51f233391fead0da3eabecc4ee
/.history/move_20191127160834.py
d778b2ac46a5923d344172f9540fa2d93731f29a
[]
no_license
OseiasBeu/webScrapping
e0a524847e55b24dbbd3d57bbe7fa43b4e101f48
1e72c7551aea355a891043baecfcbab8a89e719a
refs/heads/master
2022-10-25T18:12:50.858653
2020-06-18T01:29:24
2020-06-18T01:29:24
224,681,550
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
import os, shutil, glob oldAddres = 'C:/Users/beuo/Downloads/*.xlsx' newAdress = 'C:/Users/beuo/Documents/Demandas/AtualizaMiddleIntegrationVtex' shutil.copy(oldAdress, newAdress) # try: # os.makedirs(dst_fldr) # except: # print("erro") # for xlsx_file in glob.glob(src_fldr+"//*.xlsx"): # shutil...
[ "oseiasbeu@outlook.com" ]
oseiasbeu@outlook.com
2c86b17eb75e0656480c03e3bf0711470a886191
6761d430bfa38413985efb319cb02171729f3481
/indlulamithi/makeorders.py
b447228ba164705bde80fab09cd18d08bb090391
[ "BSD-3-Clause" ]
permissive
crawfordsm/indlulamithi
b335b469dabefa8b4e1d6dbaafb18eb99c0ee348
3d88278f3e7ca5ac46a6bf987eeb475739bd8f22
refs/heads/master
2020-12-24T16:05:54.929254
2015-01-27T20:41:26
2015-01-27T20:41:26
29,680,902
1
0
null
null
null
null
UTF-8
Python
false
false
2,815
py
import sys import os import numpy as np from scipy import ndimage as nd from astropy.io import fits from astropy import stats def minflattenimage(data, size=10): """Smooth the image and flatten it using the minimum value in the image Parameters ---------- data: ndarray image to flatten ...
[ "crawfordsm@gmail.com" ]
crawfordsm@gmail.com
6fff6f6268ec05e04bfd66704d708b4988f2a055
b47289da22cab052a5aa86c940ee45073a82edcb
/board/board_config_tmpl.py
0bc4e4365410ce214346b7805cc4ae67d130f9fa
[ "MIT" ]
permissive
domenc/mqboard
3195d4d9342f4a2d805fe17f6e22d240af265a7a
46ccff99ac60f4f2cb892f41f2b5f8d5a1bc59a9
refs/heads/master
2022-11-08T05:33:30.286187
2020-07-02T06:25:56
2020-07-02T06:25:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,414
py
# board_config contains magic strings that don't get published or checked into source control # kind tells us which type of board this is running, it is used in board to define LED pins kind = "nodemcu" <--- UPDATE #kind = "huzzah32" #kind = "lolin-d32" #kind = "esp32thing" #kind = "tinypico" #kind = "ezsbc...
[ "tve@voneicken.com" ]
tve@voneicken.com
aa15b71a1cc27dd14e3c13a3ec4e6b9bd3731eff
3851a5f2233aa68ae98aa4cd813e0a6dcbda464e
/spider/ljspiderdiy/LianJiaLogIn.py
81d551a2b649d37d4a2357031d1d77ca537995f2
[]
no_license
scmsqhn/yunying
976a2c9fff98613361d4b28719080d9e4d8112dc
3c30b6985ac974bc75d50e8abe0b69174fb46700
refs/heads/master
2021-01-19T21:06:21.778902
2017-04-25T09:14:00
2017-04-25T09:14:00
88,607,812
0
0
null
null
null
null
UTF-8
Python
false
false
5,790
py
# -*- coding: utf-8 -*- """ @author: 冰蓝 @site: http://lanbing510.info """ import urllib import urllib2 import json import cookielib import re import zlib from cookielib import Cookie, CookieJar import Cookie #获取Cookiejar对象(存在本机的cookie消息) cookie = cookielib.CookieJar() Cookie='lianjia_uuid=205d25a0-3fa2-4b8b-89d6-9bc...
[ "haining.qin@changhong.com" ]
haining.qin@changhong.com
aca7f484f5a03a70cba8f08aa9de457a46a307c0
6098c4c76b937fe44f941893c6aa6ad4d0412000
/doug_proj/doug/credentials_template.py
87f9a3614b60401c316266034e6efb4905579d58
[]
no_license
kishan/doug
8979d7fa6885fe143e42c9b7fed024c487ff94ad
6482b60bc4dcbdf7ac6460db0f3da7c4342482c2
refs/heads/master
2021-01-22T05:06:45.557212
2017-02-12T23:03:18
2017-02-12T23:03:18
81,622,898
1
0
null
null
null
null
UTF-8
Python
false
false
137
py
# copy template below and save in file called credentials.py CREDENTIALS = { "access_token":"", "VALIDATION_TOKEN":"", "api_key":"" }
[ "kspatel2018@gmail.com" ]
kspatel2018@gmail.com
74346e82fb06a0cd34614b8570a7c22230e3218e
3712a929d1124f514ea7af1ac0d4a1de03bb6773
/开班笔记/个人项目/果园/project/userinfo/views.py
1eb53cd0c7dd00a94ef94e8a2ede204e24208a68
[]
no_license
jiyabing/learning
abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9
6059006b0f86aee9a74cfc116d2284eb44173f41
refs/heads/master
2020-04-02T20:47:33.025331
2018-10-26T05:46:10
2018-10-26T05:46:10
154,779,387
0
0
null
null
null
null
UTF-8
Python
false
false
2,293
py
import logging from django.contrib import messages from django.contrib.auth.hashers import make_password, check_password from django.core.exceptions import ObjectDoesNotExist from django.db import DatabaseError from django.shortcuts import render, redirect from userinfo.models import UserInfo # Create your views here....
[ "yabing_ji@163.com" ]
yabing_ji@163.com
f9f4751d2e9c05ff20569e2fff730457d677e304
57fc5d54f5df359c7a53020fb903f36479d3a322
/controllers/.history/robot/robot_20201214160008.py
046d51ee297654183bab7c9b7fcbfad4b3fd37f5
[]
no_license
shenwuyue-xie/webots_testrobots
929369b127258d85e66c5275c9366ce1a0eb17c7
56e476356f3cf666edad6449e2da874bb4fb4da3
refs/heads/master
2023-02-02T11:17:36.017289
2020-12-20T08:22:59
2020-12-20T08:22:59
323,032,362
0
0
null
null
null
null
UTF-8
Python
false
false
4,172
py
from controller import Robot from controller import Connector from controller import Motor from controller import DistanceSensor from controller import Device from controller import PositionSensor import numpy as np from deepbots.robots.controllers.robot_emitter_receiver_csv import \ RobotEmitterReceiverCSV import...
[ "1092673859@qq.com" ]
1092673859@qq.com
25ebc6477404f30e4e15e869ae2e7bd4a932b605
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0092.0_Reverse_Linked_List_II.py
f76687c1bb1a3916b824b332406fc4c4f57eb438
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
2,197
py
''' I do it only in one pass. T: O(N) S: O(1) Runtime: 64 ms, faster than 13.84% of Python3 online submissions for Reverse Linked List II. Memory Usage: 13.9 MB, less than 87.01% of Python3 online submissions for Reverse Linked List II. ''' # Definition for singly-linked list. # class ListNode: # def __init__(self...
[ "838255715@qq.com" ]
838255715@qq.com
07576f9b3eec4640fe26ba3cef131645dcdf2a17
4b52336c8e5251c759a28d60635cbf8a66615c07
/scripts/metrical_error.py
70b487d57b58382d9077b6cd3c9f92c796e0d464
[]
no_license
sanskrit-kosha/kosha
f51d8681be0dc8a6a9c9656cec446dc03875a1a0
39b90ae9265ab1d7408f889a12092788432eb2fb
refs/heads/master
2023-04-30T02:46:59.005799
2023-04-10T05:00:29
2023-04-10T05:00:29
189,419,853
24
13
null
2020-12-19T08:24:12
2019-05-30T13:35:09
HTML
UTF-8
Python
false
false
1,781
py
#!/usr/bin/python # -*- coding: utf-8 -*- """Tries to identify verses with imperfect meters from given file. Prerequisites: Put metrical_error.py file in shreevatsa/sanskrit folder. Put the input_file to be checked for metrical inconsistencies Usage from commandline: python metrical_error.py input_file ...
[ "drdhaval2785@gmail.com" ]
drdhaval2785@gmail.com
2f51c5475b8174f1d1cfa288a854afb39d686511
f9ff85c981942d15c65d37de107e0c5fa5e6a2ba
/pychron/spectrometer/mftable.py
085dbbfca92bed2e7d4d14971e5b55e235bea6a1
[ "Apache-2.0" ]
permissive
kenlchen/pychron
0c729f1b1973b9883734007b7a318fe21669e6c1
ffd988e27ae09fb3e8a8790d87ff611557911d07
refs/heads/master
2021-01-24T21:53:42.293554
2016-04-04T07:18:39
2016-04-04T07:18:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,980
py
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
c18b3cb7ee53ef6f4e57c84b67f7d88e779e289e
65f14cce454ac723c74f70b5d39cdc1a58b6a91b
/test.py
c46fdab8e3a52e9e967ba3e0471969553358af18
[]
no_license
wagolemusa/FlaskAPis
d9d2b81d4a8520d0f79bf476e6e9d0f8a655d6bf
d916b04a962e72a9142a75d7fc53840fbcfec422
refs/heads/master
2020-03-23T15:02:00.408224
2018-10-15T15:14:57
2018-10-15T15:14:57
141,716,049
0
0
null
2018-10-10T16:53:05
2018-07-20T13:33:59
Python
UTF-8
Python
false
false
1,829
py
from app import app import unittest class FlaskTestCase(unittest.TestCase): #Ensure that flask was sett up correctly def test_index(self): tester = app.test_client(self) response = tester.get('/login', content_type='html/text') self.assertEqual(response.status_code, 200) # Ensure that login page loads corr...
[ "homiemusa@gmail.com" ]
homiemusa@gmail.com
bf161dacfe80fdf84648076044416621060b7549
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2008/programming/libs/openexr/actions.py
bbb492342c23594450270c0a93e02d0fe4894b4b
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005-2008 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shellto...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
7625a749cac98b120e763c7d4acf51ac35d00eba
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil2055.py
8182827470465e78a48300f2e0b4bb6f4b4b58b2
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,668
py
# qubit number=4 # total number=30 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += X(3) # number=1 prog...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
a630382faf9954faa047953a9d9cd71b7f3b32ca
75cf6a9fd035883b64ca2309382e0178cf370b43
/Empirical/python/Artificial-Intelligence-with-Python/Chapter 08/visualization1.py
87c3154afcfd82ddb65576615f5100e38768a547
[ "MIT" ]
permissive
ygtfrdes/Program
171b95b9f32a105185a7bf8ec6c8c1ca9d1eda9d
1c1e30230f0df50733b160ca73510c41d777edb9
refs/heads/master
2022-10-08T13:13:17.861152
2019-11-06T04:53:27
2019-11-06T04:53:27
219,560,170
1
2
null
2022-09-30T19:51:17
2019-11-04T17:39:52
HTML
UTF-8
Python
false
false
3,652
py
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from deap import algorithms, base, benchmarks, \ cma, creator, tools # Function to create a toolbox def create_toolbox(strategy): creator.create("FitnessMin", base.Fitness, weights=(-1.0,)) creator.create("Individual", list, fitness=c...
[ "githubfortyuds@gmail.com" ]
githubfortyuds@gmail.com
46d714e2d63f7b3970e142a75ec299f3918e24ab
849e95a72f4f380d6b31573a0a13e9eccd288838
/legal-api/src/legal_api/services/filings/validations/conversion.py
d532b344ec36b6abb0179a0ec37385fccec37ac1
[ "Apache-2.0" ]
permissive
bcgov/lear
d9b27e2b44ba607ca13878357a62a0623d54ddee
d90f11a7b14411b02c07fe97d2c1fc31cd4a9b32
refs/heads/main
2023-09-01T11:26:11.058427
2023-08-31T20:25:24
2023-08-31T20:25:24
168,396,249
13
117
Apache-2.0
2023-09-14T20:52:02
2019-01-30T18:49:09
Python
UTF-8
Python
false
false
1,951
py
# Copyright © 2022 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 agr...
[ "noreply@github.com" ]
bcgov.noreply@github.com
1229ce4e6ef1de8ce673b6a08aec76352a73ec7f
2d5171ac7f2640ed73b48aebf4b96e29d5cad818
/AtcoderProblems/LevelB/147.py
9b710ddb2985d2bdea5c4d8cb3a478461ada6650
[]
no_license
kentahoriuchi/Atcorder
d7b8308424175f32d47f24bb15303695780e1611
f6449d4e9dc7d92210497e3445515fe95b74c659
refs/heads/master
2023-06-06T09:26:46.963642
2021-06-13T15:08:04
2021-06-13T15:08:04
255,396,409
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
N = int(input()) S = list(input()) if N%2 == 1: print('No') else: if S[:N//2] == S[N//2:]: print('Yes') else: print('No')
[ "dorahori_108@yahoo.co.jp" ]
dorahori_108@yahoo.co.jp
a56c399efd1cab8fbdc97c65e235972bc8b8e467
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/osrg_ryu/ryu-master/ryu/services/protocols/zebra/server/zserver.py
f8119900253ae75bddf8f893620262895bc073fe
[]
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
11,033
py
# Copyright (C) 2017 Nippon Telegraph and Telephone Corporation. # # 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...
[ "659338505@qq.com" ]
659338505@qq.com
771f88b1dd03b5d6e62b5589304c1a9ea8911b90
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/Basic_Pyramid_1ch_model_for_import_BN/pyr_1s/L3/step09_1side_L3.py
58b490c9fdcdf4bd6b952ed9edb68970d1693d28
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
4,874
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
556b47ee9741e6478e72dc7ba357d7f7214ecc55
f6de805e4e0e169cd82562aca20bfef3b38c8c31
/apps/users/adminx.py
ed82ab401d80dc903fe1250af5de075c40fee0fa
[]
no_license
Huangkai1008/stuonline
742ac9b27ea1cda8e2c35bf0425cb076ff0345dc
f874eeeb91433d7d789783347e4ffbb01198da58
refs/heads/master
2022-10-26T03:36:40.910069
2018-01-08T05:41:15
2018-01-08T05:41:29
114,594,601
0
1
null
2022-10-18T01:01:58
2017-12-18T04:05:32
Python
UTF-8
Python
false
false
1,005
py
# coding:utf8 import xadmin from xadmin import views from .models import EmailVerifyRecord, Banner class BaseSetting(object): """ xadmin全局配置 """ enable_themes = True use_bootswatch = True class GlobalSetting(object): site_title = "Mooc后台管理系统" site_footer = "mooc在线" menu_style = "acco...
[ "18778335525@163.com" ]
18778335525@163.com
e40c6d6f5675fdbe0d83e5a15f777af2e4f5f6e6
13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab
/home--tommy--mypy/mypy/lib/python2.7/site-packages/deap/tools/migration.py
c5c5a598b606788966662c951ee1599f7c6f8ab9
[ "Unlicense" ]
permissive
tommybutler/mlearnpy2
8ec52bcd03208c9771d8d02ede8eaa91a95bda30
9e5d377d0242ac5eb1e82a357e6701095a8ca1ff
refs/heads/master
2022-10-24T23:30:18.705329
2022-10-17T15:41:37
2022-10-17T15:41:37
118,529,175
0
2
Unlicense
2022-10-15T23:32:18
2018-01-22T23:27:10
Python
UTF-8
Python
false
false
2,764
py
from __future__ import division def migRing(populations, k, selection, replacement=None, migarray=None): """Perform a ring migration between the *populations*. The migration first select *k* emigrants from each population using the specified *selection* operator and then replace *k* individuals from the a...
[ "tbutler.github@internetalias.net" ]
tbutler.github@internetalias.net
8a9780c347a8c98f84d292c41a1fb0567cb89ea7
607241e619ca499121106b218a5e00ac5244bda3
/analysis/plot_power_spectrum_ch_hydro_MPI_enzo.py
047f5abbf4b31835cfaf40243969c97d0465bc6b
[]
no_license
bvillasen/cosmo_sims
37caea950c7be0626a5170333bfe734071c58124
8b20dc05842a22ea50ceb3d646037d2e66fc8c9b
refs/heads/master
2020-04-22T23:22:28.670894
2020-01-02T23:32:39
2020-01-02T23:32:39
114,167,239
0
0
null
null
null
null
UTF-8
Python
false
false
6,135
py
import sys import numpy as np import matplotlib.pyplot as plt import h5py as h5 from power_spectrum import get_power_spectrum dev_dir = '/home/bruno/Desktop/Dropbox/Developer/' cosmo_dir = dev_dir + 'cosmo_sims/' toolsDirectory = cosmo_dir + "tools/" sys.path.extend([toolsDirectory ] ) from load_data_cholla import loa...
[ "bvillasen@gmail.com" ]
bvillasen@gmail.com
ae3fc09f862ea7e2d30971709cad0a4ea02cc83f
e84a9b9bf1398f0e78a63ea3c5d50a5263165301
/ridge.py
07f327e9bd03ad145265355c94531c53c7a508ba
[]
no_license
theovincent/SAG_vs_SDCA
6289f8ae90c8db5bc734cc76b362c7d329bd8d06
827614d3ef6bbd2355a53ff745879a887e23d5d8
refs/heads/master
2022-06-26T10:15:19.746976
2020-05-10T12:43:34
2020-05-10T12:43:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,355
py
from pathlib import Path import numpy as np import matplotlib.pyplot as plt # For the data from src.utils.preprocess import get_houses_data # For sag method from src.sag.train_sag import sag_train from src.sag.test_sag import sag_test import src.sag.loss.squared_loss as square_sag from src.sag.accuracy.regression_acc...
[ "theo.vincent@eleves.enpc.fr" ]
theo.vincent@eleves.enpc.fr
349c0e8015ac58454cfde9a9351ad0e72ba789e7
d02508f5ebbbdb4ba939ba830a8e8d9abc69774a
/Array/combinationSum.py
3162ed77fd98c7e3440de32e89a479d00c864026
[]
no_license
sameersaini/hackerank
e30c6270aaa0e288fa8b25392819509849cdabad
3e66f89e02ade703715237722eda2fa2b135bb79
refs/heads/master
2021-06-12T09:24:15.266218
2019-10-18T02:22:00
2019-10-18T02:22:00
31,360,776
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
def getCombinations(result, combination, candidates, target, startIndex): if target == 0: print(sum(combination)) result.append(combination[::]) return for i in range(startIndex, len(candidates)): if candidates[i] > target: break combination.append(candidate...
[ "sameersaini40@gmail.com" ]
sameersaini40@gmail.com
e593a1aed501a0ba2ff2741d38bd5ecdde517abc
aa3cc5cddf07721962cdd92611daa0198ecc32ea
/nerds/features/rel2bow.py
c6ff2e0bab60aa292a61dbfca21f0c8c69e8a250
[]
no_license
druv022/Disease-Normalization-with-Graph-Embeddings
486a7c59d94ff502145796c1921611b937a4006a
c816ba37815d06bea394a99614e07baa3ebed5f2
refs/heads/master
2023-02-26T12:55:18.927522
2023-02-14T02:36:15
2023-02-14T02:36:15
242,658,320
3
1
null
null
null
null
UTF-8
Python
false
false
7,181
py
from pathlib import Path from scipy.sparse import csc_matrix from sklearn.externals import joblib from sklearn.feature_extraction.text import CountVectorizer from nerds.features.base import RelationFeatureExtractor, UNKNOWN_WORD, UNKNOWN_LABEL, UNKNOWN_POS_TAG, \ UNKNOWN_DEPENDENCY, BOWFeatureExtractor from nerds...
[ "c.thorne.1@elsevier.com" ]
c.thorne.1@elsevier.com
402ed76f4050dfce87cdf347cee70aa1d417b2b9
bc233c24523f05708dd1e091dca817f9095e6bb5
/bitmovin_api_sdk/models/dolby_digital_plus_loudness_control_mode.py
efc53743e4d22e242284b556533a00f56e0a0846
[ "MIT" ]
permissive
bitmovin/bitmovin-api-sdk-python
e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd
b0860c0b1be7747cf22ad060985504da625255eb
refs/heads/main
2023-09-01T15:41:03.628720
2023-08-30T10:52:13
2023-08-30T10:52:13
175,209,828
13
14
MIT
2021-04-29T12:30:31
2019-03-12T12:47:18
Python
UTF-8
Python
false
false
252
py
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class DolbyDigitalPlusLoudnessControlMode(Enum): PASSTHROUGH = "PASSTHROUGH" CORRECTION = "CORRECTION"
[ "openapi@bitmovin.com" ]
openapi@bitmovin.com
edeaa753730e8d490de3fff90f59fa424ef6082b
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/DeeplabV3_for_Pytorch/configs/pspnet/pspnet_r50-d8_512x1024_80k_cityscapes.py
c1e35bff55747361c0b9e9b26abba13a98faab17
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
827
py
# Copyright 2021 Huawei # Copyright 2021 Huawei Technologies Co., Ltd # # 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....
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
de80d3489ba1a197c82a907735c972d03084f4f6
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2942/60622/287831.py
fbe6f1d8ea8915192bb19f7ed0c3080d26918e11
[]
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
90
py
n=input() l=input().split() l.sort(reverse=True) for i in l: print(i,end=" ") print()
[ "1069583789@qq.com" ]
1069583789@qq.com
7196ceabaee7d344102504ba28399e85aea0a3c2
60e6ea6af12bb37450dc4f254f953d81623232ce
/databases/venv/Scripts/pip3.8-script.py
1b7b98beb5faf95df7a500294d4b8556ee0eb4ab
[]
no_license
vedant3598/PyCharm-Projects
72a48d3e8468949c59675330c12aad1c7a03de41
7f49533b9c66de33c6a44e4864b1a639e6bfb0be
refs/heads/master
2020-12-14T15:37:53.838758
2020-01-18T20:11:50
2020-01-18T20:11:50
233,339,924
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
#!C:\Users\vedan\databases\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8' __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.argv[0]) sys....
[ "vedant18@hotmail.com" ]
vedant18@hotmail.com
b4e33b3180ce6ed1a3986904ec6e74ca3c6384fd
10d98fecb882d4c84595364f715f4e8b8309a66f
/experience_replay/train.py
74c4899eac50fc4f53a34183dee9333d07cdb04f
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
3,559
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
f58c4b1e9c6366deb20e2f21faa02caffaaed02d
0d4ed26eb44d54238d86eff91f7b45ab62609161
/arakat-core/pipeline_generator/preprocessing/graph/ParentChecker.py
5051302aa3e4fa7275085426d9e23e4b27e0a954
[ "Apache-2.0" ]
permissive
obalcik/arakat
c8583d8ce4d471df3cf3d9ef4a604307b75c30f5
7a8a30708bf8f74de7384c290c035a3a65d3ba47
refs/heads/master
2020-03-29T21:36:34.118850
2018-11-28T12:18:04
2018-11-28T12:18:04
150,376,678
1
0
Apache-2.0
2018-09-26T06:10:08
2018-09-26T06:10:08
null
UTF-8
Python
false
false
3,103
py
from domain.HighLevelNodeTypes import HighLevelNodeTypes from domain.ErrorTypes import ErrorTypes from domain.SpecialCases import SpecialCases def check_parents(cur_nodes, edge_info, nodes): parent1 = cur_nodes[0]["parent"] parent2 = cur_nodes[1]["parent"] # No nodes (except Task nodes) can have a None par...
[ "erelcan89@gmail.com" ]
erelcan89@gmail.com
a130e7cbc5096fc05d24b77c1bb957b1e492c07d
f466373b13ae038770990331e0193133d0729caf
/movie_chatbot_server_ver/movie/my_chatbot_textcnn2/Rnn_chatbot/chat.py
95ab9f0f0589abcc0a1e3a49e074b82312c434ed
[]
no_license
kih1024/chatbot
92f8a321996707a123bcb90ba10bfd318aabea84
e2f7741d17e1042c74966dfebc5628a4f4020250
refs/heads/master
2018-09-06T16:41:46.515759
2018-06-04T15:53:47
2018-06-04T15:53:47
115,597,558
1
1
null
null
null
null
UTF-8
Python
false
false
5,653
py
import tensorflow as tf import numpy as np import math import sys from Rnn_chatbot.config import FLAGS from Rnn_chatbot.model import Seq2Seq from Rnn_chatbot.dialog import Dialog import xml.etree.ElementTree as ET import urllib.request import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' url = "http://www.kobis.or.kr/kob...
[ "rladlsgh654@naver.com" ]
rladlsgh654@naver.com
68a8fa89f93202a0a70bcd74a4cb00d6cd3443ce
6cbaade56c5db347d1be9a3422a69af52df39b97
/python_workspace/3_bigdata/02_Standardization_Analysis/1_CSV/3pandas_value_meets_condition.py
7d6e3720622a55a884ddfd88fa1510ccd7e19c49
[]
no_license
baewonje/iot_bigdata_-
b54e3772f64b9695efee8632183590628b679e11
2ce1af67d2f05abeb2ecd442b7299f349bdb9753
refs/heads/master
2020-09-06T09:53:53.018320
2019-12-06T08:19:33
2019-12-06T08:19:33
220,390,928
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
# 목적: pandas 문법으로 특정 행을 필터링하기 import pandas as pd import sys input_file = sys.argv[1] output_file = sys.argv[2] data_frame = pd.read_csv(input_file) data_frame['Cost'] = data_frame['Cost'].str.strip('$').astype(float) data_frame_value_meets_condition = data_frame.loc[(data_frame['Supplier Name'].str.contains('Z'))...
[ "50129576+baewonje@users.noreply.github.com" ]
50129576+baewonje@users.noreply.github.com
fdaf7031d6c27c7b70b0ded64c5e71e167f1d4ed
8042163dbac5ddf47f078b4d14f4eb6fe1da030d
/tensorflow/python/profiler/profiler_v2_test.py
50d29c0532f075d553911327a73af863fb9f1cff
[ "Apache-2.0" ]
permissive
AITutorials/tensorflow
4513de8db4e9bb74b784f5ba865ef8a573b9efc1
6bee0d45f8228f2498f53bd6dec0a691f53b3c7b
refs/heads/master
2022-07-29T13:37:23.749388
2020-06-11T17:47:26
2020-06-11T17:57:06
271,615,051
3
0
Apache-2.0
2020-06-11T18:07:11
2020-06-11T18:07:10
null
UTF-8
Python
false
false
4,426
py
# Copyright 2020 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
0a3ce7bc94322d2939e3bc61f528b8c73ede0326
0e79ab62d4e433accb7ba29a7145257c4bbba346
/model/train_interact_tpu.py
c82ec0281216a640ac8595aa3a44e8002b56184e
[ "MIT" ]
permissive
zeta1999/piglet
76576fcbd72cba2b7a8e0964b9a984f0cb89d827
41fb35a3606415deabb47541e59d9d286c398350
refs/heads/main
2023-05-11T04:20:28.684510
2021-06-01T00:54:22
2021-06-01T00:54:22
373,201,430
0
1
MIT
2021-06-02T14:41:05
2021-06-02T14:41:04
null
UTF-8
Python
false
false
845
py
""" Training script! """ import sys sys.path.append('../') import tensorflow as tf from model.neat_config import NeatConfig from model.interact.modeling import model_fn_builder from model.interact.dataloader import input_fn_builder config = NeatConfig.from_args("Train detector script", default_config_file='interact/c...
[ "rowanz@cs.washington.edu" ]
rowanz@cs.washington.edu
304e838e3c7304f8a3cada5e5202249be9c5c479
a8d68074db5c2b2697650ed0281979d3e00cf5a8
/Nyspider/duapp2.drexel.edu/TMS.py
5938794401c1348b9eb96c9578809eba807074c7
[]
no_license
15807857476/bogdata-2
9595609ea2ae5ae0a48c511f911df2498456467e
1934cdfa234b77ca91e349b84688db113ff39e8c
refs/heads/master
2023-05-26T19:10:18.439269
2019-05-24T02:50:41
2019-05-24T02:50:41
188,327,526
3
1
null
2023-05-22T21:37:27
2019-05-24T00:53:28
Python
UTF-8
Python
false
false
6,277
py
#coding:utf-8 import requests from bs4 import BeautifulSoup import threading import re import os import xlwt3 headers = { 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Langu...
[ "2397955090@qq.com" ]
2397955090@qq.com
139bab4db8371e55144c6a767edd8121e9e1726d
817f7dfb035af90b4c7f810c72eb7b407ea28c99
/pingdumb/taskapp/celery.py
7b13583c61674dfea5219ebd72f04285f69c7100
[ "MIT" ]
permissive
rubythonode/pingdumb-django
bd7e361a7d6886db81d9bdad78ef62d375ad768a
750a26f7c55eb176f6fd0f5b655751ee2d114d9e
refs/heads/master
2021-01-12T01:51:18.192362
2016-12-14T04:50:42
2016-12-14T04:50:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,110
py
from __future__ import absolute_import import os from celery import Celery from django.apps import apps, AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.l...
[ "chm073@gmail.com" ]
chm073@gmail.com
0eca868fb731e2726e52062354a6937d43dade2f
cc2bb9ccc66783ac7d37454e4784df5e4a2d80f4
/close_server_one.py
34b036b30e1c44c412f1356dfc39352cae3581da
[]
no_license
ronnyzh/Tornado_Server
f308b7e9c2112167b04cbe324e37b1f891999187
42112d39e4dea128d059dbfa53c410f3774dc4b1
refs/heads/master
2021-05-22T22:10:26.694262
2020-04-04T23:39:14
2020-04-04T23:39:14
253,118,839
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
# -*- coding:utf-8 -*- # !/bin/python """ Author: ronnyzh Date: 2019/11/15 Revision: 1.0.0 Description: Description """ from model.model_redis import getInst from define.define_redis_key import * IP = '192.168.50.2' PORT = '9797' if __name__ == '__main__': redis = getInst() ipKey = Key_Serve...
[ "ronnyzh@yeah.net" ]
ronnyzh@yeah.net
c336b550745a3945d4d397f07f31e0af46fe95d7
8517c5849cec02cfd52d5a20d8c5468227f60c0d
/kozmic/repos/views.py
3504ff09546983cc581849ca6a165f7e6b3613e0
[]
no_license
aromanovich/kozmic-ci
87475a27c3b47f0e4f226aef9856b3f39ed911e5
368ceb992b7b9b6ceb099570f9291655cad9e96c
refs/heads/master
2021-01-19T02:00:55.573742
2016-06-14T04:45:10
2016-06-14T04:45:10
14,984,166
26
6
null
2016-06-14T04:45:10
2013-12-06T14:03:31
Python
UTF-8
Python
false
false
4,622
py
import datetime import logging import collections from flask import (current_app, flash, request, render_template, redirect, url_for, abort) from flask.ext.login import current_user from kozmic import db from kozmic.models import User, Organization, Project, DeployKey from . import bp logger = lo...
[ "anthony.romanovich@gmail.com" ]
anthony.romanovich@gmail.com
8dea07b740dc7aa5edb7b8bddc428d35e75352e9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_207/ch63_2020_04_27_14_28_14_916924.py
933bea65d7d30470bdf2ae03c973f2452f1202e2
[]
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
96
py
def nome_usuario (string): pos = string.find('@') nome = string[:pos] return nome
[ "you@example.com" ]
you@example.com
945f3b5e2ce68a78a710408a838215d972d40c1a
3740de0d6e43ea140fc09ab314e4c492603ba185
/scripts/sources/s_generalized_flam_toy.py
7cc7fd1ff125b384c9bb6a7535b3cfea5e5b6ec7
[ "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
5,933
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.1.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # s_ge...
[ "dario.popadic@yahoo.com" ]
dario.popadic@yahoo.com
34dadc42e9085d239b0e37efcf94d7e7460e7403
8fcc27160f8700be46296568260fa0017a0b3004
/client/eve/client/script/environment/spaceObject/entityShip.py
253efe958a9487e51db0b4662828ae06dbef0567
[]
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
3,545
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\spaceObject\entityShip.py import blue import destiny from eve.client.script.environment.spaceObject.spaceObject import SpaceObject from eve.client.script.environment.spaceObject.ship import Ship from e...
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
4498670807eaeaf54a06134d1ce03533c8bc8c45
ca8167a83eaec916437c0fdd757a76bb0441a5a3
/envs/dmlab/dmlab_populate_cache.py
495f3a7c761a2d9edb2d33b8079a14dbf225b782
[ "Apache-2.0" ]
permissive
Zhehui-Huang/scalable_agent
b470afe0130e95d2e63e521abd7bf61016e5e358
505909ad9f2d3e9bce8bb9201e05e780002428df
refs/heads/master
2022-04-25T23:21:40.302551
2020-02-03T07:43:35
2020-02-03T07:43:35
257,515,137
0
0
Apache-2.0
2020-04-21T07:33:26
2020-04-21T07:33:25
null
UTF-8
Python
false
false
850
py
import sys from algorithms.utils.multi_env import MultiEnv from envs.dmlab.dmlab_utils import DmlabGymEnv from utils.utils import log def main(): def make_env(env_config): env = DmlabGymEnv('contributed/dmlab30/rooms_watermaze', 4) return env num_envs = 64 num_workers = 16 multi_env ...
[ "petrenko@usc.edu" ]
petrenko@usc.edu
70d21f0315e69b783a6c51389ee8a14057eec12e
ae08a53864b4ec19458eae7bdf072b91b489e595
/nina-service/app/api/v1/users/messenger.py
d8808844ee411840587e5feb56cf0cb9c1f54339
[]
no_license
OscarGibson/docker-messenger-test
aee90378691527fd4f7156c3b16490393a548e14
f04c3d932818b16fa6a304e41ff5492a6d67ccb7
refs/heads/master
2022-12-09T07:49:10.324014
2018-09-12T07:04:20
2018-09-12T07:04:20
148,104,678
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
import requests class Messenger: def __init__(self, receiver, *args, **kwargs): self.receiver = receiver self.headers = { 'content-type' : 'application/json', } def set_headers(self, request_object): self.headers['Authorization'] = request_object.headers.get('Authorization') def send(self, data= {}, m...
[ "user@users-MacBook-Pro.local" ]
user@users-MacBook-Pro.local
1da694b5ea387596423c38640e879d0c7a989f94
4142b8c513d87361da196631f7edd82f11465abb
/python/round481/978C.py
507c51c1f9c84ef6c7c7bff283409bd7ae7ba262
[]
no_license
npkhanhh/codeforces
b52b66780426682ea1a3d72c66aedbe6dc71d7fe
107acd623b0e99ef0a635dfce3e87041347e36df
refs/heads/master
2022-02-08T17:01:01.731524
2022-02-07T10:29:52
2022-02-07T10:29:52
228,027,631
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from sys import stdin import bisect n, m = list(map(int, stdin.readline().split())) a = list(map(int, stdin.readline().split())) b = list(map(int, stdin.readline().split())) p_a = [0]*n p_a[0] = a[0] for i in range(1, n): p_a[i] = a[i] + p_a[i-1] p_a = [0]+p_a for i in b: dorm = bisect.bisect(p_a, i) room ...
[ "npkhanh93@gmail.com" ]
npkhanh93@gmail.com
975cc3aa400100762371f0e3f43f4b6231beca20
05805ab879654cdcf61df3653847f435b624dc77
/Dictator_service/bin_gui/main_class_based_backup.py
9162aa49b03b5749bea6d70fda67e3c8bdbf4208
[]
no_license
Wuwqhnsya/Dictator
3d57db6bc0138464884ddc9fe7378907ab86e3ef
45388fec03a4acdac3620611b3bccfa3c991d65f
refs/heads/master
2020-04-28T21:57:39.309165
2019-01-28T19:10:28
2019-01-28T19:10:28
175,600,478
1
0
null
2019-03-14T10:34:02
2019-03-14T10:34:02
null
UTF-8
Python
false
false
31,366
py
#!/usr/bin/python import time import threading import time import nmap import multiprocessing import os import sys import ConfigParser #import mysql.connector import MySQLdb import atexit import IPtable import texttable as tt import Simple_Logger r = '\033[31m' #red b = '\033[34m' #blue g = '\033[32m' #green y =...
[ "furqankhan08@gmail.com" ]
furqankhan08@gmail.com
8abdcdf1ba64655f7ec702de32401f6472c1b269
5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1
/Section 1 - Getting Started/Breakouts/Breakout 1.2 - Turtle Graphics/Turtle Shapes v2 - block3.py
3d15d1a6f050eb70ad28090193dd6b4e8a025c40
[ "CC0-1.0" ]
permissive
pdst-lccs/lccs-python
b74ef2a02ac8ad2637f713fff5559f4e56c9827d
95cb7ece05716521e9951d7a40de8fb20a88021f
refs/heads/master
2023-05-28T00:46:57.313972
2023-05-22T10:16:43
2023-05-22T10:16:43
240,501,524
21
18
null
null
null
null
UTF-8
Python
false
false
365
py
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: Turtle Graphics - Further Activities # Match the code blocks below to the corresponding shape from turtle import * # import the turtle graphics library forward(100) left(...
[ "noreply@github.com" ]
pdst-lccs.noreply@github.com
3420ef2256872b6472eb30161fb5d82eebb6458e
7286f4fb36bc17275896059f0d7d133dd13f869e
/revision_2/findall_regex.py
5a979155db14160e929f721a5c828ea938123c95
[]
no_license
tberhanu/RevisionS
3ac786b0867b70fa0b30a21ec5eac12177171a90
c095d219435bb22b1c78a0e93b1898b2417ca041
refs/heads/master
2021-10-20T03:58:19.804140
2019-02-25T16:18:12
2019-02-25T16:18:12
172,540,397
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
text = "Today is 11-12-2019 and 55-53-8888 ofcourse" import re pattern = re.compile(r'(\d+)-(\d+)-(\d+)') matches = pattern.findall(text) print(matches) matches = pattern.finditer(text) for match in matches: print(match.group()) print(match.group(1)) print(match.group(2)) print(match.group(3)) p...
[ "tberhanu@berkeley.edu" ]
tberhanu@berkeley.edu
0bb6360afe0961ac2be2d325f103c1b80785c376
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2457/60767/271065.py
9d8422acb58f7b6f1a7843d46aa80a1db4a4ff29
[]
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
1,260
py
class Node: def __init__(self, id, child,value=0,father = None): self.child = child self.id = id self.value = value self.father = father def add(self, node): self.child.append(node) def find(node, target): for i in node: if i.id == target: re...
[ "1069583789@qq.com" ]
1069583789@qq.com
22dfb4765762ea3ea32fe5e65c2c0d90a53e5cc8
b96a4062f5ad420dd02efed82b47dd9c249cb46c
/pytorch_lightning/metrics/functional/hamming_distance.py
60409751fc9f04a39aa99382d1f953bca75822eb
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
borisdayma/pytorch-lightning
ebc210a1e7901b5f87ab67e4886bfe20b478fe33
4b7c0fae00084b72dffe37fdd0ea7d2e9b60d103
refs/heads/master
2021-11-23T07:34:01.842134
2021-02-19T17:00:27
2021-02-19T17:00:27
238,756,095
1
1
Apache-2.0
2020-02-06T18:27:51
2020-02-06T18:27:50
null
UTF-8
Python
false
false
2,753
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
borisdayma.noreply@github.com
232b6a3d7696148053f4c31a8ca9b6b7ddeb68db
2b7ada0f30e0c24c181c1f6d588a2f0ae8c29327
/Convolutional_Neural_Network/mnist_classifier_cnn.py
88a0c7dbd3b13583b6d133ea31d088ac49e062aa
[]
no_license
vinods07/Neural-Networks-and-Deep-Learning
50b3b791690a26a1e22fc2fc3527bf9128c47305
afaa9cf7f163aec1dc48727df00e47e831feaa01
refs/heads/master
2020-03-19T12:11:04.849889
2017-12-23T18:18:06
2017-12-23T18:18:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
from tf_CNN import tf_CNN as CNN from tf_CNN_layers import ConvPoolLayer, ConnectedLayer, SoftmaxOutputLayer import mnist_loader as ml tr_d, va_d, te_d = ml.load_data_wrapper() cnet = CNN( [ ConvPoolLayer( (50,28,28,1), (5,5,2...
[ "yashshah2398@gmail.com" ]
yashshah2398@gmail.com