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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3e463f50ffd428f5abf8410876d76e726848bb1 | 4b0a987db4b67902e53eb433137d29a7b0e21320 | /other/image-captioning/train.py | 5c99bfa0407a3459205955a564e09590aeb3792a | [] | no_license | neuralml/ccDNI | 8f61b37dd4f56bc1ee489ae19a978de8f3256722 | 0404e966f8bc919e028638c2b6579a7a3cec2270 | refs/heads/main | 2023-04-10T01:48:53.847325 | 2023-01-05T09:58:50 | 2023-01-05T09:58:50 | 420,140,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,628 | py | import nltk
import argparse
import torch
import torch.nn as nn
import numpy as np
import os, sys
import pickle
from data_loader import get_loader, get_lengthsmat
from build_vocab import Vocabulary
from torch.nn.utils.rnn import pack_padded_sequence
from torchvision import transforms
import dni
from dni_model import _... | [
"joepemberton1995@gmail.com"
] | joepemberton1995@gmail.com |
8afa6dac6217b14b054fc45173c15ab3db916056 | 038ab87e58aaa8fe73cdfabb36fd6189955b324b | /scraping/pdf2txt.py | a8ef077000e58a961d9b628c1557ffe4783afbb4 | [] | no_license | Oleg-295/InfluencingCogSci | b83ed09b2db58b152249f213bc32b45c6c5fd075 | f955090f4863584dc3ec5750af5fbc1bebcc1edf | refs/heads/master | 2022-09-22T01:39:58.795033 | 2020-05-30T21:43:20 | 2020-05-30T21:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,600 | py | import sys
# if there are no conflicting packages in the default Python Libs =>
sys.path.append("/Users/loey/Desktop/Research/InfluencingCogSci/pdfminer.six/pdfminer")
"""A command line tool for extracting text and images from PDF and output it to plain text, html, xml or tags."""
import argparse
import logging
import ... | [
"loey@ucsd.edu"
] | loey@ucsd.edu |
3f0c7959d534f8efc49eb6743460fabfe8798985 | 01e1fd9f34b0a0fc93ec0ef17c3c2ab0669cd71e | /1.14_courses/practise/image_recognize.py | 4cf22528cf84f368f4f340756b1adf8acd29efee | [] | no_license | robin521111/machinelearning | bc36c0da4008f68c88644d92bdff9ca9ac0e6781 | fa708476821cd2c5490202341fc13e4266108cc5 | refs/heads/master | 2021-04-24T21:12:43.391381 | 2018-05-07T05:13:36 | 2018-05-07T05:13:36 | 116,975,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
mnist = input_data.read_data_sets(
"/Users/robin/Documents/MachineLearning/machinelearning/1.14 courses/data/", one_hot=True)
X=tf.placeholder(tf.float32,[None,784])
Y=tf.placeholder(tf.float32,[None,10])
W=tf.... | [
"Robin,Lu@sonymobile.com"
] | Robin,Lu@sonymobile.com |
b0b3f0dbcdb5f3398cb9d799cf00fb967cd0f87f | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/migrate/domain_2_beian.py | 85b21c4c99d1c2c7c4d92cd71141911c01a78701 | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
import os, sys
from pymongo import MongoClient
import pymongo
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../util'))
import loghelper, config
import db
import name_helper
#logger
loghelper.init_logger("domain_2_beia... | [
"hush_guo@163.com"
] | hush_guo@163.com |
d09ff2a82eda591f728557ebfe2af3a86d7017aa | e86cced876a6429335372437aca0e6be414ab0f5 | /Triangle3.py | e6a02a92a41bf3f2cecaddf3dab80127dafd3f71 | [] | no_license | CHilke1/Tasks-11-3-2015 | 25b3ea409709d51c0850773f2b98ad397f2cdbdd | 1a08df6b6fbc0d5cd8a45657379e73a7ff329c3d | refs/heads/master | 2016-09-01T03:45:50.739000 | 2015-11-05T16:42:21 | 2015-11-05T16:42:21 | 45,575,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | #In this problem, you MUST use a 2 dimensional list, and you MUST use nested loops
#Write three functions, Triangle, BackwardsTriangle, and UpsideDown Triangle
#given the number 4, Triangle will output
#.
#..
#...
#....
#
#BackwardsTriange will output
# .
# ..
# ...
#....
#
#UpsideDownTriangle will output
#....
#...... | [
"chad.hilke@gmail.com"
] | chad.hilke@gmail.com |
297ae241311c252894e9f40bc3fc802bc2faf2df | 57f0685e4d2dee92e57b9a7b948ad40d4f88cff6 | /modules/Marcas/views.py | c6ec5fad261603f8c55897cf677090391a3ef7af | [] | no_license | richard020797/CARSapi | 37ff75234f2bb1b8b73f77e19dfeb63f4ec36f62 | cd116f2828710670a9e94058517fed6af4f12f74 | refs/heads/master | 2021-01-12T13:52:31.100950 | 2016-09-27T00:58:12 | 2016-09-27T00:58:12 | 69,070,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import Marca
from .serializers import MarcaSerializer
from django.http import Http404
class ListMarcas(APIView):
def get(self,request):
marcas = Ma... | [
"richard020797@gmail.com"
] | richard020797@gmail.com |
f9f3b4e9ec54097a3c5c5636f4d1e0303adf3559 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/recoveryservices/v20210210/replication_policy.py | 35cc2c0021962454d10fce98f1f070dafc5a861b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,838 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
fcbd139fd749ca3f7d328cd214d16435756b00da | a8138a273aec92a3310229a190ad506aac181eb2 | /ex_5.py | ec8562f95637c1c38eb3c6f6b4caa1fcb9e622e8 | [] | no_license | namdang-exe/lambda_excercise | 4b98adecf1aa9c090ad4a1968afe5760cd952502 | 257c93b6b51c77fb3f9ac0a434e03566a6b5adf4 | refs/heads/master | 2023-04-29T00:06:54.493339 | 2021-05-24T04:15:08 | 2021-05-24T04:15:08 | 366,930,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # Write a Python program to filter a list of integers using Lambda.
my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
even_num_list = list(filter(lambda x: x % 2 == 0, my_list))
print(f"even numbers: {even_num_list}")
odd_num_list = list(filter(lambda x: x % 2 != 0, my_list))
print(f"odd numbers: {odd_num_list}")
| [
"dangquangnam75@gmail.com"
] | dangquangnam75@gmail.com |
adf37d1531b177bc6ce8837c664e498dea6383fb | 34edea6c7e6c0841f42211a6c2919ee6cf56567a | /catkin_ws/build/catkin_generated/generate_cached_setup.py | 4bfc9d11cfeee982cee2ca36c0a110882e914a5b | [] | no_license | rondell/Cognitive-Robotics-Project | ab2fc50d53a49f017daea30ac4069c2bcd51a622 | c0591bbd9d20f39cb856e664288e2398fc10d990 | refs/heads/master | 2021-01-01T18:06:58.073436 | 2015-07-22T12:25:21 | 2015-07-22T12:25:21 | 34,892,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, os.path.jo... | [
"diego.rondelli@mail.polimi.it"
] | diego.rondelli@mail.polimi.it |
1b8b4f1d0c7788dcf223ed788dcc7fb47dd882ec | a515f1f667fb733a50f8a05b5e3912ede151d25a | /students/migrations/0001_initial.py | b5ac2a702a009868e9a10dcdfaed42ab04a7cce7 | [] | no_license | MarmaghanM/myproject | cccca5dbc8c6c90965565607f3c8f0bca4771a99 | 48900f77db89b31f6e591ace45e972431c7e1d9d | refs/heads/master | 2022-04-16T02:25:47.939296 | 2020-04-18T07:57:10 | 2020-04-18T07:57:10 | 256,699,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # Generated by Django 3.0.5 on 2020-04-17 21:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"armaghanmajeed29@gmail.com"
] | armaghanmajeed29@gmail.com |
06fc825653fce2fdc255ac881a3b1887e49ae5ed | 65e37a94c37a191f9794e445e4cc5e5581af2fc7 | /Assignment4_5.py | 7de7f7b3f1db038f429e99ba7a9a3b9344557003 | [] | no_license | PallaviGandalwad/Python_Assignment_4 | b0afe4f5bed9092c28315ee2562f8035e8753182 | 72c373f0c88d364f60c83127301bb08552456ddb | refs/heads/master | 2020-05-01T14:24:35.315612 | 2019-03-25T05:23:12 | 2019-03-25T05:23:12 | 177,519,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | #Write a program which contains filter(), map() and reduce() in it.
#Python application which contains one list of numbers.
#List contains the numbers which are accepted from user.
#Filter should filter out all prime numbers.
#Map function will multiply each number by 2.
#Reduce will return Maximum number fro... | [
"noreply@github.com"
] | PallaviGandalwad.noreply@github.com |
274d97a41930b485884225a410ffc761c904177b | 254ef44b90485767a3aea8cbe77dc6bf77dddaeb | /605种花问题.py | d57acf9ac517c69f15cf6872c969cf4d6f949943 | [] | no_license | XinZhaoFu/leetcode_moyu | fae00d52a52c090901021717df87b78d78192bdb | e80489923c60ed716d54c1bdeaaf52133d4e1209 | refs/heads/main | 2023-06-19T02:50:05.256149 | 2021-07-09T00:50:41 | 2021-07-09T00:50:41 | 331,243,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
假设有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花不能种植在相邻的地块上,它们会争夺水源,两者都会死去。
给你一个整数数组 flowerbed 表示花坛,由若干 0 和 1 组成,其中 0 表示没种植花,1 表示种植了花。另有一个数 n ,能否在不打破种植规则的情况下种入 n 朵花?能则返回 true ,不能则返回 false。
示例 1:
输入:flowerbed = [1,0,0,0,1], n = 1
输出:true
"""
class Solution(object):
def canPlaceFlowers(self, flowerbed, n):
"""
... | [
"948244817@qq.com"
] | 948244817@qq.com |
9cd285e4922f39ce885756d2e78eb508da6c2bbb | b6394974b8e2ac229a0c917736bd7e083e7527d2 | /hdp_api/routes/exports.py | 70ff0f4c93c0ae791add20f89ef799e85801b306 | [] | no_license | clementhc/HyperAPI | 4cac20d237aa13f627fff79f6f3343dcbe193ca1 | a8be02358475332c9d62dedd0ff1ab898892dd6e | refs/heads/master | 2020-03-25T02:31:32.865582 | 2018-08-02T09:30:37 | 2018-08-02T09:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from hypercube_api.hdp_api.routes import Resource, Route
class Exports(Resource):
name = "Exports"
class _export(Route):
name = "export"
httpMethod = Route.GET
path = "/exports/{file_name}"
_path_keys = {
'file_name': Route.VALIDATOR_ANY,
}
| [
"jerome.maslowski@hypercube-research.com"
] | jerome.maslowski@hypercube-research.com |
f5beb8c7f2fe29d2b3875d2c777fa120da672849 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0095_Unique_Binary_Search_Trees_II/__init__.py | 9d3b0685feaf5e1088c97cabc9af771655025d5e | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 1,040 | py | ID = '95'
TITLE = 'Unique Binary Search Trees II'
DIFFICULTY = 'Medium'
URL = 'https://oj.leetcode.com/problems/unique-binary-search-trees-ii/'
BOOK = False
PROBLEM = r"""Given _n_, generate all structurally unique **BST's** (binary search trees)
that store values 1..._n_.
For example,
Given _n_ = 3, your program sh... | [
"romain_li@163.com"
] | romain_li@163.com |
4f3531b17413d2c11b2694369cdd454a4b240a16 | cf91b4cc42a146c23487937018d926366638bd7a | /AttentionTransformer/LanguageModelDataset.py | 97035363e75b3e73a2ba04f1da2017e7bb822aec | [] | no_license | vatsalsaglani/AttentionTransformerPackage | 64e8781b20a411e055cb1511a91e3240bd4d3478 | 2f90443f37cdc0eb270027bb6f6630e299722c42 | refs/heads/main | 2023-04-09T00:15:52.006495 | 2021-03-30T09:06:46 | 2021-03-30T09:06:46 | 352,936,980 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import torch
import torch.nn as nn
from torch.utils.data import Dataset
class LanguageModelDataset(Dataset):
def __init__(self, data_array, seq_length):
self.data_array = data_array
self.seq_length = seq_length
self.total_words = len(self.data_array)
self.req_size = self.total_w... | [
"vatsals@quinnox.com"
] | vatsals@quinnox.com |
861bf2746f2974be7be2169d1ec2de2b4bb930d1 | 356360f13c0eca2b22ced8cf6958e737913ebcd4 | /text_mining/association_rule/read_txt.py | 4e9a50d09dcd0919fe681ce1e27081243409ac75 | [] | no_license | Baron1014/SCU-Big-Data | e4f4a8fe361bec3e693899a937bc62f1180cee31 | 5cbbc36b23649a297f6e97ce157ace0c24983e33 | refs/heads/master | 2023-03-20T07:54:01.350018 | 2020-06-15T09:08:07 | 2020-06-15T09:08:07 | 270,942,790 | 0 | 0 | null | 2021-03-06T07:51:33 | 2020-06-09T08:15:08 | Jupyter Notebook | UTF-8 | Python | false | false | 256 | py | f = open("test.txt", encoding='utf-8')
files = f.read()
file_list2 = files.encode('utf-8').decode('utf-8-sig').split("split")
f_list = list()
#target_list = [int(x) for x in lines.split('],[')]
for i in file_list2:
f_list.append(i)
print(file_list2)
| [
"baron1996.tw@gmail.com"
] | baron1996.tw@gmail.com |
e91ad43fd4ba6156400ee4119096b60060b647fc | 4a80cb0dd79022ee43ad3b0f02a2511ab70638d6 | /Software/Python/SimpleLRPExperiments/models/TrianglesAndSquares/log_train_nn.py_for_nn_Linear_1024_2_Rect_Linear_2_2_SoftMax_(batchsize_10_number_iterations_10000)_second_attempt_.py | e92f0f56c9e0609fce1ce6b51384194830258111 | [] | no_license | NLeSC/XAI | 385d4c94f7166936beeb3131b82eb06282f5367c | dd78834b539f67a86687614e1ff9676ed5f31a77 | refs/heads/master | 2023-01-10T03:00:36.133939 | 2022-06-02T07:31:34 | 2022-06-02T07:31:34 | 122,990,250 | 26 | 3 | null | 2023-01-05T12:58:44 | 2018-02-26T15:36:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,314 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 30 18:18:41 2018
Author: Joost Berkhout (CWI, email: j.berkhout@cwi.nl)
Description: In this script neural networks can be trained.
"""
import tools.data_loader
import tools.model_io
import modules
import shutil
import settings
# user init
batchsize = 10
numbIters = 10... | [
"j.berkhout@cwi.nl"
] | j.berkhout@cwi.nl |
13fb5991f4fa454911405e717db9bab8918d589a | a93af4524c52df3e44d043d503accb903f2ec5d1 | /mysite/crackit/views.py | 37b11d0e068a454343e07f4fd92c124477b09115 | [] | no_license | avengerskentstate/Crackitfinal | e3cad40ded380245ca21688d34090f2d40efbe07 | 3ddabc7333fb27e798025a4dfd05e9acf1d75236 | refs/heads/master | 2020-03-16T04:58:54.890969 | 2018-05-08T02:02:00 | 2018-05-08T02:02:00 | 132,523,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | from django.shortcuts import render
from django.http import HttpResponse
import random
# Create your views here.
def index(request):
return render(request, 'index.html')
def help(request):
return render(request, 'help.html')
def end(request):
return render(request, 'end.html')
def start(request):
p = []
i... | [
"35577119+hemanthpaluru@users.noreply.github.com"
] | 35577119+hemanthpaluru@users.noreply.github.com |
ff5c7cda4c5b4ad385fae36a1ea551f6efcd3d48 | 053424bd5b9f52ba672202966ecf05e2e45ad590 | /Chapter 10 - find seed/transpositionTest_find_seed-test random produced seed_step 2.py | 582bef085a40ac8d903203156aee7bcb0eecbf28 | [] | no_license | gaoyaoxin/HSCP | 1c2f34ec4cacab24e5a3ee214e2e8ae5b6c340e5 | e4c37b7a1ce3c125668773b550c7a1d80a460942 | refs/heads/master | 2021-04-09T11:50:42.231001 | 2018-03-31T13:29:11 | 2018-03-31T13:29:11 | 125,535,828 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # Transposition Cipher Test
# http://inventwithpython.com/hacking (BSD Licensed)
#numpy.arange(1, 5, .5)
import numpy, time, random, sys, transpositionEncrypt, transpositionDecrypt
#startTime = time.time()
#print(startTime)
def main():
#for whatIsTheSeed in range(100):
# 1 day == 3600 * 24 = 86,400 seconds
# 1... | [
"gaoyaoxin@bfsu.edu.cn"
] | gaoyaoxin@bfsu.edu.cn |
db6e1c72e9c883b51feed8c57739d14bc3814219 | e20c3fa34f789994a4d65b3bf7c560eb7eb3aec1 | /raspberry_server.py | 79467b2e9848fc6cd6b77486ae961177cfefc719 | [] | no_license | roshra/raspberry_client_server_code | 456a9024a3912a60ba25b8e70e2bcf6e713591ce | e9018653be14c532ff1bcf15478630fe8dff553e | refs/heads/master | 2023-04-16T00:43:17.683181 | 2021-04-22T17:21:31 | 2021-04-22T17:21:31 | 360,633,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import socket
'''Create a socket object'''
socket_obj = socket.socket()
'''accept connection from any host'''
host = ""
'''Print host'''
print("Hostname is {}".format(host))
'''port to bind'''
port = 12345
'''Bind a port'''
socket_obj.bind((host,port))
'''wait for client connection'''
socket_obj.listen(5)
'''Est... | [
"roshmohanr@gmail.com"
] | roshmohanr@gmail.com |
f9e56da2e6260cf5095bb824487edc63654639a4 | 8dbbcb4775dc930d56ba46963c106eb0e801ad41 | /venv/Scripts/pip3-script.py | 4d3d09e7d661ce7a6d8bfbf6f5adb8bf7a9d4cb1 | [] | no_license | harmansehmbi/Project29 | 345d88d122eae636c28910db80beb8f67b8eaf7a | 3150c0590eb5c8abe44301747b9e2643cc8d8d16 | refs/heads/master | 2022-01-21T00:05:28.300590 | 2019-07-21T08:29:50 | 2019-07-21T08:29:50 | 198,032,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\HARMANPREET\PycharmProjects\Project29\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"51370954+harmansehmbi@users.noreply.github.com"
] | 51370954+harmansehmbi@users.noreply.github.com |
2947a5ac98b7f57b37246e99a038978fb1f662ba | f624a2111e49dc1b9bafb02511f1b3092636e4f8 | /my first game.py | d3acd2b5e83a3453904c56672aec2d3fe1381c49 | [] | no_license | FlameZ115/my-first-game-made-in-python- | d65f2bbc9e8a7e898216419c2786a068cf4e96cb | 77ff873fb5cdd1477f63e6f7693f9918aac82e73 | refs/heads/master | 2021-01-23T01:41:12.616411 | 2017-05-31T11:04:23 | 2017-05-31T11:04:23 | 92,884,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | import pygame
import time
import random
pygame.init()
display_width = 800
display_height = 600
black = (0,0,0)
white = (255,255,255)
red = (255,0,0)
block_color = (red)
car_width = 73
gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('A bit Racey')
clock = pygame.tim... | [
"noreply@github.com"
] | FlameZ115.noreply@github.com |
5c4812a03764cfc5ff1a3c11562ed8dcf38acd0b | d0f3903c31d04ad906dae0cbde21876cd87f2ef7 | /contrib/bitrpc/bitrpc.py | b7c43b11d105eb7ecb45a55609cb9de8e15d9dde | [
"MIT"
] | permissive | ranubis1966/cafecoin | 3aed336b29bffaca4c88f1f0aacc13d09e57e616 | df1611891ccd8f2323144f373055050b0ea31bb9 | refs/heads/master | 2020-03-27T04:15:35.811369 | 2018-08-24T01:58:56 | 2018-08-24T01:58:56 | 145,925,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,838 | py | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:2332")
else:
access = Ser... | [
"ranubis1966@gmail.com"
] | ranubis1966@gmail.com |
383d7a4ec52c2853b77bfe31e940ffda2d8eb356 | 82b50cebff69927d4394378522ae96524950fff4 | /pointnet_ops/python/ops/interpolate_ops_test.py | f6a478248088b8f9c2a5e4775093df4d606239aa | [
"MIT"
] | permissive | jackd/pointnet_ops | 1b8a44bccbb2d9d3d5763b725f8972ad096a8a14 | 26d9b85ce4b503fac7547b965e233442aa243430 | refs/heads/master | 2020-04-29T01:35:10.644187 | 2019-11-07T00:08:01 | 2019-11-07T00:08:01 | 175,735,495 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | # Copyright 2018 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
891131987930169977089ef3876a01ab735f4942 | a3e34daf7cf75f98d54b7d183f68e50277a6479b | /sources/XML projects/IBN EZRA/parse.py | 71b51b7d8f32ca018977270a23b497b3c19866af | [] | no_license | TomaszWaszczyk/Sefaria-Data | 2d0f1544c071340bffd87585e6883ef77df41495 | db2e136a14c6d08d98925da3afdf6373fec92de1 | refs/heads/master | 2023-06-07T07:56:24.332834 | 2021-06-20T15:53:56 | 2021-06-20T15:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | # -*- coding: utf-8 -*-
__author__ = 'stevenkaplan'
from sources.functions import *
from sefaria.model import *
from data_utilities.XML_to_JaggedArray import XML_to_JaggedArray
from sefaria.helper.schema import *
import bleach
SERVER = "https://ste.cauldron.sefaria.org"
def reorder_modify(text):
return bleach.cl... | [
"steve@sefaria.org"
] | steve@sefaria.org |
1bc65433c162da913b092d7c9fdf5baab419a75a | 8853462a79608b7e5b7af94dbfa6c0a63c1f6b6a | /2. Crawlers/CASNET_policy/Generated_data/temp.py | f77dd43e3977f455dd80c26bb735b579e07b95d0 | [] | no_license | Ashish017/CASNET | eaae2552f8d56413f756c7d3839cd6f548a6e1ef | 73ec542c4c3fa1f97686796f0c385c71cad3e8d5 | refs/heads/master | 2023-02-06T06:53:27.362356 | 2020-12-27T04:43:34 | 2020-12-27T04:43:34 | 270,657,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import pandas as pd
import matplotlib.pyplot as plt
t1 = pd.read_csv("test_1.csv")
t2 = pd.read_csv("test_2.csv")
t3 = pd.read_csv("test_3.csv")
files = [t1,t2,t3]
di = {}
for i, file in enumerate(files):
for col in file.columns:
if col[0] != "U":
name = col + "_seed_{}".format(i+1)
di[name] = file[col]
f... | [
"ashishmalik7017@gmail.com"
] | ashishmalik7017@gmail.com |
b6a087e0d229fb6391b74723e24a9b35736bafa5 | ff038251b5100d0e5883022b8ac19f987926dddf | /easy problems/sum-of-all-odd-length-subarrays.py | 1d07f0c388e736e4dde772a7693eb941a7102303 | [] | no_license | fluidbubbles/leetcodeProblems | 05ede7a8ac4dca255f434e004d24fd885dd3dfbe | 672de968630d3712d7d4cf71b5d2204d95e008af | refs/heads/master | 2023-01-25T04:56:57.394619 | 2020-12-12T10:30:18 | 2020-12-12T10:30:18 | 312,602,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from typing import List
class Solution:
def sumOddLengthSubarrays(self, arr: List[int]) -> int:
length = 1
i, j, x = 0, 0, True
sum_all = 0
while length <= len(arr):
if length == 1 or x:
x = False
sum_arr = sum(arr[j:length+j])
... | [
"39565100+fluidbubbles@users.noreply.github.com"
] | 39565100+fluidbubbles@users.noreply.github.com |
d7f8127681b7485ec6e79e90de2be2b3cb6c79eb | 663305e4fc1cc44ce032cfbff001d7beb21d6e92 | /QuantEconpy_quantitative economic modeling/quantecon/game_theory/vertex_enumeration.py | 7e573f1d8fd8824cd15f0be8cdccbbb18bf44eab | [
"BSD-3-Clause"
] | permissive | yangkedc1984/Source_Codes_Collected | 19e1c5887c6d5654bc76bae364a304964433a59c | 668467e74301a42eebf3085add344a5ac1323120 | refs/heads/master | 2023-01-09T15:14:43.355589 | 2020-11-08T10:12:31 | 2020-11-08T10:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,587 | py | """
Compute all mixed Nash equilibria of a 2-player normal form game by
vertex enumeration.
References
----------
B. von Stengel, "Equilibrium Computation for Two-Player Games in
Strategic and Extensive Form," Chapter 3, N. Nisan, T. Roughgarden, E.
Tardos, and V. Vazirani eds., Algorithmic Game Theory, 2007.
"""
imp... | [
"pmiori@gmail.com"
] | pmiori@gmail.com |
cb78becd038f627025a771d40b4ea8936281dd15 | 1cce6cbc142c0fa9ad1aa88773328e437347ab25 | /non-production/Version 0.9/ControlExperiments/AverageRewardSarsa/AlphaExperiments/plotAvgReward.py | c22e2fee2020439d2ec2ed8cbbd48a7a58475b2e | [] | no_license | clickok/iRobotInterface | 6fd2f419cc0a684a8ed7858647060ddf704f50f5 | a7902a736712fe2aecffe5ebad521da77ce4a06d | refs/heads/master | 2021-01-02T23:06:32.349554 | 2014-03-17T08:06:37 | 2014-03-17T08:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,493 | py | import os
import sys
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
import re
import math
testPath = "/AlphaExperiments\ (Saskatoon)"
# Walk through subdirectories, getting all files with
# the "logSarsa" form
def getAllLogs(parentDir):
lst = []
logRegex = re.compile("logSarsa.... | [
"babennet+github@ualberta.ca"
] | babennet+github@ualberta.ca |
8431f44d69ce1bef0eb7d32fd3e2c03d23438023 | 199dbeb3fdf280f40016d054494cb131f040eb88 | /test/test_update_contact.py | d6efc56797a3cff7999e6f3de34be38b4170a8bd | [
"Apache-2.0"
] | permissive | nataliamaslova/python_training | 97495723ede1c52357b12f4398f5c537558f7bc3 | 9e831457291cfb1b25a4f8436ce13ad3314ab5b5 | refs/heads/master | 2021-05-07T04:08:09.811463 | 2018-01-09T12:37:38 | 2018-01-09T12:37:38 | 111,091,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | from model.contact import Contact
from random import randrange
def test_update_contact(app, db, check_ui):
if app.contact.count() == 0:
app.contact.create(Contact(firstname="Peter", lastname="Pyatochkin", company="System Group", address="Ukraine, Kiev, Vatslava Gavela blvd., 4",
... | [
"maslova.nd@gmail.com"
] | maslova.nd@gmail.com |
7fd7d2d3435692240151409412192953b899d325 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /cherrypy/test/test_wsgi_vhost.py | a7cbc1e110cbfd03a130821cba176cd2cc2bc53c | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #Embedded file name: cherrypy/test\test_wsgi_vhost.py
import cherrypy
from cherrypy.test import helper
class WSGI_VirtualHost_Test(helper.CPWebCase):
def setup_server():
class ClassOfRoot(object):
def __init__(self, name):
self.name = name
def index(self):
... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
c14247fa25230f66221e1a9db2b33ad70978aa7e | f44926184e106c60eb80bd12939725091c897e55 | /experiments/bench3v.py | 23e9ba9018bdf7d3e5466535bc47e90daa401aad | [] | no_license | yixin-09/NPTaylor | e11ad84d6930332438c32d8e3f9d1c3f0bdbd5cb | 0a8fe8b5a4fa596fda4f0db2c15191ccae667478 | refs/heads/master | 2022-11-14T03:25:21.891007 | 2020-07-13T10:42:37 | 2020-07-13T10:42:37 | 274,424,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | from pygsl.testing import sf
from mpmath import *
import numpy as np
mp.dps = 40
#f1
gf1 = lambda x,y,z: sf.ellint_P(x,y,z,0)
rf1 = lambda x,y,z: ellippi(-z,x,y*y)
#f2
gf2 = lambda x,y,z: sf.ellint_RD(x,y,z,0)
rf2 = lambda x,y,z: elliprd(x,y,z)
#f3
gf3 = lambda x,y,z: sf.ellint_RF(x,y,z,0)
rf3 = lambda x,y,z: ellipr... | [
"yixinzyy@gmail.com"
] | yixinzyy@gmail.com |
a6acab5a9589eab68c63ca66240a678eb6f28351 | 70dfdab9a59ddb71fa7b7e0e670d0d30318d9968 | /newmovies/apps.py | 51f43083b78c9fa5bcb1565d777ce3c918eaf975 | [] | no_license | Ruchibora59/IMDB-CLONE | a89aaaa4a9d5be6379961d4328ce686a6fdc8c23 | a122060a82d4060421aec2915ac2f47a9563497c | refs/heads/main | 2023-02-21T17:40:36.076772 | 2021-01-23T15:35:04 | 2021-01-23T15:35:04 | 329,946,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class NewmoviesConfig(AppConfig):
name = 'newmovies'
| [
"ruchibora1997@gmail.com"
] | ruchibora1997@gmail.com |
ee99a53462712b0f5b31016cc9d7f65c447d8f3a | d92048aaa548abe489d956153662ee1a61f32157 | /naboj_zona/struct_wiki/urls.py | 9263e9b562ea8592550af1858c3c475fb0ae760e | [] | no_license | syslo/naboj-zona | 686ac9998cc8534399a6dca16793c3a56b35b4bf | d96a73b45d5cd4849f3aafec89a0806f1dc16cf5 | refs/heads/master | 2020-05-21T17:52:18.885342 | 2016-10-09T14:02:41 | 2016-10-09T14:02:41 | 65,387,965 | 0 | 0 | null | 2016-10-07T16:47:37 | 2016-08-10T14:11:09 | Python | UTF-8 | Python | false | false | 1,554 | py | from django.conf.urls import url
from wiki.urls import WikiURLPatterns
from . import views
class StructWikiURLPatterns(WikiURLPatterns):
from . import hack_resolve # noqa
from . import hack_attachments # noqa
article_settings_view_class = views.ArticleSettings
def get_urls(self):
urlpatte... | [
"marian.sysel.hornak@gmail.com"
] | marian.sysel.hornak@gmail.com |
0ec6a987fdc177a87ec8039cf63a4fa85fadcd9c | ac654b1cd9ace9bad53da9960ae8cf752cb5ba81 | /alphabet.py | 35e2130ef02362d644ada255343a9d15bd29b22b | [] | no_license | snekasriramar/nega | 3bfafce5f499033fd6b0e9480a567987f30abfa5 | 093ef7dd97a0b2dadc3b2880306c16e6bd234343 | refs/heads/master | 2020-04-11T11:35:50.621125 | 2019-02-25T08:44:23 | 2019-02-25T08:44:23 | 161,753,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # Python Program - Check Alphabet or Not
print("Enter '0' for exit.");
ch = input("Enter any character: ");
if ch == '0':
exit();
else:
if((ch>='a' and ch<='z') or (ch>='A' and ch<='Z')):
print(ch, "is an alphabet.");
else:
print(ch, "is not an alphabet.");
| [
"noreply@github.com"
] | snekasriramar.noreply@github.com |
1078a3e96f4e417c331ae0afb5d909853238fdac | e0da943224a9438305ac3fedbb34565f3c39473b | /Assignment3/u6028474.py | 6ce2407037fb1cc83850110cf1f072a5dc972294 | [] | no_license | syedalihussain/COMP6331-Computer-Networks | c135ae5cd9b9e5e8e30c01c1ce3af6da0524f6f6 | 6bc73c735c431fd288f2bdf2b807aa5ecf2ef4e5 | refs/heads/master | 2020-03-21T21:53:06.053686 | 2018-06-29T02:26:17 | 2018-06-29T02:26:17 | 139,090,682 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,852 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 19 15:56:47 2018
@author: Syed Ali Hussain
"""
import paho.mqtt.client as mqtt
import logging
import time
import numpy as np
import matplotlib.pyplot as plt
def on_log(client, userdata, level, buf):
'''The callback function that is called when client receives an on_... | [
"u6028474@anu.edu.au"
] | u6028474@anu.edu.au |
d0be47c428fd0196db9d564f13c56828ca3f69c9 | 0aa4961e3fece32ea7885485773ee1b7d249fada | /parse areas of old data.py | 1c49f44f188320cfceec8b62e17b5ef39c22b4bf | [] | no_license | dshopin/RE-Listings-Scraper | 82cab848aa12b7401dd598075ef827c325a52c76 | 1cbf90cd970f5767ceb8cb71d88f049b6c981492 | refs/heads/master | 2020-04-11T15:49:00.664670 | 2019-10-01T18:17:48 | 2019-10-01T18:17:48 | 161,846,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 17 16:11:30 2018
@author: e6on6gv
"""
import pandas as pd
from sqlalchemy import create_engine
from scraper import area_to_sqft
from scraper import mysql_url
engine = create_engine(mysql_url)
df = pd.read_sql_table('listings', engine)
df = df.drop('index', axis=1)
df[... | [
"dmitry.shopin@gmail.com"
] | dmitry.shopin@gmail.com |
c82a823e456f3c72a13185baabca85056e1368b2 | 5b52dcf6f1ace79f48bfb39a2e795652c2b13da8 | /scripts/create-deny-all-sg.py | e15bdecda3a5567126872801b11d0def73402cb2 | [
"Apache-2.0"
] | permissive | daniel-prince/xsoar-hackathon | 31e93d783e8f66d1070c5cac379dadf9b82f646f | f0a22844ad138c7f5b635db9e8b23b2b1ccebece | refs/heads/master | 2022-12-24T06:34:27.026504 | 2020-09-23T20:36:03 | 2020-09-23T20:52:10 | 298,088,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import json
import boto3
def lambda_handler(event, context):
if isinstance(event, str):
event = json.loads(event)
client = assume_role(f"arn:aws:iam::{event['account_id']}:role/aws-controltower-AdministratorExecutionRole",
"demisto", 'ec2', event['region'])
response = cl... | [
"dprince87@gmail.com"
] | dprince87@gmail.com |
12d524b0c3be40cfe8c7280cdf150f9712f2cacc | 1b5802806cdf2c3b6f57a7b826c3e064aac51d98 | /tensorrt-basic-1.10-3rd-plugin/TensorRT-main/demo/HuggingFace/GPT2/frameworks.py | 2baca65d15581a13288d52200aa0c29f2ea38e53 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"ISC",
"BSD-2-Clause"
] | permissive | jinmin527/learning-cuda-trt | def70b3b1b23b421ab7844237ce39ca1f176b297 | 81438d602344c977ef3cab71bd04995c1834e51c | refs/heads/main | 2023-05-23T08:56:09.205628 | 2022-07-24T02:48:24 | 2022-07-24T02:48:24 | 517,213,903 | 36 | 18 | null | 2022-07-24T03:05:05 | 2022-07-24T03:05:05 | null | UTF-8 | Python | false | false | 9,165 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"dujw@deepblueai.com"
] | dujw@deepblueai.com |
7c65fce73de8f799ff325bdc0bc34efeaca7410a | 7fd5ebc75e7093a84edb0cbf3e2b1f3623bdc2fa | /customauth/views.py | 0b5e0ecbcf11ac96d1c874bb39c8d60cec69c3e7 | [
"BSD-2-Clause"
] | permissive | asifcoer/django-easy-custom-auth | c7eed0c129ae54fb1b5889ae41770fb91a91346c | c9fc894c0ba13d4fd1cde4993483d897933f0bc5 | refs/heads/master | 2020-08-13T20:25:51.862238 | 2019-10-14T12:06:11 | 2019-10-14T12:06:11 | 215,033,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | from django.shortcuts import render
from django.contrib.auth import views as auth_views
from django.contrib import messages
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.views.generic.edit import FormView,CreateView
from django.views.generic import View
f... | [
"mohd.asif@infoxen.com"
] | mohd.asif@infoxen.com |
c351e42f66de0a1f8b405648c4552f27960b36c7 | 50bf35910a05c555c730de31834c6ee9ea00d0f1 | /piffVisualizer/compactPIF no collagen.py | 278c61da2bca5d2e396aebdbf828a650dd72c517 | [] | no_license | RoySchieven/Modellen-Practicum-2021 | 55e0a9be9f3940070ac9fbaaf271967a5dafc61a | 1df1db7c3214c50387b18769be5c3c48f8bda5c0 | refs/heads/main | 2023-06-19T21:29:43.484389 | 2021-07-16T14:44:09 | 2021-07-16T14:44:09 | 385,603,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import numpy as np
import os
files = sorted([f for f in os.listdir('.//') if f.endswith(".piff")])
print(files)
#Gotta check that size and types
size = np.array([1,1,1])
lines = open(files[0],"r").readlines()
for line in lines:
split_line = line.split('\t')
size[0] = np.max([size[0], int(split_line[2])+1])
... | [
"noreply@github.com"
] | RoySchieven.noreply@github.com |
75f4ebcb13a4e90f149b593c0fd91725a3698c42 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL18_mMed-1800_mDark-6_kappa-0p95_aligned-down_cff.py | 9529dca572a022c1535c9eb4f19ce9b052141394 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,961 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
1831554a99074006029e176d9ada9f8ea8a4eff1 | 55d5aa004059b4d974f78de369654020fcc18262 | /venv/bin/pip3 | 161f3f7eee215de23f1b368bf14ecff6a32c0b2b | [] | no_license | yh9468/VGG-Net | d59fb3e80de5b97ac60b6d024a77c983c77489d5 | 95ade30493b3a55a74bec38308529fb867ee5a17 | refs/heads/master | 2020-03-31T17:23:55.157116 | 2018-10-16T08:59:55 | 2018-10-16T08:59:55 | 152,421,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | #!/home/younho/PycharmProjects/VGG-Net/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__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)?$', '', sys.argv[0])
sy... | [
"younho9468@naver.com"
] | younho9468@naver.com | |
1e204576e3677ebd169fcaa21b9a7a940d3a5019 | 1ac82cf573df9acb86838d2015420dac4aa7d9b8 | /tornado_project/whoosh_search/config.py | bcb7872028c54b4de4967e6a13eabdadc8114d36 | [] | no_license | Mr-NB/whoosh_search | 8f3cced81b1560a85d7dc6746ea1266f9f23763c | a3e07338facfa5869033393c9fd058ad05d795c0 | refs/heads/master | 2020-03-27T08:19:27.549228 | 2018-08-27T06:13:36 | 2018-08-27T06:13:36 | 146,244,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | import os
db_path = os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))+'/cloudmusic.db'
indexdir_path = os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))+'/indexdir' | [
"15565532751@163.com"
] | 15565532751@163.com |
5519668779f50034e4331b23f653df34886d253a | f2ad477f075baf65e99ca846d73b239cbebec531 | /tests/sshelve_test.py | f75a916fa6675d1c53b90c3a1541b665839bf78f | [
"Apache-2.0"
] | permissive | aragagnin/sqlite3db-py3 | e61e87fa5daabe4998f242c1cbde39037c8b2567 | 4a1cf9992d1e636db6c1405a6a0e65ca1f91f422 | refs/heads/master | 2022-12-14T23:21:24.167805 | 2020-09-09T20:35:05 | 2020-09-09T20:35:05 | 293,635,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,967 | py | # -*- coding: utf-8 -*-
# Copyright 2011 Yelp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"jfennell@yelp.com"
] | jfennell@yelp.com |
ae6c9c5200ba9589189a014e1abe98901d2d5910 | fb80baa54e479a4056aeb027c1cb89adc1a568d2 | /hackbu2018/driver.py | 967abd1f31157cdd2038ab0d586f68f8d585a0e5 | [] | no_license | brandondonato/HackBU2018 | 276f1e98d72714797ef540c2c2514cca1b2d3dc1 | 2519170a6702592ba2972cd9ccb78fb4ece130f0 | refs/heads/master | 2021-05-01T06:41:23.459067 | 2018-02-15T05:43:53 | 2018-02-15T05:43:53 | 121,149,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 11 10:22:35 2018
@author: Daniel Lee
"""
from tkinter import *
from GUI import MyGUI
import predictor
from Graph import Graph
def main():
graph = Graph()
graph.saveGraph()
root = Tk()
probabilityIncrease, probabilityDecrease = predictor.pre... | [
"noreply@github.com"
] | brandondonato.noreply@github.com |
e709b2acef37c1f59764d6cb79de8b5b3176e6b7 | cb95e58567300344f0458d207327bad92419e2ba | /c4_v2.1.py | 04ac7a2fe2ac56870afb47d82ec57de9ead7a892 | [] | no_license | UnforeseenOcean/c4 | 0d1d5b7b131022939de632ab1cc477090abe98dd | d0d316fe702de2ae89c7c159a868b98f956de8ea | refs/heads/master | 2021-01-17T23:25:01.041609 | 2016-04-16T01:03:50 | 2016-04-16T01:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,839 | py | #! python2
# Made by cr4sh3r
# c4_rat - v2.1
import Tkinter, urllib2, ctypes, ftplib, wget, time, os
# These Variables are set by the host
# Feel free to change their values
art = """
___ _ _ _
/ | | | | | | |
___ / ... | [
"gingont@gmail.com"
] | gingont@gmail.com |
cdcd888bd2a4da7d912f0c13c47d6267ba1e5a97 | 183b134845cb6c7ad1acd257a22eda11c97e799d | /Project 1/Code/design_matrix.py | 9287e0988a578bcf328f9f5d86e65394138a7994 | [] | no_license | KariEriksen/Machine-Learning | 5b20b278701efc985630d1b94a93dda43b9b525e | cc92aefa5a6550435df741641d5e54e5600947c7 | refs/heads/master | 2020-03-29T16:44:04.809082 | 2018-11-02T18:07:03 | 2018-11-02T18:07:03 | 150,126,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | import numpy as np
class Design_Matrix:
def __init__(self, X, Y, d, N):
self.X = X
self.Y = Y
self.d = d
self.N = N
def fit_matrix(self):
x = self.X
y = self.Y
n = self.N
if self.d == 1:
X_fit = np.c_[np.ones((n*n,1)), x, y, x*y]
elif self.d == 2:
X_fit = np.c_[np.ones((n*n,1)), x, y,... | [
"eriksen_kari@hotmail.com"
] | eriksen_kari@hotmail.com |
bdb16e24121fd3f3951c57b0e6625dd829249700 | daf4fb47ff48538ce58e57c006301efc422d0c8e | /pdd/tools.py | 724de5b41468f949273d51e7a3289878aeeed2fe | [] | no_license | Lodek/pdd | 4883aad3e0b8439bae854a9dd74aa428dcffbbc9 | 5f48e289da6bbaecb64b23dc786bf18f8e0f3296 | refs/heads/master | 2020-04-30T12:25:27.917631 | 2019-04-30T03:14:09 | 2019-04-30T03:14:09 | 176,826,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | from pdd.dl import Bus
import unittest, re
class TruthTable:
"""
Simple abstraction for a truthtable. Truth table is modelled as a list of
dictionaries, each row in the table correspond to a dictionary.
Equality of the given list ignores order, checks whether each element is
in the other list. If b... | [
"23224552+Lodek@users.noreply.github.com"
] | 23224552+Lodek@users.noreply.github.com |
21c7f2c5d24a58948f17e7fad09a58e052764cd1 | bdc5ba304debcac0564a0f307c446a74a93fcdb5 | /surround/experiment/web/experiment_explorer.py | 59d1ed676eb59a6efb0e92a2e1fd75b364c4e45e | [
"BSD-3-Clause"
] | permissive | ScottyB/surround | 2c2764ff76918027f7dce1897257bcdd7804ce7a | f9a86f5b5677de7bd5763d26de4a6f18c36f2a4d | refs/heads/master | 2021-06-21T23:02:58.710216 | 2020-11-26T00:43:59 | 2020-11-26T00:45:32 | 176,862,237 | 0 | 0 | BSD-3-Clause | 2019-03-21T03:23:40 | 2019-03-21T03:23:33 | Python | UTF-8 | Python | false | false | 1,404 | py | import os
import math
import tornado.web
class ExperimentExplorer(tornado.web.RequestHandler):
def initialize(self, experiment_reader):
self.experiment_reader = experiment_reader
def get(self):
project_name = self.get_argument("project_name", default=None)
page = self.get_argument("pag... | [
"101668878@student.swin.edu.au"
] | 101668878@student.swin.edu.au |
5834ecdcd85f57c990102d62a19a43d629d254c7 | d51c6affa8949a340b33a7e263dc44eb5014f2f3 | /caps/Scripts/nltk-script.py | f59fcc00246e3e7b977ed1e393d031ed7b3d5dd2 | [
"BSD-2-Clause"
] | permissive | Ruzick/company_explore_data | 989c7f213fe892a3cc20d57c1fa24aa3fa58d645 | 54c069fa00c26e337c6a1b4b23f6ccccd3d3784a | refs/heads/main | 2023-03-07T21:04:34.461051 | 2021-02-27T12:57:47 | 2021-02-27T12:57:47 | 340,731,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!c:\users\kikik\capstone\caps\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'nltk==3.5','console_scripts','nltk'
__requires__ = 'nltk==3.5'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"Ruzick@users.noreply.github.com"
] | Ruzick@users.noreply.github.com |
f63c70755244d87ce04c8b4117a8954ae31c767d | b973e87631f9a6c274c534aac5175c73a670f349 | /pyquizz/quizz/admin.py | 6dd86906b515959856f15f2025b8d779151a23ec | [
"BSD-3-Clause"
] | permissive | vpoulailleau/pyquizz | f70e8df03f39e08c5ec56aa92e378c1d2a822c29 | 08320f402d4453a7d5366e5cd2f36962eebc01ca | refs/heads/master | 2023-02-04T16:36:15.804808 | 2023-01-27T16:58:24 | 2023-01-27T16:58:24 | 153,910,665 | 4 | 0 | BSD-3-Clause | 2021-04-30T08:34:42 | 2018-10-20T13:53:26 | Python | UTF-8 | Python | false | false | 3,141 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from django.utils.html import format_html, format_html_join
from .models import Answer, Group, Profile, Question, Quizz, QuizzSending, ReviewAnswer
def user_display(user: User... | [
"vpoulailleau@gmail.com"
] | vpoulailleau@gmail.com |
658eeb72fe2dc0b71718c72b0adb38917734fe09 | 62f64eb86facac614ebe1c015bcf72baa3b28af4 | /solver.py | d37e3be3b0f0c0051d43b7e9bb030d7ce201b021 | [] | no_license | LeeSooHyung/opencv_1 | 440cbafd957e1f4dab4d706f33d47abd72d4bd93 | c49cd089ce0a18e8742bd81d68eee34e0a96d97d | refs/heads/master | 2021-05-24T16:51:29.387788 | 2020-06-22T05:55:02 | 2020-06-22T05:55:02 | 253,663,643 | 0 | 1 | null | 2020-06-17T04:47:42 | 2020-04-07T02:10:44 | null | UTF-8 | Python | false | false | 3,282 | py |
def cross(A, B):
return [a+b for a in A for b in B]
rows = 'ABCDEFGHI'
cols = '123456789'
digits = cols
squares = cross(rows, cols)
unitlist = ([cross(rows, c) for c in cols] +
[cross(r, cols) for r in rows] +
[cross(rs, cs) for rs in ('ABC', 'DEF', 'GHI') for cs in ('123','456','789')]
... | [
"noreply@github.com"
] | LeeSooHyung.noreply@github.com |
fbe5b3bc53d4ca5e5279b5e32b1207f84aea771a | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714191430.py | 04f5745a8803874ada846022a476fba426fada70 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
b4f92799ab006a2aa6650644de3753b7e311452b | f3e102be47e0ca8b0efd748814c9b2ef613d80ad | /Ex_Files_Programming_Foundations_Fundamentals/Exercise Files/Chap05/05_01_begin.py | 12fc31a35345ce731c4dff0d21afd2e7b40c1fae | [] | no_license | John-d-great/Dell-Repo | a7f9ac3125c08eeaebfe39e327d72997a800b9b8 | feb66916fbfc6788ca0aa96b1435126a53896cf9 | refs/heads/master | 2023-06-24T18:13:35.934289 | 2020-09-05T12:49:27 | 2020-09-05T12:49:27 | 291,220,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | print("~~~ The Shimmy ~~~")
def shimmy():
print("Take one step to the right and stomp.")
print("Take one step to the left and stomp.")
print("Shake those hips!")
shimmy() | [
"Raphaeljunior@hotmail.fr"
] | Raphaeljunior@hotmail.fr |
4a93e4f5e71d1b98a804e59f7e02820ebb8cde41 | 94a96c9c0f8b3a215243876a98f35b8eeb7cbd8b | /vit_jax/models_mixer_ct_cat_tc.py | dc5dac5066afa8404a8dfbccf28cb2e4309a003e | [
"Apache-2.0"
] | permissive | Yutong-Zhou-cv/MLP-Mixer-ZHOU | aec8e20216405aef3ae47203667ccd46c8766db7 | fbd511954986bc35757b4e14d7f2fa345e39865f | refs/heads/main | 2023-04-30T02:15:22.604947 | 2021-05-15T07:05:38 | 2021-05-15T07:05:38 | 367,254,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | Yutong-Zhou-cv.noreply@github.com |
f70841f32526f182b53afaa4a5e000554cecce9c | e42dd7b257cb447c62b6c130cc66112d4bd0e712 | /Programming-101/incrementExercise.py | 28855bde46c2a3cdf17bbdb6829034eafdf52b29 | [] | no_license | wesleyhedrick/Digital-Crafts-Classes | db66ec5add2f87eed0ae513029212ee472a6694c | dcd2a96126caf930641e2143cc637604044d6b65 | refs/heads/master | 2023-01-06T06:29:26.264373 | 2020-11-03T13:32:38 | 2020-11-03T13:32:38 | 303,483,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | my_number = 0
increment_by = 1
for number in range(3):
my_number += increment_by
print(my_number)
for number in range(3):
print('Number is: ', number)
#Testing interpolation
a = 'One'
b = 'Two'
c = 'Three'
print('Hi %s %s %s' %(a,b,c))
| [
"wesley.hedrick@gmail.com"
] | wesley.hedrick@gmail.com |
d1de944f71e0ff37476071f7eb2400ef4bf5ca6e | d4e9fd6dd51d29ad374b460a2cfbd467502ede7d | /ros2doctor/test/test_qos_compatibility.py | cb21bedba5e8d26abe78afc768015c3139e5efed | [
"Apache-2.0"
] | permissive | ros2/ros2cli | 3f7b93ff44d18b2292a50d3b6ff119494142328b | 351ef3c7442f49013d84084dea23fe399517690f | refs/heads/rolling | 2023-08-07T03:53:23.635067 | 2023-08-03T19:50:28 | 2023-08-03T19:50:28 | 93,568,427 | 142 | 157 | Apache-2.0 | 2023-09-14T07:36:46 | 2017-06-06T22:13:14 | Python | UTF-8 | Python | false | false | 6,588 | py | # Copyright 2021 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | ros2.noreply@github.com |
1278478f1e40f5357bc58ac0949409e318c8679f | 8364e4d23191ee535c163debffafa8418d705843 | /aiokubernetes/models/v1beta2_replica_set.py | d891f61f5234e0fbcff0c24e5b8bd28d2e713e6d | [
"Apache-2.0"
] | permissive | olitheolix/aiokubernetes | 2bb6499030e2e6e9b7ca0db63c4441293d70a09b | 266718b210dff2a9b2212183261ea89adf89115e | refs/heads/master | 2020-03-21T23:02:30.484410 | 2018-10-20T19:33:01 | 2018-10-22T05:52:42 | 139,162,905 | 28 | 3 | Apache-2.0 | 2018-10-22T05:52:51 | 2018-06-29T15:02:59 | Python | UTF-8 | Python | false | false | 8,595 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
from aio... | [
"olitheolix@gmail.com"
] | olitheolix@gmail.com |
776d7391929cdfad611d90faf6123d9f4f811f93 | ca812435e8a054c94821dad2fa413f24111def58 | /store/migrations/0002_auto_20170704_1031.py | 03e8b704446fe04fe1318aad49e6990500a54acb | [] | no_license | thsshz/mysite | 830e704cc17d3d1dcb44460ae70818ed00d6e6dc | e1e7803cda0638732d12c0793e2fa4c08e8e1505 | refs/heads/master | 2020-12-03T00:23:57.751323 | 2017-07-07T09:01:36 | 2017-07-07T09:01:36 | 96,025,637 | 0 | 0 | null | 2017-07-02T13:38:05 | 2017-07-02T13:38:05 | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-04 02:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migr... | [
"thss15_huz@163.com"
] | thss15_huz@163.com |
e57a7a57959617c4915505c6f1aa99cc251af4ae | bf8f717939feb2b5e202efdc50ee26032fd3263f | /sound.py | 3c20730d1da7b8e89b2242e612c808d166204fe5 | [] | no_license | jbd0101/LELEC1101 | b09b7510f6cd31491750b06e18156b4f47dfc39b | 88ba78d06b6e0f34c6104cf3887e2a0ea61f58e3 | refs/heads/master | 2023-04-22T22:48:12.109143 | 2021-05-10T17:36:32 | 2021-05-10T17:36:32 | 336,230,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import matplotlib.pyplot as plt
import numpy as np
from random import randint as rd
F = 1.5e3
main = lambda x: np.sin(2*np.pi*F*x)
table = np.linspace(0,2,1000)
plt.plot(main(table))
plt.show()
| [
"maildejc@hotmail.be"
] | maildejc@hotmail.be |
ca4c61c2697d703228476c9771a0fe275f028016 | abc5ea78e46546159d6ebe5c49834b369109bd0c | /DataMunging/setup.py | 754d45ac07960ae355cf3683ad4ec1865d98eb44 | [] | no_license | fnandosilva/DataMungingWinService | 2fe098fcf5ca2dac50c604c74f0de05fe0b8b5af | 80684adefd04cf1d344efea62f5d1674f2ee3379 | refs/heads/master | 2023-06-19T21:06:00.939894 | 2020-10-21T20:08:11 | 2020-10-21T20:08:11 | 305,823,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import sys
import cx_Freeze
import os
import matplotlib
# Dependencies are automatically detected, but it might need fine tuning.
os.environ['TCL_LIBRARY'] = "C:\\LOCAL_TO_PYTHON\\PYTHON37-64\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\LOCAL_TO_PYTHON\\PYTHON37-64\\tcl\\tk8.6"
# GUI applications require a differe... | [
"fnando2-silva@yahoo.com.br"
] | fnando2-silva@yahoo.com.br |
a65e513b2a58d300144f7c80b24d882cad985edc | a0ca6e78f0500e6bfc874cdb4ad79869c0fc4e81 | /plot_admitted.py | 027c0de8432efea3e6c2e5c09fc897a98567b1f0 | [] | no_license | kshedden/micovid | e25fc834e4fe9f55fdd80a40d68c134a9912bc3c | 1f85d84645707d4bb5e6bc913e667d666ce10a85 | refs/heads/master | 2022-11-23T23:46:09.794802 | 2020-07-20T02:57:57 | 2020-07-20T02:57:57 | 275,910,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.dates as mdates
import json
import gzip
months = mdates.MonthLocator()
months_fmt = mdates.DateFormatter("%b")
with gzip.open("/nfs/kshedden/Daniel_Keyes/ratio_results.json.gz"... | [
"kshedden@umich.edu"
] | kshedden@umich.edu |
fefefd47ddb82c69c12cc0e6a715b9d2be1a43d6 | a36941c43ac98806f2910d0b14d0dd1bb37cc0d5 | /forms.py | 5d7bf88e82188249e6968fe97d294ceab735e07b | [] | no_license | robinw088/blog-with-users-start | 16320222133a273f157df90a81191917351d5da6 | 4f3f4f95dbf49bcc9ea796b81c37dfb7364f4506 | refs/heads/master | 2023-02-28T13:00:54.725755 | 2021-02-01T09:34:52 | 2021-02-01T09:34:52 | 334,892,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, PasswordField
from wtforms.validators import DataRequired, URL,length
from flask_ckeditor import CKEditorField
##WTForm
class CreatePostForm(FlaskForm):
title = StringField("Blog Post Title", validators=[DataRequired()])
subtitle = S... | [
"robinw088@gmail.com"
] | robinw088@gmail.com |
55d30383a63cac48bea64881587df8fccd82f7ca | 8cca75721733ed0e8a366ffb69f559158db93cbe | /python/tests/test_Quick_sort.py | dbb9881166a3c4d8e907fa552f578c54ab6d8d6e | [
"MIT"
] | permissive | Leenhazaimeh/data-structures-and-algorithms-2 | 4dbd7ca627b4d4f4ef893712ff7f7c220b3fc8d2 | b22b3613f376044cb760d7761da4d34af59e8d02 | refs/heads/main | 2023-06-10T06:45:49.295059 | 2021-06-28T20:09:20 | 2021-06-28T20:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from code_challenges.Quick_sort.Quick_sort import *
def test_Quick_Sort():
assert QuickSort([8,4,23,42,16,15],0,5) == [4, 8, 15, 16, 23, 42]
assert QuickSort([20,18,12,8,5,-2],0,5) == [-2, 5, 8, 12, 18, 20] #Reverse-Sorted
assert QuickSort([5,12,7,5,5,7],0,5) == [5, 5, 5, 7, 7, 12] #Few uniques
assert... | [
"nmalquran15@eng.just.edu.jo"
] | nmalquran15@eng.just.edu.jo |
3c17e681dcb517d40f95f7b4860dbaa8c62f4604 | 2bc521400d409e98f534369ab683e483b0337ae5 | /ghost_in_the_shellcode/15/knockers/knockers.py | 0bd2c650ecd2c63e63e91a4464694cbb2a46802d | [] | no_license | unjambonakap/ctf | cd71c8e774dab7dcdffbc6f87a1961adc43921bb | c5cacf7bcfe451ba019eb73eb36faadff512186a | refs/heads/master | 2021-06-30T18:06:23.058257 | 2019-06-05T20:03:57 | 2019-06-05T20:03:57 | 145,031,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # python2 please
import sys
import struct
import hashlib
import os
from binascii import hexlify, unhexlify
import SocketServer
import socket
try:
from fw import allow
except ImportError:
def allow(ip,port):
print 'allowing host ' + ip + ' on port ' + str(port)
PORT = 8008
g_h = hashlib.sha512
g_key = None
def ... | [
"benoit@uuu.com"
] | benoit@uuu.com |
64950ad2e5069ab3a5e13232117f0044387a64aa | 67f7a11ce00637637704e537ae80551989161b3b | /NCBI/misc/proxy.py | 6f057bbc37695243d04f72c9e32b9b3a2a639d63 | [] | no_license | similarface/spiders | ff006d72c6267e22c6340b580460bb1a7944e10e | 6307b60fcde3cf36b706d69d3e99d5d81f68a381 | refs/heads/master | 2021-01-10T03:20:43.400574 | 2016-08-18T02:22:44 | 2016-08-18T02:22:44 | 50,632,255 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | '''
This proxy is goagent/wallproxy
If you want to disable it, plz configure settings.py
'''
PROXIES = [
#{"ip_port": "127.0.0.1:8087"}, #goagent
#{"ip_port": "127.0.0.1:8118"}, #tor via privoxy
{"ip_port": "43.245.202.120:8080"}, #tor via privoxy
]
FREE_PROXIES = [
{"ip_port": "181.48.0.173:8081"},
{"ip_p... | [
"similarface@outlook.com"
] | similarface@outlook.com |
5c8bec34b3455da38460275936f45236a1356b09 | 921aa4d0dddc868b61fe1ea3805cf15c36853bc0 | /client/k8s_client/models/v1beta1_ingress_list.py | 597dd9d514517fbd656459a07921c530ef9f056d | [] | no_license | mbohlool/k8s-python-client | 56d569071326820ebb5e11319ca230a272282a56 | e083a1991e03f05d69a39f43b02b9bd5ede0a2b7 | refs/heads/master | 2021-01-09T20:29:17.339112 | 2016-08-18T23:16:49 | 2016-08-18T23:16:49 | 65,772,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"mehdy@google.com"
] | mehdy@google.com |
344e59c82179984a3b83cc3a808abee6d080f458 | 9c1ebbe76c525f1f63481232ebfb61cde37994e3 | /second/main (1).py | effb9dbc42da8b3ad7671faddfea0490a28c4044 | [] | no_license | georgeiniesta/Python-Tests-2 | f279f59046fcdf3a33d9320b05d12de7d6a12f97 | 54544888069edda0f42c8277f5e1a20fd4c4f82c | refs/heads/main | 2023-08-03T10:42:00.056297 | 2021-09-13T19:42:10 | 2021-09-13T19:42:10 | 406,106,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | print ('I\'m Monty \"Python\"') | [
"noreply@github.com"
] | georgeiniesta.noreply@github.com |
37ea5d21cf46f1071f6f2a7d932104aed8acbb13 | a7ababeb15ff93f8bd5c54edbd271711af21d756 | /Tpcftools_plot2.py | 2e3c32c2460c9b713a5432fa5b687b550c3f9e0f | [] | no_license | xiaodongli1986/pythonlib | cfd3c0b5493c2df37b8b85708fa64a4d54c9d907 | 8df18ba39f85826f6919a3df090d36e4f511847d | refs/heads/master | 2022-05-01T09:52:59.983209 | 2022-04-01T07:44:23 | 2022-04-01T07:44:23 | 36,488,428 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 26,669 | py | def smu__plot(filename, smax=50, numsbin=50, nummubin=120,
isMAX=None,
is_sig_pi=False,
deltais = 2,
no_s_sq_in_y = False,
savefig=True,
<<<<<<< HEAD
DDcol=4, DRcol=5, RRcol=6,
=======
DDcol=4,DRcol=5,RRcol=6,
readnorm=False,
#DDlist=[], DRlis... | [
"xiaodongli@kias.re.kr"
] | xiaodongli@kias.re.kr |
68728cd4eddd6883cd76d31294f0643bfe8568e6 | 97755d9c978d5165c1ddc0208aae575c27bc9a62 | /verification_plotter.py | e1bfee8a83eb88f1d798aacace90a6ee906448f3 | [] | no_license | tmldeponti/AE4441-Group-2-VRP-Project | 9a393bbad2783ca20f56099f549b37805dc87ac2 | cc425ffcbc4642f594022ff9cfbb37d0eeea07dd | refs/heads/main | 2023-01-16T05:56:11.060270 | 2020-11-27T11:00:53 | 2020-11-27T11:00:53 | 347,480,039 | 1 | 0 | null | 2021-03-13T21:13:42 | 2021-03-13T21:13:41 | null | UTF-8 | Python | false | false | 2,593 | py | """
author: tmldeponti
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
def simpleplot():
# Get path to current folder
cwd = os.getcwd()
print(cwd)
# Get all instances
full_list = os.listdir(cwd)
####-----MAC---------####
instance_name = '/database/varia... | [
"tomasodp@gmail.com"
] | tomasodp@gmail.com |
71cfbf8a60c7c3ba6f029a3dbb93bebf0062f36d | 99a83749bc5976d78acb2eaa43139662a52629d4 | /msked/placements/utils_old.py | 73ea061533d9d83cf90c722c21b3c623905a9774 | [] | no_license | tommydangerous/msked | 16856ca484a98f0aa5785bc37355c33b436c6c37 | 681f48c386da17da64abbb24565efcce4cc0f10d | refs/heads/master | 2020-04-16T15:15:57.992175 | 2013-11-07T06:37:16 | 2013-11-07T06:37:16 | 8,272,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,445 | py | from collections import defaultdict
from django.conf import settings
from django.db.models import Q
from employees.models import Employee
from employees.utils import tier_lab_sum, tier_lab_balance_check
from random import shuffle
from tasks.utils import task_check
from undos.models import Undo
from works.utils ... | [
"quantumventuress@gmail.com"
] | quantumventuress@gmail.com |
2c085500970f36b865099032aff1e41226a61a6b | 80f7a9b68e3ea4ebe5023078d959fe0aef6eb7eb | /src/util/utils.py | f72d81a59c8b8dc7875de7cc95fb4147afde52f0 | [
"MIT"
] | permissive | rileymblaylock/bow_mnb | ada9ea9a4236d71e14c275d6c3499bbe607bf533 | ecb693739ab23aafb4257f9448c06cc880bc52b2 | refs/heads/master | 2023-08-16T08:29:45.563138 | 2021-09-30T16:10:49 | 2021-09-30T16:10:49 | 309,442,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | import math
def tfidf_calc(wordPerCat, numDocsWithTerm, totalDocs):
for i in wordPerCat:
for key, value in wordPerCat[i].items():
deted = int(numDocsWithTerm[key])
wordPerCat[i][key] = float(float(wordPerCat[i][key]) * (math.log(totalDocs/deted)))
return wordPerCat
def prior_pr... | [
"rileyblaylock98@gmail.com"
] | rileyblaylock98@gmail.com |
94eb2bd7fc01cbf6eeece6c37137fb3c3c981636 | 73877d5b3fe7be808ff80bc8d96a5fdc322c0614 | /mnist/mnist.py | 5967091406345fecb5f64eee293aa9f991b61d25 | [] | no_license | upTina/mxnet | ecf42c22b1ca5612f6a6f2a3decc68ca3ae0acd8 | 68aab18493b4b930785e684cab7e134bdb949ea4 | refs/heads/master | 2021-08-24T05:10:43.979987 | 2017-12-08T04:32:07 | 2017-12-08T04:32:07 | 112,576,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import numpy as np
import os,sys
import mxnet as mx
import gzip
import struct
import logging
def read_data(label_url, image_url):
with gzip.open(label_url) as flbl:
magic, num = struct.unpack(">II", flbl.read(8))
label = np.fromstring(flbl.read(), dtype = np.int8)
with gzip.open(image_url, 'rb') as fimg:
magi... | [
"1226141677@qq.com"
] | 1226141677@qq.com |
8e5dab39723154320a9fa75bca4ca7e01d6cffd6 | c5a287dd3fc3ba0c92ff53cc846c0ff7dd161a53 | /CursoEmVideo/074_randTup.py | aa0dad653b4ddba36b3f64adcdc807394e3ff186 | [] | no_license | lanhybrid/Python_Basics | 4ccc5cd65f307ef8b8573a569ea088608af5e236 | aa28ab24a1fd6eb257b8216d1e2fae003680e2d6 | refs/heads/master | 2023-05-31T03:18:40.019642 | 2021-07-08T21:23:24 | 2021-07-08T21:23:24 | 367,479,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from random import randint
sort = randint(0, 100), randint(0, 100), randint(0,100),\
randint(0, 100), randint(0, 100)
maior = menor = count = 0
print(f'Valores sorteados: ', end='')
for n in sort:
print(n, end=' ')
# if count == 0:
# maior = menor = n
# else:
# if n > maior:
# ... | [
"lan.mascarin@gmail.com"
] | lan.mascarin@gmail.com |
5251cedbb34cd62908c56b69d6e4479ce7c716a3 | a88658ea37744a3f3c7f34f9df4689523e81f9e3 | /scripts/examples/03-Drawing/image_drawing.py | 1c30fde49808c196063e3ba6407c8641ef87d4e2 | [
"MIT"
] | permissive | luuvt/openmv | ad7d559cf0a0ba3d1e3d1163ae0105c3d8efe29b | 1608a2a2f46220c0219abca1982dab80154fc21a | refs/heads/master | 2020-03-28T16:07:13.552279 | 2018-09-10T23:08:10 | 2018-09-10T23:08:10 | 148,661,405 | 1 | 0 | MIT | 2018-09-13T15:48:26 | 2018-09-13T15:48:25 | null | UTF-8 | Python | false | false | 707 | py | # Draw Image Example
#
# This example shows off how to draw images in the frame buffer.
import sensor, image, time, pyb
sensor.reset()
sensor.set_pixformat(sensor.RGB565) # or GRAYSCALE...
sensor.set_framesize(sensor.QVGA) # or QQVGA...
sensor.skip_frames(time = 2000)
clock = time.clock()
while(True):
clock.tick... | [
"kwagyeman@live.com"
] | kwagyeman@live.com |
18fb17af409f97ed167b846844ae8a2a6a13fed0 | e2315b7292c050cba559dbe3d11bf862da87d11d | /04 - scrapy/04-spider-onu/arania_onu/arania_onu/middlewares.py | 71125548b30511673015f023ea55d9609c55a5d3 | [] | no_license | 2020-A-Python-GR1/py-eguez-sarzosa-vicente-adrian | b2c58e3c26d8c50c95c6d940f1816981249c81bb | 6d8620efa169b30473d27efc42e03737872cd857 | refs/heads/master | 2022-12-07T03:32:57.293578 | 2020-09-08T13:38:53 | 2020-09-08T13:38:53 | 268,805,046 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class AraniaOnuSpiderMiddleware:
... | [
"eadepto@hotmail.com"
] | eadepto@hotmail.com |
fcd2a90d096659c658dd91d5e19cef8fe25154af | 8f3300919deeb355e991c0cd351ee37f2ac45f79 | /Classification/characterisation.py | a45e2fdc329e60af9abd1a2d41a510cf5aacf70f | [] | no_license | Saramounata/Python_Case_Studies | 3fcfa72741e58416297846a3b423aaf17e1a52d8 | 535970f5d6fdf10b7f70c04b249fdba84317c3a2 | refs/heads/master | 2021-09-24T02:08:49.139684 | 2018-10-01T19:12:57 | 2018-10-01T19:12:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 26 11:54:02 2018
@author: The Capricorn
"""
import numpy as np
def distance(p1,p2):
return np.sqrt(np.sum(np.power(p2-p1,2)))
p1 = np.array([1,2])
p2 = np.array([5,6])
distance(p1,p2)
import random
def majority_vote(votes):
"""
Returns the most ... | [
"shivang31k@gmail.com"
] | shivang31k@gmail.com |
939ec31f3e0fa57471e3306e7905d5df47db0325 | 6932cf540d9e41556bf523f7be034e5307ac8586 | /src/main/python/BFHash.py | acc66340e535eac9d42800046ba39b827a63c5cc | [] | no_license | ligson/rmsscripts | 68bc15f35458146f8cdb139f3f9a2932fa9afbde | da9072edb51c52997eca74512e7904ea9d566491 | refs/heads/master | 2020-05-18T05:22:46.256074 | 2015-09-16T02:13:35 | 2015-09-16T02:13:35 | 42,558,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # coding=utf-8
import hashlib
import os
import sys
def intToBytes(value):
buf2 = []
buf2.append(value >> 56 & 0xFF)
buf2.append(value >> 48 & 0xFF)
buf2.append(value >> 40 & 0xFF)
buf2.append(value >> 32 & 0xFF)
buf2.append(value >> 24 & 0xFF)
buf2.append(value >> 16 & 0xFF)
buf2.appen... | [
"593949938@qq.com"
] | 593949938@qq.com |
d04d34decf34c86f598843f4c4d7528edd454230 | ba0db5ffda9d470006a8956235d868938b981425 | /ramfull/tileObject.py | 51b870a2234013937012e75929a9985d33b2d8c9 | [] | no_license | wwoods/ramfull | 0b207461f39f6d0d16b93af511dc61eb149f5082 | 64e00cb03a9436f4b034efc5d0b767d1043a66f4 | refs/heads/master | 2021-01-23T06:39:10.711327 | 2013-01-17T08:05:33 | 2013-01-17T08:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,403 | py |
import pyglet
from images import TileObjectImages
from tile import Tile
class TileObject(object):
DEFAULT_IMAGE = TileObjectImages.UNKNOWN
HEALTH = 1
@property
def tilesHigh(self):
return int(self.DEFAULT_IMAGE.height / Tile.SIZE)
@property
def tilesWide(self):
retur... | [
"woodswalben@gmail.com"
] | woodswalben@gmail.com |
04e946ccf600a67f0ca1350af80d3c6ad486088e | 52583f5f74c8235e379fbe694279ecf168f79508 | /src/python_api/packages/utilities/utilities/transformations.py | e022be98a98d7af58464bd50bf7466ac21944fe4 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | padmassun/OpenVSP | b53dff1ad199bd9e5ed2f244ec4c606cdab135df | 36343702ef04720472237810e7dad3e4b9cb2a4b | refs/heads/master | 2020-05-22T20:09:21.003499 | 2019-08-26T00:42:56 | 2019-08-26T00:42:56 | 186,505,530 | 0 | 0 | NOASSERTION | 2019-08-26T00:45:37 | 2019-05-13T22:40:42 | C++ | UTF-8 | Python | false | false | 7,680 | py | # Copyright (c) 2018 Uber Technologies, 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 Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publi... | [
"rob.mcdonald@uber.com"
] | rob.mcdonald@uber.com |
e6265d295615293256a409e7286b429a02cc5609 | 61747f324eaa757f3365fd7bf5ddd53ea0db47d1 | /casepro/contacts/migrations/0001_initial.py | 6d0a371e168bc8f557ce07d0e5145cb99d59cf58 | [
"BSD-3-Clause"
] | permissive | BlueRidgeLabs/casepro | f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12 | 8ef509326f3dfa80bb44beae00b60cc6c4ac7a24 | refs/heads/master | 2022-01-24T09:01:18.881548 | 2017-12-05T18:46:05 | 2017-12-05T18:49:42 | 113,502,588 | 0 | 0 | null | 2017-12-07T21:57:37 | 2017-12-07T21:57:37 | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orgs', '0014_auto_20150722_1419'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
40373cc38d939ffbf1504c5ba1a166db2599157e | 141f514e0b86bb9f836eba410a6383f870647db1 | /first_project/first_project/settings.py | d6479a8a5acb5ed383f1a8f6b7d639eaa1912383 | [] | no_license | anvarudheen/first_project | 3e0319268e92643e538cfbe71f9ead14505bc759 | 0fb77223ac14fcc38fc855f66bad9fea07489fba | refs/heads/master | 2020-09-11T12:10:43.046184 | 2019-11-16T07:14:04 | 2019-11-16T07:14:04 | 222,059,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for first_project project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"anvarudheen@gmail.com"
] | anvarudheen@gmail.com |
4b6cbd25b8649a1363aba2a0743f9bef3b0bf588 | 6b6bd222658ab11b51afc27d507abf4ef7d8e57b | /chapter6/kmeans.py | 72b173ecb14ac98ea75d4c245148844914a34c87 | [] | no_license | JessicaFeng0926/classic_computer_science_problems | 2347851f051e6e2afb2340258d5bf2d0a20e1571 | 68e44f4569a774553b763685050101357124d4a5 | refs/heads/master | 2022-11-13T16:29:45.396010 | 2020-07-08T02:11:04 | 2020-07-08T02:11:04 | 274,041,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,792 | py | from __future__ import annotations
from typing import TypeVar, Generic, List, Sequence, Optional
from copy import deepcopy
from functools import partial
from random import uniform
from statistics import mean, pstdev
from dataclasses import dataclass
from data_point import DataPoint
def zscores(original: Seq... | [
"hasayake.hi@163.com"
] | hasayake.hi@163.com |
3436a89d6631a6f7fa0055e2a2d11612381d0cbd | 0a0e78a1e0e9fe014f2e56d615d8caf0ab38f98e | /basic_example.py | 0480c9924d8a0887e8b5148d71e2511bfbbd09c4 | [] | no_license | Kadam-Rutuja/Exception_Handling_and_String_Formats_in_python | 997110eda4223471a28ff259d7a7daef85b3d19c | b91c4518e887a3f0acaea7427c226d0be277b86d | refs/heads/main | 2023-04-26T15:11:58.774022 | 2021-05-19T12:06:45 | 2021-05-19T12:06:45 | 368,841,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | try: #try block is use to test a block of code for errors
print(i+j)
except: #except block use to handle the error
print("Value not defined")
print("hello from python")
| [
"71829514+Kadamrutuja1@users.noreply.github.com"
] | 71829514+Kadamrutuja1@users.noreply.github.com |
98ad88da7ca6e832b6127bd26bb166a172b9af56 | a48e3265a9d6ead2f525e6277cd5d8e3ad7ee45b | /Asyncio_rmq/Asyncio_rmq/asyncio_rmq.py | 74aec95b14bf78d5e8c462b61a06959a97c55d18 | [] | no_license | andrewvanderbyl/python_scratchpad | bda76466c55d9173a93de1bdcd0ef48d7c29f26d | 9b73205b23a83e338f4a9f54d38ace0169ec086b | refs/heads/main | 2023-06-29T00:55:47.605507 | 2021-07-29T13:57:52 | 2021-07-29T13:57:52 | 372,766,663 | 0 | 0 | null | 2021-07-29T13:57:52 | 2021-06-01T09:04:04 | Python | UTF-8 | Python | false | false | 9,054 | py | """
Asyncio with RabbitMQ.
Parameters
----------
role (-role or -r): string
Role for the instance to play.
Option 1: "start"
Option 2: "listen"
exchange (-exchange or -e): string
Name for the RabbitMQ exchange. Can be left as default.
delay(-delay or -d): integer
Delay (in seconds) that can be ap... | [
"avanderbyl@ska.ac.za"
] | avanderbyl@ska.ac.za |
3d9fabb20612a4a28c9dd6172949c6e3068e7b92 | c004fbafbc8c78e4c825f8183d9d70597f9bac8e | /venv/Scripts/pip3-script.py | 61c922b63ba5ee3ce34d43445af6a44533602957 | [] | no_license | vectorhuztt/backstage_back | 3de4d69003d4a8b161d20f3e35a2e0bd10bdf7e6 | ca704e75d5069bc4d1d8ea5a3f13a94fe91c820b | refs/heads/master | 2022-12-13T02:34:46.617296 | 2020-04-23T03:12:37 | 2020-04-23T03:12:37 | 254,113,925 | 0 | 0 | null | 2022-12-08T09:38:25 | 2020-04-08T14:39:19 | Python | UTF-8 | Python | false | false | 415 | py | #!E:\MyStudyPro\django_file\backstage_back\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"vectorztt@163.com"
] | vectorztt@163.com |
d2ff44c7f4f8ddc697ff528d785f404eda63cd11 | 64c8d431c751b1b7a7cb7224107ee40f67fbc982 | /code/python/echomesh/base/Path.py | f72ecbc1483d9983735ec38c6681592f9d32e01b | [
"MIT"
] | permissive | silky/echomesh | 6ac4755e4ff5ea3aa2b2b671c0979068c7605116 | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | refs/heads/master | 2021-01-12T20:26:59.294649 | 2013-11-16T23:29:05 | 2013-11-16T23:29:05 | 14,458,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.base import MakeEmptyProject
from echomesh.base import Platform
import getpass
import os
import os.path
import sys
ECHOMESH_EXTERNALS_OVERRIDE_SYSTEM_PACKAGES = True
# If this is True, you want Echomesh to use its own ex... | [
"tom@swirly.com"
] | tom@swirly.com |
bd76e213dedbabc7a88303f04e7f31b3508f97c4 | 2bd3967f9dc2cab5071a1190d448be2c2ef4e780 | /bookmark/serializers.py | 76cf668f4485565065f4f2c51a2ef7bdda5c9a5d | [] | no_license | yibeihaifeng/DRSproject | bf9641e7d5b61c7ca83c56214ea14989c798459d | 32844389f322bbd7dde71372701f0653c1578011 | refs/heads/master | 2020-08-19T19:36:15.094917 | 2019-10-18T05:39:59 | 2019-10-18T05:39:59 | 215,947,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | '''
定义一个序列化器
'''
from rest_framework import serializers
from .models import BookInfo
class BookInfoSerializer(serializers.ModelSerializer):
'''
书籍 数据序列化器
serializer不是只能为数据库模型类定义,也可以为非数据库模型类的数据定义。serializer是独立于数据库之外的存在。
'''
title = serializers.CharField(max_length=50)
content = serializers.C... | [
"13598883163@163.com"
] | 13598883163@163.com |
42262be31f9c9c5961d6f718490d0a8e36264f3f | 52f8ac63714421e1930d7b90cb8200bb24d6ac42 | /milove/shop/migrations/0011_auto_20170914_1954.py | a24d6b8e68833b9780ce5f3322a7f656ff9f7926 | [] | no_license | richardchien/milove-backend | ccc7afa17e88b17199ad3878b9315e12c2af8ef1 | 0310f2a60ebcbc3143d0aedcc6cb5842ba264a43 | refs/heads/master | 2023-07-06T12:45:13.622032 | 2017-10-02T04:40:00 | 2017-10-02T04:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-14 11:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0010_auto_20170911_1831'),
]
operations = ... | [
"richardchienthebest@gmail.com"
] | richardchienthebest@gmail.com |
f49d72c91d33e2be6ace11b2611c232e6a982b10 | 80a47fabd6dd71dd964ee846b32cfa22a7503a69 | /api_server/transport/endpoints/__init__.py | 0f767048e21612b105a71a12c04407cdbe9441f1 | [] | no_license | QuickBanny/PSP_film_project | 0a876b8864ae0fb25ab565a2fdf0a28b094baf91 | 2c099c5ec757b0ba7b1b6fd0b424966f0d70415a | refs/heads/main | 2023-02-13T10:54:20.121038 | 2021-01-12T10:14:35 | 2021-01-12T10:14:35 | 304,572,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from .base import BaseEndpoint
from .users.create import CreateUserEndpoint
from .test.test_get_endpoint import GetTestEndpoint | [
"maiorovpavel@gmail.com"
] | maiorovpavel@gmail.com |
63e3cad549c027b04f4f2aeabb6948e59f1936fe | 15de7f67ac019324d99076906e7864e2b3d52218 | /Part 3/Ch1.py | c6c9fd87d0c1035be6d4c4b6f26a3055489bf39b | [] | no_license | ankiwoong/Web_Scraping_in_Python | df97aebc36b43d125f5d4ff55ab47cd114656c51 | dcc0950ee7fb5e4b9acaec581a2fcd590d27bb4a | refs/heads/master | 2022-12-03T07:58:38.626717 | 2020-08-30T02:37:13 | 2020-08-30T02:37:13 | 289,597,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import mechanicalsoup
browser = mechanicalsoup.Browser()
# browser() 객체는 head가 없는 웹 브라우저를 나타낸다.
# URL을 .get() 메소드에 전달하여 인터넷에서 페이지를 요청할 수 있다.
url = "http://olympus.realpython.org/login"
page = browser.get(url)
# 출력
print(page)
# MechanicalSoup은 요청에서 HTML을 구문 분석하기 위해 Beautiful Soup을 사용한다.
# 페이지에는 BeautifulSoup 개체를 나타... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
fd9217903aaa09d9a108a5ec27771d9663a7bf99 | cfd6790f7b601f19f8d0a1fae06fb332d72934a2 | /improvv/wsgi.py | d93cb8bd32b3d09496007eb498c7104e0671645b | [] | no_license | funactuator/improvv | 7736bbfc3a00e3fe5bfe41a3a1dc4f4980439451 | ca8db253841bd2dec70bf195eaec0c1958b25ab4 | refs/heads/master | 2023-08-24T17:06:26.937447 | 2021-10-26T17:32:36 | 2021-10-26T17:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for improvv project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"kuldeep,msvm@gmail.com"
] | kuldeep,msvm@gmail.com |
c484c984aa678a25c17ee8984e4c160b9abfbc25 | feea5b7e71dbcc491dc9fe9b1686b5c13949369e | /mods/channels/__init__.py | 21139372dfe1438fafc7a060196c47bd3261c615 | [] | no_license | IsmaelRLG/UserBot | 232660971f98db1838263f821f40f0c879f00030 | 1ed21d0c0274c022b0de66ecc48547d9dab8be2b | refs/heads/master | 2021-01-17T07:08:13.342496 | 2016-03-11T19:08:30 | 2016-03-11T19:08:30 | 39,799,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # -*- coding: utf-8 -*-
"""
UserBot module
Copyright 2015, Ismael R. Lugo G.
"""
import channels
reload(channels)
from sysb import commands
from channels import lang
from channels import _
commands.addHandler('channels', 'chan register( (?P<channel>[^ ]+))?', {
'sintax': 'chan register <channel>?',
'example... | [
"ismaelrlgv@gmail.com"
] | ismaelrlgv@gmail.com |
796b55262c5939d604def2ffdc5807697e8ce051 | 26eb818572061109b55e498ab4f123a4ff9b9499 | /Stochastic_Evolutionary_Game/Stochastic_Game_Nowak_Code/Prisoners_Dilemma_Game/Matlab_Version/data.py | 80b1c7a3ca6a564a7c4dd0b6db60554e709bee0a | [] | no_license | Dcomplexity/Researches | 550e49b5a5951dca11df062aae1f86e2c12945c5 | 4eb55e2550970223c2f4006d289d8f4ba70a611a | refs/heads/master | 2022-04-04T02:13:56.976901 | 2020-02-01T14:34:44 | 2020-02-01T14:34:44 | 147,739,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | import pylab
import scipy.io as scio
data = scio.loadmat('Coop_Time')
coopS = data['ans'][0]
coop1 = data['ans'][1]
coop2 = data['ans'][2]
pylab.figure()
pylab.title('Cooperation Rate with Time')
pylab.xlabel('Time')
pylab.ylabel('Cooperation Fraction')
pylab.plot(coopS, 'k')
pylab.plot(coop1, 'r')
pylab.plot(coop2,... | [
"cdengcnc@sjtu.edu.cn"
] | cdengcnc@sjtu.edu.cn |
38b4d90fe79dceeac78c45f1b1931845c7c16df1 | f62fd455e593a7ad203a5c268e23129473d968b6 | /python-barbicanclient-4.2.0/functionaltests/cli/v1/behaviors/secret_behaviors.py | 783db8bcdceadd3bb8c49600d77926bb52b65eca | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 4,527 | py | # Copyright (c) 2015 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
52f6dc6d3e5b8dfa2bd235826a3d541b10dc3167 | e4b2ef5734175d0ca5bf109b18e0f43943686903 | /bookManagePj/gui/lab1_graphic.py | 130c8649607317285e2cf3bf2c922ef2fa806468 | [] | no_license | jungaSeo/python_pj1 | a23659eb42ac7391ab3d9c22eec79a07b5b19fce | 704b2ab91bcb2d39c7feb62ba4a37f41041f0320 | refs/heads/master | 2020-05-04T20:37:09.806985 | 2019-04-13T10:00:22 | 2019-04-13T10:00:22 | 179,444,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | '''
# 1.
콘솔에서 과목명:
messageBox에 출력.
# 2.
콘솔에서 지금시각:
messageBox에 출력.
'''
from tkinter import messagebox
time = input("지금시각>> ")
messagebox.showinfo("지금시각 ", time)
subj = input("과목명>> ")
messagebox.showinfo("과목명 ", subj)
| [
"zzang@DESKTOP-8JUBML4"
] | zzang@DESKTOP-8JUBML4 |
8e3996708f2fd64b080ba4be189b5de7fef886cf | 61191b4e7322f674dfa826b8ee19be4eba29f69a | /disneyWaitsApp/manage.py | 159dcc1a5fd9cf21f2b95e88178cd518002ddb63 | [
"MIT"
] | permissive | ChristopherArnold28/DisneyWaits | dec023ce0f9389725de4dfa96151014b9fe5a4ef | 4e8927c8d208fdf20f9b82f76958b22a970c0f9d | refs/heads/master | 2021-07-05T12:51:30.871942 | 2018-11-28T15:12:52 | 2018-11-28T15:12:52 | 132,628,724 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #!/usr/bin/env python
import os
import sys
import pymysql
pymysql.install_as_MySQLdb()
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'disneyWaitTimes.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"christopher.arnold@utexas.edu"
] | christopher.arnold@utexas.edu |
864a6f49a409de6ee0ce9d96e9752f283462d529 | 2ab6deaf9ecc0b0aea5394bb4dd8a6ad0d1763a5 | /dev/dic2tmx.py | df9cb54a4a0d08cf4da97601fd06d8b3b1cc0d56 | [] | no_license | manyoso/tibetan_corpus | 6feec71776c4f06d5fc79cd7263996aaa30a6a0d | 6d7211e51e26e2235d64ee0fa4e7a35cf2874b4d | refs/heads/master | 2020-12-24T18:42:08.654451 | 2016-05-20T15:09:55 | 2016-05-20T15:09:55 | 59,302,573 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | #!/usr/bin/env python
import argparse
import glob
import os
import codecs
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
from xml.dom import minidom
import chardet
tmx = Element("tmx")
tmx.attrib["version"] = "1.4"
header = SubElement(tmx, "header")
header.attrib["creationtool"] = "dic2tmx"
... | [
"manyoso@yahoo.com"
] | manyoso@yahoo.com |
36da8ae5aa86678a030db065e50cf22fb7201c00 | bf2801a3b0eb5cb09fe301dd62ff6361a8b80c26 | /blogapp/forms.py | c01079669117956e29b18a6fbd8e589d5a0d08bd | [] | no_license | cjxhaaa/newblog | 567d86ecdda5b67e6855933cda8a1a02d7996b4c | ad0e58caab49adcac8b12a64a4494a4f09a815b9 | refs/heads/master | 2021-01-01T04:47:37.141745 | 2017-09-16T15:17:07 | 2017-09-16T15:17:07 | 97,246,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | from django.forms import Form,Textarea,TextInput,CharField
# from django import forms
# from django.utils.translation import ugettext_lazy as _
# from .models import Comment
#
# class CommentForm(forms.ModelForm):
# class Meta:
# models = Comment
# fields = ['name','context']
# widgets = {
... | [
"405019079@qq.com"
] | 405019079@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.