blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
f780c03cbc1fb3ec3d06f15ccc523940a44ee2ec
3bf58ad95e7a7ae5886241ed57c40476f81bf661
/app/conversations/migrations/0001_initial.py
d1a4b9c496fb9ddd76fff472a6545dce2302a5a5
[]
no_license
AkioSky/Qandor-API
3cfad029287babfb699602f82683950f5cbc3915
0743aa2345edadac2bd8a15974bfdad1ecedc6e6
refs/heads/master
2020-04-08T13:01:44.507156
2018-11-05T19:12:07
2018-11-05T19:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,556
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-08-20 10:30 from __future__ import unicode_literals import conversations.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = Tr...
4bd32aca8f2fffa5a93eeecd94e7686d19f8d513
43051cd6eb5f3ff988666458f7e00cd54625ddf2
/using_sys.py
9a4a1fa45fad97ed5cc817228637e505cca8c1cc
[]
no_license
onionmccabbage/advpythonSept2021
9dcf8bd2dd0fb8b8229aa6ece5af4fd6e619bee3
e49ee2cbf7985991fd755322df43b622fdb263b1
refs/heads/main
2023-08-11T01:28:08.680110
2021-09-30T13:31:17
2021-09-30T13:31:17
409,737,046
1
1
null
null
null
null
UTF-8
Python
false
false
174
py
using_sys.py
# you can find the capabilities of the current platform import sys print(sys.path) print(sys.version) print(sys.version_info) print(sys.platform) print(sys.base_prefix)
58b8371ce800c661b768e15d78579936bdd18f76
ed7260624c814adea2e058d422a0d1bbde8a6fd8
/upstream.py
72b078a0f49eaa4bcebe230f96074dc144b29a4f
[]
no_license
Joustie/event-stack
7d94e19376f3b4203f5d26401f29e01d64e60300
0d0ae833950d1d5cf4ab74cfea4c8268d909da52
refs/heads/main
2023-04-03T11:20:51.139334
2021-04-09T14:22:22
2021-04-09T14:27:17
356,296,320
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
upstream.py
import json import boto3 class Upstream: def __init__(self, message): self.message = message filename = "message.json" try: f = open(filename, 'w') f.write(self.message.toJSON()) f.close() self.send() except IOError: print("Could ...
db75b2b4a481853a03c2c89da2cd7381b1f214ca
58e8e65032a4c3d3e25d73f0ce96539974949edf
/week4/day1/exercise_gold.py
9374250099c5afa7d6bce096f1c88c52a15bf64e
[]
no_license
lyor26/DI_exercises
4f1bbfee757567300952619a6a82bfea81499b8b
e2d36f6792ff10c12a5b2c2d390e73c928de7520
refs/heads/master
2020-12-19T01:40:45.533197
2020-02-03T13:25:37
2020-02-03T13:25:37
235,581,793
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
exercise_gold.py
username = input('what is your username?') password = input('what is your password') password_length = len(password) hidden_password = '*' * password_length print(f'{username},your password , {hidden_password},is {password_length} letters long')
5545503bd4a70dd5380b35885614c21225b5bf80
4076d806e63bd565d3e7f543235a10132da61f78
/3.2.py
25854c4e133b06936fd79e4ca73e65296df0842b
[]
no_license
katiewildros/learning_python
6f77aad67457e064f46c046921686f21cb2664df
1dc788960957995afa9ae3f37654162a0bef23de
refs/heads/master
2020-06-26T08:55:10.445906
2019-07-30T07:26:50
2019-07-30T07:26:50
199,589,238
0
0
null
null
null
null
UTF-8
Python
false
false
4,402
py
3.2.py
#3.2.1 # Напишите функцию update_dictionary(d, key, value), которая принимает на вход словарь d и два числа: key и value. # Если ключ key есть в словаре d, то добавьте значение value в список, который хранится по этому ключу. # Если ключа key нет в словаре, то нужно добавить значение в список по ключу 2∗key. Если и клю...
e9327a4eb600e0315b72e9130f7a4e9b191b9293
e037f983c2deef92f78eb44341b38623d1b4cce1
/crud/App2/urls.py
508980b6de7722a9da2c7d969a62caaab8005a4f
[]
no_license
vijayasrithavva/Django
b86ec7edd74cb685fd76c6bedff2af4a11ce37ab
93a01eb2c89fca1ac393af2669ce2299f2491fd6
refs/heads/master
2023-06-06T08:42:12.703818
2021-06-23T19:46:37
2021-06-23T19:46:37
277,287,280
1
0
null
null
null
null
UTF-8
Python
false
false
338
py
urls.py
from django.urls import path from App2 import views urlpatterns = [ path('',views.hello,name='hello'), path('register/',views.register,name='register'), path('details/',views.details,name='details'), path('edit/<int:id>',views.edit,name='edit'), path('delete/<int:id>',views.delete,name='delete'),#dynamic url mapp...
c28054912e6a9b8bc866aa716ffbdfd331236947
bbca049f48803f7f3750445a19253974142a9e53
/tests/test_examples.py
3c481f41057de3af19082c9af15bb34d0ed86fbd
[ "MIT" ]
permissive
amirpavlo/intercepts
483ec36af770f61d55de2e2338b30d2709a543a2
e17768129ac8a8781c2db0a12756ba308ed655aa
refs/heads/master
2020-12-05T05:40:34.645275
2019-05-14T21:52:33
2019-05-14T21:52:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,755
py
test_examples.py
import sys import unittest import intercepts _REAL_STDOUT = sys.stdout class MockStdout: def __init__(self): self.out = [] def write(self, value): self.out.append(str(value)) def flush(self): pass def increment(num): return num + 1 def handler(func, num): result = f...
05f291f313c130f452f1243397497b36b500919f
0331e10f7612cfdb4d9bea04c782803bf9a7ae5a
/base/com/controller/category_controller.py
9e91002725511c1ed16c34077377c76709ed6368
[]
no_license
yash1499/clothesshoppingusingar
998f6a165ac477309afe54fb3998ddb0b92151fb
f57043d0944fecb65816a09e25c596d9b7ca6a23
refs/heads/master
2023-05-03T16:41:07.252525
2021-04-25T12:15:39
2021-04-25T12:15:39
367,378,702
1
0
null
null
null
null
UTF-8
Python
false
false
3,842
py
category_controller.py
from flask import * from base import app from base.com.controller.login_controller import admin_login_session from base.com.dao.category_dao import CategoryDAO from base.com.vo.category_vo import CategoryVO @app.route('/admin/load_category') def admin_load_category(): try: if admin_login_session() == 'ad...
848f1c96d0c669993c4bcee2fa2650237fb7388e
f5c9699f6fe7a35dc0ac99655c9d3ef7a8077144
/cache.py
c789a9b1ddfcc5300252bf7f4bee0eff1de877b5
[]
no_license
rcstamat/network-link-station-picker
499724def566062354111415f4aa09a78636d6db
46163922ec711cfea9d0a9315f4be65aec4b9bcf
refs/heads/main
2023-08-03T17:35:48.028133
2021-09-23T20:05:50
2021-09-23T22:00:43
393,126,214
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
cache.py
import pickle from os.path import exists class Cache: """ Dictionary based cache that is being stored on disk """ def __init__(self, cache_file): self.cache_file = cache_file self.cache = {} objects = [] if exists(self.cache_file): with open(self.cache...
59dd25c0777b0d54c62ec6be7c146a519bc4d947
c8dab3b6a8ed41f819d79d20ec7f20bba516f7de
/floqq_deploy/settings.py
f7cbb9c4c6b3938696f89523550e0fac5422663f
[]
no_license
anler/deploy
a236a39055a3c2dec9765a9e0152671f88278b22
c5e05697304f831cc82e43a0f872af39fbd763b3
refs/heads/master
2021-01-18T12:37:16.284532
2013-11-11T15:11:10
2013-11-11T15:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,094
py
settings.py
# # Copyright (c) 2012 Floqq innovation SL. All Right Reserved # import os import re import glob import shutil from floqq_deploy.db import get_settings_path, get_current_path, config from floqq_deploy.exceptions import UnsupportedUrl, NoSettingsUrl def apply_settings(app_name, version, settings=None): """Apply ...
cbf3a9d3b9e36d2d1f7898e4638962d362b5694c
f3576f09869d84cb43fc7b9d7c6b770928abc425
/deep_learning_code/deep_learning_2018/6_RNN_by_numpy.py
a4941314fdcbbd88228ce3247326d380c0a1af09
[]
no_license
YourFigo/useAndLearnCode
729c29ee14dd74f8ee07a03cee60414204ea2775
145319eed04ef5e9100f4676c87cd5f32a038374
refs/heads/master
2020-04-03T09:54:37.918449
2020-03-25T15:17:33
2020-03-25T15:17:33
155,178,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
6_RNN_by_numpy.py
# -*- coding: utf-8 -*- """ Created on Mon Dec 31 21:22:14 2018 @author: Figo """ # 简单 RNN 的 Numpy 实现 import numpy as np #输入序列的时间步数 timesteps = 100 #输入特征空间的维度 input_features = 32 #输出特征空间的维度 output_features = 64 # 输入数据:随机噪声,仅作为示例 inputs = np.random.random((timesteps, input_features)) # 初始状态:全零向量 state_t = np.zeros...
ef2d02bb6cb520844df6cb63596d4651652b82ea
5e093875f32dec7cc43b3ede7fde5c58747659d8
/快手初赛/cluster.py
c5a974a1f343689c25b58429c685f966a46e11fc
[]
no_license
aa147138/2018-Rank4-
9709da9f2bd214c509689ec6e4aa5a86829a488e
685f5d457596b0aa778e642da1185e03092297c5
refs/heads/master
2020-04-03T05:21:01.919567
2018-08-20T02:56:56
2018-08-20T02:56:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,054
py
cluster.py
# -*- coding: utf-8 -*- """ Created on Sun Jun 24 09:45:02 2018 @author: chantcalf """ import pandas as pd import numpy as np from sklearn.cluster import KMeans def get_cluster(register,app,video,act): devices = list(register['device_type'].unique()) print (len(devices)) df = pd.DataFrame({...
ba551839934fb3d95cb829031af3ce1d9aabbf14
784bc9036760b663575677b3be6f28a09fd1e7d8
/bilbyweb/forms/prior/utility.py
7cf90f319a4d47b4f8d8a45241e98f667bca4437
[ "MIT" ]
permissive
ADACS-Australia/SS18B-PLasky
304e6b0bd78c54db109844fd0dc7f39e6c723968
68ebdec8dd2fe7a4d1c6ad07783e86ea2056ae67
refs/heads/master
2020-04-02T11:52:25.525610
2019-03-12T03:33:52
2019-03-12T03:33:52
154,409,928
1
2
NOASSERTION
2019-03-12T03:33:54
2018-10-23T23:31:01
Python
UTF-8
Python
false
false
5,593
py
utility.py
""" Distributed under the MIT License. See LICENSE.txt for more info. """ from collections import OrderedDict from ...utility.display_names import BINARY_BLACK_HOLE from ...models import Prior, SignalParameter from ..dynamic.field import SELECT from ..signal.signal_parameter import BBH_FIELDS_PROPERTIES PRIOR_TYPE...
26194e2df60249e00b8af0567796371e8ba1225e
7e11c71f0a5271ebbca2344c1bdb0d55b5603508
/Pt1/a3.py
cb0e2ef9bc7c74d4d626b97f9f905ac129715850
[]
no_license
rhalliday/LearnToPython
2d9626f4203b516e3162b765ae18cacba563d04c
b7d5d0fb3caf5a957c366c7b10c34380e0104662
refs/heads/master
2021-01-22T00:59:05.000198
2013-06-22T18:07:01
2013-06-22T18:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,615
py
a3.py
'''A board is a list of list of str. For example, the board ANTT XSOB is represented as the list [['A', 'N', 'T', 'T'], ['X', 'S', 'O', 'B']] A word list is a list of str. For example, the list of words ANT BOX SOB TO is represented as the list ['ANT', 'BOX', 'SOB', 'TO'] ''' def is_v...
481566a8f17b2264d016d65279b6e53d262b7bd2
044b91c3f5c43520e7f5ea4c40f20df580f21747
/tests/unittests/test_object_cache.py
f709a7d10e7c0c11b6698b80638cb4e6af50d2d3
[ "MIT", "Apache-2.0" ]
permissive
radical-cybertools/radical.utils
f688ce78e88e8862b6a2df60e275c2cbfbce1043
533590687671cfcf0d9b5e60b8928718ebaee80d
refs/heads/devel
2023-08-31T01:14:09.578774
2023-08-23T00:36:32
2023-08-23T00:36:32
13,388,638
7
9
NOASSERTION
2023-08-11T18:06:09
2013-10-07T16:10:33
Python
UTF-8
Python
false
false
3,204
py
test_object_cache.py
#!/usr/bin/env python3 # pylint: disable=protected-access __author__ = "Radical.Utils Development Team (Andre Merzky)" __copyright__ = "Copyright 2013, RADICAL@Rutgers" __license__ = "MIT" import time import radical.utils as ru # ------------------------------------------------------------------------------...
81f2053fedf5547d2084d3a12ea4115d0b0f2c03
be39cbe6530d527ef8f743b3a3ed0b7ee02d240f
/main.py
ad88af6adc2b6ee276f2a1fdf6daec064b3af9d0
[]
no_license
JuruoMP/ContrastiveResponseSelection
4078a6816cd667bd317d6c71fa861e10e6869e28
15fcd48fcf5a94dc53dda723829c67fa95154446
refs/heads/master
2023-04-20T06:49:59.717134
2021-04-24T17:03:19
2021-04-24T17:03:19
321,885,569
0
0
null
null
null
null
UTF-8
Python
false
false
8,466
py
main.py
import os import argparse import collections import logging import json from datetime import datetime import numpy as np import torch from config.hparams import * from train import ResponseSelection from post_train.post_training import PostTraining from post_train.post_training_model_cl import PostTrainingModelCL fro...
a2575d7baefea1c806be7fa569c043db4c044104
ef20cc1294a06304adc059d7da56f4041203a185
/Trees/AVL_Trees/main.py
e11509037f266aa042510c883ef46601311f4abd
[]
no_license
MANOJPATRA1991/Data-Structures-and-Algorithms-in-Python
d77bf076275318cb8bb582462da69b6fad487c47
3edb274cd2f500796c6286ee4873544dd9e9731f
refs/heads/master
2021-10-11T09:03:31.360805
2021-10-03T20:06:20
2021-10-03T20:06:20
94,618,284
3
2
null
null
null
null
UTF-8
Python
false
false
5,637
py
main.py
from Trees.Binary_Search_Tree.main import BinarySearchTree, TreeNode class AVLTree(BinarySearchTree): def _put(self, key, val, currentNode): """ Insert a new node in the binary search tree """ # If key is less than the current node, it should go in left side if key < curren...
2d4308f195d067de5f336ef81a9c7fd26db8edfb
d999ee6aa45752c17056a271de5a7cfe36ddcf23
/venv/Lib/site-packages/pyLibrary/queries/table.py
bc55e88de61c259f18c0e8120afed5876701dd78
[]
no_license
Parsav/Python
89f22b22e0106a66b0235b5e9997647045761dfe
6ff924c150dc14a8a9a51e1c1e20bcc250469d84
refs/heads/master
2022-12-28T22:43:45.177446
2017-02-06T21:31:21
2017-02-06T21:31:21
81,127,425
0
1
null
2022-11-29T02:38:03
2017-02-06T20:06:46
Python
UTF-8
Python
false
false
652
py
table.py
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import unicode_literals from __...
eaca8a96c5ab52fab3166f37787c9847ee50e946
1d8a4659d4a13cd8b0244918484990bb000687ea
/OpenPROD/openprod-addons/l10n_fr/migrations/1.2/post-10-add_service_taxes.py
e123dd91fd0d0736a1ad88d3c2a4cd600c68cd57
[]
no_license
kazacube-mziouadi/ceci
d8218ede129186c26eb36f251ef42f07c7a74883
eb394e1f79ba1995da2dcd81adfdd511c22caff9
refs/heads/master
2020-03-23T00:22:51.501409
2018-07-13T14:58:32
2018-07-13T14:58:32
140,859,855
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
post-10-add_service_taxes.py
# -*- coding: utf-8 -*- from openerp import pooler __name__ = "Add service taxes and allow reconciliation on account" def migrate(cr, v): """ :param cr: Current cursor to the database :param v: version number """ # Taxes tax_tmpl_obj = pooler.get_pool(cr.dbname)['account.tax.template'] tax_...
b2ceb48ebf21ef8c6c45540a8ca598add70b22a2
70822b4c6845b21704265fa34e85cb9b95a2a9a2
/test/run_tests.py
036b7965f2a627df0d95fdc4b690bf36d301c0af
[ "MIT" ]
permissive
tjknoth/resyn
4f6207bb4d63a637c5b141af6d6caa3e67ae41ea
54ff304c635f26b4b498b82be267923a65e0662d
refs/heads/master
2021-07-24T12:20:03.406851
2020-12-09T01:09:34
2020-12-09T01:09:34
235,192,652
24
4
null
2020-09-02T00:24:17
2020-01-20T20:26:43
Haskell
UTF-8
Python
false
false
18,500
py
run_tests.py
#!/usr/bin/python3 import sys import os, os.path import platform import shutil import time import re import difflib import subprocess from colorama import init, Fore, Back, Style # Parameters SYNQUID_PATH_LINUX = ['stack', 'exec', '--', 'resyn'] SYNQUID_PATH_WINDOWS = ['Resyn.exe'] BENCH_PATH = '.' LOGFILE_NAME = 'res...
47eb662903c54d7dd36788b0d23f2d527cf6037e
4e19e453422f6a03a2b78b10863439b247f3b50f
/pyspark/workflow/insert.py
a3f3ac534b9ccf72e1c81c9a91a0ed1c1cc0a9c4
[]
no_license
nthulstrupp/spark-learnings
687c104de3f7ef7d5e2051bd04e39290e5c7e64b
978c6bf8b1b030b85a5c9d5cf69a29d072db2736
refs/heads/master
2020-04-07T02:50:19.259125
2019-03-15T14:48:49
2019-03-15T14:48:49
157,991,903
0
0
null
2019-03-15T14:48:50
2018-11-17T14:23:53
Python
UTF-8
Python
false
false
1,150
py
insert.py
from datetime import datetime from pyspark.sql import DataFrame def insert_overwrite_small_table(data_frame: DataFrame, db_name: str, table_name: str) -> None: insert_overwrite_with_repartition(data_frame, db_name, table_name, new_partitions=1) def insert_overwrite_with_repartition(data_frame: DataFrame, db_name...
f357d29fa0e567cff34b15332538d2f45dd9f4f2
57221d0d07260687e74e1d7b179a70e409efe577
/plane/venv/planesrc/first.py
4dacfb1240878da68aebf20b59b815f4a854e728
[]
no_license
lzmkfl/python-demo
30b68c8a4d4defc1077a7a893591419fa0dbda1e
667ecc9601a8911cd8ff1680bd1d6ee73024ca26
refs/heads/master
2020-07-01T14:21:30.095589
2018-12-23T05:40:04
2018-12-23T05:40:04
201,195,293
1
0
null
2019-08-08T06:44:21
2019-08-08T06:44:20
null
UTF-8
Python
false
false
3,623
py
first.py
import Heroplane from pygame.locals import * import pygame import time import Bullet import Ememyplane import BasePlane move_x,move_y=0,0 def main(): global move_x,move_y #1. 创建窗口 # 参数1 分辨率 必须为元组 # 参数2 标志位 如果不用什么特性,就指定0 可以指定为FULLSCREEN # 参数3 色深 # 返回一个pygame.Surface对象,代表了在桌面上出现的那个窗口 screen = ...
ec5f03cd2f889e47ee1c808de2c2a927fe53bc07
4d28185e7a78a569f9a449f39f183cac3024f711
/examples/summaries/cocoa/NSNumber.py
7132e34d170c9761654855c1b8b4d852c2dd780d
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
apple/swift-lldb
2789bf44f648609a1674ee520ac20b64c95de072
d74be846ef3e62de946df343e8c234bde93a8912
refs/heads/stable
2023-04-06T00:28:15.882479
2019-10-25T22:46:59
2019-10-25T22:46:59
44,838,862
780
291
Apache-2.0
2020-01-10T19:28:43
2015-10-23T21:13:18
C++
UTF-8
Python
false
false
11,493
py
NSNumber.py
""" LLDB AppKit formatters Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. See https://llvm.org/LICENSE.txt for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """ # example summary provider for NSNumber # the real summary is now C++ code built into LLDB from...
f592f3715f94764d74a5171854b0b57555240ba3
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_027/ch27_2019_03_04_02_36_08_074171.py
0e49979160692df8318e586d3ee27f565e3bec55
[]
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
60
py
ch27_2019_03_04_02_36_08_074171.py
x = input() y = input() red = (x*y*365*(10/1440)) print(red)
a8890227e7fbbe2de32fd6bbcfd7fc0e983cc589
9d20b8e1c43875036a3ebf168c4783a8b8f3e9cc
/05_创建数组/Numpy_createArray.py
915d199650d3535914940a0339f27cee8c7e81e4
[]
no_license
JiaqiuWang/NumPy
0654c593f9dc829ed2c69954eef0ca2955df82ae
a56fc092f324567aaf0ec69059d5ed348de00c11
refs/heads/master
2022-11-21T21:01:53.989088
2020-07-29T12:37:34
2020-07-29T12:37:34
283,495,728
1
0
null
null
null
null
UTF-8
Python
false
false
1,621
py
Numpy_createArray.py
""" 描述:Numpy-创建数组 参考:https://www.runoob.com/numpy/numpy-array-creation.html 作者:王佳秋 日期:2020年7月20日 """ import numpy as np if __name__ == "__main__": # 1.numpy.empty()创建一个指定的形状(shape),数据类型(dtype)且未初始化的数组 x = np.empty(shape=[3, 2], dtype=int) print("x.empty: ", x) # 2.numpy.zeros()创建指定大小的数组,数组元素以0来填充 ...
1b926b5cf0fbee62f0616db23468998929e3082e
18a5c7df5cf1cb22a5f9823e36c6da9d49483252
/src/flowMC/sampler/HMC.py
f261236feb5c23c5ea6d73b143074a5fece50b19
[ "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
kazewong/flowMC
b184f71453cc6ba646b3d48ddba8d82305500803
bfddaba947b05d86f75b4d54a88e3235a7fdee55
refs/heads/main
2023-08-31T01:17:23.291454
2023-08-27T21:04:32
2023-08-27T21:04:32
433,466,964
122
10
MIT
2023-09-14T18:17:32
2021-11-30T14:42:03
Python
UTF-8
Python
false
false
6,359
py
HMC.py
from typing import Callable import jax import jax.numpy as jnp from tqdm import tqdm from flowMC.sampler.Proposal_Base import ProposalBase from jaxtyping import PyTree, Array, Float, Int, PRNGKeyArray class HMC(ProposalBase): """ Hamiltonian Monte Carlo sampler class builiding the hmc_sampler method from ...
d4e1b80c2c5e7f143711721db559b7315f76314a
a9ef682a273a4bae5c554992272ad7dee33c39b1
/2_мороженка6.py
05267082e0b61c0ee4b98aeca34cc09f82a2e6a9
[]
no_license
Anastasiafrolova/Useful-Materials
b2f78f5176b5c68f690b3eee1c2dcdabc4d230a5
cb6e29151b9bec298b2fd103972c23565b7170c1
refs/heads/main
2023-01-08T01:14:05.687729
2020-11-12T15:36:08
2020-11-12T15:36:08
300,713,134
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
2_мороженка6.py
a = int(input()) if a == 3 or a == 5: answer = 'YES' else: answer = 'NO' print(answer)
f6a358cf24eac1a37e4fc8f204252a795f84ee69
6734f89686136319c2644f577608048d6e4d933b
/p4.py
9399b4c1ebdc19c9281c760c94831f796d33c7dc
[]
no_license
Hulalazz/GD_SGD_SVRG
2f671d014d5afa5e93f184bda25c061d79a7eb95
da9f0c86acdc59e53e26d3890bedd6cc87a8bb0d
refs/heads/master
2021-04-09T11:27:37.642838
2018-03-16T06:38:33
2018-03-16T06:38:33
125,474,253
0
0
null
2018-03-16T06:36:15
2018-03-16T06:36:15
null
UTF-8
Python
false
false
9,950
py
p4.py
__author__ = 'libochen' import numpy as np from numpy import linalg as la import os from numpy import matlib import matplotlib.pyplot as plt import random # ###################### read data from file ##################### train_file = './logistic_regression/logistic_digits_train.txt' test_file = './logistic_regressi...
abe877bac03b9393ccbf195c2b1d08995aee4a11
e08e0878ee9d85c7515b9fca89dba5a8b9f7417b
/eums/services/alert_service.py
a3165d0cfa1f5b27ae934c0f17fcd7069b6e66b4
[ "MIT" ]
permissive
feitianyiren/eums
e61f0744e4c5e55e4cc98a273f7d8aa57bddb9e8
2b67cba8215d0fe67677d9177b252609ad74b0b4
refs/heads/master
2020-04-07T11:48:07.082880
2017-06-12T08:16:09
2017-06-12T08:16:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
alert_service.py
from django.contrib.contenttypes.models import ContentType from django.db.models import Q from eums.models import Alert, DistributionPlanNode, DistributionPlan def get_queryset(alert_type=None, po_waybill=None): return __get_alerts_by_type(alert_type, __filter_po_waybill(po_waybill)) def __filter_po_waybill(po...
f449348f7eed33cce19c7cd004a82b4eeb005228
7441c6f2aa9f986fe843da9f2c25dd4c80df87b7
/104.py
808d61b0876cc8c48c8a10a96ec27ddfce538ca9
[]
no_license
gtxmobile/cc150
c16910d59d395946baf124163fc2d9c747144ecb
4170477abe576c8324a45f5cab48ce7f6694c614
refs/heads/master
2021-05-16T01:57:26.378658
2019-05-14T15:42:02
2019-05-14T15:42:02
23,781,195
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
104.py
def chen(a,b):
a3324f3e41925d9850c19d839c3fad7bced40659
c8d7a7a8c2a6d1814d50fb79372c212b02fc9d1e
/pg_export/pg_items/server.py
1e0555a767fa70937b947b180cd84f746b18d2cc
[ "BSD-3-Clause" ]
permissive
comagic/pg_export
ccfd66a97eec89b4d3fd99fd837523ec4752b1df
9f6a8284da7dbba13f668b8719979cc6c5645bdc
refs/heads/master
2023-07-07T02:43:56.176095
2023-07-05T18:09:35
2023-07-05T18:09:35
72,745,125
11
8
BSD-3-Clause
2023-05-26T14:19:40
2016-11-03T12:54:59
Python
UTF-8
Python
false
false
323
py
server.py
from .item import Item class Server (Item): template = 'out/server.sql' src_query = 'in/server.sql' directory = 'servers' schema = '.' def __init__(self, src, version): super(Server, self).__init__(src, version) self.grants = self.acl_to_grants(self.acl, 'foreign server', self.nam...
99ceaa3f12dfa3a06c40bca1b362016b3c94b225
d64bb1e1491fb4687270615a39b607bbac50aa44
/main.py
def24a66ff07855dc6f8320db746a3f39231a176
[]
no_license
4cesc/ml
d79747f7b5986efee95e5b353a60a02606e2e2a7
dbf244b8c5515f5cdc9c39e909bac97ca75362bf
refs/heads/master
2021-05-15T21:28:49.685401
2018-03-19T05:55:22
2018-03-19T05:55:22
106,518,579
0
0
null
null
null
null
UTF-8
Python
false
false
20,067
py
main.py
from item_based import item_based from SVD import SVD_C from SVDPP import SVDPP from TBTFD import TBTFD import numpy as np from matplotlib import pylab as pl from multiprocessing import Process import timeit from multiprocessing.dummy import Pool as ThreadPool from BaseModule import BaseModule def loadFillData(): u...
66e42d8959e0a78d7380ae59d5f181baaf3899e6
fe528acd1af3cb1caee8226dc6397098d6997ea5
/exercicio8.py
822d73bac67a08d2adb092d0304bc394f24fad0c
[]
no_license
Lucas4dum/Lista1python
eedd92bb36e650bcfee0a69bf53200c037590c29
7cac49f6c1a8b9d12005f7b05760414d3f5732f6
refs/heads/master
2023-08-31T17:38:33.131836
2021-10-18T14:39:43
2021-10-18T14:39:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,887
py
exercicio8.py
# 8) Em um campeonato de futebol existem cinco times e cada um possui onze jogadores. Faça # um programa que receba a idade, o peso e a altura de cada um dos jogadores, calcule e # mostre: # • A quantidade de jogadores com idade inferior a 18 anos # • A média das idades dos jogadores de cada time # • A média das altu...
f974112907e41c25e75b1a53e7543a43c20b4428
6661420b5b7ff8141f489acad36fc6cb18e970d5
/Week2/kw_storage.py
7c35d573578eac31300c366ba05c2ee8a157d1bf
[]
no_license
Black0274/Diving-in-Python-Course
34f512b013b815f5787291f95ab6a238541dc487
96230371814f53631c080009c09ccb84e6c669b2
refs/heads/master
2020-07-08T09:23:26.458901
2019-08-26T13:05:27
2019-08-26T13:05:27
203,631,709
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
kw_storage.py
import os import tempfile import argparse import json parser = argparse.ArgumentParser() parser.add_argument("--key") parser.add_argument("--val") args = parser.parse_args() storage_path = os.path.join(tempfile.gettempdir(), 'storage.data') if not os.path.isfile(storage_path): with open(storage_path, 'w') as f: ...
3bb52d99ae6354bcf37f7a16a6eb3b864c3627c4
652b3d92e3743b75c60c84630b80ff7e16b59ef5
/ori.py
7d4a75aa36fc46b403c223c44ae8a4688e2dec9d
[]
no_license
ConnorSchooley/Ori
f5bc09bcf86914e150f2a89c4cdec6c62e2f3f1c
c9f031143c388e8c71684485b5dfc28cf2c2a687
refs/heads/main
2023-08-25T16:15:10.744020
2021-11-04T22:32:27
2021-11-04T22:32:27
424,752,548
0
0
null
2021-11-04T22:04:17
2021-11-04T22:04:17
null
UTF-8
Python
false
false
41,876
py
ori.py
import json import os import random import re import time import datetime import discord import googletrans import psycopg2 from discord.ext import commands from googletrans import Translator import youtube_dl from mcuuid import MCUUID from mcuuid.tools import is_valid_minecraft_username import util.io_util as io_ut...
4de552b88c66688adf450055ad8220cc924d7a01
d3af0d4194ebfcd0df96be06a2fd4236076d56e9
/gdsfactory/routing/factories.py
5c3560c0928cb4fe1ec6c73f9577b70362942268
[ "MIT" ]
permissive
aisichenko/gdsfactory
3781dda44cf539c14ddface4b5313e9325d58fca
99462643726b78ebf67a40e2396d4ec0bd6785e9
refs/heads/master
2022-04-11T11:18:10.530667
2022-04-08T15:53:19
2022-04-08T15:53:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
factories.py
from gdsfactory.routing.get_bundle import get_bundle, get_bundle_same_axis_no_grouping from gdsfactory.routing.get_bundle_from_steps import get_bundle_from_steps from gdsfactory.routing.get_bundle_from_waypoints import get_bundle_from_waypoints from gdsfactory.routing.get_bundle_path_length_match import get_bundle_path...
efe10af7a3ac050803f6bdccf13d13eba8569535
5a7375bdcd7fba344d9d8e424c42e4ff6e58e5cd
/01_class/3752_가능한시험점수_sol/3752가능한시험점수.py
5ece95b1f7529c2ec86dce27c74c93a430936a45
[]
no_license
jhee514/Algorithms
1d9d9f8bf11b957393ad1a169fa1a61f86d77da5
0ebed8f99a63eae2f9122033ab4e13b2b499fb52
refs/heads/master
2021-07-21T01:33:22.838431
2020-10-28T15:21:19
2020-10-28T15:21:19
226,996,192
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
3752가능한시험점수.py
import sys sys.stdin = open("input_3753.txt", "r") T = int(input()) for tc in range(1, T+1): N = int(input()) scores = list(map(int, input().split())) visited = [0]*(sum(scores)+1) visited[0]=1 templist =[0] for elem in scores: for x in range(len(templist)): temp = templis...
e7c59c1716fcca15c6d0b00f7846b0ffadde432f
9fa3e403c283bfc0de2a5a569db2a353c62ef0dd
/products/migrations/0002_auto_20210219_0655.py
c330dba9d277f4892e93b5e43df3194f9bcef837
[]
no_license
juanicaii/Django-Rest-Api
2948938f730815161dc68f073d0e6d0dee76095e
3179d0d5284ec1e4acc3eb15f526aa4266de2249
refs/heads/main
2023-03-21T07:17:14.925971
2021-03-04T05:53:30
2021-03-04T05:53:30
340,753,359
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
0002_auto_20210219_0655.py
# Generated by Django 3.1.6 on 2021-02-19 06:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='category', options={'verbose_name': 'Catego...
a4c9bc15f1cb1d580e34abb1bb1dfeab631fdd0e
989e0a2f148c86df5b190d059d5074fd1c1e334f
/supervisors/template.py
71eb85638501e3eac7cd9587b0c51d55a2c7d835
[]
no_license
AngelGuale/pysimiam
c3642451a077e795ad2f02c18a112a1e334a3b5c
d93343290b2704235082d9e9a210b73a63321d70
refs/heads/master
2021-01-15T22:09:42.588457
2013-03-18T07:24:32
2013-03-18T07:24:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
template.py
from khepera3 import K3Supervisor from supervisor import Supervisor class Template(K3Supervisor): """The template supervisor implements all required functions to operate a supervisor""" def __init__(self, robot_pose, robot_info): K3Supervisor.__init__(self, robot_pose, robot_info) #Add at leas...
8ed1e8257b970bda1f19bf2971e6115d02c234c5
c4c9b81fcccd7226a52936d5229dab46b408a139
/test.py
cd85edaa6da7fd1d05520a5ac344608ca4689ef6
[]
no_license
3mm4h3ff/100DaysofCode
09263c680f6bd109582814a5b4bb0f18bff08ebd
0067cda1eb8f1775fdea9fa284f5651e956d4b97
refs/heads/master
2022-04-22T05:39:07.675260
2020-04-21T18:19:01
2020-04-21T18:19:01
257,115,545
1
0
null
null
null
null
UTF-8
Python
false
false
20
py
test.py
print('Python Good')
04094d8b8a54e1065265695674c081fccecebefe
647e06209858be26898b83eab36c7b20f85eee22
/SourceCode_and_Documentation/backend/src/weather.py
a6370c5ccbfb77b5a20eda1e54de92cd933f6b0a
[]
no_license
ChinmayManchanda/hello-world
de9e6faa4b5fad385c71091f4029f83e095a95c2
5f94d849ac42c03abd74539f1dd911da2ab8b009
refs/heads/master
2023-03-13T01:49:31.090550
2020-05-01T07:25:40
2020-05-01T07:25:40
343,117,717
0
0
null
null
null
null
UTF-8
Python
false
false
4,681
py
weather.py
import os from datetime import datetime from json import loads import requests from dotenv import load_dotenv import src.conditions ''' OpenWeather API Weather conditions: https://openweathermap.org/weather-conditions ''' load_dotenv() MINUTES_IN_HOUR = 60 OPENWEATHER_API_KEY = os.getenv("OPENWEATHER_API_KEY") WEA...
f878f99322768f3537546859f1c82266c700d60e
b6ff65242a6515152a0ba84b7c3c6c016e924a0d
/moviedb/movie/database.py
b77e2869799be9b858aa4bf854c422d546fd8de0
[]
no_license
kswiatek92/moviedb
7c930f481c1b13090ae4f79ec6e7c51ec5262014
33bc1bbfc9833463364a538f07ecae8c59cbcb12
refs/heads/master
2023-02-16T13:16:13.358759
2020-04-10T00:09:04
2020-04-10T00:09:04
254,177,476
0
0
null
2023-02-11T02:43:32
2020-04-08T19:09:11
Python
UTF-8
Python
false
false
90
py
database.py
from gino.ext.starlette import Gino from ..settings import DB_URL db = Gino(dsn=DB_URL)
8c24c33dfbcc7d912e9d6be4cd8b026efe96dce1
6aecca24fe0cd1041132cf44d4d6389932f7bad8
/twitter-backend/twitter/urls.py
d71162f4f7e2a41b70f5f7a76233c471b72b65de
[]
no_license
qkrcjfwls0923/twitter-clone
2a6aa101cd11c3d4cd46c6bb2af320c7bf676e03
bd02327367d1ce7b0e9bb6378ea5c1443a170f38
refs/heads/master
2021-06-26T14:21:35.448300
2019-08-19T08:39:02
2019-08-19T08:39:02
203,187,894
0
0
null
2021-06-10T21:50:16
2019-08-19T14:21:01
Python
UTF-8
Python
false
false
459
py
urls.py
from django.urls import path, include from .views import PostListView, PostManagementView, SigninView, SingupView, logout, LikeView, RetweetView urlpatterns = [ path('', PostListView.as_view()), path('logout', logout, name='logout'), path('signin', SigninView.as_view()), path('signup', SingupView.as_vi...
de4e14e15168d2fda520fd42b0c81e8599e4bccd
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/completion/attrsValidatorParameters.py
92f709979a97ff5838305ac77de5d0538175410d
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
387
py
attrsValidatorParameters.py
import attr @attr.s class Foo: x = attr.ib() y = attr.ib() z = attr.ib() @x.validator def validate_x(self, <caret>): pass @y.validator def validate_y(self, attribute, <caret>): pass def validate_z1(self, <caret>): pass def validate_z2(<caret>): p...
5905677153f59403b5f9822d5f6130e6f5e7b4fb
21f7e3f17c22f0d65a1fd2a2f30f30c22dc9cdb7
/allmyfavfun.py
7dd1d6a443e36294d273bd986df9506b66e0581a
[]
no_license
louiscouston/python
24dce2a0dc3b97a09d0c0e56711d2d28181f0906
6ff843d5a1115b984c253b7aaef5c830c9ffb52c
refs/heads/master
2021-05-20T08:12:32.704677
2020-04-03T14:49:31
2020-04-03T14:49:31
252,187,242
0
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
allmyfavfun.py
from matplotlib import cm # Create a series of color handles from colormap def createmap(nn,cmap): mapvec = [] for j in range(0,nn): idd = np.rint(j*256/(nn-1)) idd = idd.astype(int) mapvec.append(cmap(idd)) return mapvec # Break down a temporal series into a smaller set of (windowed) time averages...
70bbe0fab417f77d91381f699b31e16ea8fdbb6e
f478e6b1a65a2a190a72fdb02de08a3eed81cda1
/a4_q2.py
f139a01e5e93e23748e4d66ceccaf49bafd984a9
[]
no_license
dinishdevassy/python_assignment
3f98ece345b20a4b72061c178b34e525689cd8df
1422ebb04885ac5d765145b0776736e2f0f4a271
refs/heads/master
2022-12-22T14:10:25.046677
2020-10-01T17:23:54
2020-10-01T17:23:54
300,363,146
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
a4_q2.py
n=int(input("Enter Limit : ")) f=0 s=1 print (f) print(s) c=0 while(c<n-2): t=f+s f=s s=t c=c+1 print(t)
f685ace9def0e896c5ef9550a78470e3695ade37
2147e5e40aacf7911dabe81efad2a7437420ccb9
/orgwc.py
482589a35e8ee2a664a5af356e598916f9f82a25
[ "MIT" ]
permissive
DerHabicht/linux-scripts
326ff94fc926d9ce986cc5f67b9874c4d41f93b3
3d5670534e50dbb070224a9ab7391abc26de893f
refs/heads/master
2022-08-20T19:49:25.803016
2020-05-26T19:09:38
2020-05-26T19:09:38
110,747,813
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
orgwc.py
#!/usr/bin/python3 from sys import argv def count(file_name): count = 0 with open(file_name, "r") as org_file: drawer = False for line in org_file: try: if not drawer: if (line[0] == "*" or line.strip()[0:2] == "#+" or...
4ecc7825382b6161d0e0b495386fb4ff128fcfd8
85a27573dff0365f2649bc736314db5e29ce70d9
/plume_frequency_and_exposure/frequency.py
818cb3f237f1bafc0058c4edc89a5003bd6fbed5
[ "OGL-UK-3.0" ]
permissive
CefasRepRes/forel_ule
df8086c84580b55edcb8e5a38ac9531d9fe154b4
9f1e0241111a64c24ae89f0726ae5c60fa0ccbfa
refs/heads/main
2023-04-07T13:20:05.961019
2022-06-01T10:12:45
2022-06-01T10:12:45
396,833,308
0
1
null
2022-06-29T10:26:02
2021-08-16T14:34:58
Python
UTF-8
Python
false
false
5,998
py
frequency.py
# -*- coding: utf-8 -*- """ Created on Sun Mar 6 14:48:27 2022 @author: LF06 """ import rasterio #from rasterio.mask import mask import numpy as np import matplotlib.pyplot as plt import glob #import pandas as pd #from pathlib import Path import gdal #import calendar import seaborn as sns ##################function...
b525468324b211221b0d56327462d2f216eaa5be
67724e4c4922123e712ab8f16eb01c66af5df5df
/tests/conftest.py
4cf8c4c35cc702cdb9c3b98cc0c1d6efba3528eb
[ "MIT" ]
permissive
MarconiS/DeepTreeAttention
fe1686614e63a20d3a2a0721409a5b392af2ed76
3bb749c88d3f07f35f627c7b9bcac9f922348bce
refs/heads/master
2023-08-07T03:56:59.131644
2021-09-13T23:14:41
2021-09-13T23:14:41
278,177,522
1
0
MIT
2021-09-13T23:14:42
2020-07-08T19:31:12
Python
UTF-8
Python
false
false
189
py
conftest.py
#Download deepforest before tests start from deepforest import main def pytest_sessionstart(): # prepare something ahead of all tests m = main.deepforest() m.use_release()
9a46b80c8c1332d50d15f6d732984fc89b6e494a
9c6522db2db8c4c075e23f2953776384973891a8
/cn.ao/py.ori.fmt/t2510.bin.py
83b26a49e25e026ef863f0d274ca5977a1602a91
[]
no_license
ZhenjianYang/ZeroAoVoiceScripts
b388c28b498049d7d4277b8344cdc098488fd258
7e0b696d743912739b855acb4306f1dcf564d6c0
refs/heads/master
2021-05-18T08:58:59.482674
2021-02-19T08:22:19
2021-02-19T08:22:19
94,624,272
12
5
null
2021-02-19T08:22:20
2017-06-17T13:06:15
Python
UTF-8
Python
false
false
121,572
py
t2510.bin.py
from ScenarioHelper import * def main(): CreateScenaFile( "t2510.bin", # FileName "t2510", # MapName "t2510", # Location 0x005A, # MapIndex "ed7126", 0x00002000, # Flags ...
ae0a8ce7556a9a639b9b14aebfd320e8a7328756
3d1d7105a9613d216101b76b21856e706f2c3679
/Day 1/2 - Advanced Concepts/2-1 Modules/2-1-2 Packages.py
3b7915edae9f5f7c33c7ee89c923f2c5c90dc9ba
[]
no_license
NickC148/Python_Bootcamp
c4510c15fa4ba4ece744771064c150d584f0b2e5
485352408b4790722e4554ced71ff4091f0f68ab
refs/heads/master
2020-03-20T14:36:42.538684
2018-06-15T13:34:27
2018-06-15T13:34:27
137,490,387
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
2-1-2 Packages.py
# Packages are a way of structuring modules using sub directories. For the example below Python # searches through the directories on sys.path looking for the package subdirectory. There has to # be an __init__.py in each directory that forms part of the package. sound/ # Top-level package ...
071815c848b24841e6fdde87b590efe34b01cfa4
1e824cd35ee682cb212850436b79844c7641312c
/Assets/xBlenderFiles/scripts/presets/operator/object.add_fracture_cell_objects/fracture.py
c204a78d17ff500f2ff647e98d49cbaa1d3a151e
[]
no_license
Praaug/ggj17
9bb14de948e3333151ece03a47cb8d92c4f73d63
cbdca7432663a1b04129081683053248e964aa64
refs/heads/master
2021-06-10T00:28:27.870734
2017-01-22T19:43:44
2017-01-22T19:43:44
79,583,412
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
fracture.py
import bpy op = bpy.context.active_operator op.source = {'VERT_OWN'} op.source_limit = 8 op.source_noise = 1.0 op.cell_scale = (1.0, 1.0, 1.0) op.recursion = 0 op.recursion_source_limit = 8 op.recursion_clamp = 250 op.recursion_chance = 0.25 op.recursion_chance_select = 'RANDOM' op.use_smooth_faces = True op.use_sharp...
73f0f6fd26c117970a4f1c9b4a25a80ee00280b4
4d269669e8307871d295bf02245f68e62124f4a6
/lib/dataloading/__init__.py
ce361f3c9bc3b6a4aeb826c6887000c3aefe08e2
[]
no_license
sdcjimmy/ContextEncoder
df16bc754acf945a4b97a2ab1f5fa25e87bea899
006dc59e7f6a2854e9bb9ed4e68e55a18adbf215
refs/heads/master
2022-12-14T12:26:39.720257
2020-06-19T20:05:17
2020-06-19T20:05:17
231,656,007
0
1
null
null
null
null
UTF-8
Python
false
false
186
py
__init__.py
from __future__ import absolute_import from .dataset_loader import * from .hri_dataset_loader import LiverHRIDatasetMulti_simple from .open_dataset_loader import SingleClassDataset_Gray
e4d67e1ed4fb1567e057bb20838fd8ee32992f86
4e7839ae3c5f661ea00478a4639ccb840a1961b3
/web-app/src/artworks/helpers/imagenet.py
f18f96dc6c974f72db6165a94f0ebc75f677f6e0
[]
no_license
SavaKatic/art-search
580580977fbaa22f58c2b91b474764744d642c2b
46bf16f8631923915f5b7ff9b5bf9e2b999bcaad
refs/heads/main
2023-03-28T20:47:44.899601
2021-04-01T14:40:18
2021-04-01T14:40:18
330,332,322
0
0
null
2021-04-01T14:40:19
2021-01-17T06:50:52
Python
UTF-8
Python
false
false
2,158
py
imagenet.py
import os import numpy as np from joblib import load from PIL import Image as pil_image from numpy import linalg as LA from sklearn.decomposition import PCA from django.conf import settings class ImageNetWrapper: def __init__(self): from keras.models import Model from keras.applicati...
cc51ca8983a2e66d6fb8849a0bf135b46e5cc5fb
cd414653bffd9fba760764fd2157f1536c6ee0b6
/Puzzleclaims/rrrr.cloocetions_100.py
97996b0859e55f8516ba55d58f28ea7914e997b7
[]
no_license
sanchayana2007/HackerRanksTypesolutions
2debc410d804e73042596e3a8d994af781eebe3e
522d944efb97532b3df00ca51c03a2ce3fac2094
refs/heads/master
2022-05-25T10:52:46.427184
2022-03-30T00:43:51
2022-03-30T00:43:51
45,613,302
2
1
null
null
null
null
UTF-8
Python
false
false
669
py
rrrr.cloocetions_100.py
' '__author__ = 'Sanchayan' from collections.abc import Set as ColSet import inspect class ListBasedSet(ColSet): def __init__(self,val): self.elements = [] if val is not None: [self....
c10eae0c68e40dbeecb543af37dcf06d83ba6ec7
9edd44fa1b140f03f55b026606aa7421f133342d
/square_sum2.py
72d202685b580545fbd8c0af03b81298d39e3a57
[]
no_license
Priyanka-Kothmire/LOOP
e4a768441ded703ec479bdb4b5dd05dad6a2321f
f224a2b255da63c176e15316bc9b24dfd5aae585
refs/heads/main
2023-05-06T16:29:19.756431
2021-05-22T13:31:49
2021-05-22T13:31:49
369,792,743
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
square_sum2.py
n=int(input("enter the number")) sum=0 i=2 while i<=n: print(i) sum=sum+i i=i+2 print("sum of even number=",sum)
782d60393f7e9a8606f7e434c85b306ec4d2ad14
ade770753f839dcb724da8f77305def9043d4a17
/testbed/sonet19v5.py
ebbb0612653ddc409934bc8d90532653709f1d3c
[]
no_license
ChristophNeumann/FRA_MIQCQPs
95acedd34e0fc7c37d664c0c53149ea3e4ac5ad3
591e391c97324c310fae9560fd101a0ab2e8dd5b
refs/heads/master
2023-07-22T18:12:54.887935
2019-03-19T16:16:37
2019-03-19T16:16:37
395,260,673
0
0
null
null
null
null
UTF-8
Python
false
false
253,857
py
sonet19v5.py
# MINLP written by GAMS Convert at 01/04/19 10:34:18 # # Equation counts # Total E G L N X C B # 2927 1 19 2907 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
234d3b8f2b9ad8ae9b1d190139a2bf94e018c9b2
65fdde7255ed9d4915cf20c78c5f439eceb964a9
/tests/test_logger.py
81dfdd9c22f96fc09803fa4337c271bfe56d7879
[]
no_license
rshanker779/rshanker779_common
8c11c9122b4ed2dd10458eb5d3d00faa4f5087b6
2b9a9e00fb1cb115e811a0bf78c8f45907d55f20
refs/heads/master
2023-08-09T02:52:17.447394
2023-01-22T22:47:40
2023-01-22T22:47:40
198,701,218
0
0
null
2023-07-25T21:07:30
2019-07-24T19:54:36
Python
UTF-8
Python
false
false
194
py
test_logger.py
from rshanker779_common.logger import clear_handlers, get_logger def test_clear_handler(): logger = get_logger(__name__) logger = clear_handlers(logger) assert not logger.handlers
38b7ba6cbb2bdc312f484b001feea31d26feb94c
bb5013486d40baec4c7eb25365d156cfaa91e4ca
/features/migrations/0001_initial.py
5c57d3ed773fedf97f320f2c40050d5570aebe30
[]
no_license
Shankusu993/a-django-REST-backend
f7c8b6f940f7664d1b352422ec6ca67850ffd70d
4a15fc22eb59c1d7a0591aa587ea07017c17784f
refs/heads/master
2023-03-20T20:11:04.226007
2021-01-06T12:02:05
2021-01-06T12:02:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
0001_initial.py
# Generated by Django 2.2.12 on 2020-07-27 19:02 from django.db import migrations, models import djongo.models.fields import features.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Experience', ...
a6a347e4d259eeb762c7b19dc54a71d189ad2c07
781eec6c5b7ed90a8903b86c8591f868fa3e855c
/tests/lib/services/service_test.py
328035a294553908ff71dbc2a5f62c424731069c
[]
no_license
bothmena/autonomous-kaggle-kernels
0170d85cfb3e412b46ea0d1334fde204474f9d1f
b20b225a32a99ac4cf4ac54bd277d2f76e9da10d
refs/heads/master
2020-05-09T21:35:27.598577
2019-05-14T00:22:53
2019-05-14T00:22:53
181,447,920
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
service_test.py
from unittest import TestCase from akk.lib.services.singleton import Singleton class Service(metaclass=Singleton): def __init__(self): self.x = 5 class IServiceTest(TestCase): def test_is_singleton(self): a = Service() b = Service() b.x = 10 self.assertEqual(a.x, b...
01c379f5b46aaf1e1b6422d40b18dbabc8941626
6c8b19415643e20c75f22ae5a67fc0d29e7b3633
/test22_链表中倒数第k个节点.py
7d1fc1be151f01426d2246af98e6ecdc381830da
[]
no_license
gongtian1234/-offer
4375272abedd87c3fb9ab7d0bbac315bfe9a4203
9c5b039239cf24dfbcedf0f51128749137260a5a
refs/heads/master
2022-03-26T22:29:17.309064
2022-02-23T08:37:39
2022-02-23T08:37:39
207,930,843
0
0
null
null
null
null
UTF-8
Python
false
false
1,468
py
test22_链表中倒数第k个节点.py
''' 面试题22:输入一个(单向)链表,输出该链表中倒数第k个节点。如链表为[1,2,3,4,5], k=2时,输出倒数第二个节点为4 思路: ①先遍历一次列表获得链表的长度n,再从头遍历到n-k+1个值,输出即可,但是这样时间复杂度高 ②找两个指针cur1(第i个位置)、cur2(第i+k个位置),并另二者的间隔为k,当cur2走到链表尾部时,cur1所指的就是倒数第k个值。【注意:输入的链表为空或者 链表的长度小于k时,会直接报错】 ③防爆措施:1、当输入的k小于1时,返回None;2、链表为空,返回None;3、链表长度小于k,返回None ''' class ListNode(object): ...
d4d8d36bfef8c41de065d5c66e6594b9598a0acc
bb74e8cc2d2bf72f35dc7b779250e877eb79d8ac
/LeetCode/Single Number.py
e71a987165f136a47f375d675d4b3a00617c0cce
[]
no_license
wo-shi-lao-luo/Python-Practice
30154b69102ec7a206c79658f719e6384c50cdf1
a26dd31dc2e11202b94bfc1ab43e64fa99054bb6
refs/heads/master
2021-08-16T21:52:42.855370
2021-07-14T04:44:27
2021-07-14T04:44:27
154,429,466
1
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
Single Number.py
# Given a non-empty array of integers, every element appears twice except for one. Find that single one. # # Note: # # Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? # # Example 1: # # Input: [2,2,1] # Output: 1 # Example 2: # # Input: [4,1,2,1,2] # Output: 4 ...
01a8af6ec9fd2d8903eb96d6812ea945429002f5
e8f3daa99f89faaba64da3368e17e5a407e7e8c1
/app01/views.py
1655b5466e6401ff72fb6bb616b62b1153c9de0e
[]
no_license
moonrain/certops_webservice
0deb00e3bb3dc61febe41cab36f8626b6e6317b7
7dabf92af1f38e961e31a06ad47ca58e4bba5a66
refs/heads/master
2020-04-10T15:16:23.107571
2018-12-19T02:39:24
2018-12-19T02:39:24
161,102,438
0
0
null
null
null
null
UTF-8
Python
false
false
6,667
py
views.py
# -*- coding: utf-8 -*- from django.shortcuts import render, HttpResponse, redirect import datetime import subprocess import ConfigParser from app01.utils import search_cert,auto_review # Create your views here. def command(cmd): ''' command is encoded with utf-8''' obj = subprocess.Popen(cmd, shell=True, ...
2c1bc43ae5bb468cb37a6598c994dfabe626dd43
218be98e315b97edf17ed7a4a3ddbc0290de8e12
/consulta.py
4f5a39a67eae5b8e7655a9922edfdf15b0cbbbb7
[]
no_license
akalautaro/consulta_stock
a5887a4a6c09c7ff828b618ad845250f6f1c86fd
25c491c168b7c97f9f9fc089e32ec56b5b85547f
refs/heads/main
2023-04-12T16:34:33.057728
2021-05-03T12:00:57
2021-05-03T12:00:57
363,913,571
1
0
null
null
null
null
UTF-8
Python
false
false
2,394
py
consulta.py
from hdbcli import dbapi class Productos: conn = dbapi.Connection user = '********' passwd = '********' schema = '********' host = '***.**.**.*' port = ******** def __init__(self, user, passwd, schema): self.user = user self.passwd = passwd self.s...
6b8e6b7d81d2536d263101306f528146f5dba8b3
dd5aa7d7ec74cc65380d0d0a9232365326cb2aa6
/test.py
8b7d7c40fee56d336a7f64b190c18d57cc72f674
[ "MIT" ]
permissive
BattleCisco/pyWooting
d08fff642eac661cb3eddefa2b53620e4cb11cb3
cf494fdb9ed1eccc343b7cab3cc46fe0dcb21954
refs/heads/master
2020-03-21T13:50:42.716620
2018-06-25T18:39:43
2018-06-25T18:39:43
138,628,353
2
1
null
null
null
null
UTF-8
Python
false
false
2,154
py
test.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from reader import KeyboardReader from rgb_control import KeyboardRGBControl from key import WootingKey import traceback import time def main(): try: KeyboardReader.start() KeyboardRGBControl.start() key_presses = {} def set_black(): for j in range(6)...
16cdda762a9e2e3e8907bd1b541d1b397b8a7ba0
9658b65047043514d8ce5c01791c63898221a053
/jx3Script.py
7fcaca55dfbe8b5cbf6cbde59ad9f52cb1b76d30
[]
no_license
hyarcticfox/Qt
e5a0d9aea5b78be50c050d59be00490c7b93e257
59b819106e8e469b2e5d8f893e37839f32d30683
refs/heads/master
2020-08-21T11:40:13.183561
2020-03-15T15:27:36
2020-03-15T15:27:36
216,151,599
0
0
null
null
null
null
UTF-8
Python
false
false
17,515
py
jx3Script.py
import sys, os if hasattr(sys, 'frozen'): os.environ['PATH'] = sys._MEIPASS + ";" + os.environ['PATH'] from PyQt5.QtWidgets import QApplication, QMainWindow from MainWin import * class MainWindow(QMainWindow,Ui_MainWindow): def __init__(self): super(MainWindow, self).__init__() self.se...
136b7a9abdde0a32850700de7f6f1e3d3d262848
11bde17e970162af586bef91a1069ecf536fc198
/momomodel/Model.py
6f5c0581a86f9c33155dabf53dfd28115bbfef61
[]
no_license
yyangcg/...
acd7391030930233acd0fa0d55e6cdd525a4c3a0
ebc1d1d89b92adf4fec374393376a5e90447b5e6
refs/heads/master
2020-04-05T20:11:31.739424
2019-06-30T12:39:02
2019-06-30T12:39:02
157,168,357
0
0
null
null
null
null
UTF-8
Python
false
false
4,672
py
Model.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/8/13 17:37 # @Author : Yang Yuhan from sklearn.model_selection import train_test_split import pandas as pd from feature_engineering import * ##格式转换 import datetime import time def build_model(Xtrain, label_train): from sklearn.ensemble import Random...
5262aab1b91c620a22d1be2df305f1e8c5d12265
a24b28cda3463561631da41e8f0fbaf5c45235b2
/Upgrade/monitor-2.0-upgrade/monitor/system/devices/deviceConstants.py
a78623cd1c5051fa0bc5d70fdbfd16e8760a0e4c
[]
no_license
bopopescu/LEO_UI_2.0
ff2ab8f49d535b3af9e0a6eff26cd855029eb3bf
19174d2d880acc0cbde4ddb7bfce54336ee1a72d
refs/heads/master
2022-11-18T16:33:38.708898
2020-03-12T13:11:17
2020-03-12T13:11:17
282,063,321
0
0
null
2020-07-23T21:53:32
2020-07-23T21:53:31
null
UTF-8
Python
false
false
1,337
py
deviceConstants.py
#! /usr/bin/python valueTypeInput = "input" valueTypeOutput = "output" valueTypeConfig = "config" dataTypeString = "string" dataTypeFloat = "float" dataTypeInt = "int" dataTypeList = "list" dataTypeBool = "bool" unitTypeTemperature = "temperature" unitTypeDeltaTemperature = "deltatemperature" unitTypePressure = "pre...
13737b7d33bc0b353438e3d181e79d155750a64b
2685b19137ceab482de4030017020918caf9212c
/baby_agency/baby_spectrogram.py
e5e6fa39332ca63439a1ba4b4dfac8350e369a25
[]
no_license
Michelle-CI/Mobile-Conjugate-Reinforcement
4a17c91e559cfc81613c6f0c0fec1d16eec6639d
8d99f446b8f65ebf13c11ccf60da66bfbd74da47
refs/heads/master
2023-03-17T11:57:00.829330
2020-09-01T23:18:17
2020-09-01T23:18:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
baby_spectrogram.py
import numpy as np from scipy import signal from scipy.fftpack import fftshift import matplotlib.pyplot as plt v = np.loadtxt("HKB.csv") v= v[:,1] fs = 1000 f, t, Sxx = signal.spectrogram(v, fs) plt.pcolormesh(t, f, Sxx) plt.ylabel('Frequency [Hz]') plt.xlabel('Time [sec]') plt.show()
3ee9efae56dc71f86c56c29fcbfc7a0cd18f4f7f
86546d27290f526dd0085fdcee3429201b3b9497
/TreasureHuntGame/testproject/function.py
d967bb7013c1288a8b94bbb1baa74d1f25fc0db8
[]
no_license
zyx-406/TreasureHuntGame
11d45e70292895ea8713ac6bdfdfa704f686e495
1aa9953a0c65cac17855ae384acf49f7b4f86331
refs/heads/main
2023-08-14T14:35:47.985427
2021-10-16T09:20:27
2021-10-16T09:20:27
415,211,041
1
0
null
null
null
null
UTF-8
Python
false
false
7,822
py
function.py
from TreasureHuntGame.settings import db from bson.objectid import ObjectId from django.http.response import JsonResponse # user文档格式 def create_user(username, password): return { 'username':username, 'password':password, 'gold_num':100, 'work_efficiency':1, 'lucky...
9d718b21c14ceea666a38e353ae23bdc53326744
7bac21baa840dd302983116245d9e40fa7238ab3
/weightsViewer.py
5f880f0a930d9b9ec34b79bf112c67f1d1e7f993
[]
no_license
Narts/SAERL
e3070fec1ff9f411019beb6a12ae65f82c368318
1490dd048f91a749bb757250a27e1be19f8502d7
refs/heads/master
2020-12-24T15:49:24.266514
2015-10-13T23:14:02
2015-10-13T23:14:02
41,833,132
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
weightsViewer.py
#import cPickle from pylearn2.utils import serial model = serial.load('./dae_l3.pkl') # dae_l2_best_bck params = model.get_params() for param in params: print param print param.get_value()
272f318d5b627ac7dd0219a4f036369994268905
394458814a91239bfd13400875ba03696a41698e
/openheating/plant/locations.py
f9ec50daf17f31e2b9e0534d98ea1937ccbbfc39
[]
no_license
jfasch/openheating
15e45d43bc2db0973b9da7a322ce5b22fa5c0af1
0606072484c936ebcc820053b0e2bdd461069519
refs/heads/master
2020-04-19T23:34:49.636068
2020-04-16T15:32:20
2020-04-16T15:32:20
27,473,818
8
2
null
null
null
null
UTF-8
Python
false
false
1,757
py
locations.py
from ..base.error import HeatingError import os.path import sys def find_project_root(): '''Based on sys.argv[0], examine the directories upwards towards '/'. The first directory that contains files from the project root (README.rst is a candidate) is considered the project root directory. If no...
1f47ac79e5be4ad7a7511fea1b390fac6a5f1b1c
061ff388e599a9a34b02854a9f0a7b764861c848
/rogues/utils/rq.py
1f53c17b15303c9219730d71ac9cafedbdf69aaa
[]
no_license
macd/rogues
3574948252634a27175405106826c465695b5fb3
a131e41f90481ab86272ce7ab4efb799b24ffa4d
refs/heads/master
2021-06-06T13:07:44.503679
2019-12-01T01:39:49
2019-12-01T01:39:49
1,387,053
11
2
null
2019-12-01T01:39:50
2011-02-19T18:59:58
Python
UTF-8
Python
false
false
409
py
rq.py
import numpy as np class Higham(Exception): pass def rq(A, x): """ rg Rayleigh quotient. rq(a, x) is the Rayleigh quotient of a and x, x'*A*x/(x'*x). Called by FV. NOTE: This function has a name clash with scipy.linalg.rq which computes the RQ decomposition of a...
a15e836c80eb9208a363da3da9c03c35b72f8326
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4013/codes/1573_1332.py
619aa096fb3ad58597e9af6bd442292984dea63e
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
67
py
1573_1332.py
aresta =5 area =((aresta**2)*(3)**0.5)*3/2 print(round(area,4))
845cde161b9c1ad77f8a7d2b1d9c747d6640f5ec
ddb861c6277df2a16df97505bc4e6391ed3adee9
/acmicpc/before/greedy/B_11399_ATM.py
d92bd948d2271875c7a7900b7d145db374a51d4e
[]
no_license
j2junn/Algorithm_Study
d005e7d6914f3e8347a001660846025d41117dad
16e161a06e724be51e7c29bfa4d9d7981b54a466
refs/heads/main
2023-08-12T08:20:49.577399
2021-10-06T08:20:30
2021-10-06T08:20:30
343,092,613
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
B_11399_ATM.py
import sys answer = 0 N = int(sys.stdin.readline()) people = list(map(int, sys.stdin.readline().split())) people = sorted(people) for i in range(N): answer += sum(people[0:i + 1]) print(answer)
ee95507a28dff3365a7c090e014846e5f7ba7b70
b3c37e44352fc3e3e2e8770e12beb2b7296676f5
/project1/StudentCourse.py
e607fc54c50a0479e6edbb7eb2786f5fa41150f0
[]
no_license
iit2013159/PythonPractice
8d00f98f7abc311bc20da8ad51e70a0c2003399f
fccd7a23d6173eb258820121a04ef80ac23c0205
refs/heads/master
2022-10-28T06:20:44.530323
2017-12-02T00:12:55
2017-12-02T00:12:55
112,300,198
0
1
null
2022-10-23T10:25:38
2017-11-28T07:16:44
Python
UTF-8
Python
false
false
138
py
StudentCourse.py
class Course: def getCourseName(self): return self.courseName def setCourseName(self,name): self.courseName = name
c748e0c23f8a479bf29ae809d5a7e70db6d37ae0
53b18f36b7facd29b9821b7a41f5320afa59809b
/train.py
5422ed78d792f84e7935f2d86a8146290a0de3c8
[]
no_license
rrgaire/multi-class-segmentation
1903a0d4b3f2934c09814d77dfa1d15db2996f9e
5063cfc5ad97d0e296d5387d614a866bb112ba1e
refs/heads/master
2023-06-12T11:58:30.086123
2021-06-28T16:56:57
2021-06-28T16:56:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,430
py
train.py
import sys import torch import math import random import numpy as np from torch.utils.tensorboard import SummaryWriter import logging import utils.utils as utils import utils.data as data from utils.trainer import Trainer as Model import wandb wandb.login() def set_random_seed(seed): random.seed(seed) np.r...
0230fa347ab5d5b00c29b84d3538fd4140040b75
0a46b027e8e610b8784cb35dbad8dd07914573a8
/scripts/venv/lib/python2.7/site-packages/cogent/evolve/motif_prob_model.py
72d2ab8ff9b62ec41a53730c572c6b194a5bd1e7
[ "MIT" ]
permissive
sauloal/cnidaria
bb492fb90a0948751789938d9ec64677052073c3
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
refs/heads/master
2021-01-17T13:43:17.307182
2016-10-05T14:14:46
2016-10-05T14:14:46
33,726,643
3
0
null
null
null
null
UTF-8
Python
false
false
11,138
py
motif_prob_model.py
#!/usr/bin/env python import numpy import warnings import substitution_calculation from cogent.evolve.likelihood_tree import makeLikelihoodTreeLeaf __author__ = "Peter Maxwell" __copyright__ = "Copyright 2007-2012, The Cogent Project" __credits__ = ["Peter Maxwell"] __license__ = "GPL" __version__ = "1.5.3" __maintai...
bfe622c1c961b9ae8bbe7ed4f43859d04f3360d6
fe32d8ca407bb7f84dc2dde2dac00d14050629d2
/spark-test.py
2b99e38ed2f4897e1ed8c5b4c2b7854e470c757a
[]
no_license
philippeback/speedtest
bbee29a9a6dfd0d3f83cbf9b642999a85c07dd77
2e1473f66f9135c7a627766f478511420ee03e96
refs/heads/master
2020-04-28T13:15:08.714772
2019-03-12T21:55:39
2019-03-12T21:55:39
175,302,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,943
py
spark-test.py
import sys import os print("sys.path is:") print(sys.path) # Due to some bug, PySpark is not using the variables, so we are forced to make it pick the right python os.environ["PYSPARK_PYTHON"] = "/opt/anaconda2/bin/python" os.environ['PYTHONPATH'] = ':'.join(sys.path) from pyspark import SparkContext from pyspark.sql...
fe495d7cf691f409983e3bc55908bfbd8cef8dba
443d81e41fd40e794d59c60f552e7b111bb45eb6
/feat/utils.py
661f59c0bd1c1f0de3a0eba109da261b9e460f88
[ "MIT" ]
permissive
xuguozhi/py-feat
6cba95146cd7f92833775cc86a43a99a8babcb79
47a34b062dd5e6e07761c73d21285f085dfeaafa
refs/heads/master
2023-07-16T14:02:41.256835
2021-08-15T20:50:22
2021-08-15T20:50:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,847
py
utils.py
from __future__ import division """ FEAT Utils Class ========================================== read_facet: read in iMotions-FACET formatted files read_affdex: read in iMotions-affdex formatted files read_affectiva: read in affectiva-api formatted files read_openface: read in openface formatted...
655962457e5e339a3c73129590e0d84b661fb458
78b23d04c7a5a66d2f5f5a6d0d279a6374f6b599
/verification/referee.py
01d8115d42af221f3c3ea81e03a8e221e0974d64
[]
no_license
CheckiO-Missions/checkio-task-minesweeper
a782d3ae26a5b96b4883008e09fc73eeb9616dc6
92710a9274633b7e5168da699fa58c06f34db72a
refs/heads/master
2022-01-28T08:10:57.764415
2022-01-23T12:15:14
2022-01-23T12:15:14
12,554,513
0
3
null
2020-03-23T22:22:21
2013-09-03T03:52:03
HTML
UTF-8
Python
false
false
3,829
py
referee.py
from checkio.signals import ON_CONNECT from checkio import api from checkio.referees.multicall import CheckiORefereeMulti from tests import TESTS def initial_referee(mine_map): return { "input": [ [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1], ...
6280fe96c6a1f87e5d7f0ae386f0e3c9accfccba
f17e73b8ecda5c8a0803942c973019c85c209aed
/tutorials/sample_locations_from_same_census.py
b4c832771a10a1be03a206893566afa4b96ba4c5
[]
no_license
frlim/stroke_locations
69aa2aaacee3f2c0149a6ae734fc2280f1593285
1b67404e0a5ea587cf58c741b7915c159f8c2eaa
refs/heads/master
2023-03-16T03:50:19.517942
2020-07-28T20:54:34
2020-07-28T20:54:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,625
py
sample_locations_from_same_census.py
import geopandas as gpd import pandas as pd import plotly.graph_objects as go import plotly.offline as py import numpy as np import shapely.geometry as sh_geo from tools import MAPBOX_TOKEN def _get_random_point_in_polygon(poly): '''From https://gis.stackexchange.com/a/6413''' (minx, miny, maxx, maxy) = poly....
956fc1dc26c702e0ff44a5f2d02ba2896ea1ab68
46846c2f6a464b11b56949c2d61ffcac5431f9bd
/matrices.py
5387afaca4edce794b77072ebdd4ea2cef43c8fa
[]
no_license
AfonsoDolmen/Render-3D
7d576bb7aa687b480bb6079786180eb0b0b52982
325d1a90e612657063f0c55821e47dd88f71a09a
refs/heads/main
2023-03-17T05:44:48.280421
2021-03-02T12:41:46
2021-03-02T12:41:46
336,590,843
0
0
null
null
null
null
UTF-8
Python
false
false
2,420
py
matrices.py
import math class Matrix: def projection_matrice(self,near,far,fov): self.near = near self.far = far self.fov = fov self.a = 400/800 self.m00 = 1.0 / self.a * math.tan(self.fov / 2 * 3.14159 / 180) # Creating the fovX with the aspect self.m11 = 1.0 / math.tan(self.f...
71b308d4d20f8a867f566ab3d447de59fa1a4d05
d88036f69f43d683e752860788b1b6a677d4ec12
/test30/get_all_lines_of_given_format.py
5d114bc7db912162d20574d67ac5c31df698e6f6
[]
no_license
FALCON-084/test30
3bb71978733ed1c9ef4b6e998e92a727515c29ed
146b83e7278c5575179e22f4b2db84fb48812e41
refs/heads/master
2021-01-23T10:19:40.019331
2017-09-06T13:02:37
2017-09-06T13:02:37
102,608,547
0
1
null
null
null
null
UTF-8
Python
false
false
2,098
py
get_all_lines_of_given_format.py
import json ''' goal extract all words of the given format ''' freq = [] f =open('ff_stats','r') line = f.readline() while(line!=''): freq.append((line.split()[0],int(line.split()[1]))) line = f.readline() f.close() f =open('fs_stats','r') line = f.readline() while(line!=''): freq.append((line.split()[0],in...
c8153678ea702a39b5f846da9cda8bcea67a17eb
6f81badf4823e43f763b68b09d8321b06aa02919
/main.py
a651646d268dce5cbc69ba57ecfe75356731bda2
[]
no_license
Wesleyliao/QWOP-RL
4d26b7710383cb8632c663ea65e75f947e460812
365beb7c219dfd3320a52b44d8d61ed25aa913c8
refs/heads/main
2023-03-29T04:07:54.568868
2021-04-01T15:44:02
2021-04-01T15:44:02
332,126,548
138
28
null
null
null
null
UTF-8
Python
false
false
5,120
py
main.py
import os import time import click from stable_baselines import DQN from stable_baselines.common.callbacks import CheckpointCallback from stable_baselines.deepq.policies import FeedForwardPolicy from game.env import ACTIONS from game.env import QWOPEnv from pretrain import imitation_learning from pretrain import reco...
ca2f853c2adc5a5ddb61c2d1b617b3b8953a4ede
3da4e93a082d1b1cf5b08a833f3ce2ddc5ff2440
/travel_generator.py
5b2fb4873e6e8098150b956dea42fd37efc22db5
[]
no_license
BrazierF/Hackathon_Shan17
aded8667fcd8ef3d15a6577c2edcfa1f663b1af9
1d738d801f55f0d88339624637a990f0969371fc
refs/heads/master
2021-01-11T15:02:21.330243
2017-01-29T18:58:43
2017-01-29T18:58:43
80,286,005
0
0
null
2017-01-29T09:21:16
2017-01-28T13:31:00
Python
UTF-8
Python
false
false
3,258
py
travel_generator.py
# coding: utf-8 # In[1]: import numpy as np import time as time # In[2] class Activity: #activity #constructor def __init__(self, name='',lat=0.0, lng=0.0,x=0.0, y=0.0,s=0.0,t=0.0): #name self.name = name #position self.x_coord = x #x coordinate self.y_...
8d94ef04cfddf6c38538803aad2130df411f9da1
6b791247919f7de90c8402abcca64b32edd7a29b
/direct/gui/OnscreenText.py
964e59b97fdd5cdf319e063b9955753d8cbb1c09
[ "Apache-2.0" ]
permissive
theclashingfritz/Cog-Invasion-Online-Dump
a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
refs/heads/master
2021-01-04T06:44:04.295001
2020-02-14T05:23:01
2020-02-14T05:23:01
240,434,213
1
0
null
null
null
null
UTF-8
Python
false
false
8,491
py
OnscreenText.py
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: direct.gui.OnscreenText __all__ = [ 'OnscreenText', 'Plain', 'ScreenTitle', 'ScreenPrompt', 'NameConfirm', 'BlackOnWhite'] from panda3d...
9bf66e70b46fdb95295546bb1dc12a0f35de237c
819a8198603717be9b1cba1758135bf8ce968842
/ex062.py
d72dcad07fd34159cf4dbbce67d90887d5cd32d8
[]
no_license
iPedriNNz/Exercicios
3fc5b4110b8394d3c8bc5ca33e19647c219d8847
79dd7f7761eb3ced54456946f336cb46f1c740b5
refs/heads/master
2023-07-25T01:41:04.084225
2021-09-01T03:53:46
2021-09-01T03:53:46
401,873,195
1
0
null
null
null
null
UTF-8
Python
false
false
381
py
ex062.py
primeiro = int(input('Primeiro termo: ')) razao = int(input('Razão da PA:')) termo = primeiro cont = 1 mais = 10 total = 0 while mais != 0: total = total + mais while cont <= total: cont += 1 print(termo, end=' → ') termo += razao print('PAUSA!') mais = int(input('Quantos termos ...
7300a955b4a0b1650fe6bcdfaaf582b337200338
759e0e768aa54767ecf25ef0cf431b517986c392
/scripts/wikisourcetext.py
074ce6a426e1b32908c45d54bfd7ea6a4f68229b
[ "MIT" ]
permissive
mridullpandey/pywikibot
b28fd7870fd430fd164d6a1d4b214dd9da123ade
6c9280bea615ad457fd79c01bf1d2cab4c6bf220
refs/heads/master
2020-07-28T05:19:12.489491
2019-09-18T06:52:22
2019-09-18T06:52:22
209,320,511
1
0
MIT
2019-09-18T13:50:31
2019-09-18T13:50:31
null
UTF-8
Python
false
false
9,905
py
wikisourcetext.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ This bot applies to wikisource sites to upload text. Text is uploaded to pages in Page ns, for a specified Index. Text to be stored, if the page is not-existing, is preloaded from the file used to create the Index page, making the upload feature independent from the forma...
2247794498b8906513a8ec4f31d0e29bffd35504
61b5aa5b4d401a123050181092f25a98828ebb7b
/backend/src/djreact/articles/api/views.py
20f0befc96d1ee21248fd0291e2d5aa92baf7da9
[]
no_license
ishakdolek/djreact
f1d5f64922b445033a8f889a4093f29112dac1fc
5a7266f0da808257b7c861080d4d7421881a3643
refs/heads/master
2020-08-22T12:59:31.328716
2019-11-21T22:11:52
2019-11-21T22:11:52
216,399,954
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
views.py
from rest_framework.generics import ListAPIView,RetrieveAPIView from articles.models import Article from .serializers import ArticleSerializers class ArticleListView(ListAPIView): queryset = Article.objects.all() serializer_class = ArticleSerializers class ArticleDetailView(RetrieveAPIView): queryset = ...
c030647b6a8c74d94e601d6ac07fa4bfd6b7b366
cab765148c47f31ed68b1f393bb64238a8479b8d
/converter.py
93169160250586173ebfde5208f35a6cfab6761a
[]
no_license
gurupras/ubhacking2016
5abde59ed1a48b280f7e94638792473e7dea6154
5e0b81a0a6946d3bd5163fa09fd5ae7c1066e676
refs/heads/master
2021-01-11T10:38:48.012023
2016-11-20T07:13:45
2016-11-20T08:30:48
72,953,586
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
converter.py
import os,sys,argparse import tempfile import pycommons def setup_parser(parser=None): if not parser: parser = argparse.ArgumentParser() parser.add_argument('--input', '-i', required=True, help='Input file to process') parser.add_argument('--convert', '-C', help='Convert to WAV format and process that') ret...
81aee7deb4ad4d19fb9e9e0c58299887c1ba6436
48618be0e8f476c15127d9975772b5438b80d8dc
/brainfuck.py
8af8d2d9eac402286b800c40d1aee27b1570593d
[]
no_license
swdrsker/brainfuck
ce7e1d57feded0b557b7223d923f295ba8d92396
11836dc16bfdb4966155e39ff12c9e07496884cf
refs/heads/master
2021-01-11T14:10:46.898061
2017-06-22T15:57:05
2017-06-22T15:57:05
94,994,373
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
brainfuck.py
#coding:utf-8 convert_list = { ">" :"バカ" , "<" :"ボケ", "+" :"死ね", "-" :"殺す", "." :"カス", "," :"ゴミ", "[" :"クズ", "]" :"クソ", } def conversion(code): for i,j in convert_list.iteritems(): code = code.replace(i,j) return code if __name__=="__main__": cod...
e9e873f72135b975c2eddc06db277fd54cef7012
21d5e044a3e16df703cdd60acf9b8b28857c3213
/10_More_String_manipulation/Problema_082.py
af7bc36f40a890dbe3e0f7d82f652692d6f2723e
[]
no_license
Jesusml1/150_python_challenge
cfe0d7355dc65cef79d748dd0a9bb7c590cf6859
451f4131d5eaa576aabffa59e691c1a603f87995
refs/heads/master
2022-09-05T23:47:17.889120
2020-05-30T09:44:45
2020-05-30T09:44:45
260,814,245
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
Problema_082.py
phrase = "If there is will, it is posible." print(phrase) print(len(phrase)) start = int(input("Introduce a starting point: ")) end = int(input("Introduce a ending point: ")) print(phrase[start:end])
42bf538675d0692e1f060bfed97967c88b55e037
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/broadcom_symantec_endpoint_protection/icon_broadcom_symantec_endpoint_protection/actions/__init__.py
3306ddf46d862c7a67e0d6c49cb61d4747afae81
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
176
py
__init__.py
# GENERATED BY KOMAND SDK - DO NOT EDIT from .blacklist.action import Blacklist from .get_agent_details.action import GetAgentDetails from .quarantine.action import Quarantine
3c378fe6447723202421d8f774884b95d4e6ebc1
45e8e648e05b56819057cf513066d1a58175cb9e
/binario.py
2f6e9b0bd8152c523ecd4234c8841027999aff2c
[]
no_license
peterjoking/Nuevo
3efd118036a3230b9bdc4f23b2af37b6c96133a8
199dd2911cfd5582a9fdae29fe28f2079384aed4
refs/heads/master
2022-12-28T00:17:34.017011
2020-09-21T00:32:26
2020-09-21T00:32:26
256,891,055
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
binario.py
import pickle frutas = {'v':'verde', 'r': 'rojo', 'a':'azul', 'n':'negro'} fichero = open('fichero.pckl', 'wb') pickle.dump(frutas, fichero) fichero.close() fichero2 = open('fichero.pckl', 'rb') diccionario = pickle.load(fichero2) print(diccionario) frutas.values()
6b40f3b0ce979b94a6a2f19a32c42ed87674ba0a
5227ce2d83a502b2f880b297bfe7f79d2e0beb67
/base/views/asset.py
06d4505a1c5a21f65554dcf1610f07de9376aa1e
[ "BSD-3-Clause" ]
permissive
pmeier82-zz/spike_gnode
676f5c0fbf14bb07045fca0a1b87cd72b94e0da1
7392917905384ab1a8124bf30f69307913a39be4
refs/heads/master
2022-12-19T10:53:08.044286
2015-04-23T11:40:57
2015-04-23T11:40:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,597
py
asset.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import apps from django.contrib.auth.decorators import login_required from django.contrib.contenttypes.models import ContentType from django.contrib import messages from django.contrib.messages.views import SuccessMessageMixin from django...
b6b6ce635eacaca9b4f98581745bd281823d69bb
037f0a634549bfe8ccb1cd25fe7968d9fdcc6db6
/tk.py
d494fccefc76193513faec014b96b49c29376425
[]
no_license
sahiljani20/functions
975b8178d1300d8ae4097b4cf9f67878f1945935
21c1949d60e31814ce972a144971cef4af7fb127
refs/heads/master
2020-05-18T08:57:04.099674
2019-05-02T18:44:35
2019-05-02T18:44:35
184,310,283
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
tk.py
from tkinter import * from tkinter import messagebox # parent = Tk() # name = Label(parent,text = "Name").grid(row = 0,column = 0) # e1 = Entry(parent).grid(row = 0, column = 1) # password = Label(parent,text = "Password").grid(row = 1, column = 0) # e2 = Entry(parent).grid(row = 1, column = 1) ...
82d91a0877727f67e8e2021bcfd2f82697472f44
fbefa08e697732f93ffc0378c0ecad69f6fa0662
/tools/offline.py
00b12cdb793fb2660938e2694435441e127fb466
[ "MIT" ]
permissive
CDLUC3/ezid
f3317de61bbcbd8ff4ab2aa4a76fd04ec9b112db
04e89b4b33aae7308f95007524aff4d7d693a63c
refs/heads/master
2023-09-02T16:46:29.108501
2022-05-16T22:57:59
2022-05-16T22:57:59
242,207,084
12
8
MIT
2023-09-13T22:47:22
2020-02-21T18:40:34
Python
UTF-8
Python
false
false
1,261
py
offline.py
# This file is execfile'd by offline scripts before importing any EZID # modules, to set up the Python path and perform other initializations # needed to prevent conflicts with the running server. It can and # should also be used when importing EZID modules interactively, as # in: # # % python -i offline.py # >>> impo...
198786405f09b62d13ba63ea8d4ab2d0db70e5bf
3731097ee0f532390a35f4e1a25e1b82cc0bb4b9
/ChainedHashTable.py
2e440206b9e774036351b953cebb032a5e04e32e
[]
no_license
daxile6/BookStore-System
25a35af8833b128c4f3e6392e4665991a24cb87b
89a2c51666719adc709ce6a2e428f33bf814014f
refs/heads/main
2023-08-30T22:08:21.768081
2021-10-22T20:40:04
2021-10-22T20:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,601
py
ChainedHashTable.py
from Interfaces import Set from DLList import DLList import numpy as np class ChainedHashTable(Set): class Node(): def __init__(self, key, value): self.key = key self.value = value def __init__(self, dtype=DLList): self.dtype = dtype self.d = 1 self.t =...
ba6cdc4eb2be761e975248cc4bcb1cd77b157049
a114260b18512b0d2cca28c85c1ab169d3afbdc3
/OnlineCartApp/apps.py
cd79b35f10afe5da907ebf4d3becb5ecbc25048b
[]
no_license
shrutidk/OnlineShopCart
c4b548b6ee1995d1a6de9347150844fd33c8f341
267fa9bdeed513fa0f7e3dc1a2bb018e5e6fb8e8
refs/heads/master
2023-03-30T14:35:45.972503
2021-04-06T13:07:46
2021-04-06T13:07:46
354,241,262
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
apps.py
from django.apps import AppConfig class OnlinecartappConfig(AppConfig): name = 'OnlineCartApp'