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
69f64b5b7fe7c70f20f392ec3b37f6a73753f062
54ce3b80c38a083c67b6d7dfaffa21953ffe7f73
/load.py
e9f0d355c0f0fb8a44b5e4dca65cfcf9f7ee7af0
[]
no_license
timmyneutron/CarND-Behavioral-Cloning
9c3defd1b4098986b751e5bb77576cdfcc2f8a41
309b63e2961b19505c5141abb7d3093a9c21f3c9
refs/heads/master
2023-02-16T10:08:38.648498
2021-01-09T17:29:05
2021-01-09T17:29:05
80,518,414
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
load.py
import pandas as pd from scipy.misc import imread from sklearn.utils import shuffle import numpy as np import matplotlib.pyplot as plt def load_data(driving_log, num_images=None, augment=True): ''' load image and steering angle data and return it as numpy arrays ''' driving_log_df = pd.read_csv(driving_log)[["cent...
db9dadb98b1d86c63a49b85b3f6360bd1d059eb1
2337351b228818e41be3002bd38f68f77c2aa074
/core/etl/models/link.py
3ef9586615b1f5f46be3c83b62d012b3d6474470
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
680
py
link.py
# ---------------------------------------------------------------------- # LinkModel # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NOC modules from ....
8bf1ab8d8976b7b4d2a439722b6a753837db86c5
9b09b39b937573dc4970415a27b4bd4ccb7b8867
/hostingde/helpers/filters.py
95711a24efdbc81a8312eab1b26297dfc48e9202
[ "MIT" ]
permissive
DimeOne/no-hostingde-api
94fd3c08d3e74a2cc500ced60eae89f3348ea62a
a183b6421ca1254fabf6abd6515a8471f9999405
refs/heads/master
2021-06-06T12:29:38.332542
2021-05-31T01:09:10
2021-05-31T01:09:10
133,837,492
7
0
MIT
2019-12-28T18:54:07
2018-05-17T16:00:06
Python
UTF-8
Python
false
false
1,196
py
filters.py
def getOrFilter(subFilters): return {"subFilterConnective": "OR", "subFilter": subFilters} def getOrFilters(**kwArgs): return getOrFilter(getFilters(**kwArgs)) def getAndFilter(subFilters): return {"subFilterConnective": "AND", "subFilter": subFilters} def getAndFilters(**kwArgs): return getAndFil...
9508d810f6ae7467ebb7b74e08655ef9bac8a151
334fa8da329cb6d1eb7209085c0abf70f5a66aa4
/day05/ws02.py
0b2d5d23b4e9888e1b9da3d3c739b75736be82da
[ "Apache-2.0" ]
permissive
jaywoong/learn_python
adc8aa78df4658d4b7c51d97f5c4df3164621830
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
refs/heads/master
2023-06-13T01:06:38.363816
2021-07-04T07:32:59
2021-07-04T07:32:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
ws02.py
score = [ ['2019-01-03',10,12,14,10], ['2020-02-03',12,12,14,11], ['2020-03-03',13,13,15,12], ['2020-03-03',14,14,16,13], ['2020-04-03',15,15,17,14], ] sum = 0 cnt = 0 for data in score: if '2020' in data[0]: for i in data[1:]: sum += i cnt += 1 print('2020년 %.2f'...
b3ef3776f8f8a2c2e70889322a1d6ada898dc651
72825774b6885f46dbf8a3c082e9e24c77add463
/Test_Data_Structures.py
fd68bf2e23b54206d34135a0307a07ba31cf113b
[]
no_license
sajit82/Pycharm_Projects
9758c3957cd5aee36ef2986129aa87d00d914cdd
4e486614b497a2f95c37e82b24891cb6e80a2b85
refs/heads/master
2020-12-21T21:03:59.641883
2020-02-22T06:51:53
2020-02-22T06:51:53
236,560,253
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
Test_Data_Structures.py
fruit ="banana" 'n' in fruit print(fruit.upper()) #searching a string pos =fruit.find("na") print (pos) # search and Replace chng = fruit.replace('na','xa') print(chng) # stripping white space greet = " Hello Sajit " print(greet) greet.lstrip() print(greet.lstrip()) greet.rstrip() print(greet) #Prefix li...
3e3ba8f0a037bc32ed8416dcfef35ca2b06f3ecc
5cebf49f257bfa82a0baceaa0180a799b0640bf8
/SConscript
c34528148ab9ab49b23a245b069d2cb58ecff936
[ "Apache-2.0" ]
permissive
mgjeong/protocol-ezmq-cpp
ef3dfebceb2c3ae730928600c6581d45ab5805fc
793f86542c59f92da3feec9f16848207cb118c5a
refs/heads/master
2021-05-06T05:36:17.470817
2020-04-01T11:00:54
2020-04-01T11:00:54
115,125,114
2
1
Apache-2.0
2020-04-01T11:00:55
2017-12-22T15:00:19
C++
UTF-8
Python
false
false
2,793
SConscript
############################################################################### # Copyright 2017 Samsung Electronics 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 # # h...
f6e1b6ff67c04a8563ad194662cf41eb779b7a4c
26cb6c073f281fc1fdcfa9b8b1c62dd176df488a
/nanogen/cli.py
be64e109c24d95a401c89a54ff9e93bfb746aa10
[ "MIT" ]
permissive
epochblue/nanogen
56356471908e0eda114f6bf915a6ebfa4a37da3b
940a40d5ab42d57b45b981c7ced8827aba74718a
refs/heads/master
2020-03-29T16:53:54.060542
2018-03-26T02:12:48
2018-03-26T12:22:23
25,160,450
9
0
MIT
2018-03-26T02:14:35
2014-10-13T13:47:57
Python
UTF-8
Python
false
false
2,562
py
cli.py
import datetime import os import click from nanogen import logger from nanogen import version from nanogen import models @click.group() @click.option('-v', '--verbose', count=True, help='Turn on verbose output.') @click.version_option(version=version.version) def cli(verbose): logger.init_logger(verbose) @cli...
901bea09bf461b8984a424efa480aa017d5f1f1f
7d7da70f479ad09226e67277cef8d5090463c29f
/vimeo_api.py
0627e8a83f3f6cc1326fdaddf129cc2446c5294a
[]
no_license
Fontaineconsult/Amp_Auto_Captioner
6b19abe4a629358ef51d2bed9f4768471bcfadba
5abe058b747bd72251fe5ce674121b2419149912
refs/heads/master
2022-12-15T04:45:07.871599
2020-01-16T21:43:59
2020-01-16T21:43:59
226,404,224
2
1
null
2022-12-08T02:36:53
2019-12-06T20:25:11
Python
UTF-8
Python
false
false
2,256
py
vimeo_api.py
import requests import base64 import json import re from config import Config vimeo_config = Config() class Vimeo(object): def __init__(self, link): self.link = link self.client_identifier = vimeo_config.vimeo_client_identifier self.client_secret = vimeo_config.vimeo_client_secret ...
9a13d56da29c8a9259ef4eea59e05515e273254b
024bebe009e55aa788ffdebceee18306199253dd
/Day_18.py
47b7d206431e14231486511ec2161ae54a740daf
[ "MIT" ]
permissive
iamakkkhil/DailyCoding
2b2818aebc7b01f693b8a60996a6935b249af9a8
8422ddbcc2a179f3fd449871e2241ad94a845efb
refs/heads/master
2023-08-15T13:39:46.198053
2021-09-30T13:27:09
2021-09-30T13:27:09
294,115,015
10
1
null
null
null
null
UTF-8
Python
false
false
925
py
Day_18.py
""" DAY 18 : Determinant of a matrix. https://www.geeksforgeeks.org/determinant-of-a-matrix/ QUESTION : Given a square matrix of size N x N. The task is to find the determinant of this matrix. Expected Time Complexity: O(N^4) Expected Auxiliary Space: O(N^2) Constraints: 1 <= N <= 8 -10 <= mat[i][j] <= 10...
ad425df4c0b71d5473158cfc61f262f00de29b76
c066d2401c386d3830d908f50722d687a9836565
/ood_regularizer/experiment/datasets/sun.py
b12a7479e61bd6857a71dc0ddb201d46ac53e8c1
[ "MIT" ]
permissive
chenwenxiao/DOI
4e0c990f5c7649dca6c06bb7fa986449645d4640
14bdedd0b1b886efe77737cfb62695f03ee17c58
refs/heads/main
2023-07-05T00:38:01.043625
2021-08-12T03:00:28
2021-08-12T03:00:28
395,169,383
1
0
null
null
null
null
UTF-8
Python
false
false
3,158
py
sun.py
''' load lsun dataset as numpy array usage: import lsun (test_x, test_y) = load_lsun_test() ''' from PIL import Image from scipy.ndimage import filters import os import tensorflow as tf import numpy as np TEST_X_PATH = '/home/cwx17/data/sun' TRAIN_X_ARR_PATH = '/home/cwx17/data/sun/train.npy' TEST_X_ARR_PA...
254cc107bf6893cc538c1088a2c65c662e81dda1
ace955477ef61203904ca54a10da793d4e749ffd
/bar_graph.py
ce39c4ff5aba7ca623037a9bcd73490b8c4f5908
[]
no_license
lucaspesso4/data-visualization-matplotlib-python3
1a6f4b3e5b5b551d62e7b17a109edae869b07d00
44b8e4486ca39302642d8259e7bb7df86ce8a123
refs/heads/master
2020-04-14T21:48:23.118780
2019-01-04T18:20:02
2019-01-04T18:20:02
164,140,706
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
bar_graph.py
import matplotlib.pyplot as plt # data x = [1, 2, 3, 4, 5] y = [2, 3, 7, 1, 9] # titles graph_title = 'A Simple Title Here' x_title = 'X Title' y_title = 'Y Title' plt.title(graph_title) plt.xlabel(x_title) plt.ylabel(y_title) # graph functions plt.bar(x, y) plt.show()
6f9ebaa97025618e77b1c3aaa339088649d4715b
70fa997255d87e343a1bf21167ac7b1a5d52fa5b
/pizza_project/pizza/pizza/core/migrations/0030_siteconfiguration_notification_is_enabled.py
a6be6d3fddfbe76ae351d5ea81bf9564d02b1404
[]
no_license
nikivay1/pizza
e20ae6df362096d70ce894b71c79cab4f865a797
c7f241ab54886597b0daf4147f862166e57f8fc8
refs/heads/master
2022-12-21T07:11:58.684603
2020-09-29T06:32:12
2020-09-29T06:32:12
299,525,641
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
0030_siteconfiguration_notification_is_enabled.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-18 17:53 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0029_availablestreet_keywords'), ] operations = [ migrations.AddFie...
36558ae57168cfdc6f91222e6a75d2ac9a05f17c
268df80fe21df0cc1b1651a60b8eebbc5424acc9
/backend/movieassets/serializers.py
454333d4f8af0e2f764e043e8d27506980349df7
[ "MIT" ]
permissive
lahim/interview-starwars
8c8e99669991bfd413890b3ea8fea4902c26ff34
643eb0ad147faef1faf02ab2a88e130e4f3dcbaa
refs/heads/main
2022-12-28T11:25:42.725004
2020-10-11T20:55:29
2020-10-11T20:55:29
303,178,679
0
0
null
null
null
null
UTF-8
Python
false
false
1,227
py
serializers.py
from rest_framework import serializers from . import models, services class CharacterListSerializer(serializers.ModelSerializer): created_date = serializers.SerializerMethodField() def get_created_date(self, obj: models.Character): return obj.created_date class Meta: model = models.Chara...
f2977ef3ae80d7a78f82bf791cbb435d6c0ecfc7
c3bf6bbb2503d28d0d2a93fc1524dc7fb8249615
/basicmonitor/api/action.py
9132250012b7c6067913d69d260b6a3e8770f82f
[]
no_license
TorbenFricke/basicmonitor
9317ab2c78b38d521a4bc04ffc520192cbcbf2d0
c636f2d7efc80831008c23fa4b6030b3183d505f
refs/heads/master
2022-11-19T09:25:11.533201
2020-07-22T20:26:36
2020-07-22T20:26:36
271,049,360
0
0
null
null
null
null
UTF-8
Python
false
false
2,003
py
action.py
from flask_restful import Resource from werkzeug.exceptions import abort from flask import request import basicmonitor.actions from basicmonitor import validators, state from basicmonitor.actions import actions_available from basicmonitor.api.base import DetailApi, ListCreateApi, ErrorResponse _validation_mask = { "...
927b8e9b978e0be9acfa019e3e9f853582327f99
94dce809f3468a605fb97fcddf2397b9e915633e
/MCGS.py
a7075bcee0039c2547f2c626e3d4ff2c3f128567
[]
no_license
csuvis/MCGS
8e925f74248993ed0654caa04931d059e0ce6ffe
574f3c3e6f913266fea01ea59bd403eb8bc9acb3
refs/heads/master
2023-07-13T21:12:12.300391
2021-08-23T13:59:57
2021-08-23T13:59:57
287,762,478
10
1
null
null
null
null
UTF-8
Python
false
false
26,013
py
MCGS.py
import math import random import networkx as nx import numpy as np class MCGS(object): """Create an mino-centric graph sampling (MCGS) algorithm model. Parameters ---------- None Returns ------- m : MCGS object An MCGS object represents the MCGS sampling algorithm instance model...
702a06f373421e09e424352b95c8e307fd417e98
88560c9233af0f41feb5d7bb56d26897873fc7df
/binarytree.py
0a34a2c11c336df2036ded1d6cbe79b3a3cc7b97
[]
no_license
cloud976/lcResovle
ca96127d2ccf8486c1a48babb8e8be8bbd2d50c8
d31cadaf9d7284b86827e8464438a7cf987f63f7
refs/heads/master
2021-06-24T07:07:06.512396
2021-02-24T09:07:38
2021-02-24T09:07:38
199,309,006
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
binarytree.py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x, left, right): self.val = x self.left = left self.right = right class BinaryTree(object): def __init__(self, lst): lstLen = len(lst) self.lst = lst self.len = lstLen self._...
304f5efb9cea84fe87877c390d6726729998a076
b11afb9b8dba6c8a0a12658cc0ee840f4341e8ce
/Python/IP_Proxy/ip_proxy/proxy_finder/you_finder.py
57077dc170cfb8bb0795cd0704765c184c99bbac
[]
no_license
bcylmj/Program
fe4c709f2edf305815cd8a670bd8d9e56d58bfcc
3fab2ba8bc3a9ece65f24ca751eb97c7fadbf401
refs/heads/master
2023-06-15T15:54:58.319633
2021-07-12T08:01:45
2021-07-12T08:01:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
you_finder.py
# http://www.youdaili.net/Daili/http/
2459b458f8de60428e8d88e8c252f3cc7abfda31
9d881e93cf86db5b132d71167a6734a6559523f5
/migrate.py
ac31428bf39872e4db51c52d160f8ec3517f0d88
[]
no_license
iksteen/djoek
b5e2d3ebeee219ac57acfdcb7c8f4a39f9172382
d433e1d2d076f011f274b9b6fb3b82a8735b2272
refs/heads/master
2022-04-26T20:10:09.742906
2020-04-17T13:27:52
2020-04-17T13:27:52
257,214,891
0
0
null
null
null
null
UTF-8
Python
false
false
3,712
py
migrate.py
import asyncio import os import mutagen import peewee from psycopg2.errors import UndefinedColumn, UndefinedTable from psycopg2.extensions import parse_dsn import djoek.settings as settings from djoek.models import Song, User, database from djoek.mpdclient import MPDClient def migrate_extension() -> None: datab...
ebb5503579e196d671cdf8d85b6672d82382986e
7b148a36ba81d925bd8cc641982439b51729683c
/cvm/tests/test_tfm_ssd.py
b618a3aa967821b72cdf337e668dfcb3423dd7bd
[ "Apache-2.0" ]
permissive
CortexFoundation/tvm-cvm
27e6c25b5102ae78343654ce82fa5c8d8a4c3126
d8941dc60a51dd27a6d2accc1eff2eced3b3640d
refs/heads/dev
2021-06-26T10:22:00.174707
2020-02-05T08:48:12
2020-02-05T08:48:12
146,860,856
6
0
Apache-2.0
2020-04-08T09:13:22
2018-08-31T07:58:47
Python
UTF-8
Python
false
false
10,452
py
test_tfm_ssd.py
import mxnet as mx from mxnet import ndarray as nd from mxnet.gluon import nn from mxnet import gluon import utils import gluon_zoo as zoo import sym_pass as spass import sym_utils as sutils import sim_quant_helper as sim import dataset from transformer import * import transformer as tfm from tfm_pass import convert_p...
eeaedbf809f3a48b2d289c7ea546480d27144987
159cd20a8570f4acce8d32ed2d1b052be25e3936
/exercises/management/commands/createdecimalmultiplication.py
f46c34f9a659c59f43af5d51d183cced7cb381ae
[]
no_license
fredericosachweh/amostra2
95e717eb0ce7ef03326670326c00765ae8bc6a35
e2d24a82462a735fc722f0b228be04a4495185c1
refs/heads/master
2021-01-17T14:48:32.079439
2014-10-09T00:08:29
2014-10-09T00:08:29
84,095,273
0
0
null
null
null
null
UTF-8
Python
false
false
3,526
py
createdecimalmultiplication.py
from _decimals import DecimalMixin from createmultiplication import Command as BaseCommand from exercises import models class Command(DecimalMixin, BaseCommand): help = "Create decimal multiplication exercises." category = 'multiplicacao-decimal' option_list = BaseCommand.option_list + DecimalMixin.optio...
77faabd999a9738206198b3d0083382799617b12
80929080a4c1f3bc9182a1bba8cfecc12c91088d
/train.py
143c49bf55f5e4f3d79766e08c750dfdfa3b15eb
[]
no_license
novdov/tf2-transformer
915a3fd6830ba7b3827bd5cdfc3cf75d62bb5163
f4e2d273a9795c9f43e9cc649925f8f155758627
refs/heads/master
2020-05-05T08:22:53.258362
2019-09-12T07:51:05
2019-09-12T07:51:05
179,861,845
3
1
null
null
null
null
UTF-8
Python
false
false
1,125
py
train.py
import argparse import os from pathlib import Path from transformer.model import Transformer from transformer.trainer import Trainer from transformer.utils.hparams_utils import Hparams parser = argparse.ArgumentParser() parser.add_argument("--output_dir", type=str) parser.add_argument("--mode", type=str) args = parse...
351ea122b9066bbb67b2be626b58a75864cbbbab
30134d697e196f58ffedbf95f40026c4265d1c88
/CA2/q1.py
62ff41493b8803d2afe415f61068c420c16e3265
[]
no_license
codamin/Data-Structures-Algorithms
c919535c734f98f5a7484871a805bd4ad47c00d4
94ce3f18dd50fdf9871d23baf1fbd230ce0d30e8
refs/heads/master
2021-12-02T05:51:01.721875
2021-11-26T09:06:24
2021-11-26T09:06:24
196,724,634
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
q1.py
def Gooni(n , from_elevator, to_elevator, with_elevator): if n == 1: print (from_elevator, to_elevator) return Gooni(n-1, from_elevator, with_elevator, to_elevator) print(from_elevator, to_elevator) Gooni(n-1, with_elevator, to_elevator, from_elevator) n = int(input()) Goo...
2a7b44c2c40a9aea6130bb994835b7e0f4477c75
2fcc0bd3bfba6cd0536b9fa78fa918ec30a43e67
/predict/lstmTrainer.py
bebb46a2a0ca30ba7b667908eb94af39f503ff46
[ "Apache-2.0" ]
permissive
Ancientshi/LSTM-TimeSequencePrediction
feee00d6d1401423d7aa55d922a4248d92c87c36
26f6f7fc255c0952d956318e65662c46e3391a7b
refs/heads/main
2023-02-09T19:53:23.088166
2021-01-05T09:23:09
2021-01-05T09:23:09
325,945,250
2
0
null
null
null
null
UTF-8
Python
false
false
5,183
py
lstmTrainer.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : predictor.py @Contact : Ancientshi@gmail.com @Modify Time @Author @Version ------------ ------- -------- 2020/10/27 10:56 上午 Ferdinand 1.0 @Desciption ---------------- 面向对象 ---------------- ''' import re import ...
e85902d2ff31186d1fe85277445a71ecbda27b1f
4b43568b62c8ff702f065c71645cf7c580d8b2d0
/panda_gazebo/tests/manual/rviz_markers_text_publisher.py
8c13a8cfa63fd77f9840fda50b2e1d2b6d71c4c1
[ "MIT" ]
permissive
rickstaa/panda-gazebo
45c6b5b2aa1e6f27e7029119c9e69223137ce9c7
70a22fa4e1bc96a84c9f664c4031d18b5a8f5d01
refs/heads/noetic
2023-09-01T21:01:28.754882
2023-08-31T19:14:43
2023-08-31T19:14:43
353,980,386
5
2
MIT
2023-09-11T08:40:02
2021-04-02T10:07:05
Python
UTF-8
Python
false
false
1,270
py
rviz_markers_text_publisher.py
#!/usr/bin/env python3 """Small python script that publishes a marker.""" import rospy from geometry_msgs.msg import Point, Pose, Quaternion, Vector3 from std_msgs.msg import ColorRGBA, Header from visualization_msgs.msg import Marker class MarkerBasics(object): def __init__(self): self.marker_object_obje...
d46f6e876e1721d6fefaf2ff1a4b532e84de6371
6ebfca7157c85b0508f2937c5c4c92af726efdd7
/unscramble/Yeni Metin Belgesi.py
d04eb10e015970ed43d37dbc7a7472f58757966c
[]
no_license
wictorianx/UnScramble
8e9b91ab8a10e68b259d098db8ec978677ac4f92
bf98f3369918765a4ba1026d819c76997513073a
refs/heads/main
2023-06-29T22:59:50.304690
2021-08-03T01:42:14
2021-08-03T01:42:14
392,150,420
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
Yeni Metin Belgesi.py
theBool = True a = 1 wordsFile = open('myfile.txt', 'r') words = wordsFile.read().splitlines() while(theBool): scrambledWord = input() while(theBool): wordsList = [] scrambledList = [] if a <= len(words): print(scrambledWord) word = words[a-1].lower() print(word) a += 1 if len(scrambl...
c56fee645057a453df88cffa83d5d632bd031946
4672204681c2188f26da2aa0e49e145305203eee
/src/tensorboard/tensorboard.runfiles/org_tensorflow/tensorflow/python/ops/random_ops.py
cf77bd3bfdfa9cc4e6fbd529e9523d892e30769b
[]
no_license
csgcmai/NBNet
ab11ad73bb1b1e98698e85987971f8f85592c526
0a0ca190e858bb7cb3a91cea8e7f917144a45f57
refs/heads/master
2023-04-09T06:31:48.409726
2020-01-16T16:11:50
2020-01-16T16:11:50
161,860,236
11
4
null
2023-03-24T23:51:05
2018-12-15T01:58:52
Python
UTF-8
Python
false
false
83
py
random_ops.py
/home/comp/csgcmai/local/tensorboard/tensorflow/tensorflow/python/ops/random_ops.py
4961ad1b229cb290a0c44b3a95d37c27aae1a0b8
dbe279ec46c0ca98940bedfed7cc3ad49de8402f
/utils/__init__.py
dc063f806943d3d7fc6ead804929ea4749d7c892
[]
no_license
kevinge314gh/zhihu_crawler
2102e235c28bd7fdd982d99fc6b97e502fb81d1c
e51c221c68199d97580ee7e931bee8f05e740824
refs/heads/master
2021-01-10T08:22:53.715844
2015-11-18T14:05:31
2015-11-18T14:05:31
45,098,036
0
0
null
null
null
null
UTF-8
Python
false
false
21
py
__init__.py
__author__ = 'wkguo'
7416e65811466204335259561f62a51545fe2074
410babf88fbef4c6a702d32a25188c69ddccdf31
/aws_dashboard/content/aws/access_and_security/keypairs/forms.py
8a59357931f9aa4b37f5f3fdd823a49ace9e6e81
[ "Apache-2.0" ]
permissive
dennis-hong/aws-dashboard
120a6c5e3c5531693cf3f47bde49631ae38ab3d2
6184e8499758041fdecdcb7080fd5257ae9edbff
refs/heads/master
2021-01-21T18:18:01.496506
2017-07-11T15:16:07
2017-07-11T15:16:07
92,030,915
2
2
null
2017-07-11T15:16:09
2017-05-22T08:36:46
JavaScript
UTF-8
Python
false
false
3,352
py
forms.py
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
2fee72825669556744ff135c36f5f1e31f1fed5c
15d6d74172d0927687bf39401582e8f2ce943dab
/package_test/test_workspace.py
1b8a4fdea13f9a657a79cbebb0a66a08dff59c2f
[]
no_license
VencenZhao/py-utils
c5b861c5d7ddc49db54e29838574c65855f65d9b
f079df1159efb9c6d9fa4034487618dd9a433875
refs/heads/master
2022-01-20T02:55:52.774028
2019-07-24T02:51:36
2019-07-24T02:51:36
198,378,922
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
test_workspace.py
# -*- coding: UTF-8 -*- import sys sys.path.append('..') from package_geoserver.Workspace import Workspace def main(): workspace = 'hotgridtest' work = Workspace('2204') # print(work.delWorkspace(workspace)) if __name__ == '__main__': main()
27d6a235e732e19c2e1ecbca0d252a1d3f0cfc24
991edbb744e504c2851b2d7c823919babd21e0c9
/oop/assignments/assignment21.py
39eb5f3fabf5330d361067161ada928761fc57d9
[]
no_license
bharatchitara/oop
c0716ca0fd128c4f54f1aaf2f62e0a87917de28f
1c407ec24ac8a07a23210a04cc26c5398766ae3c
refs/heads/master
2022-11-20T09:48:55.170537
2020-07-05T10:23:02
2020-07-05T10:23:02
255,582,257
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
assignment21.py
#from gi.overrides.Gdk import name class Patient: def __init__(self,patient_id,patient_name,list_of_lab_test_ids): self.__patient_id = patient_id self.__patient_name=patient_name self.__list_of_lab_test_ids=list_of_lab_test_ids self.__lab_test_charge=None def get_patient_id(self...
9e04bd2e9057c25c70065fd9f967112e14df1c97
0c61fb9213db92214f6ed63e6ff3fecbc32f2a2b
/blog/migrations/0010_auto_20181211_1210.py
dfb9e90b2df547b8e4703e8784d77e8a8e4159b9
[]
no_license
kairok/NekidBlog
089eb19cd248d663735e9eb9faae06d52142e9d0
09237ff059684759fbb5141151b64d5904ad4448
refs/heads/master
2020-04-10T09:19:03.713901
2018-12-11T10:40:28
2018-12-11T10:40:28
160,932,874
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
0010_auto_20181211_1210.py
# Generated by Django 2.1.4 on 2018-12-11 06:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0009_auto_201812...
100921744dca601370f1a68c76408d50f981ed95
4dddd01ca6a60f2fa408ee55fbaebe868917184a
/myappium/baseinfo/test_touchAction.py
6e38082484698f1cb344e65184ee0737656221df
[]
no_license
fanpl-sourse/all_study_practice
6f056c18f0eb7afd6af649e5b595895683bb0cbd
b02f25231855e149b95476b20dd8d53318cfe1a5
refs/heads/master
2023-01-22T09:13:15.107616
2020-11-30T05:53:43
2020-11-30T05:53:43
304,493,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,590
py
test_touchAction.py
# -*- coding: utf-8 -*- # @Time : 2020/10/30 08:28 # @Author : 饭盆里 # @File : test_touchAction.py # @Software: PyCharm # @desc : touchaction 操作 from time import sleep from appium import webdriver from appium.webdriver.common.touch_action import TouchAction class TestTouchAction: def setup(self): ...
e7ff4005d15572072ab0ac9bab250939b67d116d
c44ef291040b21a6d0f2d2f6a88c890c9b7fd2d4
/20210911KAKAO/programming1.py
6d63f2ce41756b57c86cb16688e8fc0ea4fe4652
[]
no_license
jasper-oh/coding-test-algorithm
d12b4d4e7dca37fae3b29373f6df4bbb7bae5878
84c5e44cf6150b46a004ddbb21f888e600db53f9
refs/heads/master
2023-08-04T15:30:52.549056
2021-09-14T04:12:21
2021-09-14T04:12:21
325,912,718
1
0
null
null
null
null
UTF-8
Python
false
false
5,086
py
programming1.py
# 문제 설명 # 신입사원 무지는 게시판 불량 이용자를 신고하고 처리 결과를 메일로 발송하는 시스템을 개발하려 합니다. 무지가 개발하려는 시스템은 다음과 같습니다. # 각 유저는 한 번에 한 명의 유저를 신고할 수 있습니다. # 신고 횟수에 제한은 없습니다. 서로 다른 유저를 계속해서 신고할 수 있습니다. # 한 유저를 여러 번 신고할 수도 있지만, 동일한 유저에 대한 신고 횟수는 1회로 처리됩니다. # k번 이상 신고된 유저는 즉시 게시판 이용이 정지되며, 해당 유저를 신고한 모든 유저에게 정지 사실을 메일로 발송합니다. # 게시판 이용이 정지된 유저도 불량 이용...
4e0a3ae2202463d77a34b57ec966dc8058d197d3
b391e099981ca145e7ba2ee615342078b4039d0c
/setup.py
6094b1602d76f3c92e35d597ba8cf6251bf967d4
[ "MIT" ]
permissive
mayachiraz/computational-aesthetics-1
5cad5c8bf92881db562cb19dad5518170bd1d8aa
4a7b59b6de31c5f70f3536b5870de933b3b56101
refs/heads/main
2023-07-17T07:07:48.903076
2021-08-28T12:07:00
2021-08-28T12:07:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
setup.py
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="computational aesthetics", version="0.0.1", author="Justin Ruan", author_email="justin900429@gmail.com", description="Python package for making computational aesthetics f...
97171513124414674d62441be0c932e385b95f65
65f4c57529c901d0dbe1d6f1ff9b3336b80b2d66
/test.py
220e5a8fcb4cb26660787317fb5052daa2f0daeb
[]
no_license
mr-haseeb/cat_vs_dog
7bc0c6fd33cb2108691796321f28cdb1a769e91a
4ea906082cedafa24b9c34d72b2a79c87b4a6a25
refs/heads/master
2021-05-18T03:45:10.833626
2020-04-02T09:43:33
2020-04-02T09:43:33
251,089,332
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
test.py
import cv2 img_arr=cv2.imread('PetsImages/Cat/0.jpg') print(img_arr) list=[34,34,34] import
82efc4d87762a46a41fc49d26ba57ee4229ae0e5
ba5b8f2732643f58cd32f3447245e9c8026ebca5
/apps/yuancheng/urls.py
e1ce7b36a2b3090cbd2eeb3269fbfdd218274c7b
[]
no_license
zhouzhousc/EB
928bdf94e6a9bfb154d7299fcd577bbd43d495c6
58237ef45fde5b071cd365c565b6f2ac5b9a5dae
refs/heads/master
2022-12-17T04:59:26.384638
2019-11-26T07:40:31
2019-11-26T07:40:31
224,131,754
0
0
null
2022-12-08T06:16:29
2019-11-26T07:43:12
HTML
GB18030
Python
false
false
609
py
urls.py
from django.conf.urls import include, url from apps.yuancheng import views from rest_framework import routers route = routers.DefaultRouter() # 注册新的路由地址 route.register(r'delivery', views.GateWaySetting) app_name = 'apps.yuancheng' urlpatterns = [ url(r'^manage', views.YuanchengManageView.as_view(), name='yuan...
f759130533a7ed6c992a0950ab3b610e41939e88
e23fb8c9505dcd49ce276db5568673b53b5f9174
/predict_GRU_CUDA.py
b4c240f209c06a50e442e822fc5683961e602201
[]
no_license
HIT-WI/CascadingFailure
9d2a7e1bd2ff57a497cd1de89881279a436d6600
296ddba17c4317377029f65618129bf2aaa21a30
refs/heads/master
2023-03-27T21:04:33.671312
2021-03-30T15:54:33
2021-03-30T15:54:33
295,616,617
4
0
null
null
null
null
UTF-8
Python
false
false
7,589
py
predict_GRU_CUDA.py
import numpy as np import torch from torch import nn import time epochs = 2000 SEED = 16 np.random.seed(SEED) cuda = torch.cuda.is_available() if cuda: torch.cuda.manual_seed(SEED) class CF(nn.Module): def __init__(self, input_dim, hidden_dim, layer_num): super(CF, self).__init__() ...
f10d09e52c728ab71fe7311ff58441194e8c73b1
f5cf9ae4506afde349267495ddb49cfa3bf1c53c
/federation/tests/entities/diaspora/test_entities.py
d28ad7c3682c861b81751222360e90bb05626ec8
[ "BSD-3-Clause" ]
permissive
teotikalki/federation
8275bce0c2f9a5646a71ed7426a9a3d81541250d
afee56cac6253cea8d302412d00c44d4a0112f6b
refs/heads/master
2020-03-26T12:58:10.622492
2018-07-23T13:28:08
2018-07-23T13:28:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,910
py
test_entities.py
from unittest.mock import patch, Mock import pytest from lxml import etree from federation.entities.base import Profile from federation.entities.diaspora.entities import ( DiasporaComment, DiasporaPost, DiasporaLike, DiasporaRequest, DiasporaProfile, DiasporaRetraction, DiasporaContact, DiasporaReshare) from ...
661503bf6d78dae8cc88623c9d319551f5fef466
b539cf1381d2d14137f272bb817889f3470096d8
/register/models.py
f65b81b2ae8bbef0b3a75e04ba77674b97381045
[ "MIT" ]
permissive
omwomotieno/tunza_v3
3a01b21fa58a290ff5d7d7d679fd663ee69d187a
e717770e37b08a5afedfc6c172a9ccaa4e2a5747
refs/heads/work_branch
2020-12-24T18:51:35.258069
2016-05-11T07:21:35
2016-05-11T07:21:35
56,657,291
0
1
null
2016-04-27T11:19:12
2016-04-20T05:15:24
Python
UTF-8
Python
false
false
1,541
py
models.py
from __future__ import unicode_literals from django.db import models from phonenumber_field.modelfields import PhoneNumberField from django.core.urlresolvers import reverse import uuid import datetime class Patient(models.Model): anc_number = models.SlugField(max_length=6) uuid = models.UUIDField(default=uuid...
9e95936f2075ed6d03a641f9651e5112e7373dd3
eb160ae058d7e5b9d843e07d810e7045f72576e2
/appserver/app/db.py
06c27a5a358ea61152c3b8f8d0ce15f341b93f33
[]
no_license
bookbnb-G7/bookbnb-appserver
cdb76618aafa20fe7c587dc1f8fc129a1141462e
8fd24bf0e26e2a01dcac3716f8eaed70e9efc4da
refs/heads/master
2023-03-12T22:21:57.726832
2021-03-05T03:35:41
2021-03-05T03:35:41
304,004,597
0
0
null
2021-03-05T03:35:41
2020-10-14T12:13:53
Python
UTF-8
Python
false
false
921
py
db.py
import logging import os from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker logger = logging.getLogger(__name__) DATABASE_URL = os.getenv("DATABASE_URL") ENVIRONMENT = os.getenv("ENVIRONMENT") engine = None session = None if ENVIRON...
d0b5f534677ff151adf4e41e4b28a404c1901ca7
f779bf889ab838db26ef6b2fd289d41f961d4656
/myproject/auth/views.py
3b637346a2c69034bda4d41008ca2bcc76cc5de2
[]
no_license
marvelyko/GAMEHUB_project
f1891c34d8f05c1a13180978c80f0890d1728071
0143a0abc1dc9cd5aea57910ae5c62269ff536b9
refs/heads/master
2023-01-08T21:50:59.307147
2020-11-10T16:56:43
2020-11-10T16:56:43
308,418,595
0
3
null
2020-11-02T06:39:25
2020-10-29T18:39:27
HTML
UTF-8
Python
false
false
1,644
py
views.py
from flask import Blueprint, render_template,redirect,url_for,flash from myproject import db,active_users from myproject.models import Gamer from myproject.auth.forms import LoginForm, RegistrationForm from flask_login import login_user auth_blueprint = Blueprint('auth', __name__, template_folder='templates/auth') @a...
9dd9fb0c0a766ff84b53fc6217588f84ff278204
54876a7fc70aeab3adfeede0183a32c867654593
/Aula 12/Exercicio1While.py
4b002f6e3b26510cc76877ae3100937e6af4766d
[]
no_license
WilhMiller/Pythonblue
081db9b019a0841aa8bb2f2285b10b4d82c36ecf
33927af0263176df0b484d3f4a2d0ebfa8b586bb
refs/heads/master
2023-04-11T16:14:45.552108
2021-05-19T01:18:43
2021-05-19T01:18:43
366,552,547
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
Exercicio1While.py
#01 - Crie um programa que leia dois valores e mostre um menu na tela: # [ 1 ] somar # [ 2 ] multiplicar # [ 3 ] maior # [ 4 ] novos números # [ 5 ] sair do programa # Seu programa deverá realizar a operação solicitada em cada caso. (utilizar while sem break) numeros = list() while True: valor1 = i...
3c56c1d985a1fe04b3f48fa3b4b63658791e657c
db3f6c53ac10a1665d04b0fa76884265bbeabc46
/python/test6.py
5aeda8f645e4d8ec6fb2431ef7a3749d8b45d758
[]
no_license
kingalok/mydata
5771d5ebcec3aa8b3c18cc4b899a1a342d0936fa
d8c85df7861589d99cf4291db236d13c3b5acf82
refs/heads/master
2020-03-17T04:42:30.006488
2018-06-29T00:13:06
2018-06-29T00:13:06
133,285,797
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
test6.py
a=[1,2,3] print(a[0]) print(a[1]) print(a[2]) print(a[3])
ad81e99c0d51dcb878e9af1f3a89d691c16c1d18
4a7b98a0125613efed3b6498103c501d4e818845
/inventories/forms/inventory_item_forms.py
87b83685cb5c904c08d72596c4752669adbc0dfc
[]
no_license
dpeinado/Acriladmin
7a8b87416e88a40193f7c2396e6484a787163a92
e5ff43c748b8c00249849dc1a555794591280eeb
refs/heads/master
2021-03-21T08:11:28.207649
2016-11-07T02:11:49
2016-11-07T02:11:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,785
py
inventory_item_forms.py
from dal import autocomplete from django.forms import ModelForm from inventories.models import ProductInventoryItem, MaterialInventoryItem, ConsumableInventoryItem, \ DurableGoodInventoryItem class TabularInLineProductInventoryItemForm(ModelForm): """ Custom form for adding or changing a product inventory...
53c81d9b3f63b07c86cdc0e8c13c3400c01579c6
f9f8a78b0391ecd36775a2917b0f29e4e6b14149
/myvenv/Chapter5/05.조건실습문제5.1.4.py
618980707eef273a9d7b24c5a0331ad615426480
[]
no_license
lftys2021/github-landing
e64a1fd19936c69ba1a1931e1b9cfe8072f093aa
d1aecfafc87cc88803e0c40a661e2c36f49784a8
refs/heads/master
2023-07-03T11:59:55.243485
2021-08-17T07:37:26
2021-08-17T07:37:26
397,155,714
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
05.조건실습문제5.1.4.py
kor = int(input("국어 >>> ")) mat = int(input("수학 >>> ")) eng = int(input("영어 >>> ")) ave = (kor + mat + eng) / 3 if ((kor <= 0 or kor > 100) or (mat <= 0 or mat > 100) or (eng <= 0 or eng > 100)): print("잘못 입력하였습니다.") else: if (ave >= 80): print("불합격") else: print("합격")
2f37ad8a7e5fec712928e77a98e09d939b3c550d
849185b23eedd1b44481be2fa2503f2c8126ca60
/exo2.py
6f636a99d76fed74dd4cbc39c71b36e8a295d74a
[]
no_license
hyath/test
9eb67e0f16e449507623f7935a153c52caefb526
8a5ec78f7f2a54f0c0666fcee7d26dd761743fba
refs/heads/master
2020-12-02T21:57:52.918407
2019-12-31T19:17:00
2019-12-31T19:17:00
231,136,618
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
exo2.py
x=int(input("Donner la premiere valeur:")) y=int(input("Donner la deuxieme valeur:")) z=int(input("Donner la troisieme valeur:")) t=float(input("Donner la premiere valeur:")) a=(x+y+z+t)/4 al=(log(x)+log(y)+log(z)+log(t))/4 g=e(al) print(al)
02902c3552d19738e3eb95f9bbf0b4ef4e9e463b
e9818941f972bd82050cb8d42b81cd00ed6fafed
/Classical Ciphers/Substitution/CaesarCipher/caesar_encrypt.py
ca71330553797465f16faf9890483e42932d4062
[ "MIT" ]
permissive
kcwong395/SecurityTechnology_Note
06d1e746ce86e10b16ab3d4698c4abcf15841b22
e35c8df78a2a0e53df8154b4664f0a50139367c5
refs/heads/master
2020-04-23T01:05:57.997236
2019-08-02T10:03:43
2019-08-02T10:03:43
170,802,656
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
caesar_encrypt.py
# This function intends to encrypt plaintext using Caesar Cipher def CaesarEncrypt(): plainText = input("Plaintext: ") key = input("Key: ") cipher = "" for letter in plainText: if 'a' <= letter <= 'z': # ord(letter) - ord('a') gives the index in alphabetical sequence # ...
3b65d89b11366596b72d883c1816426776c422ed
06b67e2685d0be4939b5f8f4a9f831edc684fc2f
/halotools/sim_manager/tests/test_supported_sims.py
957962f20f933fb1b8a15811fbf084218dff85ff
[ "BSD-3-Clause" ]
permissive
aphearin/halotools
87261c1480e350a23e94a3444ad2f790eead8691
405b175a5a63a05326ba58b9076291f267a04f1d
refs/heads/master
2023-07-08T12:26:25.638097
2023-07-03T12:44:20
2023-07-03T12:44:20
29,250,115
2
2
null
2018-05-01T13:36:07
2015-01-14T15:15:58
Python
UTF-8
Python
false
false
3,444
py
test_supported_sims.py
""" """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import pytest from astropy.config.paths import _find_home from ...custom_exceptions import HalotoolsError from ..cached_halo_catalog import CachedHaloCatalog, InvalidCacheLogEntry slow = pytest.mark.slow ap...
079316b0ee6f96a77223925fe91189e0b4bf11fe
d8c3f841d63636a2fb9d9ad703405e55eaf39d7e
/evaluate.py
942ee532c85e92756c82cfebe90714a4bdaaffee
[]
no_license
makomoco/wordnet
ef25cc66d7695c3d36a24f73f260e99b872f510b
48714558c667f0ae1b3935a590d11193a22c6961
refs/heads/main
2023-03-03T10:29:32.736707
2021-02-12T05:54:14
2021-02-12T05:54:14
319,501,689
0
1
null
2020-12-21T23:46:28
2020-12-08T02:23:30
Python
UTF-8
Python
false
false
335
py
evaluate.py
import numpy as np # コサイン類似度 def cosine_similarity(x, y): return np.dot(x, y) / (np.sqrt(np.dot(x, x)) * np.sqrt(np.dot(y, y))) # コサイン類似度(正規化) def cosine_similarity_normalized(x, y): return np.dot(x, y) # ベクトル正規化 def vector_normalized(x): return x / np.linalg.norm(x)
eea5e2e8b7b2ce8f7b0b56aac362c9dba7c7abe8
9f74b821f2abaaf5ad389a86c13e46373fc7cd65
/Day01/Demo05/Demo03ListMethods.py
1fd5e1a2f72a51cd90aa38fe36894b8158557b1b
[]
no_license
Shanchance/PythonLearnDemos
3a63d0141f82758fffe0ea4539b6fc919cbea02e
9c368baf3aff735a76c7d69756e61c176640bf6f
refs/heads/master
2022-11-18T14:43:11.774923
2020-07-12T10:23:47
2020-07-12T10:23:47
279,038,057
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
Demo03ListMethods.py
a = [10,20,30,20,40,10,50,80] print(a[2]) print(a.index(20)) print(a.index(20,2,5)) print(a.count(20)) print(20 in a) print(20 not in a) b = a[1:5:2] print(b) c = a[-3:] print(c) for i in a: print(i,end=" ")
dae2ede11243eb086bc93801c7ec25e635dda47d
bdd5ed594c63f5ff1dec9e0be7db4f985cfe0527
/fontes/modularity_analysis.py
61a5ed392b506ef092ee3f798c37111f3a8a61f4
[]
no_license
concatto/ttc-univali
aa7d3a4aaddc579178963cc0ef0fca79085766e8
da157740e97265d36594d9b72de6b46988823c20
refs/heads/master
2020-05-30T23:36:51.825550
2019-11-19T16:07:01
2019-11-19T16:07:01
190,019,992
0
2
null
null
null
null
UTF-8
Python
false
false
1,601
py
modularity_analysis.py
import pandas as pd import numpy as np import preprocessing import community_detection import network_utils import modularity_analysis import networkx as nx def export_result(G, communities, file_name=None): nodes = { 'Id': list(G.nodes()), 'Label': list(G.nodes()), 'ModularityClass': communities } ...
2d17b8d90a3c74d5b4e198d7aeb84cec5d90d169
6c456b7ae9a02218114d3f538f06bbbfcff8f6b1
/scripts/models/speech_data.py
fd5dcaf347e9a63022a8fc917e31f1456dca3f68
[]
no_license
bryandeng/f0-cm
d8cff37513db9666393e6fb65e2182518b7634f9
9ddb25390d69cea29f4a4b7e34cbb80003954077
refs/heads/master
2020-04-14T23:17:39.531800
2016-08-22T08:43:03
2016-08-22T08:43:03
52,429,709
1
0
null
null
null
null
UTF-8
Python
false
false
2,536
py
speech_data.py
#!/usr/bin/env python3 import math import os import numpy as np import pandas as pd from sklearn import cross_validation, preprocessing from sklearn.externals import joblib hdf5_basedir = "/home/bdeng/datasets" def load_dataframe(method): hdf5_path = os.path.join(hdf5_basedir, "features_data_" + method + ".h5"...
d8973a21636e669240ae804eff58b88e8a15bef5
a9b1c650689467a285bf49cf8ac80c3c85e3cc0a
/lisa/main.py
102b20644c98a4e20e0e05c5a79fa4185b83f8b9
[]
no_license
kwarwp/kesha
4653c1383b7b1f08ea035c3ee3bdf1e62b3dddd8
f563d6280875ec4752f2a40cc832f27bc37c659c
refs/heads/master
2021-06-02T02:26:44.487585
2020-07-24T23:31:16
2020-07-24T23:31:16
131,900,604
0
0
null
null
null
null
UTF-8
Python
false
false
8,186
py
main.py
# kesha.lisa.main.py # kesha.kellee.main.py from _spy.vitollino.main import Cena, Elemento, Texto, STYLE, INVENTARIO from browser import html, document, alert, doc from _spy.vpython.main import * STYLE["width"] = 700 STYLE["height"] = "600px" FUNDO = "https://i.imgur.com/EzWk7Jl.jpg" QAZUL = "https://i.imgur.com/lWDGIv...
f6bc0354ec8bba1e94f88ad9ba5cb223a230a1b7
cdec16a6c4cd4e7793a83c2a583a6e110c9e619e
/flask_fun/ninja_gold.py
4e45c979079fece4fff6cf420142ae35bebf68d6
[]
no_license
tClark93/pythonSmall
a65dc7cbbeee13b9b7f70ae40417324412fa0a64
5c0b36d549c3a96b7eccbd0624dc1e6932287ed6
refs/heads/master
2020-03-28T19:03:16.556699
2018-09-15T21:06:05
2018-09-15T21:06:05
148,939,867
0
0
null
null
null
null
UTF-8
Python
false
false
2,546
py
ninja_gold.py
from flask import Flask, render_template, request, redirect, session from random import randint from datetime import datetime app = Flask(__name__) app.secret_key = 'gold_secret' # secret keys encrypt sessions, you can't start without it @app.route('/') def index(): if 'gold' not in session: session['gold'...
17252d219030872f8044661d07363e59a63678f0
56979675da487ea8ec4d5ec432f04465f04c23ec
/AutoQueuing/DriverApp/migrations/0004_auto_20171219_1617.py
f5c97cb20ab6820025b9c40c2c274cd188033e57
[]
no_license
pnagle/AutoQueuing
abc5b68e7adddc7a34714d0ae271e6093b716126
8a2375cc2e726ab98ce2e17e9c5d94c6c5e84eba
refs/heads/master
2021-09-01T10:53:11.632317
2017-12-26T16:08:35
2017-12-26T16:08:35
114,856,739
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
0004_auto_20171219_1617.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-12-19 10:47 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('DriverApp', '0003_auto_20171218_1932'), ] operation...
db70db95775108f9d77c04851a6e353ecaf17aea
0e4b15850af7fc896d9e0e1830d09952742d3fff
/Get Images/move_images.py
2f9f41ce76ac7a3af4a74d158a398da3a81d99d4
[]
no_license
Vivek06Sharma11/Yolov3
fe7d46916e9227070b1e8299f24741080be6568c
85e7a0960c1c4689e3e7ccff7e8004932027aed3
refs/heads/master
2022-11-15T10:40:21.998228
2020-07-16T18:14:48
2020-07-16T18:14:48
280,069,802
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
move_images.py
import os imgList=os.listdir('images') path = os.path.join("/home",os.getlogin(),"YOLOv3-Series","OpenLabelling","images") makeDirectoryCommand = "mkdir -p \"{}\"".format(path) os.system(makeDirectoryCommand) for image in imgList: os.rename(os.path.join("images", image), os.path.join(path, image)) print("Done")
87579ced5d78f55fe8884a208dcf491740e6d4b9
68cfbd0ab0e30cf8735c4babd18f5d95cc9a3fdb
/pocket-PLA.py
44f0aac54dced445447e08b1d6fdc99264694482
[]
no_license
damirseit/pocket-PLA
434cb886a6dd95fb962dd940b1e1cd06e2e816ec
0fa1bce4301fee351b44409487e750484beebaf4
refs/heads/main
2023-03-22T09:39:53.168299
2021-03-19T09:25:11
2021-03-19T09:25:11
349,365,017
0
0
null
null
null
null
UTF-8
Python
false
false
4,012
py
pocket-PLA.py
import numpy as np import matplotlib.pyplot as plt import random N = 100 l1 = [N/2, random.randint(0, N/2)] l2 = [0, random.randint(0, N/2)] t = 1000 wbest = np.array([[1, 1, 1]]) werrin = N def perceptron(x, y, w, T, wbest, werr): upd = 0 j = 0 while j < t: cnt = 0 for i in range(x.shape[0]): ...
fbbe964cb201e72df65b6bf22b69a51289786a14
8cc11a2209c37e0bedb87b5179dd3d059a95ae40
/tester/searching_engine.py
a9b45f8a387bd1bb88926c01c675586523e3318a
[]
no_license
victorianorton/team-five
481060a2d8bbe83cc108edf40bc61647a9a9d609
7d83a538ea8c14936fe20357f871bd6c9bb3f5b8
refs/heads/master
2020-03-30T03:15:27.594603
2015-02-11T19:29:31
2015-02-11T19:29:31
32,226,830
0
0
null
null
null
null
UTF-8
Python
false
false
3,717
py
searching_engine.py
__author__ = 'xi' import sqlite3 from DBconnector import AddressBookDB db_name = "yellowpagersdb.db" def show_address_book(): with sqlite3.connect(db_name) as conn: conn.cursor() cur_addressbook = conn.execute('select unique_id from people') conn.commit() for row in cur_addressbook: ...
a70bb9955047279785c9bfcc22fd3b7ccfa28086
07f81f8c2cec8c369d863d0b7b28c2044c529360
/Tools/normalize_sentence.py
0df51eccff5cc320251c78312a21742f8dd58cb0
[]
no_license
DayLAI/SemEval2018-Task8
f9e295d098b259c52088e205c27722d3a3ed5add
6e34d9320c95f43fa493a396a93ddae2f0b84de5
refs/heads/master
2022-03-12T16:14:26.026560
2017-09-20T11:32:12
2017-09-20T11:32:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
normalize_sentence.py
import os import sys # Manage imports above this line def normalize(input_sentence): print(input_sentence) return 0 # End of main if __name__ == '__main__': sentence = " ".join(sys.argv[1:]) print(sentence) sys.exit(0)
c8e092632c3dd533d39c8bdd37689e5f526274f0
99c9b4db267c6044f60396cb05640f5e252aa9f1
/demo.py
5ebb8f208636ce7918994d160a2cd65b760d5ab3
[]
no_license
TristanTrim/shapeRelations
6ef8b9ba1a010f679d11c7e2a209fa2005188b26
9f92a816fd3fe6a95e5a51f8e45347db406f3498
refs/heads/master
2021-12-09T03:47:30.374374
2021-11-18T14:39:01
2021-11-18T14:39:01
43,736,014
1
0
null
null
null
null
UTF-8
Python
false
false
3,014
py
demo.py
import pygame import random import shapes # Window dimensions width = 640 height = 400 screen = pygame.display.set_mode((width, height)) clock = pygame.time.Clock() running = True bigCircle = shapes.Bob() bigCircleCopy = shapes.Circle() smallCircle = shapes.Circle(radius=25) square = shapes.Square(position=(250,25...
174791bbc58187aac2d44e799c1f6f1346c83ca4
ca50867149a2b1bf95ed5233466e6bfcfcb95e28
/day_14/page6.py
db2d1f17026d9886a46330193bdfbb9181e2eaef
[]
no_license
pythoncpp/Python01
f89e3b57cb0b35d4506db42d2a31d7ad1794ec13
d61f98f50426c2cd57daac36abbdcb6f6179aa87
refs/heads/master
2020-08-03T22:23:37.377176
2019-10-20T14:59:04
2019-10-20T14:59:04
211,903,538
4
3
null
null
null
null
UTF-8
Python
false
false
822
py
page6.py
# import admin.faculty # # f_1 = admin.faculty.Faculty('faculty 1', 'subject 1') # print(f_1) # import admin.faculty as faculty # # f_2 = faculty.Faculty('faculty 2', 'subject 2') # print(f_2) # from admin.faculty import Faculty # # f_3 = Faculty('faculty 3', 'subject 3') # print(f_3) # from admin.faculty import Fa...
842eccded8bc62c7289bf3a4b0555716c264c359
7287476cf52b95090a250b4768e029636f7a5dfe
/spider3/weekly/webapp.py
d7c59869f733182cfd10f78905bcd5530ec67b16
[]
no_license
francishcheng/temp
5bd206eea9b0becf6c595e92ad7f223eb5b56d02
34134ec0f79c9b7a8f98125c13a10d6072375300
refs/heads/main
2023-08-26T03:24:28.672451
2021-10-13T15:13:47
2021-10-13T15:13:47
416,791,530
0
0
null
null
null
null
UTF-8
Python
false
false
2,294
py
webapp.py
import pymongo import time import configparser from datetime import datetime as dt import datetime from collections import defaultdict import json import os from pathlib import Path import pathlib import requests import numpy as np import pandas as pd import hmac import hashlib import base64 import urllib.parse import ...
1a49beaaf83f27d044342031d13e79a9def8eee7
b97fa7ac0fd430be1d7ddf1effcf0e0414c70ea7
/exercise/Array/80/solution.py
dbd569459396861dbf32dda523f138854f128a09
[]
no_license
zizhazhu/leetcode
a22aa55d045e7e54ff4cb661262e7832fff5b6ee
b28702d2a2a4d2c18f92b83eb7e6287603fe92d3
refs/heads/master
2021-11-24T19:32:59.127336
2021-11-03T06:26:36
2021-11-03T06:26:36
159,351,863
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
solution.py
class Solution: def removeDuplicates(self, nums: List[int]) -> int: if len(nums) <= 2: return len(nums) pre = 1 for i in range(2, len(nums)): if nums[pre] == nums[pre-1] and nums[i] == nums[pre]: continue pre += 1 nums[pre] = nu...
d4572b877e1002e0e4a4035c50e3ef98dc3b1160
3cee528b424e4ab6cc2333a16082011c82ff962d
/src/spicy/core/siteskin/templatetags/sk.py
2a30904b015e5d3ee12db372498d90c5e9556e0d
[]
no_license
SkyForger79/spicy.core
0de54d35fcce74bba649d521875c9715fb443d27
3a0318dab45cd4843af6a874918b15185c73ed1b
refs/heads/master
2020-03-11T11:38:18.110278
2018-04-17T23:11:49
2018-04-17T23:11:49
129,974,623
0
0
null
2018-04-17T23:02:12
2018-04-17T23:02:11
null
UTF-8
Python
false
false
3,852
py
sk.py
import datetime from django import template from django.template.defaultfilters import stringfilter from django.utils.html import conditional_escape from django.utils.safestring import mark_safe from spicy.core.siteskin import utils register = template.Library() class GenericSSINode(template.Node): def __init...
31ced3b67139a25b83df881145498439421279f5
a74babd851bad505fa2af1baaa5714a844cadaa4
/w2MediumTwo.py
36cbed9658c07df84530989a9636fe724401df7e
[]
no_license
Mattie-07/DCWork.python
5efedd29ac562354b6dbfc0529ce9e5b12d411a7
95964371ebf5b9a29ee94540763e347ad6fe2c7e
refs/heads/main
2023-01-14T08:35:45.142216
2020-11-19T04:45:58
2020-11-19T04:45:58
311,861,863
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
w2MediumTwo.py
def word_histogram(word): count = {} newWord = word.lower().split() print(newWord) for x in newWord: if x not in count: count[x] = 1 else: count[x] += 1 return count print(word_histogram("To be or not to be"))
b1af1d6525af92d6c94523abdb9194b33776c7b4
e6a9757d19e166871b0decbf25dc9ebef3a5ef55
/app.py
9105fda434caa9210443747192d3dd68d5fd80bc
[]
no_license
Omkar0/Drive
0d6932e88463832b70f094c26eab38a0e6839bbd
55cddd394f2198865739b4b721057359c7b33e84
refs/heads/master
2020-09-11T07:42:05.822061
2019-11-15T19:51:05
2019-11-15T19:51:05
221,986,678
0
0
null
null
null
null
UTF-8
Python
false
false
4,339
py
app.py
#import dependencies from flask import Flask, request, session, make_response,jsonify, send_from_directory, send_file from flask_restplus import Resource, Api, fields, reqparse from flask_pymongo import PyMongo import werkzeug import os #instantiate app app = Flask(__name__) #instatiate api-object api = Api(app) emai...
2aa5bc4bba37dca15bac0b493b7856dc7b602675
4383a48f993250842684ebdfaa69745d8e305604
/dbcall.py
6d548b815623e07660b2cb78a9d6273d78d91825
[]
no_license
stopmissing/login-kivy-sqlite-python3-gui
16d8183e61e52ff2deb5334324b77f938a393002
e0b177f9681138c7692851a1c2d33db9c1d0fa5b
refs/heads/master
2023-05-06T02:12:54.945472
2019-06-29T04:22:07
2019-06-29T04:22:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,160
py
dbcall.py
import sqlite3 import random import string def random_16_digit_genrator(n): string_pass = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(n)) return string_pass def insertintologin(username,password): conn = sqlite3.connect('login.db') c = conn.cursor() userflag = False ...
6bec8d62cbe3f700300522d8298580e003a40b77
807305b8aefbd7aac4f44c67deed06c059ca02d9
/tests/molecular/molecules/molecule/fixtures/polymer/linear.py
63cdba6e8ef7202e5ec7c8a61ea411291ca8b963
[ "MIT" ]
permissive
supramolecular-toolkit/stk
c40103b4820c67d110cbddc7be30d9b58d85f7af
46f70cd000890ca7c2312cc0fdbab306565f1400
refs/heads/master
2022-11-27T18:22:25.187588
2022-11-16T13:23:11
2022-11-16T13:23:11
129,884,045
22
5
MIT
2019-08-19T18:16:41
2018-04-17T09:58:28
Python
UTF-8
Python
false
false
3,417
py
linear.py
import pytest import stk from ...case_data import CaseData @pytest.fixture( scope="session", params=( lambda name: CaseData( molecule=stk.ConstructedMolecule( topology_graph=stk.polymer.Linear( building_blocks=( stk.BuildingBloc...
cb4e20879c59c6c8eb7ef91c558037396b17c0c4
13b31d0bc43cb9add11865b272e904e70df8a26d
/app/forms/SizeTableForm.py
c709b8249870c23c0f8bbcd146eb16707ac7d9b7
[]
no_license
psamborski/czzk-v.2019
2e9a2c47e261f7a0874612e39e1d4e18b8d9d50f
90c3b18a31db89e85b3244dbd06fb730ff269994
refs/heads/master
2021-06-13T19:45:58.685620
2020-03-13T23:34:16
2020-03-13T23:34:16
165,959,916
1
0
null
2021-03-20T00:31:42
2019-01-16T02:33:20
HTML
UTF-8
Python
false
false
559
py
SizeTableForm.py
from flask_wtf import FlaskForm from wtforms import SubmitField, TextAreaField from wtforms.validators import DataRequired, Length class SizeTableForm(FlaskForm): content = TextAreaField(label='Tabela', validators=[ DataRequired(message='To pole nie może...
0d5ad8b8612ae03dab619713b1d32def95b63205
cc127d59b62bba9d6ce5e32b1a6f7fb13fe45115
/palindrome_number.py
d544da590596bf530cc46de423d4f9346d292f65
[]
no_license
dsnowb/leetcode
5049fe69e82ba1631631473c3bd5eb93ae41c33c
b49f96e22e25cafae75f2fdcded971c4c6677fdf
refs/heads/master
2020-03-19T22:51:43.238122
2018-09-27T19:15:28
2018-09-27T19:15:28
136,984,177
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
palindrome_number.py
class Solution: def isPalindrome(self, val): """ :type x: int :rtype: bool """ if val < 0: return False if val < 10: return True lst = [] while True: lst.append(val % 10) if val < 10: brea...
3d860dc49c9cbc7f75f48672b15f75633d7365ae
6397692bade269ca38ee6f8a9f8d5a87ca7e8d3f
/app/api/v2/views/usersviews.py
87abd1a2eaba0a1ca997d0f0da4048a9283c45e1
[]
no_license
Philipotieno/Questioner-API
2a60df5b23f6e9de5aa1f21943ac5dd17ee1c022
51e5f479aba526959ac0b9f512e13c11ae282287
refs/heads/develop
2022-12-11T04:20:39.796022
2019-02-15T08:28:13
2019-02-15T08:28:13
164,468,288
1
0
null
2022-12-08T01:31:37
2019-01-07T17:37:58
Python
UTF-8
Python
false
false
2,268
py
usersviews.py
from flask import Blueprint, jsonify, request from werkzeug.security import generate_password_hash, check_password_hash from flask_jwt_extended import create_access_token #local imports from app.api.v2.models.usersmodels import User from app.api.v2.views.validator import validate_register from app.api.v2.models.db imp...
61867cee2b3378116974ea20feeef32aa1c1af79
0d39e91482abe7f40523e9e225ede5464295888f
/ansible_mitogen/transport_config.py
aa4a16d0172848930e006bd4c612a0817cbbba79
[ "BSD-3-Clause" ]
permissive
eamanu/python-mitogen
bdccdd7ceca4f1b114bf3e28556eb0d959b008e8
e93c7aae83b130abe1ef2dcf829d32e40f9fe8b1
refs/heads/master
2022-04-29T17:01:32.451975
2019-10-24T00:30:20
2019-10-24T00:45:18
217,181,829
1
0
BSD-3-Clause
2022-03-29T21:58:20
2019-10-24T01:02:03
Python
UTF-8
Python
false
false
22,185
py
transport_config.py
# Copyright 2019, David Wilson # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2....
959f477179e17882d4d1540fdda1c95629cb7e1f
bef493674cb6cd58817bd75d14f9169f2ba0741c
/MathCurious/Num142857.py
730916d16b63a30241d9a188d58f663fd34136e5
[]
no_license
gazstao/PythonCourse
ed2d2e9ab327592ff6a02b1c0034be49ba31dd4f
30cc034bf7d82cec39e73ee7fcceaa7f69513828
refs/heads/master
2022-10-07T04:17:30.216349
2022-09-19T22:24:54
2022-09-19T22:24:54
232,926,339
0
0
null
null
null
null
UTF-8
Python
false
false
968
py
Num142857.py
#from numba import jit, cuda from datetime import datetime import numpy as np print("Gazstao (f) 2019-12-31 00h19") for i in range (15): print("i = {} x 142857 = {}".format(i, i*142857)) for i in range (19): print("i = {} x 0588235294117647 = {}".format(i, i*588235294117647)) #calcula pi #@jit(target ="cuda")...
3ba21882636328df2888aa972042d9b656ac7ad1
bc68ad77c933a502c11abbc92c9c1e2ce565d426
/preprocess_scipy/utils.py
8e27d3d18d6fa14e3c1bf55dcb38d5dbf3b2fba0
[]
no_license
wuzhenyusjtu/SRCNN
9a79ec74857d2a3bbd551bd8525f13f320528000
9260b800809fffdd6c1e38e7384fb534bccf0bc5
refs/heads/master
2020-03-28T02:23:18.193145
2018-09-05T19:16:20
2018-09-05T19:16:20
147,566,849
0
0
null
null
null
null
UTF-8
Python
false
false
3,884
py
utils.py
""" Scipy version > 0.18 is needed, due to 'mode' option from scipy.misc.imread function """ import os import glob import random import matplotlib.pyplot as plt from PIL import Image # for loading images as YCbCr format import scipy.misc import scipy.ndimage import numpy as np import cv2 import tensorflow as tf try:...
aef2f16fc1a54d883fc4a921fe6e8fa6c6cc91a0
31220b0d257d9dc71fef028aba988bc66a6672d4
/Programacion 1/Ejercicios/Clases y Objetos - Ejercicio 7.py
95754eef8d7018aafc7bc2482637272e32919a7a
[]
no_license
adriannovoatagle/Carrera-Tecnico-Superior-en-Soporte-de-Infraestructuras
3a580c83d79e830978b2ed51fb17a7b61510af93
3360f157d6e586a8157fd0d96615baa0bf8bd689
refs/heads/master
2023-01-10T11:58:02.171663
2020-11-03T21:11:34
2020-11-03T21:11:34
309,794,210
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
Clases y Objetos - Ejercicio 7.py
class ej7: def __init__ (self,x,n): self.x = x self.n = n def funcion(self): a = self.x b = self.n print('Salida: ',pow(a, b)) x1 = ej7(int(input('Ingrese base: ')),int(input('Ingrese exponente: '))) x1.funcion()
8134cadb199fe5f9423c9eff5182fe4631d4b714
f08fba610124ef57cb42c2bffe98158420169ded
/jtab/__main__.py
0d6c7db09f3a497c265821239a2efa708e6c471a
[ "MIT" ]
permissive
jonathangjertsen/jtab
c9976488b727df6b55b68f0032dc1d65ce396c29
69d24bfd6aba05be23fcbaed9520a625f19cd95b
refs/heads/master
2020-12-13T19:24:41.694451
2020-01-17T20:06:08
2020-01-17T20:06:08
234,509,269
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
__main__.py
from jtab import ( get_empty_grid_string, get_notes, get_relative_note, get_standard_tuning, TabGrid, ) if __name__ == "__main__": tuning = get_standard_tuning() example = """ |--------0-------|--------0-------|--------0-------|--------0------- |------3---3-----|------3---3-----|---...
17608aac04fd8200942482e0ac5152c13f61b300
2e1bf52e3bfeb6c565c91235f8559e4f2a12090a
/Samples/python/brian.py
3f21688c3867188fc52b8299c35e880f4bf41385
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sci-visus/OpenVisus
198c6f81327a14645290ee331161c2c34b228e21
4b120b3d32a4785636b4fd8a30ffd1814e8d59c7
refs/heads/master
2023-07-19T17:14:04.565357
2023-07-07T15:08:56
2023-07-07T15:08:56
128,863,320
26
21
NOASSERTION
2023-09-08T13:15:41
2018-04-10T02:41:55
C
UTF-8
Python
false
false
6,310
py
brian.py
import os import sys from OpenVisus import * from OpenVisus.gui import * # Scripting Node to remove the white-sh (TO TRY) """ import numpy input=Array.toNumPy(input) R,G,B=SplitChannels(input) A=ConvertToGrayScale([R,G,B]) # remove white-ish A[A>245]=0 output=InterleaveChannels([R,G,B,A]) ...
1fb9bd86be5f9274f41abac1dc2af98a1d2daf7a
47e5ad752748d42739aae3135bcea5c047ec4178
/src/train.py
1b4770fa6fa2af931e85534126a1be2a7522a9d9
[]
no_license
xingjiliang/fuck-you
588d89b24d2944c075b1490c3f22333557f7294f
075578567a2d41f6636017299af194cc8143a500
refs/heads/master
2020-07-25T09:24:38.008030
2019-08-27T06:12:17
2019-08-27T06:12:17
201,259,658
0
0
null
null
null
null
UTF-8
Python
false
false
3,110
py
train.py
# coding=utf-8 """ 通过data_utils得到样本 训练模型 保存模型参数 通过使用make_initializable_iterator方便地切换数据集…… """ import os import time from importlib import import_module import numpy as np import tensorflow as tf from absl import app from absl import flags import data_utils import config FLAGS = flags.FLAGS LOG = config.logging.getLog...
67e071c9263a73e12c9f23945ceeb24c51d8d966
cf5e07cac7561bc8b34430e61e97643abbb3d4e9
/01-benson/challenges/nick/benson/benson_challenge_1.py
e22f73085bf54e4dffefd2cd5b249be3a39b204a
[ "MIT" ]
permissive
marcolunardi/GetData_Assignment
f6672d8b16fa45b51ebbaa2019973dcea1d8652f
82528702e0d52ce6a5b9a81a4225aa5bd459b37c
refs/heads/master
2016-09-06T07:57:04.103602
2015-04-30T13:10:52
2015-04-30T13:10:52
22,233,564
0
1
null
null
null
null
UTF-8
Python
false
false
375
py
benson_challenge_1.py
import csv with open("turnstile_150404.txt", "r") as turn_data: reader=csv.reader(turn_data) my_hash={} for row in reader: key = tuple(row[0:4]) val = row[4:-1] # check if the key, val exists if key in my_hash: my_hash[key].append( val ) else: ...
47e2fbeb989aacb06a9866e03eeb3e1f4cadf9de
b682c1191c6e7833d3884a8f474279f8a013889e
/programming-challenges/mc821/09-13/modularEquations.py
1318d54ad9d20e0f9ef54160714184ea37bba740
[]
no_license
joaopmt/competitive-programming
5969c9428918ba67768648211e5c5f8c6fce9c82
0bf8c9a9a852d674b368cf08833903f04b0ed2a8
refs/heads/master
2020-04-21T15:47:32.236011
2020-04-05T00:52:37
2020-04-05T00:52:37
169,679,947
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
modularEquations.py
a, b = [int(x) for x in input().split()] if a < b: print(0) elif a == b: print("infinity") else: x = a-b i = 1 ans = 0 while(i*i <= x): if not x%i: if x//i == i and i > b: ans += 1 else: if i > b: ans += 1 ...
8f61f0a6ebe3dbf69b277d2e409b697a6a480904
b27bb88e9d661993d207ce5b0e1f1873f6e76cb2
/madrid/views.py
910a4931830fc08fde93cfd364ed5c0f79df4b83
[]
no_license
aliciapj/madrid_geodjango
9d6b315e3187935ac33ffb21f4ee7816b6d94246
f9dd91eef94fcce108027e930fb87e538d1a5eb3
refs/heads/master
2022-12-10T13:39:04.408557
2020-03-31T11:02:44
2020-03-31T11:02:44
130,117,919
1
1
null
2022-12-08T00:58:55
2018-04-18T20:24:58
Python
UTF-8
Python
false
false
1,249
py
views.py
from django.shortcuts import render from madrid.models import District, TrafficTicket, Neighborhood def stats_by_district(request): districts = District.objects.all() result = [] for district in districts: traffic_ticket = TrafficTicket.objects.filter(geom__intersects=district.geom) re...
d89bc96706a096dc5f2098ffcc43c7c3a3bd8b99
348ff52245a741898d848f31cace909091f9062b
/src/server/taskDriver.py
3d02f088fe651c9f8134cd832754aa0267ed3723
[]
no_license
carwestsam/SkyCI
b3a7e1b5651c217825e679ab119d162014f355df
b6dd5f59f50cbf5bdee53d47298b0ee6cb109849
refs/heads/master
2020-03-22T10:43:28.290659
2018-08-10T02:14:16
2018-08-10T02:14:16
139,922,835
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
taskDriver.py
import atexit import pika from models.Task import Task import json from logs import log cbConn = pika.BlockingConnection(pika.ConnectionParameters(host='localhost')) cbChannel = cbConn.channel() cbChannel.queue_declare(queue='default') def callback(ch, method, properties, body): print("Front Received %r" % body) ...
f34cb99ed406510e38a9b267593efaf351d07e29
22c32b5112bce20cc9a4ba0a62ff3d18ac211eb4
/scratchpad.py
8c8ee7a22d8ea1f965c82580baedfe952a433ed1
[]
no_license
perryjd/dataStructuresPy
e89649c72514c3488c2b0cbc022354bbc5d9f624
d3177ae08720b9d6cc1019bd0ecc4f4b011a384c
refs/heads/master
2021-01-21T07:58:00.444325
2015-03-16T19:08:49
2015-03-16T19:08:49
32,346,450
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
scratchpad.py
for i=0; i<10; i+=1: print i
7e03ace6d1561054a6740f36278022797c58aad5
03b5d185f2173134b8d24785d54d9b14422ce0de
/BK.py
4d5141657856361eefae6ff717ae54725805a44d
[]
no_license
aravindsankar28/NLP
536ad75163f594a045e124460c79bea89bbce476
29baa7bbea11dbf45800d6a24368c875ea75523c
refs/heads/master
2016-09-05T23:39:30.825780
2015-02-10T15:30:08
2015-02-10T15:30:08
23,582,824
0
1
null
null
null
null
UTF-8
Python
false
false
4,905
py
BK.py
import time def editDistance(s1, s2): # This function is designed for Psyco if s1 == s2: return 0 # this is fast in Python if len(s1) > len(s2): s1, s2 = s2, s1 r1 = range(len(s2) + 1) r2 = [0] * len(r1) i = 0 for c1 in s1: r2[0] = i + 1 j = 0 for c2 in s2: ...
a1369cfbebaef1901d45a382fdc3c6e0a37e5744
b369cd0491e1dc6925c29aaab3fe6fae80fa4115
/src/base_changer.py
ef5dfa0c229b7741ead4f1c5b596e0e4e58549d5
[]
no_license
juampiludu/number_base_changer
c98b2ff666467704586409ce33ce775dd299dcf6
38d821112da3d108697ce9c72a1352211f8abba4
refs/heads/master
2023-06-06T17:46:58.312302
2021-07-03T20:05:05
2021-07-03T20:05:05
366,896,401
3
0
null
null
null
null
UTF-8
Python
false
false
4,422
py
base_changer.py
from .has_letter import has_letter from .number_it import number_it, check_letter, check_in_b from .text import * def base_changer(a, b, c): check_a_b = check_letter(a, b) check_number = check_in_b(a, b) if check_number == False: error_msg( "Error: The number you've entered contains ...
2ad9ab0fd9afd9df1d465f1765b02580bcaeafa3
85a965a177506ddfa0c2311ccbae93e68cafc044
/framework/yaml_reader.py
6269a53719302ae3e797c0568c8ca17bb7ec5e1d
[]
no_license
zandrewitte/pi-fun
d3554f1a3afdb5037c006f384ffea38c8449a16c
e15410194b0d108d1bce71fac8036fbe1a933832
refs/heads/master
2020-12-25T15:08:56.670633
2016-09-15T10:43:41
2016-09-15T10:43:41
67,128,834
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
yaml_reader.py
import yaml def read_yaml(file_name): try: with open(file_name, 'r') as f: doc = yaml.load(f) return {key: value for key, value in doc.items() if value is not None} except IOError as e: print 'File: %s does not exist' % file_name
f3074d8e6d9629e9fd6ee22498adc33697d97631
34f0853d3e2e2bafadc2095bf96d2ab93d415023
/test/calc.py
96121a242bd62ee7b603c84007a9111fc5db39e3
[]
no_license
85hzc/python_opencv
528441d42e26cb194f8c84d50bf8fc24e1deba23
c7e6b927c21896a79add49e7537068892146b0e7
refs/heads/master
2020-07-05T01:21:31.891070
2019-11-07T03:39:31
2019-11-07T03:39:31
202,480,205
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
calc.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import math import cmath def sqrt(x, y): try: y = math.sqrt(y) print(y) except ValueError: y = cmath.sqrt(y) print(y) def add(x, y): return print(x + y) def subduction(x, y): return print(x - y) def multiplication(x, y): ...
f8703303d17aac660dbf9ec278bf04a5a12871c6
2b9d5d6acc3709c8455646a5436c09f6a283794d
/workerKong.py
6e9c49d92d905939dd9d355e73eb7d670190b1c6
[]
no_license
n-miletic/DRS2019
c9aaca074a5c0439c85794174bb38b76e4940079
263686070ee96320308ce8f48d15d26ac2849bc6
refs/heads/master
2020-09-19T17:42:17.725137
2020-01-17T20:53:14
2020-01-17T20:53:14
224,255,483
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
workerKong.py
from worker import Worker import multiprocessing as mp class WorkerKong(Worker): def __init__(self, pipe: mp.Pipe): super().__init__() self.pipe = pipe def work(self): self.pipe.send('go') while True: val = self.pipe.recv() if val == 'end': ...
e09a26a3175a049147ebe313b5cd6f62f965e59b
2e38e1fc2ab50ebf89a570ad4ae195b174d804ea
/users/views.py
c676f1c073ffdb17d60754a4edfd17654895b2d3
[]
no_license
coldwhiskeyman/library
dd4427a212a519755317c6205546447dd68de569
4c621a35955d7fb970a9cc25502175b36833c4c6
refs/heads/master
2023-03-06T22:08:51.891623
2021-02-20T10:42:27
2021-02-20T10:42:27
340,630,380
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
views.py
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.contrib.auth.views import LoginView, LogoutView from django.urls import reverse_lazy from django.views.generic import CreateView class UserLoginView(LoginView): """ Представление страницы авторизации...
8b336c15cb112d15addaac98b49c2cc61c616814
03eb3f665c8c9830a6c06d359f3a7e998b781db9
/scripts/test/hyriseBenchmarkJCCH_test.py
c2a27df7430bc16f99b02359f2075a71e714df29
[ "MIT" ]
permissive
hyrise/hyrise
25f8f396fcf3be2e4a4f7c3b432e3999ee0d6c60
46f13fa510aa7e8b232b3081ee1a25b7f0958e55
refs/heads/master
2023-09-01T10:35:56.802881
2023-08-25T07:18:08
2023-08-25T07:18:08
87,414,843
687
156
MIT
2023-09-14T21:17:51
2017-04-06T10:03:31
C++
UTF-8
Python
false
false
2,086
py
hyriseBenchmarkJCCH_test.py
#!/usr/bin/env python3 from hyriseBenchmarkCore import close_benchmark, check_exit_status, initialize, run_benchmark def main(): build_dir = initialize() # Run JCC-H, validate its output using pexpect, and check if all queries were successfully verified with sqlite. arguments = {} arguments["--scale...
5866abb6f618c8aa6c7ac8bc302d3212e90f33bc
8fe6474f1fec58809fcdc1393ac4c4d0c28ccdef
/deepem/test/cv_utils.py
d0c18a0de8760212fee8b299cb976c7b609c4dfb
[ "MIT" ]
permissive
ZettaAI/DeepEM
1aaabff7e7c7591669c13685ac6455480c44afce
6b982b6986c2c0b61bb92fe0c977aef5fe759d8e
refs/heads/master
2023-08-31T14:37:28.031360
2022-11-03T06:50:37
2022-11-03T06:50:37
249,042,114
0
0
MIT
2023-03-02T15:32:58
2020-03-21T19:02:49
Python
UTF-8
Python
false
false
4,379
py
cv_utils.py
import numpy as np import cloudvolume as cv from cloudvolume.lib import Vec, Bbox from taskqueue import LocalTaskQueue import igneous from igneous.task_creation import create_downsampling_tasks from deepem.utils import py_utils def make_info(num_channels, layer_type, dtype, shape, resolution, offset=(...
01d041e60a18bc7342c4aec733070b1c4f49c3a7
c10fb2d7208c6be3925367a2525b32b2f1aaa696
/src/imitation/data/datasets.py
eb4ea7af02f5423d9d0d78250d4b2841ea727201
[ "MIT" ]
permissive
zivzone/imitation
8970bd12553b5e2342bd5f5ff428bee147fa0995
c668cdaafceabac5249d65a7a4b7e516e4a6f220
refs/heads/master
2022-12-05T10:32:52.727532
2020-08-28T21:29:04
2020-08-28T21:29:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,504
py
datasets.py
import abc import dataclasses from typing import Dict, Generic, Mapping, Optional, Tuple, Type, TypeVar import numpy as np from imitation.data import types T = TypeVar("T") class Dataset(abc.ABC, Generic[T]): @abc.abstractmethod def sample(self: "Dataset[T]", n_samples: int) -> T: """Return a batch...
7bf5aa8be1b9bee33b3d15890cd1dd19171d5e99
e8acb2881eb4009017e3f13646b5ee783a34bbdf
/tf/pred_10_weighted.py
a095786ea1c4cc1144aae3f458c3f1b49a11d1e6
[ "MIT" ]
permissive
zxlzr/atec_back
a8097b49df5b261e6c4ba626f1d032d03dd74fc1
dff0fd07fef1879ee6ad51b7907ee895ef308acb
refs/heads/master
2020-04-19T21:27:12.213741
2019-02-06T07:34:30
2019-02-06T07:34:30
168,441,395
0
0
null
null
null
null
UTF-8
Python
false
false
6,413
py
pred_10_weighted.py
# !/usr/bin/env python import sys import os #os.environ["CUDA_VISIBLE_DEVICES"] = "0" import tensorflow as tf import numpy as np import lightgbm as lgb from sklearn import metrics import numpy as np from dataset import Dataset from train import FLAGS FLAGS.model_dir = '../model/rcnn_50_cv/' FLAGS.max_document_length =...
a75c4ef3feaaad3532fdf30ece0d9e6a23288b7a
af5208c75b6fb519091f291396134b719ecfdad3
/Comparison/main.py
9bec5eb16b6fae1896e3f4c469e921c7bf0197da
[ "MIT" ]
permissive
Ikerlz/dcd
6f6745754e10753548e989208d355c2c3369816e
8f5c3bb15729060503c2f6a5def0ec98c33c2c37
refs/heads/master
2023-08-08T10:54:18.772395
2023-07-20T12:07:36
2023-07-20T12:07:36
279,934,955
0
0
null
null
null
null
UTF-8
Python
false
false
5,240
py
main.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- ''' @Project :dcd @File :main.py @Author :Iker Zhe @Date :2021/3/5 16:13 ''' from norm_based_method import * from dcd_method import dcd_clustering ############################################### # Pandas options pd.options.display.max_columns = None pd.options.dis...
e47a1b41aa2e0c3651eb963511fea3a62af14ba9
dee5a06cc36e8079d736dd6417f57b089e219d85
/tasks/templates/tasks/control.py
abcfff4cb132b9d419e6f5450b2c876cea2ad64a
[]
no_license
MarinaFedorenko/TaskManager
270e877d2060614aff93071b06cfa2b32bca5aab
a4421f216b312c70ff1a4a0b1b1203ffa941a9a0
refs/heads/main
2023-01-13T08:50:42.944522
2020-11-12T21:24:12
2020-11-12T21:24:12
312,398,999
0
0
null
null
null
null
UTF-8
Python
false
false
2,694
py
control.py
import datetime today = datetime.datetime.now() currentMonth = today.month currentYear = today.year print(today) print(currentMonth) print(currentYear) # # selectYear = document.getElementById("year") # selectMonth = document.getElementById("month") # months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", ...
ca93581e22993d1a248a68515f56d46c6675a552
e15963ba9a7d85424cd0eb8c1baba2c4d0a0e2f5
/lib/web/base.py
5ee9981d3fbdf84ef270fc42804be43aec3aa230
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
Juniper/YAPT
a4b42da819f360c15c71b1033c8b7641079f0be2
b1a54998867c70352001415d5e4b70408480dab9
refs/heads/master
2023-08-14T01:41:14.430260
2019-06-11T09:34:46
2019-06-11T09:34:46
95,455,696
34
8
NOASSERTION
2021-09-23T23:21:17
2017-06-26T14:31:52
Python
UTF-8
Python
false
false
9,484
py
base.py
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER # Copyright (c) 2018 Juniper Networks, Inc. # All rights reserved. # Use is subject to license terms. # # Author: cklewar import json import os import random import threading import cherrypy from cherrypy._cpserver import Server from cherrypy.lib import a...
bcae1d9ab58884b91a34f11b6ddb01ad09ac6602
890acbb4ee1f81f73917a7d84a8c896383b6014f
/Shyna_speech/Shyna_PocketsphinxTrainned.py
1abe129c685fdca27d70f9b956c5e3c8df469462
[]
no_license
Shivam623/Shyna623
f0d12344279dfc943563f9ed80b60850652534d5
7d7a58c227f402c564b799d129d477c5b166e8e2
refs/heads/master
2020-03-26T01:33:22.829045
2019-04-21T22:54:32
2019-04-21T22:54:32
144,372,168
3
3
null
null
null
null
UTF-8
Python
false
false
454
py
Shyna_PocketsphinxTrainned.py
from pocketsphinx import LiveSpeech, get_model_path, Decoder from os import path model_path = get_model_path() print (model_path) config = Decoder.default_config() config.set_string('-hmm', path.join(model_path, 'en-us')) config.set_string('-lm', path.join(model_path, 'en-us.lm.bin')) config.set_string('-dict', path....
821230f295076146bf7c90b5e011bab899c2fee7
40b329b3aa3bfa5709495893bf78410d3b1a3136
/PESConstruction/BayesianNN/BNN_Theano_Lasagne_PyMC3/NNInput.py
44b74a7c1327c7d09c278083e24e120df7d5b5fa
[]
no_license
simoneventuri/Spebus
0878d7713d73193574ed70fbfdf3c6aea6cfaa08
6b826a9c9b3cb1b3ae721930cf5864f697ebf74c
refs/heads/master
2022-12-14T09:41:14.090049
2020-08-14T23:37:20
2020-08-14T23:37:20
181,975,667
0
0
null
null
null
null
UTF-8
Python
false
false
9,807
py
NNInput.py
import theano.tensor as T import pymc3 import numpy import lasagne from DiatPot_O2_UMN import V_O2_UMN from DiatPot_N2_DS import V_N2_DS, V_N2_LeRoy class NNInput(object): TrainFlg = True TryNNFlg = True ReadIniParamsFlg = False SaveInference = False Machine = 'ENTROPY' i...
04ade510b4cce6ab129e7c9ecd19125d4145f4fb
aae3c6fccb2296e4da5bb10310f5dd6baba8b7de
/activitysim/benchmarking/reader.py
f1da72d70634a0c3260e89e1a42a78e4380714ed
[ "BSD-3-Clause" ]
permissive
ActivitySim/activitysim
3d938e616452be76db1bb0c8a1212e12b9216823
a8e755f96d0e32633a6d3657c4878e3b6a37e59a
refs/heads/main
2023-08-08T16:02:06.275693
2023-05-09T13:08:23
2023-05-09T13:08:23
20,981,950
118
89
BSD-3-Clause
2023-07-25T14:07:16
2014-06-18T23:57:40
Jupyter Notebook
UTF-8
Python
false
false
651
py
reader.py
import pandas as pd import yaml def read_results(json_file): """ Read benchmarking results from a single commit on a single machine. Parameters ---------- json_file : str Path to the json file containing the target results. Returns ------- pandas.DataFrame """ out_dat...
201025ef15fcab36a56dbb05abb38106dcc5c4fc
6ed6ec8ad745826702e274f223514d02f41995eb
/tools/parsers/corpora_sentiment/negation.py
4b55ec10a282976674763ed8e64cce70a7a7673f
[]
no_license
polakluk/supreme-court-analysis
69b374062ce92716db48787e4336f076ca89ceb2
505e4682261a93316482bdc4a6418955d0ee5327
refs/heads/master
2020-04-11T00:45:54.581979
2017-01-03T22:51:09
2017-01-03T22:51:09
52,023,631
1
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
negation.py
from tools.parsers import basecorpus import pandas as pd import numpy as np # this class reads list of negation words and transforms them into a proper CSV with their upper case representation class Negation(basecorpus.BaseCorpus): # constructor def __init__(self): basecorpus.BaseCorpus.__init__(self) ...