blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
2b5371fbe0d397efd87bd0c15a7b2fabb376d9e1
2a9b29f2a67fde3f5bd3a29355180ea40d2478a7
/main.spec
6c5d692837b1d6dfff709c7a768a45deb4e576d8
[]
no_license
rafero1/mfpj-t1
854dc015abec3ff04ec3fdcfa53f3a26234ef7af
ef8a255900cc4df5964f0b219138477f1882aa2c
refs/heads/master
2020-06-24T05:59:45.479754
2019-07-25T16:58:15
2019-07-25T16:58:15
198,870,570
0
0
null
null
null
null
UTF-8
Python
false
false
944
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['main.py'], pathex=['C:\\Users\\Rafael Avilar\\workspace\\mfpj\\t1'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], ...
[ "rfl.avlar@outlook.com" ]
rfl.avlar@outlook.com
c529ad2979c9aea0b99f011b42c1cb8a6eb4a4a0
9b9f3f4bb1c1d01c9d61432dbd7ed8138d06581c
/Car_rental_v1/car_rental.py
4c6485fb15e3b178ee1d6a75c7bce513b025913e
[]
no_license
stqc/learning_flask
0cc505722da7f32cc4c0c733841e543a2a1e0e23
231eb45fa1aafc00cfe09ee9a25f38eeb8bd6614
refs/heads/master
2023-01-06T22:17:35.990045
2020-11-12T17:07:20
2020-11-12T17:07:20
299,616,128
0
0
null
null
null
null
UTF-8
Python
false
false
3,984
py
import os from flask import Flask, render_template,request,url_for,redirect,session from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from forms import upload_form app = Flask(__name__) app.config['SECRET_KEY'] ="supersecret" base = os.path.abspath(os.path.dirname(__file__)) app.co...
[ "noreply@github.com" ]
stqc.noreply@github.com
b0d7ee97a930d6bb5f1f7a17fdb1b1c36996681a
f7bc2c6f0bce4397ba7554bc3cea726ce7c8a22d
/lambda_function.py
038c6eaf2acc66b7e75f42d14e559c8e56e405c7
[]
no_license
shojibMahabub/generate_thumbnail_s3_lambda
4103512ff3787e47ccd616ba2db040053dc2b0a1
f217bdad48b3157b1d0913df1baf2810784f0dc4
refs/heads/master
2022-12-01T03:39:54.898856
2020-03-09T06:35:52
2020-03-09T06:35:52
245,083,045
0
0
null
2022-11-22T05:22:14
2020-03-05T06:08:43
Python
UTF-8
Python
false
false
3,054
py
import boto3 import os from PIL import Image import pathlib from io import BytesIO # configuration thumbimagebucket = 'resizedimagebucket0099' backupimagebucket = 'backupimagebucket0099' mainimagebucket = 'myimagebucket0099' client = boto3.client('s3') s3 = boto3.resource('s3') def delete_this_bucket(name): ''' ...
[ "shojibmahabub630@gmail.com" ]
shojibmahabub630@gmail.com
3ea613abd2f6af3b13759a1d514257a951de2594
4d7968edb07729f43739b77fb7be31c9baefd84f
/proxypool/setting.py
1b7cabafdbe40169019998961036912642dbb274
[ "Apache-2.0" ]
permissive
AetheWu/proxy_pool
7dd4e9c588802d744d0c4ca8286d8a9497ad83a4
53659038bd93378e97258d6928afff90da4eefa3
refs/heads/master
2020-04-08T12:38:14.026188
2018-12-11T05:26:40
2018-12-11T05:26:40
159,355,424
1
0
null
null
null
null
UTF-8
Python
false
false
534
py
"代理池全局参数设置" #代理池参数 MAX_SCORE = 100 MIN_SCORE = 0 INITIAL_SCORE = 10 POOL_CAPACITY = 200 #Mongo数据库连接 MONGO_HOST = 'mongodb://localhost:27017' MONGO_KEY = 'proxy' #调度器循环周期: TEST_CYCLE = 60 GET_CYCLE = 20 API_ENABLED = True TEST_ENABLED = True GET_ENABLED = False #测试模块设置 TEST_URL = 'http://www.bilibili.com' BATCH_TES...
[ "wzh942633545@gmail.com" ]
wzh942633545@gmail.com
3beabab40585a32d5f3d2e20747ac5df3265cd43
5279abc11aa32cf2ff33159fb72a180ac3145d62
/parallel_processing_gcp.py
a130abd543d67ff6729872d2de0db3b7900651db
[]
no_license
vatsalsmehta/Apache-Airflow-Bigdata-Pipelines
891947195ff452e05ef0bf2a998b43bd6949e06e
b3debb64ca0d07698254b872a2db11b5067c1f83
refs/heads/main
2023-07-15T15:34:40.944229
2021-08-17T12:32:50
2021-08-17T12:32:50
389,121,482
1
0
null
null
null
null
UTF-8
Python
false
false
10,128
py
#importing libraries import csv from airflow.operators.python_operator import PythonOperator from airflow.contrib.operators.gcs_to_bq import \ GoogleCloudStorageToBigQueryOperator from google.cloud import bigquery import pandas as pd import calendar import time from google.cloud import storage from pandas import Da...
[ "vatsalsmehta@gmail.com" ]
vatsalsmehta@gmail.com
f58f32f62c15a00c4d69fa0ab14dab3b58eba07b
8069e5de0d28774d58a16cdb44ed59e35fb91663
/dict_example.py
b755645e6db001094fc7014a69ee50124f8c4a04
[]
no_license
acqant/demos
be3c829457ffe4fd0724f87b26614d2784a2be3f
f70cf8140fa0ac724913ad82f44d0df740e13f9b
refs/heads/master
2020-07-21T12:28:28.101774
2019-09-11T21:22:15
2019-09-11T21:22:15
206,864,956
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
import datetime def simple_dict(): my_dict = {} my_dict[1] = 'I exist' my_dict[2] = 'second entry' #checking if a key exists def my_function(id, my_dict): if id in my_dict: print(f'\t{my_dict[1]}') else: print(f'\tNo key {id} found in my_dict') print("W...
[ "acqant@users.noreply.github.com" ]
acqant@users.noreply.github.com
4b9d8fc4177861f3e58be01a4f9266084f458dea
a066d8b8b9e4c2ce2e57b2603a2826e0c5cd74fd
/lessons/keywords_and_control_flow/examples/ex4.py
5d6993ff80e5c43644394becbd59d96c6744816c
[]
no_license
delucco/PyClassLessons
a561c5873d7d8ae1cabeb3b5986eb323ae9faf62
7af775d102450b8a9d28da8a8fd475ae3144eabf
refs/heads/master
2021-01-14T12:06:49.382685
2015-05-19T01:53:03
2015-05-19T01:53:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
i = 0 while i < 100: if not i % 10: # break print "Divisible by 10:", i i += 1 else: print "Else statement has occurred." print "This is the end."
[ "robbintt@gmail.com" ]
robbintt@gmail.com
a9204e5cf25d9595f26dafcd328c3ce4c5b295cc
e7865530556fb229b50bdf6d04c68e095372e143
/AnalyseServer/src/server/Analyse.py
97b27b440b31dd6a74fca5927e44e65b66a72330
[]
no_license
asdzheng/AnalyseServer
a37b7cba0cdd064ea611dd8dd481152b38108c86
e71f21c9da5699c54c4679ad0d996df4d2bdd47c
refs/heads/master
2016-09-06T01:30:25.195724
2014-03-09T08:14:10
2014-03-09T08:14:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
import tornado.ioloop import tornado.web from pymongo import Connection class MainHandler(tornado.web.RequestHandler): def get(self): json = self.get_argument('json', "Hello World"); self.write(json) def post(self): conn = Connection() db = conn.First appCollection = db...
[ "zhengjiabo@gmail.com" ]
zhengjiabo@gmail.com
d5cd69bc39db446dab3c1bfa0714fd10795d9b13
107941a50c3adc621563fe0254fd407ea38d752e
/spider_03.py
ff843e21ab654378dec18c1fae8d152647acbf11
[]
no_license
zhangliang852469/spider_
758a4820f8bd25ef6ad0edbd5a4efbaaa410ae08
718208c4d8e6752bbe8d66a209e6d7446c81d139
refs/heads/master
2020-04-05T07:12:03.790358
2018-11-08T07:17:22
2018-11-08T07:17:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """节点交互 """ from selenium import webdriver import time # browser = webdriver.Chrome() # browser.get('https://www.taobao.com') # input = browser.find_element_by_id('q') # input.send_keys('iPhone') # time.sleep(1) # input.clear() # input.send_keys('iPad') # button = browser...
[ "710567585@qq.com" ]
710567585@qq.com
733066d1f4c502422a562cffcbd197aad6d660e1
e2fdc0dbaac7eb6b0acdfb8990b710d418a49a70
/utils/logistic_regression_pytorch.py
0a288663f217db82e6aad19231257354f8c9ed0d
[ "MIT" ]
permissive
ikanher/AHGP
55580df34e8d41014a13dce08dd18f36c2058cfd
8750823790ec6abece78e31cc0ec7a6162656a75
refs/heads/main
2023-02-18T03:44:29.000162
2021-01-14T09:37:25
2021-01-14T09:37:25
329,567,127
0
0
MIT
2021-01-14T09:28:52
2021-01-14T09:28:52
null
UTF-8
Python
false
false
3,491
py
import time import numpy as np import torch import torch.nn as nn import torchvision.transforms as transforms import torchvision.datasets as dsets def prepare_mnist_data(batch_size): train_val_dataset = dsets.MNIST(root='./data', train=True, transform=transforms.ToTensor(), download=True) train_dataset, val_datase...
[ "liusulin92@gmail.com" ]
liusulin92@gmail.com
afb361b22b4a2c9a14030264ca29d44363e14ebc
25b19cd0c0211de51fd307cdd43e19f9ffa924f5
/venv/Scripts/pip3.7-script.py
806411e5f41efd35c98f182d02a92539d5d764c9
[]
no_license
izazm8/TravelPlanner
2237fd556c9f57109b351072ae8c79f0ad7b9f51
52d212da7bac21a30589c3ea83be56325173b1b4
refs/heads/master
2020-04-19T09:15:19.425587
2018-12-30T22:26:36
2018-12-30T22:26:36
168,104,420
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
#!C:\Users\Mustaghees\PycharmProjects\TravelPlanner\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ...
[ "renaldpirate@gmail.com" ]
renaldpirate@gmail.com
64dd9b08095b15380f853a6fdd8e0a8ed26d1465
c3329e4c6fa308f9a41fa18af36445f32b875f4a
/setup.py
6475648b60bfe85fa434f5922a94355862b4b9b1
[ "MIT" ]
permissive
rritoch/pandas_zmq
6ac0379b150eac95ffd6188c3cf8faf786536846
d428fb049a52a2dc7e850156bfa2a0d16831177b
refs/heads/master
2022-11-25T01:10:49.850963
2020-07-28T08:33:00
2020-07-28T08:33:00
279,081,623
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pandas-zmq", version="0.0.3", author="Ralph Ritoch", author_email="rritoch@gmail.com", description="Communicate Pandas DataFrame over ZeroMQ connection", long_description=long_descript...
[ "rritoch@gmail.com" ]
rritoch@gmail.com
9ae24247dda00fad800f80dd2c1f56c3c26b82c1
29a5b663a88c5763d6176a0408b51f2d9f46adbf
/python/lecture3/tasks/views.py
a2049bedf1bdb2e66397500a0ef794ac1ae3771f
[]
no_license
chanakaudaya/cs50-source-code
f8c6de41c34ca5ad4dea7aecf62ed220cbdb1af6
975b46ded13f656e18dcc8bba8266c8947576958
refs/heads/main
2023-06-18T02:21:25.959233
2021-07-18T06:43:23
2021-07-18T06:49:30
387,109,051
1
0
null
null
null
null
UTF-8
Python
false
false
255
py
from django.shortcuts import render tasks = ["foo", "bar", "baz"] # Create your views here. def index(request): return render(request, "tasks/index.html", { "tasks": tasks }) def add(request): return render(request, "tasks/add.html")
[ "chanaka.leadership@gmail.com" ]
chanaka.leadership@gmail.com
f46477242fa911d6e3c8332e24eb1cc7e38b0750
99d436394e47571160340c95d527ecadaae83541
/algorithms_questions/ch14_sorting/q26_2.py
1d3dbab643ddebf9f47062db3e7538e2d0eb1102
[]
no_license
LeeSeok-Jun/Algorithms
b47ba4de5580302e9e2399bcf85d245ebeb1b93d
0e8573bd03c50df3f89dd0ee9eed9cf8716ef8d8
refs/heads/main
2023-03-02T06:47:20.939235
2021-02-08T05:18:24
2021-02-08T05:18:24
299,840,348
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
""" 카드 정렬하기 - 3회차 """ # 풀이 제한 시간 : 30분 # 2021/01/21 14:57 ~ 15:15 # 실패 - 틀린 부분 주석 처리 import heapq n = int(input()) data = [] for _ in range(n): heapq.heappush(data, int(input())) """ sum_value = heapq.heappop(data) while data: now = heapq.heappop(data) sum_value += now heapq.heappush(data, sum_va...
[ "seok9376@gmail.com" ]
seok9376@gmail.com
e6f0722f81bf18061e524fef27387e979ffb987b
66fad69779c0cb4cc2caa72686fe41db0f63ff80
/docs/doxygen/doxyxml/text.py
96a38c45def36eb824183bdeecd3321ffa21c6d5
[]
no_license
xiaogaogaoxiao/gr-AnyScatter
c9e4d56febf34673cb205f149ce263df62d0a7ca
c9e71a4efd12a19b0492788593ac5bd7055625cb
refs/heads/master
2022-04-16T18:01:15.660178
2020-04-06T13:45:32
2020-04-06T13:45:32
275,690,629
1
1
null
2020-06-29T00:08:23
2020-06-29T00:08:22
null
UTF-8
Python
false
false
1,947
py
# # Copyright 2010 Free Software Foundation, Inc. # # This file was generated by gr_modtool, a tool from the GNU Radio framework # This file is a part of gr-AnyScatter # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free ...
[ "nonzerosume@gmail.com" ]
nonzerosume@gmail.com
c8ffef0f996508839e103bcceab71afd3dd3f5fe
db19681c5349e60fd16eafcfef220327f42f8517
/프로젝트/countLine/arm_m3_kit_server.py
ea007e5fc3c7f0a71ab424f46207d6b903e13d68
[]
no_license
demetoir/2016-2-microprocessor-project
1bb19499629b243e5d508e553bcf0ba2d0f926f5
2098ff6a574e2c16e2a8aa17cfbc2a8fa31d36ef
refs/heads/master
2022-04-23T23:25:43.886535
2020-04-27T05:26:48
2020-04-27T05:26:48
74,488,450
0
0
null
null
null
null
UTF-8
Python
false
false
6,902
py
false = False true = True import serial import time import sys import traceback import datetime import random from time import gmtime, strftime rootPwd = "1234" class arm_m3_kit_server : MSG_ENCONDDING_TYPE = "ascii" MAX_MSG_LEN = 100 connectionMsgList = ["end\n", "send_handshake", "receive_handshake"...
[ "wnsqlehlswk@naver.com" ]
wnsqlehlswk@naver.com
3b3a68e496df3baa70a626c784c1ac7d960d6835
c6f375f5d237b6472f014a2a47f032897aedc65b
/TRACKER/trackerApp/migrations/0001_initial.py
de6bdaf90a82acc575fbacf8f243b241949f1f0a
[]
no_license
gsblinkhorn/TODO-List-App
a0420b2415f72af2673e91bf13a565be2ee65866
e6d6f86ab9e809bd3f033f52c34e448fecce91e1
refs/heads/master
2021-06-21T13:51:53.200826
2019-06-10T21:58:23
2019-06-10T21:58:23
170,768,029
0
0
null
2021-06-10T21:10:29
2019-02-14T22:40:20
HTML
UTF-8
Python
false
false
609
py
# Generated by Django 2.1.7 on 2019-02-12 22:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='List', fields=[ ('id', models.AutoField(aut...
[ "gsblinkhorn@gmail.com" ]
gsblinkhorn@gmail.com
f26f5381c735e2b392efb5377724e8ec377a6a3a
70e7533a4342cd4eff6714693d0838d50a694ec1
/DSA_level_up_course/Arrays_and_Vectors/mountain.py
6d1843642ec37336625181080b08079d24c9ddc0
[]
no_license
au1206/DS-algo_practice
5e1673e1b1e4b282669b4ad1f3f4aaf3e27a646c
126fcb339e54768dd162c9a3e6cc04ef7b6184ee
refs/heads/main
2023-06-03T03:51:41.469942
2021-06-28T03:45:36
2021-06-28T03:45:36
351,354,893
0
0
null
null
null
null
UTF-8
Python
false
false
1,387
py
""" Write a function that take in an array of distinct integers, and returns the length of highest mountain. A mountain is defined as adjacent integers that are strictly increasing until they reach a peak, at which becomes strictly decreasing. At least 3 numbers are needed to for a mountain """ # identify peaks - a[] #...
[ "akshayuppal12@gmail.com" ]
akshayuppal12@gmail.com
849efcb9ae64e03c1b88eae58cb552402b5621b0
1795060a895d91b1cd882c1a847a6f88337071a2
/writeups/crossctf-quals2018/pwn/easynote/easynote.py
70c8de31417be0104c3f49863b424dcaa7eb40bb
[]
no_license
nushosilayer8/writeups
08853ffc78b5823d01209db005da1207f1d0f83a
3c664ce22ffc942ad3c4d3d818326ca1d95e2a0b
refs/heads/master
2020-03-18T03:12:45.641423
2019-10-03T04:04:00
2019-10-03T04:04:00
134,228,492
5
0
null
null
null
null
UTF-8
Python
false
false
3,224
py
from pwn import * context.log_level='debug' # read and edit in the binary have a vulnerability: # they can take in negative indexes # edit also doesnt malloc() if the entry is non-null # Thus, we can modify the contents of the note after #i # using edit(#i, -1, 'stuff') # and also read the contents of a note (includ...
[ "enigmatrix2000@gmail.com" ]
enigmatrix2000@gmail.com
84a44293453107c4c6dd00597d3f3f1c970b6484
de4e8e0f33dbd8bb39784907b420f05b2d62f65a
/test/test_sub_step_type.py
e57e83c7a9007b51213a5ff59a81bf9107ecdcc5
[ "BSD-3-Clause" ]
permissive
hpcc-systems/uptrends-python
489d7b513d1eeaf57569081363861010492a85e6
2e05ba851a4e65bde3c40514f499c475465bef90
refs/heads/master
2022-11-15T05:32:38.638456
2020-07-10T18:48:45
2020-07-10T18:48:45
256,216,110
0
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
# coding: utf-8 """ Uptrends API v4 This document describes Uptrends API version 4. This Swagger environment also lets you execute API methods directly. Please note that this is not a sandbox environment: these API methods operate directly on your actual Uptrends account. For more information, please visit ...
[ "SandCr01@risk.regn.net" ]
SandCr01@risk.regn.net
808df8fd000d1100b98a1532e9de2156af996c80
8ee9a85496208ed5f4331d437ec44cc17f7bce08
/FinalPractice/SemanticSegmentation/U_net/model.py
76320a94bd7d5507c70b0f20bc245ce78291b4fc
[]
no_license
Ollitros/ComputerVision
aa93527ef0172874a0034b61d1cae6c31f514734
b0ec5d9f94406b4f8164d0ef7180226156ea1194
refs/heads/master
2020-04-03T19:23:06.898807
2019-06-13T04:56:29
2019-06-13T04:56:29
155,521,472
3
0
null
null
null
null
UTF-8
Python
false
false
3,718
py
from tensorflow.keras.layers import Conv2D, MaxPool2D, UpSampling2D, \ Input, BatchNormalization, concatenate, Activation from tensorflow.keras.models import Model def model(): inputs = Input(shape=(128, 128, 3)) # 128 down1 = Conv2D(64, (3, 3), padding='same')(inputs) down1 = BatchNormalization...
[ "Ollitros@gmail.com" ]
Ollitros@gmail.com
3190ff79a325639ebf414c7f80900add89bff713
080de342ebd4397b62c02765c47c9378f4cc0ef1
/Project/functions/getting_tables.py
dec231d8fc8817cb8e2726a7c48d63dc49e1bb1e
[]
no_license
timothee-florian/Applied-Data-Analysis-2018
3367c1f53deed7eca935e3c47698d11fa0620111
433afcc50daf4f82099711a8aee21b750fbdad73
refs/heads/master
2020-04-23T09:31:54.481087
2019-03-29T12:41:03
2019-03-29T12:41:03
171,071,484
0
0
null
null
null
null
UTF-8
Python
false
false
6,003
py
import pandas as pd import numpy as np from math import pi import matplotlib.pyplot as plt def country_stat_creation(protests_df,country_by_income_2017,countries_stats,country_codes_to_name): #Getting number of protests per country without any threshold number_of_protests_per_country = protests_df...
[ "noreply@github.com" ]
timothee-florian.noreply@github.com
ebe1fb9cc23593c64d8d943ed016f532d66998e6
c8f3732435346cdeb2c81b6b403ceccc8a0f39f9
/9월/소민/Valid Anagram.py
9554738efda024312d8b495a0c52b956321d219f
[]
no_license
weejw/NetDB-Algorithm-Study
6d0e2b5d48bdb4b250da5fd843705c26781debe7
85b0b1832d838970318ac4628142c0b914f90233
refs/heads/master
2022-12-26T15:15:27.576472
2020-10-12T04:29:54
2020-10-12T04:29:54
291,655,038
0
2
null
2020-09-02T06:11:30
2020-08-31T08:13:24
Python
UTF-8
Python
false
false
219
py
class Solution: def isAnagram(self, s: str, t: str) -> bool: if len(s) != len(t): return False elif sorted(s) == sorted(t): return True else: return False
[ "ppsoming@gamil.com" ]
ppsoming@gamil.com
24a1f766afd91bb14af906157c92b21157847e12
ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31
/repos/Gather-Deployment-master/tensorflow/24.pyflink/notebooks/udf.py
c5bd455da383c118815ae7e7411968c2b4808d33
[ "MIT" ]
permissive
babiato/flaskapp1
84de2d0b26a54f5820d3bbe97926782ad41e005c
530beb9e3b8516e0e93960b99521c23a523ef546
refs/heads/master
2023-02-26T16:36:49.760632
2021-02-04T09:08:40
2021-02-04T09:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,501
py
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
6c137c6126c25690c337197affaf147d9e37e27b
e38f7b5d46fd8a65c15e49488fc075e5c62943c9
/pychron/processing/fits/interpolation_fit_selector.py
d87ba575e0cfa7ff8c9751b69ae6c15e42f3c200
[]
no_license
INGPAN/pychron
3e13f9d15667e62c347f5b40af366096ee41c051
8592f9fc722f037a61b0b783d587633e22f11f2f
refs/heads/master
2021-08-15T00:50:21.392117
2015-01-19T20:07:41
2015-01-19T20:07:41
111,054,121
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
#=============================================================================== # Copyright 2013 Jake Ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
2461dd6d31bb8de582e3c2c2b4eb9cae54a7dcf7
bb65c5e103768ed32a0538389d18d08095a9b101
/server/main.py
f4f7288368d6a4616071eeb32528ccd0b36e3371
[]
no_license
DaniloMaglia/WUD
235b6219cdcda08f4d1551cc1417087afdfbaef7
6eb112610d96586bd5bc63b26b64b95b73fe83c8
refs/heads/master
2023-09-04T23:38:48.585403
2021-11-09T14:23:12
2021-11-09T14:23:12
415,654,689
0
0
null
null
null
null
UTF-8
Python
false
false
6,335
py
from firebase_admin.exceptions import FirebaseError from flask import request, Flask from flask_cors import CORS, cross_origin from message import Message from db_driver import APIException, FirebaseConnection from db_driver import User from firebase_admin.exceptions import FirebaseError INVALID_TOKEN = { "code": ...
[ "magliadanilo@gmail.com" ]
magliadanilo@gmail.com
7a77b149db2c726037c8e1a03596ff93526b0641
3dc08fff8e43e94154ae247d5f5d8588d63b49ec
/2017/AdvCodeDay4.py
73e0c95fff34f92894be54525f462dc9bb6287c4
[]
no_license
rwinklerwilkes/Advent-of-Code
4ad5a51b83ebc1b1faa4c32e9e61d1f4f288b4ad
45470f966ae33aa8a753fb2d81f3ddc9299817b9
refs/heads/master
2022-03-22T11:15:58.183224
2019-12-30T15:37:56
2019-12-30T15:37:56
114,539,744
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
##Day Four def bad_phrase(phrase): s = phrase.split() s = sorted(s) dup = False for i in range(len(s)-1): if s[i]==s[i+1]: dup = True return dup def bad_phrase_anagram(phrase): s = phrase.split() s = [''.join(sorted(word)) for word in s] s = sorted(s) dup = False...
[ "rich.w.sas@gmail.com" ]
rich.w.sas@gmail.com
cd516a41afabb0cb99bb296211788b5dff0347b6
cfc345aa7ec01a1ab111004d6f1bb52c7baca293
/split_folders.py
297fd22620ecb56194a53acad6b4fe4540af4888
[]
no_license
iamgroot42/dlvr_project
70ce20675c8f1ba218aa3333f24c622def6c88bd
62aa8c24448b0aaee35df09a757527606f09f8bf
refs/heads/master
2022-06-02T06:34:55.770882
2020-05-04T23:22:55
2020-05-04T23:22:55
259,161,559
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
import os import random from shutil import copyfile from tqdm import tqdm if __name__ == "__main__": # Train-Test Split Ratio split_ratio = 0.7 source_datapath = "./finegrained_data/" destn_datapath = "./finegrained_data_split/" print("[Start] Data Split and Shifting") for basepath in os.list...
[ "anshuman@email.virginia.edu" ]
anshuman@email.virginia.edu
cdba6787cb45d6b039a3639d858ae0c457771963
9773059260c1f9395d182f7a65760b0917794a7f
/venv/bin/easy_install
7b6db3a0dec0c3e534d13076015638fb1340631b
[]
no_license
Ruldane/DjangoCountWords
05a452db5640b0efbff8f8e75061ed8dc2a40f6e
e54efb72caf678b7682642ce29b54b7d68170fa2
refs/heads/master
2020-06-10T19:50:41.289276
2019-06-25T14:54:39
2019-06-25T14:54:39
193,728,073
0
0
null
null
null
null
UTF-8
Python
false
false
443
#!/home/ruldane/PycharmProjects/countword/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'...
[ "l.nizzoli@gmail.com" ]
l.nizzoli@gmail.com
e3187338366529c0db25978df2bdc1b5d1708f9a
b5025befdf74fff3071252abaa4db09479f2d763
/Aneena/Aug10/employee.py
d431fdd12490188cde22d81218f2acfc45dceeee
[]
no_license
sidv/Assignments
d2fcc643a2963627afd748ff4d690907f01f71d8
d50d668264e2a31581ce3c0544f9b13de18da2b3
refs/heads/main
2023-07-30T02:17:19.392164
2021-09-23T04:47:56
2021-09-23T04:47:56
392,696,356
1
20
null
2021-09-23T08:14:11
2021-08-04T13:20:43
Python
UTF-8
Python
false
false
971
py
employee = [] while True: print("1.Add employee") print("2.Delete employee") print("3.Search employee") print("4.Change employee data") print("5.Display all employee details") print("6.Exit") choice = int(input("enter your choice\n")) if choice == 1: name=input("Enter the employee name\n") if name != Non...
[ "anee1234@gmail.com" ]
anee1234@gmail.com
46780ffe28ee6581b83e37f84a8955507f9583fc
80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019
/data/HackerRank-Mathematics/Constructing a Number.py
c87d42e4fdaa23fd44e0b8922ae34ab56bbcd61e
[]
no_license
Ritvik19/CodeBook
ef7764d89b790e902ede5802f36d5ca910d8a50e
2b4ed7938bbf156553d6ba5cba6216449528f0fc
refs/heads/master
2021-07-04T08:25:52.478719
2020-08-08T06:54:14
2020-08-08T06:54:14
138,744,302
3
0
null
null
null
null
UTF-8
Python
false
false
435
py
#!/bin/python3 import math import os import random import re import sys def canConstruct(a): return "Yes" if sum(a) % 3 == 0 else "No" if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(input()) for t_itr in range(t): n = int(input()) a = list(map(int,...
[ "rastogiritvik99@gmail.com" ]
rastogiritvik99@gmail.com
4abb7fabbd57ff0a857464e0b5557d97d45f5452
7a9034fa0698e9b6481c5de35ffd91c96d7552e9
/personal_site/settings.py
744f94f86bf4b5ecbb9947fff3a52102ef65e017
[]
no_license
k4u5h4L/personal_site
0e3144b62d9be0e08cf803cc5378c75f40425735
807867332e9bca759e2de8a28eb1840d2dd6a451
refs/heads/main
2023-02-07T07:52:11.031056
2020-12-19T16:36:38
2020-12-19T16:36:38
322,577,924
0
0
null
null
null
null
UTF-8
Python
false
false
3,785
py
""" Django settings for personal_site project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from p...
[ "kaushal.v.bhat@gmail.com" ]
kaushal.v.bhat@gmail.com
19238e70fd393bcd03742fde34353046b147ce19
14ccb6cc40980fe25440da3a18a113e8bcdf4efa
/blog/migrations/0001_initial.py
f1ea14304585cadb4806b86bf11a38c632191a98
[]
no_license
BatoAlvin/koola
1bc433aa4fa1a0d3f91221260c51242d5eea0692
0015565ec44428097ca1a4e9dcf19e7b3dbd33ff
refs/heads/master
2023-02-23T13:20:51.459968
2021-01-21T19:17:38
2021-01-21T19:17:38
331,552,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,277
py
# Generated by Django 3.1.5 on 2021-01-20 19:06 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Destination', fields=[ ('id', models.AutoFi...
[ "alvinbato112@gmail.com" ]
alvinbato112@gmail.com
16f2f9490ec4a93471d45983ce6e3dc1fb71d1e2
2a03132e5742ea5d4012327194bc7ec4e7096194
/tools/actions_local_runner.py
4082abda527b90fe1b0a7da2a316ef5323d1dabd
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
jmnarloch/pytorch
11f7be7b6d47b11868ede673879f651084f4e976
74c12da4517c789bea737dc947d6adc755f63176
refs/heads/master
2023-05-05T07:40:18.135517
2021-05-24T04:34:55
2021-05-24T04:36:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,495
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import subprocess import sys import os import argparse import yaml import asyncio import shutil import re import fnmatch import shlex import configparser from typing import List, Dict, Any, Optional, Tuple, Union REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspa...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
0d1b9c610d1411343055a6f90d03eb24479eea2a
91c74abe400034336d98490165e89897c6ad2078
/node_modules/pg/build/config.gypi
7b7249c67f0842d1c212a49287759cb0c611599e
[ "MIT" ]
permissive
sengcheav/group
852f8f2c30f1dc79a2cbf2df7924cedb211ec38f
f00ac357fb5d2e144496af9902ff8f8759862c76
refs/heads/master
2016-09-15T23:31:19.757192
2016-03-01T00:53:14
2016-03-01T00:53:14
37,701,877
0
0
null
null
null
null
UTF-8
Python
false
false
3,251
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 49, "host_arch": "x64", "node_install_npm": ...
[ "leatseng@barretts.ecs.vuw.ac.nz" ]
leatseng@barretts.ecs.vuw.ac.nz
5c03b63199ce12903d3e2e9941d7d45034431151
de95e9ace929f6279f5364260630e4bf7a658c1c
/recursion.py
bb3d67bb866d8fbe991317696a4fae7cd83a89fe
[]
no_license
ludwigwittgenstein2/Algorithms-Python
ceaf0739b8582f7bd749a9b3f52f283765044744
c5bed8b2e398c218d1f36e72b05a3f5545cf783a
refs/heads/master
2021-06-19T11:40:31.012268
2017-07-02T04:59:20
2017-07-02T04:59:20
75,953,711
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
def factorial(n): if n == 0: return 1 else: recurse = factorial(n - 1) result = n*recurse return result
[ "penpals.oranges14@gmail.com" ]
penpals.oranges14@gmail.com
2088cf6c06643d2ed7ae354196914827db1fe712
5af418f24afe2cc59356c8c64645c570b898934b
/terrarium/geomap/migrations/0001_initial.py
852f68461249f95c797b8663b4da45fc37b2b708
[]
no_license
roystchiang/terrarium
a7bcdc2ab5a316b01f4f6598c0aad55316cab8d4
9ac5b045d7db43c4cd43d40cca8941cf1f53d642
refs/heads/master
2021-05-31T13:06:04.877844
2016-05-20T21:22:00
2016-05-20T21:22:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,556
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-05-10 20:05 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] ...
[ "crosscent@gmail.com" ]
crosscent@gmail.com
d8150258ebc46e1cc860b8ddae0fe8c7233727e0
334af53a03b4e140b5f5dd9db1c677dfdef325d4
/tests/config_yaml_test.py
272ba1848155c4637ccf1fa8637557460df2f998
[ "Apache-2.0" ]
permissive
IgorFlint/a2ml
fc229c47e3e08ea6aee30aa4219c5c4bc137e987
c54a8a1770195a702048ca9820353d6d347daf95
refs/heads/master
2020-06-15T08:46:17.079004
2019-06-21T12:56:19
2019-06-21T12:56:19
195,252,061
1
0
null
2019-07-04T14:00:34
2019-07-04T14:00:34
null
UTF-8
Python
false
false
1,783
py
from builtins import str from builtins import object from argparse import Namespace from a2ml.api.utils.config_yaml import ConfigYaml class TestConfigYaml(object): def setup_method(self, method): self.yaml = ConfigYaml() def test_load_from_file(self): self.yaml.load_from_file('tests/data/ir...
[ "vlad@dplrn.com" ]
vlad@dplrn.com
f3bcbcf2b43044c76fd77389f545ad3bef57d962
83758b6ff637610f3fdd85da2b14d48e51769dfd
/src/probRobScene/core/pruning.py
6649d8be9207b6091f4717d9d5880e281393f742
[ "MIT" ]
permissive
ICRA-2021/ProbRobScene
58e502c6e33e5fd64fcf71962ceddee1583e3a78
2a6f3cac0f51f96955e2fdf18635df0a0985840f
refs/heads/master
2023-06-23T19:56:51.833905
2021-07-20T09:23:06
2021-07-20T09:23:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,204
py
from copy import copy import time from typing import List import probRobScene.core.distributions from probRobScene.core.intersections import intersect_many, erode_hsis, to_hsi, intersect from probRobScene.core.object_types import Object from probRobScene.core.regions import PointInRegionDistribution, Intersection, Int...
[ "craiginnes@gmail.com" ]
craiginnes@gmail.com
706e98389051b53c21fed428b65f6748aea8884a
18f8a1c7122c0b320f17ea31192439779a8c63e8
/zoom/component.py
4c33c561fec51ddfa4e1a08ca62ab77817d6130e
[ "MIT" ]
permissive
RyanLainchbury/zoom
d49afa8d3506fca2c6e426707bd60ba640420a45
684a16f4fe3cea3d26f2d520c743a871ca84ecc5
refs/heads/master
2020-12-25T19:03:12.881247
2017-06-09T07:29:27
2017-06-09T07:29:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,879
py
""" zoom.component Components encapsulate all of the parts that are required to make a component appear on a page. This can include HTML, CSS and Javascript parts and associated libraries. Components parts are assembled in the way that kind of part needs to be treated. For example HTML parts...
[ "herb@dynamic-solutions.com" ]
herb@dynamic-solutions.com
267bb492f6f1d1c52316995189ee560e6d5fac8b
cbbd5ae034bfc4a81a49af0fb7712516136afa6a
/PycharmProjects/Sensel/MISC/plot_contact_point_dynamic.py
c9c6a4d57c05bf7f73c33ae49037fdcb550ba242
[]
no_license
pratikaher88/SenselWork
fafe12037ae8349510f29b3dc60130d26992ea77
d6f17bca7d2ac6ec6621f9b1b1540ca9e80eb2f7
refs/heads/master
2020-03-22T09:12:19.559029
2019-09-08T19:25:15
2019-09-08T19:25:15
139,822,527
1
0
null
null
null
null
UTF-8
Python
false
false
5,496
py
#!/usr/bin/env python ########################################################################## # MIT License # # Copyright (c) 2013-2017 Sensel, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the...
[ "pratikaher88@gmail.com" ]
pratikaher88@gmail.com
aa508394ac52f05763dfa20934d3dfac4bbab93a
ef74156399cbc4b58732ecbc1f62f25597e503dd
/scripts/ryu/connection.py
e557e8903033d1431425882955770a66f1f6d89c
[ "Apache-2.0" ]
permissive
martinoravsky/ryu
138dcc9fcd3c94b9e764742f576c42e4ce98ec43
236d761b802398efecec02b36329a16378600712
refs/heads/master
2021-09-13T00:50:09.705531
2018-04-23T12:16:49
2018-04-23T12:16:49
107,885,767
0
0
null
2017-10-22T17:06:36
2017-10-22T17:06:36
null
UTF-8
Python
false
false
185
py
import mysql def connect(): conn = mysql.connector.connect(host='192.168.56.101', database='mptcp', user='mptcp', password='mptcp123') return conn
[ "martinoravskyjr@gmail.com" ]
martinoravskyjr@gmail.com
a3c12641a2a38ce54c6fe2aef9dff85dc74d8a75
ccc55c7a05cd115e029f04cd577b11b70d0d3fdc
/Chapter 2/D4 TI B/Dyning Aida Batrishya(1184030)/src/NPM9.py
bdfe66bce59887e5a9ba35766fa55636df459a63
[ "MIT" ]
permissive
ariqrafikusumah/Tugas
6019be8c3219c930730d29076efd4494a3c70c79
6903117a91ad3002033c6d0297b4d1d06903088d
refs/heads/master
2020-09-15T19:51:29.066553
2020-02-29T12:08:36
2020-02-29T12:08:36
216,065,279
0
0
null
2019-10-18T16:28:46
2019-10-18T16:28:45
null
UTF-8
Python
false
false
529
py
# -*- coding: utf-8 -*- """ @author: ASS """ i=0 NPM = input("berapa npm kamu : ") while i<1: if len(NPM)<7: print("Npmnya kurang dari 7 digit") NPM = input("Npm kamu : ") elif len(NPM)>7: print("Npm lebih dari 7 digit") NPM = input("Npm kamu: ") else: i=1 ...
[ "aida.batrishya@gmail.com" ]
aida.batrishya@gmail.com
0f5724a7f2cdf98f3c4f9d0122f6cec69aa538ff
7161f06c0b57711f788d664709f78456d11e9a1b
/Python/flask_fundamentals/hello_flask/server2.py
e840f4f1f0ab33945ccf3ec9922ecedf25c47be2
[]
no_license
yaronlevi1/CDcode
b00a51a33c43355d4ea53661c065a2cd8641b785
4dc925283715d4dd66733353491d49454865d68c
refs/heads/master
2022-12-02T04:34:08.044682
2018-03-15T19:52:15
2018-03-15T19:52:15
120,852,330
0
1
null
2022-11-28T03:57:53
2018-02-09T03:37:37
Python
UTF-8
Python
false
false
386
py
from flask import Flask, render_template, request, redirect app = Flask(__name__) @app.route('/users/<username>') def show_user_profile(username): print(username) return render_template("success.html") @app.route('/users/<username>/<id>') def show_user_profile2(username, id): print(username) print(id...
[ "yaronlevi1@gmail.com" ]
yaronlevi1@gmail.com
4c533330fc30bad9170734f0a1c30bbcfc8d9a59
b521802cca8e4ee4ff5a5ffe59175a34f2f6d763
/maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190117213541.py
1cc9c0f906fa3ff3efcc249cec01387c59eb07fa
[]
no_license
all-in-one-of/I-Do-library
2edf68b29558728ce53fe17168694ad0353a076e
8972ebdcf1430ccc207028d8482210092acf02ce
refs/heads/master
2021-01-04T06:58:57.871216
2019-12-16T04:52:20
2019-12-16T04:52:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,830
py
# -*- coding:utf-8 -*- # Require Header import os import json from functools import partial # Sys Header import sys import traceback import subprocess import plugin.Qt as Qt from Qt.QtCore import * from Qt.QtGui import * from Qt.QtWidgets import * def loadUiType(uiFile): import plugin.Qt as Qt if Qt.__bindin...
[ "2595715768@qq.com" ]
2595715768@qq.com
b4452af8858336844e7ecd9620be68d208465a26
f33316e25f0a867d4bf3dc054d8ac133520e322d
/orders/migrations/0001_initial.py
6ebfdeb7598fbf46739883d752b97b6340ebbf50
[]
no_license
blingstand/lengow_test
ac2338e44fb92a4f4b6d8ac1b878d3906332806b
1939048587b6537d9b7132f932f6d182aa5dd09e
refs/heads/master
2020-06-23T23:25:53.030690
2019-07-25T07:49:18
2019-07-25T07:49:18
198,783,984
0
0
null
null
null
null
UTF-8
Python
false
false
1,564
py
# Generated by Django 2.2.3 on 2019-07-25 07:18 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Marketplace', fields=[ ...
[ "blingstand@hotmail.fr" ]
blingstand@hotmail.fr
eb10bfb466bab9a81ea4d387369ee01657e46451
1850dac6af5c111f0b45542dbdd15abbfc91471f
/utils/security.py
17834c0c02246d6bba73f2bde5ee2c05d6a0c70e
[]
no_license
leonbaraza/User-Management
7551586c188c20a18f0db36048c22ce58da48b47
8f9658fe41f123d8f009e81e5be96dceb4f49d23
refs/heads/master
2023-03-17T10:20:42.149434
2020-04-18T04:44:04
2020-04-18T04:44:04
256,582,339
0
0
null
2021-03-20T03:34:41
2020-04-17T18:39:14
HTML
UTF-8
Python
false
false
125
py
from itsdangerous import URLSafeTimedSerializer from app import app ts = URLSafeTimedSerializer(app.config['SECRET_KEY'])
[ "leonbaraza@gmail.com" ]
leonbaraza@gmail.com
cf24680305aff81ff86ab5ebb28a06a585343af1
cbfddfdf5c7fa8354162efe50b41f84e55aff118
/venv/lib/python3.7/site-packages/apscheduler/executors/debug.py
ac739aebcef52bb0b824e66c1fcfc7693b4fab6a
[ "MIT", "Apache-2.0" ]
permissive
tclerico/SAAC
8d2245221dd135aea67c5e079ac7eaf542b25e2f
2f52007ae8043096662e76da828a84e87f71091e
refs/heads/master
2022-12-09T21:56:33.430404
2019-02-20T14:23:51
2019-02-20T14:23:51
153,152,229
3
0
MIT
2022-09-16T17:52:47
2018-10-15T17:13:29
Python
UTF-8
Python
false
false
573
py
import sys from apscheduler.executors.base import BaseExecutor, run_job class DebugExecutor(BaseExecutor): """ A special executor that executes the target callable directly instead of deferring it to a thread or process. Plugin alias: ``debug`` """ def _do_submit_job(self, job, run_times): ...
[ "timclerico@gmail.com" ]
timclerico@gmail.com
7f5868db1af43cb9124e4dfb9aa8350807e5364c
774adf830542c6dfe461d652120631f0cbd102a0
/auctions/admin.py
57b0a9d64787dcecbb5a6214aacc8353b42104d2
[]
no_license
Idris01/learn
1ebf404af26bb1cea23f51175d9e49bb31cb720c
b8481a075df65acd01848765116478c08dff8cc5
refs/heads/master
2023-01-05T06:25:18.851366
2020-11-05T17:14:35
2020-11-05T17:14:35
310,609,784
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
from django.contrib import admin from django.contrib.admin import ModelAdmin from . models import User, Listing, Bid,Comment, Winners # Register your models here. @admin.register(User) class UserAdmin(ModelAdmin): pass @admin.register(Listing) class ListingAdmin(ModelAdmin): pass @admin.register(Bid) class BidAdmin...
[ "idrys01@gmail.com" ]
idrys01@gmail.com
e0dc3ae013b13e56a10d616089abddf43297f87c
31eec231283a5ff66241a3fa5370f60f04a58200
/pyhighlighter.py
9e22bd927823ae00484b1195753da7999444762a
[]
no_license
zhhrozhh/pyzzle
93cf53e56b369aba5ca63324c2ea4ba2b1ff0cef
a96dd9690ef11e88d5accca5bfa8ccf41500d036
refs/heads/master
2021-01-13T11:31:58.963307
2017-01-02T06:46:23
2017-01-02T06:46:23
77,775,523
0
0
null
null
null
null
UTF-8
Python
false
false
2,977
py
#http://stackoverflow.com/questions/26679515/how-to-update-qsyntaxhighlighter-color-coding-when-user-changes-text import sys from PyQt4.QtCore import QRegExp from PyQt4.QtGui import QColor,QTextCharFormat,QFont,QSyntaxHighlighter def format(color, style=''): _color = QColor() _color.setNamedColor(color) _fo...
[ "zhangh40@msu.edu" ]
zhangh40@msu.edu
8a66309cef71bfec55cfda5a309e8111dc4d5640
a25e73dad4794f13fa8c77567d8b628875d9e252
/ex1.py
ac3151b24d5332824f9c179fd6e1a8ff437ed017
[ "MIT" ]
permissive
alhaol/dash-svm
e77dc1aab6fefb26fae5a7d172eb4720bba562fb
0b4ce502be6b5d026049dfe4f9e41cbc65815e42
refs/heads/master
2020-04-26T05:29:28.777021
2019-05-10T18:48:09
2019-05-10T18:48:09
173,335,823
0
0
null
2019-03-01T16:40:19
2019-03-01T16:40:19
null
UTF-8
Python
false
false
1,453
py
import dash import dash_core_components as dcc import dash_html_components as html app = dash.Dash() Fig1= dcc.Graph( id='fig1', figure={ 'data': [ {'x': [1, 2, 3, 4, 5], 'y': [9, 6, 2, 1, 5], 'type': 'line', 'name': 'Boats'}, {'x': [1, 2, 3, 4, 5], 'y': ...
[ "ibrahim.abualhaol@larus.com" ]
ibrahim.abualhaol@larus.com
fda997527f91121c4f1bffd1b3f2b0ddcc3dc4fa
1d7eec692553afc411ec1e7325634f71a2aed291
/backend/curriculum_tracking/migrations/0007_auto_20200710_1319.py
9c49a0b43cc247004d1e90d0e0992ef9482c6d27
[]
no_license
Andy-Nkumane/Tilde
a41a2a65b3901b92263ae94d527de403f59a5caf
80de97edaf99f4831ca8cb989b93e3be5e09fdd6
refs/heads/develop
2023-05-09T10:02:41.240517
2021-05-28T09:20:51
2021-05-28T09:20:51
299,501,586
0
0
null
2020-10-25T22:37:30
2020-09-29T04:10:48
Python
UTF-8
Python
false
false
1,043
py
# Generated by Django 2.1.5 on 2020-07-10 13:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('curriculum_tracking', '0006_auto_20200701_0539'), ] operations = [ migrations.AddField( model_name='recruitproject', ...
[ "sheena.oconnell@gmail.com" ]
sheena.oconnell@gmail.com
966665af55225f40fdd4da19c28dd883a43f62ff
3c8bc614c9f09db5efce54af3cbcaf78e0f48b54
/0x0B-python-input_output/4-append_write.py
e5256329fd3346953966d0bb9bdd0fec8b45629c
[]
no_license
davidknoppers/holbertonschool-higher_level_programming
7848d301c4bf5c1fa285314392adfb577d6d082f
beaf6e5ece426c2086f34763e50c3ce0f56923ac
refs/heads/master
2021-04-29T10:10:27.071278
2017-05-03T02:46:44
2017-05-03T02:46:44
77,847,936
1
0
null
null
null
null
UTF-8
Python
false
false
367
py
#!/usr/bin/python3 """ One function in this module append_write opens a file and appends some text to it """ def append_write(filename="", text=""): """ open file put some text at the end of it close that file """ with open(filename, mode='a', encoding="utf-8") as myFile: chars_written...
[ "david.knoppers@holbertonschool.com" ]
david.knoppers@holbertonschool.com
b3d0865a0cf9592cde62d1e601c04c26b3042079
29d64db8494161a0c9cb223992d44f7bd201b104
/utils.py
2b1012d2fe560f8779a17dad36372d6cbc84d015
[]
no_license
marakhmusic/Environment-Detection-using-audio
2b8b33a651a273ed69fb798a549be2327a010755
b44026f1415f73d7dd17e8385fc99e5afe03fd24
refs/heads/main
2023-01-03T05:44:18.708724
2020-10-15T13:36:19
2020-10-15T13:36:19
304,333,475
0
0
null
null
null
null
UTF-8
Python
false
false
2,642
py
from subprocess import PIPE, Popen, run def convert_to_PCM(file, out_Fs=44100): cmd = ['ffmpeg', '-i', '-', '-f', 's16le', '-ar', str(out_Fs), 'pipe:1' ] process = Popen(cmd, stdin=file, stdout=PIPE, stderr=PIPE) output, error = process.communicate() #print(output) #print(error) return outp...
[ "noreply@github.com" ]
marakhmusic.noreply@github.com
2c8a949f713cf95a9d66b2fcd2acc3e0cc636397
20374a973fa916c705e3de1bfcffcab0c4e8fa29
/df_ana.py
9efa63038da37542c6a111884f6c3241ca1b9400
[]
no_license
Bryancaraway/EFT_Analyzer
7a4905daaf6b3f8b91dea0bc4cd235349d9ea87a
97fd053e9b2872df54f50130408ee9fffaafd135
refs/heads/master
2023-06-27T22:23:12.878027
2020-08-16T21:36:58
2020-08-16T21:36:58
288,027,921
0
0
null
null
null
null
UTF-8
Python
false
false
15,285
py
import sys import pandas as pd import numpy as np import re import matplotlib.pyplot as plt def main(): aux_df = pd.read_pickle('aux_EFT.pkl') df = pd.read_pickle('eventInfo_EFT.pkl') bins = np.arange(0,1050,50) h_pt = np.clip(df['H_pt'].to_numpy(), bins[0], bins[-1]) h_pt = np.repeat(...
[ "bcaraway@cern.ch" ]
bcaraway@cern.ch
725c241a20c3a428a6b91bd6ee339be475bbca96
9f38512cc6c7ef83cd69c3f679c2f3a855799488
/utility/dataAnalysis.py
8f1467a54fb509f221fbe5795918937bbebe0448
[]
no_license
tangzhenyu/drl_recommendation_system
1254d17414b497ad0bfe60dcb183e96dab29284c
8120a01d4f25f91af56b66ae1d21959d60f56331
refs/heads/master
2022-12-18T05:10:32.150344
2020-09-25T05:02:33
2020-09-25T05:02:33
293,391,672
3
3
null
null
null
null
UTF-8
Python
false
false
7,188
py
from utility.hype_parameters import HypeParameters as hypes import argparse import sys from environment import environment_10_newsTags_tagShared_trueDQN as env import os def trainStrToDict(line): result = dict() if "".__eq__(line): return result tmp = line.strip().split("\t") for v in tmp: ...
[ "tangzhenyu_2012@163.com" ]
tangzhenyu_2012@163.com
51e143411179c72bfa7bbfbd9bd7d7bd04103a16
727f1bc2205c88577b419cf0036c029b8c6f7766
/out-bin/py/google/fhir/models/model_test.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/quantize/python/common.py
78f1c2bb4f48920369f7dab6876ead2faead3890
[ "Apache-2.0" ]
permissive
rasalt/fhir
55cf78feed3596a3101b86f9e9bbf6652c6ed4ad
d49883cc4d4986e11ca66058d5a327691e6e048a
refs/heads/master
2020-04-13T00:16:54.050913
2019-01-15T14:22:15
2019-01-15T14:22:15
160,260,223
0
0
Apache-2.0
2018-12-03T22:07:01
2018-12-03T22:07:01
null
UTF-8
Python
false
false
185
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/quantize/python/common.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
1a71e0581d50bc3a92a7aa6af1f7fc8eafe2ba11
c2a7d4b6a55c2c5c4aeae94819e5980bd76e0455
/conversations/templatetags/users_on.py
2f3b0bd59f7fcdcb49d890b8f6ce117ae000decb
[]
no_license
mnlx/portfolio_site
aecd4b501e3e61325175006eb3479f499f40ffa4
e0511bf983af6dbf477cfba395df55a0484c9b08
refs/heads/master
2021-01-02T22:48:28.534922
2017-09-20T16:55:13
2017-09-20T16:55:13
99,397,498
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
from django import template from django.shortcuts import render,HttpResponse,HttpResponseRedirect from rango.models import User register = template.Library() import datetime @register.inclusion_tag('conversations/templatetags/users_on.html') def users_on(): # conv = Conversations.objects.get(pk=1) friends = ...
[ "andreduarte2010@gmail.com" ]
andreduarte2010@gmail.com
8ddc4ab7c2bd85798985046714aa9e09e58a8dfc
0d8a5beac8540ce21c32b8a03645355c008839f5
/Quiz-4.py
a14f20b92c901d3fbae529eaaa823ffd3675f4aa
[]
no_license
sanketkothiya/Learn-Python
5a4728d72a93fa8734521cd1aa8672874ef54cab
8fe4a322c0cd451c26a31f20355c4d377e24c5e7
refs/heads/master
2022-12-24T11:07:21.324789
2020-10-01T15:30:05
2020-10-01T15:30:05
300,320,777
0
0
null
2020-10-01T15:04:59
2020-10-01T15:04:59
null
UTF-8
Python
false
false
211
py
i=0 while(True): n1 = int(input("Enter your Number Here:\n")) if(n1>100): print("you entered a number greater than 100\n") break else: print("try again!\n") continue
[ "jigardonga912@gmail.com" ]
jigardonga912@gmail.com
39c76491e27e10c613686ad4acbd06e41aaf3375
24a1f9fd62f9c3ab0c14016c71518809f1e257ba
/django_postges_lookups_any/models.py
913a805f81bb237fb1597fa6849187a1ed3b2626
[ "MIT" ]
permissive
alexshin/django-postges-lookups-any
2877ca9093d262e8f9569c71c7ee3274508c8371
4b58813d70b11ff7fe8084b04b2da3d1e8675708
refs/heads/main
2023-03-02T20:14:05.519980
2021-02-08T21:54:14
2021-02-08T21:54:14
337,203,035
2
0
null
null
null
null
UTF-8
Python
false
false
42
py
import django_postges_lookups_any.lookups
[ "alex.shinkevich@gmail.com" ]
alex.shinkevich@gmail.com
e59a019df509667298df3c5a87fda18bc0f8e7d0
0c72645ec5082afe0141b06c36d569d4b68570d3
/misc/python/plotinteract.py
3be0824e966bc85dfdb79fab5551d8f66e573e27
[]
no_license
wilywampa/vimconfig
3b681309c229449741a7d2d38f309e92c633d046
e436ce65348f053b7c580492f084431a5f23728b
refs/heads/master
2021-04-19T00:21:09.509827
2018-08-13T04:57:08
2018-08-13T04:57:08
27,682,082
6
2
null
null
null
null
UTF-8
Python
false
false
58,205
py
# -*- coding: utf-8 -*- from __future__ import division, print_function import ast import collections import copy import logging import matplotlib as mpl import numpy as np import re import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import pyqtSignal from collections import OrderedDict from cycler...
[ "jacob.niehus@gmail.com" ]
jacob.niehus@gmail.com
2c2029eeb6e43b5d5a66ba54fa090d6a4da2db9d
3f5e494339f09de4483237bd94932a1743970efc
/DocumentEbook/Python-Doc/PaythonProgramPractic/26ForLoopTurtle.py
041e43ec49bd96a3e321f913d72513a450d735c1
[]
no_license
saddamEDocument123/AllDocumentEbook
4e63c3f689670c577d773caba621135b64e19d43
67dad3e0f21443013dd032c0d0d4aa331524cba1
refs/heads/master
2020-03-10T11:43:36.275201
2018-06-21T12:55:16
2018-06-21T12:55:16
129,362,253
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
#using turtle and for loop we can make anything import turtle t = turtle.Pen() for i in range(0,8): t.forward(50) t.left(45) t.reset() #reste the t for i in range(1,38): t.forward(100) t.left(175) t.reset() for i in range(1,25): t.forward(100) t.left(95) t.right(90) t.forward(100) for i in...
[ "sksddmhosan@gmail.com" ]
sksddmhosan@gmail.com
e1164b25df69866a6cb1d50cfb9672d8d6217e7a
a9e81c87022fdde86d47a4ec1e74791da8aa0e30
/python-learning/libraries/pyqt5/base/layouts/complex-layout.py
b774d4700b1104671fb8542f99d2d70b4238e84f
[ "Apache-2.0" ]
permissive
ymli1997/deeplearning-notes
c5c6926431b7efc1c6823d85e3eb470f3c986494
f2317d80cd998305814f988e5000241797205b63
refs/heads/master
2020-07-29T11:15:43.689307
2018-05-05T10:58:18
2018-05-05T10:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,356
py
# -*- coding: utf-8 -*- ''' 复杂布局 ''' from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * import sys class Form(QMainWindow): def __init__(self,parent=None): super().__init__(parent) centerWidget = QWidget() defalutLayout = QVBoxLayout() vboxla...
[ "kkoolerter@gmail.com" ]
kkoolerter@gmail.com
1b9da0c86e0e095737f906fdf95ded574b5a0f3c
7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1
/src/301.py
55d8e16e1a35748acecac34a5c82e9d8d714e5c4
[]
no_license
ecurtin2/Project-Euler
71f79ee90a9abd0943421677d78a6c087419e500
79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3
refs/heads/master
2021-03-19T14:52:57.045443
2018-04-12T22:05:37
2018-04-12T22:05:37
100,059,180
0
1
null
null
null
null
UTF-8
Python
false
false
1,760
py
""" Nim is a game played with heaps of stones, where two players take it in turn to remove any number of stones from any heap until no stones remain. We'll consider the three-heap normal-play version of Nim, which works as follows: - At the start of the game there are three heaps of stones. - On his turn the player re...
[ "ecurtin2@illinois.edu" ]
ecurtin2@illinois.edu
482552e3943e7fa329ff070ecce56cb7ea092896
eae0bc786163a7746147240f8e1dec2f84f1713e
/zibal/gateway/mongoModel.py
5b10387459ec22fce133faf582d44b0e20f49a5d
[]
no_license
Fahmadi/zibal
06da4f28495532ff44ca3a9a8d44d31c6984afca
3d482e122750f01f77f201273fcc7cc3f8558a4d
refs/heads/master
2020-03-26T05:45:03.929188
2018-10-06T13:55:31
2018-10-06T13:55:31
144,572,681
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
from django.db.models import UUIDField from mongoengine import StringField, Document, ReferenceField, IntField, BooleanField class GatewayMerchant(Document): title = StringField(max_length=120, required=True) website = StringField(max_length=50) merchant_key = StringField(max_length=50) user_id = IntF...
[ "f.ahmadi.012@gmail.com" ]
f.ahmadi.012@gmail.com
6581839ee0756f4cfadb872de1355049dea9b1b3
2b4513065b8a47628880eb266a3b2816d5fa236d
/mysite/settings.py
0b16301e1e9fa2f31051399c83f0167574776a9d
[]
no_license
Mirnal1409/my-first-blog
0efe0c1cdbbb36b34a245a097c8d3338c7730d29
d28b40a51133dc3651e2bb6cfbf9405022f8efde
refs/heads/master
2021-01-25T11:27:21.302289
2018-03-01T07:09:56
2018-03-01T07:09:56
123,397,033
0
0
null
null
null
null
UTF-8
Python
false
false
3,197
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.11.10. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
[ "mirnal1409@gmail.com" ]
mirnal1409@gmail.com
7f77a003252c80a23d1ad91c4ca9b0e7c220e44a
dea919cb602c36111acafe27d9d264685d7cc793
/10.py
c1aee6b453192e044a22769c04853b3952148d15
[]
no_license
nikitos219745/Kolokviym
f1a781d0177f64986fddbe7f40447234a8beb41f
1a8d312a129416b8462cd5c05c27ce975c4009fb
refs/heads/master
2022-04-27T17:53:27.270463
2020-04-23T20:16:00
2020-04-23T20:16:00
258,319,571
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
#Чекалін Нікіта Валерійович 1 курс Завдання 10 #Дані про температуру повітря за декаду листопада зберігаються в масиві. #Визначити, скільки разів температура опускалася нижче -10 градусів. import numpy as np while True: a = np.zeros(10, dtype=int) count = 0#лічильник for i in range(len(a)): ...
[ "noreply@github.com" ]
nikitos219745.noreply@github.com
fd8de2697b4189f330512629ee7301296a8a337b
4dfa10de8e96fa8f11129d8865e8b0dda0878d20
/haptic_bridge/build/devel/lib/python2.7/dist-packages/haptic_bridge/srv/__init__.py
ab0307cc7c1767177bffd7e83f168614ee03f7e9
[]
no_license
tjh-flash/WokeRepository
8d137f252cde4d849ad7095b9eee4c9d16a3fb41
d1bc8498d27887e597f9539901b8fd8ecee5e165
refs/heads/master
2023-03-27T07:39:53.815869
2021-03-31T07:42:02
2021-03-31T07:42:02
353,265,934
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
from ._CloseDevice import * from ._OpenDevice import * from ._StartControl import * from ._SwitchAxis import *
[ "fshs@163.com" ]
fshs@163.com
d9768ff6fbed6edd8e2242aa40f624d70eba0c44
eae0bbb85494d04d87d69cb2cbde9c0b7b7c0ed1
/ishare/userprofile/admin.py
b88e8a56c13b87c4fb6f828a5815cbe84ef83692
[]
no_license
owenmead/ishare
1457a9b2b998888bad44294ab3be5c285ff28a68
17e857da490d0a556bdf0337d2fc7fed46a35a4f
refs/heads/master
2016-09-06T21:35:28.205692
2011-02-06T18:05:44
2011-02-06T18:05:44
1,286,076
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
from django.contrib import admin from ishare.userprofile.models import UserProfile admin.site.register(UserProfile)
[ "owenmead@gmail.com" ]
owenmead@gmail.com
a24baa4d6bc822d4b1281390833220aec3d84176
2aa47f47fb81798afdf41437844cbbea8e9de66c
/02pythonBase/day10/res/exercise/mysum.py
f01610139cf297dab58d87dd27cd73d8d71c2bb2
[]
no_license
nykh2010/python_note
83f2eb8979f2fb25b4845faa313dbd6b90b36f40
5e7877c9f7bf29969072f05b98277ef3ba090969
refs/heads/master
2020-04-27T23:10:16.578094
2019-03-23T02:43:14
2019-03-23T02:43:14
174,765,151
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
# 练习: # 写一个函数 mysum, 可以传入任意个实参的数字, # 此函数返回所有实参的和: # def mysum(*args): # ... # <<<--- 此处需要自己实现 # print(mysum(1, 2, 3, 4)) # 10 # print(mysum(1, 2, 3, 4, 5)) # 15 def mysum(*args): print("第11行的mysum被调用!") s = 0 # 用于累加和 for x in args: s += x return s def mysum(*args): pri...
[ "xulingfeng@boe.com.cn" ]
xulingfeng@boe.com.cn
6b3412794702ca46f4ce306d7d9ecffcb3d07cf5
3af673d901f44dbabe6b223593270ac1334ef4b3
/자료구조/day01/ClassTask.py
b02a40a4c624de3d893c21cda8b106d18813c4a1
[]
no_license
ghldbssla/Python
612f0a033f92952d68a805219c44b9a1e2df1a92
4aeae0f95625512648cd16971fd8e0c19bb219b4
refs/heads/master
2023-03-10T16:59:48.989666
2021-02-21T09:10:19
2021-02-21T09:10:19
328,637,426
1
0
null
null
null
null
UTF-8
Python
false
false
743
py
#ClassTask.py class User: userid='' userpw='' username='' usernum=1 def __init__(self, userid, userpw,username): #User.usernum:클래스변수 self.usernum=User.usernum User.usernum+=1 self.userid=userid self.userpw=userpw self.username=username #return한 문자...
[ "ghldbssla1997@gmil.com" ]
ghldbssla1997@gmil.com
d935440f0a1a0145827789b26ea165b74904196d
79fb9dc443b9457bd5fc79940dbc042596b32a9e
/ex31.py
4cc36fc7092dd45123a3fb876e014cc735fc5d94
[]
no_license
davray/lpthw-exercises
c73e9d9d8211e2694a057dd69773fab9cfceb447
3fdc32672039ef7a65d36a3196aa4d2c48249e3c
refs/heads/master
2021-01-12T13:07:02.323703
2016-11-09T07:12:30
2016-11-09T07:12:30
70,118,579
1
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
print ''' You enter a dark room with two doors. Do you go through door #1 or door #2?''' door = raw_input("> ") if door == "1": print "There's a giant bear here eating cheese cake. What do you do?" print "1. Take the cake." print "2. Scream at the bear." bear = raw_input("> ") if bear == "1": ...
[ "davduaray@gmail.com" ]
davduaray@gmail.com
3d4faadfd14bafd5da0fe8ad3de8abae6921eadf
4202f125131f96e67c9efce0759266838aace064
/Week 6 - Plots/wget-visualizer/run-001-20190410/wget-visual.py
8494de4e80b80cca35811fc9d67ef36678da2111
[]
no_license
emregunaydinn/METU-BA4318-Fall2019
de163ac1e853a19136f3c9ab23fd06581c75b150
f2434d83eb5e9ad7684f7e83fc39bc7d324f68ab
refs/heads/master
2022-03-28T06:54:56.766262
2020-01-19T15:24:11
2020-01-19T15:24:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,149
py
import warnings import pandas as pd import numpy as np from numpy import convolve import matplotlib.pyplot as plt from matplotlib import figure def convert_number_to_KMG(x): if x < 1000: x = round(x,-1) return str(x) elif x < 1000000: x = round(x,-2) / 1000 return str(x)+"K" ...
[ "blog1234@GITHUB" ]
blog1234@GITHUB
40dfe239746f14da2cd97adf27df4e81ed29da65
4f7140c62cc649373379941224072c9e6b707ef7
/examples/prompts/clock-input.py
fd1f8760ed2e77af6f65fbae97fa63ce949125fe
[ "BSD-3-Clause" ]
permissive
qianhaohu/python-prompt-toolkit
03d282a0a6a258a08ef822bc342a6b7fb65667f7
237cf46ff50c8a689a72e3dfe664dfe69bffd245
refs/heads/master
2020-05-16T05:19:38.934218
2019-04-16T19:10:07
2019-04-16T19:40:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
#!/usr/bin/env python """ Example of a 'dynamic' prompt. On that shows the current time in the prompt. """ from __future__ import unicode_literals import datetime from prompt_toolkit.shortcuts import prompt def get_prompt(): " Tokens to be shown before the prompt. " now = datetime.datetime.now() return ...
[ "jonathan@slenders.be" ]
jonathan@slenders.be
5d9c0e1d64a54205baad6cd4387d049d7075add4
96622790b66e45926b79bc524ec75a0f4d53a7eb
/src/misc-preprocessing-scripts/maeToPdb.py
607322e4c183184fce0eb9365a2c80401d9cb81f
[]
no_license
akma327/GPCR-WaterDynamics
a8c2e13e18f953b6af66a3e669052cb3eacd346b
685f4dea0605d65c003bf952afd964df6e605b06
refs/heads/master
2021-01-22T07:42:42.539496
2017-05-27T07:23:44
2017-05-27T07:23:44
92,574,339
0
0
null
null
null
null
UTF-8
Python
false
false
2,514
py
# Author: Anthony Kai Kwang Ma # Email: akma327@stanford.edu # maeToPdb.py # MAE To PDB File Converter # Usage: # python maeToPdb.py <input path to mae> <output path for pdb> <optional pdb file name> # <input path to mae> Provide the absolute path to the mae file name # <output path for pdb> Provide the directory pat...
[ "akma327@stanford.edu" ]
akma327@stanford.edu
76afa7bf1b600d48448d076af1549d5dee42b27e
17017d64ba355c423ec146f8dcf2abe745803aac
/rest_api/global_utils.py
58307a392dd4193c4457f4acd427f783e59cab78
[ "Apache-2.0" ]
permissive
saikrishna9494/obsei
1fc9869ef9b0dca2567918cc469e266fba937656
47d4716961d5b1429a964dbc9fc8fa241afac2d5
refs/heads/master
2023-02-17T12:37:44.757908
2021-01-11T22:58:01
2021-01-11T22:58:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
import logging from typing import Dict from fastapi import APIRouter, FastAPI, HTTPException from flask import Request from starlette.middleware.cors import CORSMiddleware from starlette.responses import JSONResponse from obsei.sink.base_sink import BaseSink from obsei.sink.dailyget_sink import DailyGetSink from obse...
[ "pagaria.lalit@gmail.com" ]
pagaria.lalit@gmail.com
0a69a74b8880af5c134087789b062ef0e4fa1361
2c36c1bbad8fa78ba23449d50961acbcc3860677
/manage.py
aa6b62d482ebce0ff6cb50a2269e7722fbb85a05
[]
no_license
pg999/umeed
eabb6fc706039d1da48ce4e4d38a91877f171c7a
2bffaf9ef252d7c3712a3582f9e86c4a1c8d3d61
refs/heads/master
2020-12-31T00:30:05.922844
2017-04-01T23:44:06
2017-04-01T23:44:06
86,511,918
0
0
null
null
null
null
UTF-8
Python
false
false
803
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "umeed.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "pramudgupta@gmail.com" ]
pramudgupta@gmail.com
d6d93cb282a9b64ae57a7522d83152c22b1aae24
6814b9b28204fa58f77598d01c760ddeb4b66353
/baselines/jft/experiments/jft300m_vit_base16_heteroscedastic_finetune_cifar.py
8384bfa093ad4ce0435cbcdfa7302096e6fa5720
[ "Apache-2.0" ]
permissive
qiao-maoying/uncertainty-baselines
a499951ea1450323e00fe03891ba8f781fe1cdc7
54dce3711b559ae3955a8a7d05c88eb982dea470
refs/heads/main
2023-07-17T23:17:10.867509
2021-08-18T20:32:11
2021-08-18T20:32:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,620
py
# coding=utf-8 # Copyright 2021 The Uncertainty Baselines Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
5cffb5a2fb9d408a8f4fe88b0e46d790428e9c92
1bde114a847c629701e3acd004be5788594e0ef1
/Examples/Decorator/alldecorators/CoffeeShop.py
9e4861b473c3803d1d2a0b2ad0b382e4cce35f7a
[]
no_license
BruceEckel/ThinkingInPython
0b234cad088ee144bb8511e1e7db9fd5bba78877
76a1310deaa51e02e9f83ab74520b8269aac6fff
refs/heads/master
2022-02-21T23:01:40.544505
2022-02-08T22:26:52
2022-02-08T22:26:52
97,673,620
106
33
null
2022-02-08T22:26:53
2017-07-19T04:43:50
Python
UTF-8
Python
false
false
1,722
py
# Decorator/alldecorators/CoffeeShop.py # Coffee example using decorators class DrinkComponent: def getDescription(self): return self.__class__.__name__ def getTotalCost(self): return self.__class__.cost class Mug(DrinkComponent): cost = 0.0 class Decorator(DrinkComponent): def __init...
[ "mindviewinc@gmail.com" ]
mindviewinc@gmail.com
e83fa49521cb17a21319c4c22cda47db9118190a
ba1cc1f90570913b7ee128478cf38ab84e84ab4a
/manage.py
9a6fa64800ceaa9d67992d74c534d8adddc70889
[]
no_license
splendidbug/predict_flight_fare
a5406d3d244ffbfbd130ae56e9c370ead1141411
3ccdf79721efcdb64c644e193a0bb56a902ffccf
refs/heads/main
2023-05-23T08:10:55.221448
2021-06-11T12:59:50
2021-06-11T12:59:50
328,111,693
0
1
null
null
null
null
UTF-8
Python
false
false
678
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'flight_fare_prediction.settings') try: from django.core.management import execute_from_command_line ...
[ "shreyasanother@gmail.com" ]
shreyasanother@gmail.com
81be308241c8f04597fd75058567bc25aa622153
89c81953eb880ccf5e931af3395b1ed0b6c7db1d
/gcln_model/z3_checks/divbin_z3.py
9d8a4705fedb8c62b6ac992945309c55ae8ae7b5
[]
no_license
jyao15/G-CLN
696ae44f12e2633ea53288a0eaac7111c20b8242
65bdb32c4bb9f0902c72cc7d048ab3d6b59c0739
refs/heads/master
2022-12-29T20:44:04.600400
2022-12-29T04:17:32
2022-12-29T04:17:32
265,091,891
10
10
null
null
null
null
UTF-8
Python
false
false
2,942
py
from z3 import * import z3_checks.core # import core def get_checks(z3_vars, z3_var2s, loop_idx=2): A, B, q, r, b = (z3_vars[v] for v in 'A B q r b'.split()) A2, B2, q2, r2, b2 = (z3_var2s[v] for v in 'A2 B2 q2 r2 b2'.split()) if loop_idx == 1: lc = r >= b pre = And(A > 0, B > 0, q == 0,...
[ "yyljkbgthg2@163.com" ]
yyljkbgthg2@163.com
975ea230959c3e1c7c686a01d3ad97ce395717b7
f96ca27fb007ce8c912fc51d32278bc83db53c1f
/featureflags/evaluations/segment.py
945623500cde0ef435e8d8d91f7b36f2ce119040
[ "Apache-2.0" ]
permissive
meghamathur03/ff-python-server-sdk
fd36f369a2c038432fe68db3d8b5b195ecc90be4
33b599aea44c0fe0854836f271642b23c96b7bb2
refs/heads/main
2023-08-13T11:49:52.787018
2021-08-19T20:33:41
2021-08-19T20:33:41
412,287,494
0
0
NOASSERTION
2021-10-01T01:38:43
2021-10-01T01:38:43
null
UTF-8
Python
false
false
4,943
py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from featureflags.models import UNSET, Unset from .auth_target import Target from .clause import Clause, Clauses from .tag import Tag T = TypeVar("T", bound="Segment") @attr.s(auto_attribs=True) class Segment(object): identifier: str nam...
[ "enver.bisevac@harness.io" ]
enver.bisevac@harness.io
194a5ca0e17d733474329c9789569b457d6c0722
96b14e3b708cda4234be2ad79459be9f49db4fec
/lian/urls.py
145ebb5fee8c7264781a669230d2f958a3cda341
[]
no_license
snull/liana
3d4d3d50be568a5b776dcd047cf50c972141dd2b
48c8e871cb4d6a3b694d189e15ff215bac7cf115
refs/heads/master
2021-01-20T17:02:44.176252
2017-02-22T14:54:05
2017-02-22T14:54:05
82,820,891
1
0
null
2017-02-22T15:33:19
2017-02-22T15:33:19
null
UTF-8
Python
false
false
807
py
"""lian URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "AmiraliNull@gmail.com" ]
AmiraliNull@gmail.com
fd411011c7f271cb58904da13007ef0f776ce5ac
13b67fb6d5591c50ad9c2bf5bdd7aef16a00ac83
/lbc/bits.py
d2bdca61fd86a8e84fd602546e0b5404108ad51c
[]
no_license
A-biao96/python-MP
0e3d23a8e83e140a77a2a47e33034ae486ac4fa4
c7596bc8603392480bc101bea619c758123acd68
refs/heads/master
2023-03-21T03:15:41.847013
2017-10-19T06:48:34
2017-10-19T06:48:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
import ctypes # str2bits def write(bs_in, fname): dll = ctypes.cdll.LoadLibrary # bitstream = dll('lbc/bitstream.so') bitstream = dll('./bitstream.so') bs_in = bs_in.encode('utf-8') fname = fname[:-4]+'.lbc' fname = fname.encode('utf-8') bitstream.write(bs_in, fname) # parse hex stream def ...
[ "supertab@126.com" ]
supertab@126.com
a7c8fa0bda79edadd701b585eff8e09a773467c6
e7c3d2b1fd7702b950e31beed752dd5db2d127bd
/code/super_pandigital_numbers/sol_571.py
50c76cee64069e830d981145a37c35c2cc3edff5
[ "Apache-2.0" ]
permissive
Ved005/project-euler-solutions
bbadfc681f5ba4b5de7809c60eb313897d27acfd
56bf6a282730ed4b9b875fa081cf4509d9939d98
refs/heads/master
2021-09-25T08:58:32.797677
2018-10-20T05:40:58
2018-10-20T05:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
# -*- coding: utf-8 -*- ''' File name: code\super_pandigital_numbers\sol_571.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #571 :: Super Pandigital Numbers # # For more information see: # https://projecteuler.net/problem=571 # Problem ...
[ "vaidic@vaidicjoshi.in" ]
vaidic@vaidicjoshi.in
193caad783e4de81c0b362210d6ee8a1d18405e9
373a3c8ff0dccf4efd8d7c8b44b36f598b1e19a4
/python_fund/checkerboard.py
38e68a190551edcf69cb09ec18293d54ac8cb345
[]
no_license
chelxx/Python
4562033107c8426cae9e20fdc31bf9e206447098
ec6cc3391b74e2b6970340f4496fbebe4fa1ebcd
refs/heads/master
2021-05-04T22:49:07.621386
2018-04-10T02:02:14
2018-04-10T02:02:14
120,058,104
0
2
null
null
null
null
UTF-8
Python
false
false
148
py
# Checkerboard Assignment for i in range (0, 8): if i % 2 == 0: print ("* * * * ") if i % 2 != 0: print (" * * * *") # END
[ "chex239@gmail.com" ]
chex239@gmail.com
8902a1d28f71f5a29b9844e1ab8f73700ccc0de0
df2aeccfd7f5225ceca31708485af917578cb7b4
/task/migrations/0004_task_image.py
7272dd3e311cc539512e730f516d859ef8ac2a3d
[]
no_license
Romissevd/task_book
59f35b333b042a192ee1ad90371fca70c3f7c0d6
f3ef29bf7491e62202cdf8251d7b6841892e140e
refs/heads/master
2020-12-05T23:28:50.696159
2020-01-07T21:04:28
2020-01-07T21:04:28
232,276,859
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Generated by Django 2.2.8 on 2020-01-07 19:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('task', '0003_auto_20200107_1903'), ] operations = [ migrations.AddField( model_name='task', name='image', ...
[ "Romissevd@gmail.com" ]
Romissevd@gmail.com
3b8d3df2466737bfb45f2151369b8a7fa8e44cd9
a5fac621f4d7150194d1ef717d588c3109a3ccb0
/train.py
761fab3cf274215a353dbbec6e841768b7a6233a
[ "MIT" ]
permissive
ShafkatIslam/pytorch-chatbot-master
446b780b4a154920d8adfeac1982840aa99fc0b0
56e1b4e358395b6dee0431ca316c86ffbe4724b2
refs/heads/master
2023-01-30T06:15:53.676514
2020-12-13T11:21:15
2020-12-13T11:21:15
313,303,907
2
1
null
null
null
null
UTF-8
Python
false
false
3,969
py
import numpy as np import random import json import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader from nltk_utils import bag_of_words, tokenize, stem from model import NeuralNet with open('intents.json', 'r') as f: intents = json.load(f) all_words = [] tags = [] xy = [] # loop throu...
[ "mohammadshafkatislam@gmail.com" ]
mohammadshafkatislam@gmail.com
efe4f1d33f79c254a8e5398dd52130a3341dc355
24fe7b918b137da0096a0f2e5cb086b46f38e1d4
/tp4/Ej11.py
9b9f8af7bfd2b81c2151187dbd6b61c0b78ca41c
[]
no_license
lrlichardi/Python
4d5f53d4f3d5a5afb868656bc104601b096f7ef0
fd77bae450a6df5fcae4af1c48cd46d4451b1d53
refs/heads/main
2023-08-22T20:50:57.915456
2021-10-14T23:54:57
2021-10-14T23:54:57
383,619,642
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
# Escribir un programa que pida al usuario una palabra y luego muestre por pantalla una a # una las letras de la palabra introducida empezando por la última. palabra = input('Ingrese una palabra!: ') for i in reversed(palabra): print(i) for i in range(len(palabra)-1 , -1 , -1): print(palabra[i])
[ "lrlichardi@hotmail.com" ]
lrlichardi@hotmail.com
086f15693af91521b68d827e7613c2ac26e02baf
7f57c12349eb4046c40c48acb35b0f0a51a344f6
/2015/PopulatingNextRightPointersInEachNode_v1.py
3577626399488b0ca50d165ddf85bbb001892a21
[]
no_license
everbird/leetcode-py
0a1135952a93b93c02dcb9766a45e481337f1131
b093920748012cddb77258b1900c6c177579bff8
refs/heads/master
2022-12-13T07:53:31.895212
2022-12-10T00:48:39
2022-12-10T00:48:39
11,116,752
2
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
#!/usr/bin/env python # encoding: utf-8 # Definition for binary tree with next pointer. class TreeLinkNode: def __init__(self, x): self.val = x self.left = None self.right = None self.next = None def __repr__(self): return '<{}>'.format(self.val) class Solution: ...
[ "stephen.zhuang@gmail.com" ]
stephen.zhuang@gmail.com
8145eef152b0e0546104415648fdf30f8856f9c9
cc6a2c63078b6e0a84df1dfd149614959b186380
/CodingDojang/Unit 11/11.9.py
adf7993f9f3613d26477bcaa85c781f3a8cb2b6d
[]
no_license
midi0/python
03d01dceb01f73acd76f1d18cdfd01038bbb2ea8
45750665b93bfec997fd1e791e2e397f51339d37
refs/heads/master
2021-01-13T23:16:22.771383
2020-04-08T17:35:43
2020-04-08T17:35:43
242,525,168
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
a = input() b = input() a = a[1::2] b = b[::2] print(a+b)
[ "noreply@github.com" ]
midi0.noreply@github.com
6e4a096a79eecbd1765bace94da05b888bc3f648
cbce4bc7efedee1908067500f6c5f222179881c1
/matcher.py
f89c48599be2fd876e99195b984c249785dbe6df
[]
no_license
emulation-as-a-service/co-oc
6982212b84dc3fb6bc28498d75e2eee8a2f5ba94
e5b5a77abc789f5e235d6c7dcb3eb35c88a7ece4
refs/heads/main
2023-07-23T10:18:37.392044
2020-11-11T00:09:00
2020-11-11T00:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,565
py
import copy class Matcher: def __init__(self, environmentProcessor): self.environmentProcessor = environmentProcessor def calculate_object_environment_overlap_weight(self, environmentId, data_object_matrix): """ Calculates the weight of the overlap between the data object and the gi...
[ "julian.giessl@gmx.de" ]
julian.giessl@gmx.de
caff08d7c2133d4694efc128cb57b109c56bebf5
f012a549ae884b6305cae45c9e0de543cad5b439
/ControlFlow.py
0e27341eff46a05d610f214f19163834b62ffbf5
[]
no_license
Jtallen2002/Control-Flow
c28722abf9329a10b5b5916ac791ba9c7615323e
59b5a930208690550c0275fbb5e47c250272f3eb
refs/heads/master
2020-10-01T20:05:18.010891
2019-12-19T13:30:51
2019-12-19T13:30:51
227,615,018
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
""" Programmer: Jake Allen Date: 12-16-19 Program: Guess My Number """ myNumber = 7 print("\nGuess a number between 1 & 10\n") # Ask users to guess guess = int(input("Enter a guess: ")) # Keep asking users to guess my number until it is equal to myNumber while guess != myNumber: guess = int(input("\nWrong, ...
[ "jtallen6109@gmail.com" ]
jtallen6109@gmail.com
3de6ef686c512a9ef83b12288393e644638d149b
dd522a4b8e1175e1ccb7a2b1e358486c80780f85
/my_site/urls.py
d571e39ed89b44b701bfa99658ef92924aa1932f
[]
no_license
bismarkstoney/tencedis-com
9672d7d464c7a0f390ed2274032e581f546fd0f0
00900d4c89b387aad19af58d1aca71dd8fef6605
refs/heads/main
2023-03-21T06:50:40.819041
2021-03-01T05:15:31
2021-03-01T05:15:31
341,997,727
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
"""my_site URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "bismarkstoney@yahoo.com" ]
bismarkstoney@yahoo.com
37a55e826ebb167071a7c6afe9b42c8b3264506b
b24e45267a8d01b7d3584d062ac9441b01fd7b35
/Usuario/.history/views_20191023114840.py
870eeb90df98b7537147ae14418728dfb2b3fb07
[]
no_license
slalbertojesus/merixo-rest
1707b198f31293ced38930a31ab524c0f9a6696c
5c12790fd5bc7ec457baad07260ca26a8641785d
refs/heads/master
2022-12-10T18:56:36.346159
2020-05-02T00:42:39
2020-05-02T00:42:39
212,175,889
0
0
null
2022-12-08T07:00:07
2019-10-01T18:56:45
Python
UTF-8
Python
false
false
2,211
py
from django.shortcuts import render from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view from rest_framework.permissions import AllowAny from .models import Usuario from .serializers import UsuarioSerializer SUCCESS = 'exito' ERROR =...
[ "slalbertojesus@gmail.com" ]
slalbertojesus@gmail.com
2b6396646956ef47745a11f2e243e9b2af000ff5
095b8390d1332a3f5923db51445e6e3d7a75ffe9
/config/asgi.py
2f8aef61be2bcfbf821c9c49cbd0d781039299e7
[]
no_license
Lee-Su-gyeong/Online-travel
cefae6ee2a39ad618f8286a72db8ddf705d131cd
24585999b992b184a17fdd9b89e174f74218ba16
refs/heads/master
2023-04-29T22:23:42.930542
2021-05-13T17:15:49
2021-05-13T17:15:49
367,111,799
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for Onlinetravel project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "dune2011@naver.com" ]
dune2011@naver.com
a80c2f84ddce394f8f18a26f7aba838943052681
139929d142e901a2b7c594c76bbd4deb2ab206ec
/Training.py
8cc462987d2b4f9dfdce8643094ef8cb7a20a114
[ "Apache-2.0" ]
permissive
HamidShoaraee/Autonomous-Driving
53e5f016729eec81ef7647f7ee0f97c34d477ad9
93519fb3d78120db15fdadfd1f38ce9e2a52cea8
refs/heads/main
2023-08-17T14:26:44.757529
2021-10-11T16:33:33
2021-10-11T16:33:33
407,266,883
2
0
null
null
null
null
UTF-8
Python
false
false
5,242
py
""" In this file we start simulation and try to train the agent to take the best actions. This file connect modules of the both simulation.py and DQNAgent.py """ import numpy as np from numpy.core import numeric from simulation import Vehicles, Road, Simulation import simulaiton_params as s from DQNAgent import Memo...
[ "shoaraee@unbc.ca" ]
shoaraee@unbc.ca
556e2612f70e3c88aa89821db124fb46ae1b0e0a
232fb54bc7692f9c007b6d589d2bf57e84380d54
/CNN/TestCode.py
4d5760f563d21410866dc5050bddc6b2d3ffe90b
[]
no_license
x543586417/Mathorcup2020
871157a24bf87baab4f6f34f54f46e5e22786ddf
fa122b1c893414f2a7591af491b5b09fbdd365f2
refs/heads/master
2023-02-17T16:59:21.946205
2021-01-20T08:29:52
2021-01-20T08:29:52
329,033,348
1
2
null
null
null
null
UTF-8
Python
false
false
12,467
py
import numpy as np from pandas import DataFrame from torch import nn import torch import matplotlib.pyplot as plt from torch.autograd import Variable import pandas as pd import statsmodels.api as sm # from date_utils import get_gran, format_timestamp """ 对上面的package进行整理 numpy是一个张量包 matplotlib.pyplot主要是用来生成图片和列表的 panda...
[ "xiaoweliang@qq.com" ]
xiaoweliang@qq.com
d2333889ef1fc70d5e7c0a79e6f3112aa752306a
6fc84acaaf012f6cbbcb918390a4ed5508f84414
/opalWebsrv/test.py
5f5f02fee393637efbf17662b5ee5d476b2f476d
[]
no_license
missinglpf/MAS_finite_consenus
43f03bdb2417c6da98cb5ff5a6b8b888ec1944b3
a83e8709dd12e5965ef4a5b413d056a434dd1245
refs/heads/master
2020-08-01T03:42:44.747402
2018-06-25T06:01:10
2018-06-25T06:01:10
210,850,495
3
0
null
2019-09-25T13:20:32
2019-09-25T13:20:32
null
UTF-8
Python
false
false
2,298
py
#! /usr/bin/python import struct import socket import urllib import subprocess import sys import time import os import traceback def portIsOpened(hostip, port): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) result = sock.connect_ex((hostip,port)) if result == 0: return True else: return False def fa...
[ "tunglam87@gmail.com" ]
tunglam87@gmail.com
43dcac20edd103067c8fa3fce010b8162d077b2a
552ba370742e346dbb1cf7c7bf4b99648a17979b
/tbx/services/blocks.py
cbd8282834c2d89bfbac3f75334fcd64d1e9a9a5
[ "MIT" ]
permissive
arush15june/wagtail-torchbox
73e5cdae81b524bd1ee9c563cdc8a7b5315a809e
c4d06e096c72bd8007975dc016133024f9d27fab
refs/heads/master
2022-12-25T05:39:32.309635
2020-08-13T14:50:42
2020-08-13T14:50:42
299,591,277
0
0
MIT
2020-09-29T11:08:49
2020-09-29T11:08:48
null
UTF-8
Python
false
false
3,242
py
from wagtail.core.blocks import (CharBlock, ListBlock, PageChooserBlock, RichTextBlock, StreamBlock, StructBlock, TextBlock, URLBlock) from wagtail.images.blocks import ImageChooserBlock from tbx.core.blocks import PullQuoteBlock class CaseStudyBlock(...
[ "karl@torchbox.com" ]
karl@torchbox.com