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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
91969ea210ce82e783961566b0f1c27d26bb9132 | 7803d25a8e1424870364b6326c629b57d62258ee | /LeetCode/l41.py | 8928cbabc6446ad9b854a9c534410fdca91a2540 | [] | no_license | zhaoyu20150930/leetcode-test | 7318e55f18d5779d3c3b8ec54163df23d57a4c05 | b6f74dd6b6902272ee04e5029231838f7161d6f5 | refs/heads/master | 2021-02-08T06:00:45.237543 | 2020-04-21T07:31:30 | 2020-04-21T07:31:30 | 244,116,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | from typing import List
"""
给定一个未排序的整数数组,找出其中没有出现的最小的正整数。
示例 1:
输入: [1,2,0]
输出: 3
示例 2:
输入: [3,4,-1,1]
输出: 2
示例 3:
输入: [7,8,9,11,12]
输出: 1
说明:
你的算法的时间复杂度应为O(n),并且只能使用常数级别的空间。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/first-missing-positive
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
"""
class Solution:
de... | [
"1097794678@qq.com"
] | 1097794678@qq.com |
bb3c3f2d1cd1fd17e9ca3b8ade21708132828daf | 653d557c0a70cefbeb23254774d9104e6ee3c66c | /lowdown/manage/verticals/serializers.py | b1424664583c70ba774cc2bc668fa7641646444e | [] | no_license | brudil/lowdown | 0b3dda283e927d19b8c55f6d54ca3a8486ff059d | 247b9a8e21e622c90da339da9615fae6e5dfb8be | refs/heads/master | 2023-01-14T12:19:38.664892 | 2019-12-09T22:48:03 | 2019-12-09T22:48:03 | 97,485,829 | 1 | 0 | null | 2022-12-26T20:58:14 | 2017-07-17T14:28:52 | Python | UTF-8 | Python | false | false | 426 | py | from rest_framework import serializers
class VerticalSerializer(serializers.Serializer):
name = serializers.CharField()
identifier = serializers.CharField()
audience = serializers.CharField()
content_forms = serializers.ListField(child=serializers.IntegerField())
content_tones = serializers.ListFi... | [
"james@brudil.com"
] | james@brudil.com |
23c84d81c52c47c7bab2fcbd6a0b508e1c7a9f99 | 247ab484c9f03369ad5d9dae9977ddc9eb7de394 | /scripts/Clustering_Surface.py | 0334d00dc3fb023efe2ea064a49a70b3f1e0263e | [] | no_license | Erismena/Study_Surface | a880149e91e089973da98e555f35b908b3460bea | ff8102ec9de92b395906213d88aee852fa713098 | refs/heads/master | 2020-03-07T11:47:02.574297 | 2019-04-10T15:20:59 | 2019-04-10T15:20:59 | 127,463,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 23 10:09:51 2018
"""
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
import numpy as np
import pims
import scipy.ndimage
import pandas as pd
from scipy.ndimage.morphology import binary_fill_holes
import skimage.measure
import skimage.filters
import ... | [
"37940197+Erismena@users.noreply.github.com"
] | 37940197+Erismena@users.noreply.github.com |
e64353d042c187d8f5b5a688cba81762d490e5e5 | 3be37c8e602c6de2233fe1bc26df7921f90fb400 | /monitor/views.py | 5ac8a7c0e83a52e05320e823ffb481a8c67ccb7a | [] | no_license | sans123wx/django_learnings | 18a32198b173b30bc2b1a956f3da11688e324d15 | 1e441dcdacab284a9f9ec0f162a0148191f3252e | refs/heads/master | 2020-04-05T17:42:12.823572 | 2018-11-28T13:37:13 | 2018-11-28T13:37:13 | 157,072,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.shortcuts import render
from .models import *
# Create your views here.
def monitor(request):
monitors = Monitor.objects.all()
context = {}
context['monitors'] = monitors
return render(request , 'monitor.html' , context)
| [
"514232900@qq.com"
] | 514232900@qq.com |
55de3daf1824d85c2ed03562f3b546e1b3e19b98 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /problem/good_way.py | 813179408f61de67e352c578568740bf585e72fd | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
#! /usr/bin/env python
def same_hand(str_arg):
point(str_arg)
print('time')
def point(str_arg):
print(str_arg)
if __name__ == '__main__':
same_hand('time')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
0d5004cdcb65e3215685a01249b2a0cf45215392 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba2717.pngMap.py | cd46eaffd0ee86a446678bd0c71eb1581b9b5e6d | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba2717.pngMap = [
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'0000000000000000000000000000000000000... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
9a3f47eadd5025612f381c514ac0784d4d231315 | c8a93730c5e7cbe5ad29314392924dbe1d0ff3f5 | /ponni13.py | 64f0944916fafc5ab3dce95f5a11cfc9fab1110d | [] | no_license | ponniravi/a23 | 9912666f8a744ce93e32456bd8008db98002e560 | 09e490167007895f1c0e1f6dd9487cd5457df1df | refs/heads/master | 2020-07-04T00:46:44.576253 | 2019-08-14T07:02:50 | 2019-08-14T07:02:50 | 202,102,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | #p
number=list(map(int,input()))
sum=0
for i in range(len(number)):
sum+=(number[i]**2)
print(sum)
| [
"noreply@github.com"
] | ponniravi.noreply@github.com |
4545abf183e6a439e1bfebb4c3ce53de27c8f66a | 80480b6191c43a3122d0deba378942cb6052a740 | /prototype/node_modules/pkcs11js/build/config.gypi | 555780362dd30806203942852cc023112ec23d55 | [
"MIT"
] | permissive | RHIE-coder/Project.HLF | 08f8040e4b415192b7eeeb495ff316d556baf101 | b5178f9cdb6e4df8286b4b2b1910b44cf5372f17 | refs/heads/master | 2022-12-29T18:00:24.650489 | 2020-01-07T08:30:06 | 2020-01-07T08:30:06 | 222,851,809 | 0 | 0 | null | 2022-12-15T04:11:57 | 2019-11-20T04:37:29 | Go | UTF-8 | Python | false | false | 5,235 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"quotia72@naver.com"
] | quotia72@naver.com |
01e528870768f18ecfa0f92dfad9680c8e5d2620 | f42df9f4102cfe3fc2259df4a60707bd53520ac2 | /WikId/src/WikId/wiki/admin.py | 78c3c14a878cff0162bd20d444b81b36b4bb1ecc | [] | no_license | martinSternelius/Wikid-django | ed0fb2f491f9e4b004d6c60a6af69e5518fc25f0 | aeacae0a5a6c6740bad88bdb12d28be7eb5cc46e | refs/heads/master | 2016-09-10T23:27:45.399538 | 2010-11-09T09:16:14 | 2010-11-09T09:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from WikId.wiki.models import Article, Article_section
from django.contrib import admin
class Article_section_inline(admin.StackedInline):
model = Article_section
extra = 1
class Article_admin(admin.ModelAdmin):
inlines = [Article_section_inline]
admin.site.register(Article, Article_admin) | [
"WebhallenAB@.(none)"
] | WebhallenAB@.(none) |
b46e2c6dabd3f18097262154b19428f887d9cc9f | e7890014b32fceb85ff1fc20cec163baa7c756a6 | /tests/fit_wrapper/test_runner.py | 62e80d4bd1ee48c3c27e382e1773eaa8cf79f4de | [
"MIT"
] | permissive | elejke/pytorch-tools | 45923c6d658f216f1393f4d51cce4fe390682c3f | 785527312c0cf929abb3c13e3528a98c03a3d913 | refs/heads/master | 2021-01-16T03:20:50.033614 | 2020-02-06T14:21:12 | 2020-02-06T14:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | import os
import pytest
import torch
import torch.nn as nn
import apex
from pytorch_tools.metrics import Accuracy
from pytorch_tools.fit_wrapper import Runner
from pytorch_tools.losses import CrossEntropyLoss
import pytorch_tools.fit_wrapper.callbacks as pt_clb
HIDDEN_DIM = 16
NUM_CLASSES = 10
IMG_SHAPE = 16
LOADER_LE... | [
"bonlimezak@gmail.com"
] | bonlimezak@gmail.com |
d2cf93a7455e14332521a1b112fc072e5fe86847 | bba82bce7a124f62f4b9a54fb449969e116d9830 | /applications/tools/wav2lip.py | 74f40f6082f4caa9f5b39a44f88567f8f7c14986 | [
"Python-2.0",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | moiseshorta/PaddleGAN | 88680876e9a563cd24647ca4d04a3ff9ef8c2429 | 1d8cd182219e83653570ce03d9be8b5d5a955187 | refs/heads/develop | 2023-04-28T16:11:10.494290 | 2021-05-19T02:59:33 | 2021-05-19T02:59:33 | 369,027,654 | 1 | 0 | Apache-2.0 | 2021-05-19T23:39:24 | 2021-05-19T23:39:23 | null | UTF-8 | Python | false | false | 3,396 | py | import argparse
import paddle
from ppgan.apps.wav2lip_predictor import Wav2LipPredictor
parser = argparse.ArgumentParser(
description=
'Inference code to lip-sync videos in the wild using Wav2Lip models')
parser.add_argument('--checkpoint_path',
type=str,
help='Name of... | [
"noreply@github.com"
] | moiseshorta.noreply@github.com |
9d5e174451a029b8858288c3bb342a6bafd87be3 | a5fb604b0476edd61334f6b01085e24169b0269e | /predict.py | 27e86537e68f16444f44674c9e408b08015808b3 | [] | no_license | eperry4750/TensorFlow_Image_Classifier | 2ff984ab02032921ea6f7c4bcdefbb6ce5b62ece | 22c6dee36eecf94db9ce8fa17abbf47bb05ad5ef | refs/heads/main | 2023-05-25T12:43:09.439699 | 2021-06-12T14:54:26 | 2021-06-12T14:54:26 | 376,171,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | import numpy as np
import json
import tensorflow as tf
import tensorflow_hub as hub
from argparse import ArgumentParser
from PIL import Image
import warnings
warnings.filterwarnings('ignore')
def process_image(image):
IMAGE_SIZE = 224
image_tensor = tf.convert_to_tensor(image)
resized_i... | [
"noreply@github.com"
] | eperry4750.noreply@github.com |
545d3c8e2913d6ceda77346141e4025ccb31fa21 | 304a1fa65079d89a9a5a67e0d29d42f7dc9a89b8 | /GUI-BankSystem.py | d843740bb9f7b7f5aee4da2d296a0f55e4e9ae8a | [] | no_license | hsa306/banking-system | 1ff190e270bd48109a9e751340f839efb142311a | 6e2897d6b64785721030a66065a29f731448615a | refs/heads/main | 2023-01-10T00:48:13.397449 | 2020-11-16T13:12:01 | 2020-11-16T13:12:01 | 313,123,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,382 | py | import tkinter as tk
from tkinter import messagebox
from time import gmtime, strftime
def is_number(s):
try:
float(s)
return 1
except ValueError:
return 0
def check_acc_nmb(num):
try:
fpin=open(num+".txt",'r')
except FileNotFoundError:
messagebox.showinfo("Error","Invalid Creden... | [
"noreply@github.com"
] | hsa306.noreply@github.com |
12401c84977b036427a9104776abcfb54dae2926 | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /autorest/python/swagger/models/tagged_sensor.py | 1f7a06e5448848378589dfcd960293e1d3a51f99 | [] | no_license | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"greg@samsara.com"
] | greg@samsara.com |
69fd19b7e5f51b9162f599f3f476a93584fafad7 | 966e738cc124f1e648a1147340505f7de0978c6f | /CISTER_image_processing/devel/lib/python2.7/dist-packages/image_processing/msg/_coords.py | c2af9c84b1230e81f59dd46153d597f895b1324e | [
"Apache-2.0"
] | permissive | pmssantos/copaDrive | 1a81ee4f6ab5241f5d4643e3b6dbd73fadd4a45d | 56439ce311d6624840ddd4813780bd0117e26b47 | refs/heads/master | 2023-05-05T02:40:53.283905 | 2021-05-21T23:39:10 | 2021-05-21T23:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,715 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from image_processing/coords.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class coords(genpy.Message):
_md5sum = "07271e516a6d3af46ff39e3801eabeb2"
_type = "image_... | [
"enpvf@isep.ipp.pt"
] | enpvf@isep.ipp.pt |
36c83d1f224f722a5d5c6e306c21a837d0e6ab2b | 71d7398290d3f88aab4a8afd75be0408ee677e31 | /apps/goods/serializers.py | 7931dc6d9341875e24a2dc7c8f7f51c11380c3f8 | [] | no_license | LIpengcccc/MxShop | d8e6ae34d836845b6f3d7bd74e551dbe5ad74c88 | 2f16c942ab4ac02f7e4ea2f8f56e2c30f892c5bb | refs/heads/master | 2022-12-14T05:21:20.353791 | 2019-11-09T14:40:04 | 2019-11-09T14:40:04 | 220,652,926 | 0 | 0 | null | 2022-12-08T07:31:43 | 2019-11-09T14:20:21 | JavaScript | UTF-8 | Python | false | false | 3,543 | py | from django.db.models import Q
from rest_framework import serializers
from .models import Goods, GoodsCategory, GoodsImage, Banner, IndexAd, GoodsCategoryBrand, HotSearchWords
class CategorySerializer3(serializers.ModelSerializer):
class Meta:
model = GoodsCategory
# fields = ('name', 'click_num'... | [
"1014741954@qq.com"
] | 1014741954@qq.com |
913f9d79cbda01e06d0e01bb1575e92a1e90b1cf | 311334ddd79553353c493e8bb7d0228ee427715f | /CSV_Join.py | ceadeb414a90069cca27440e1a08773974c28124 | [
"MIT"
] | permissive | it-fm/SRTM_to_STL | 8e28f06f13ee2db40a3f147ebd283a23e4e3591d | 2b29031ce6d4031118b79a83193d97e14b9cf10e | refs/heads/master | 2021-09-15T14:03:35.542200 | 2018-06-03T21:07:43 | 2018-06-03T21:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,961 | py | ## Code for the CSV joiner
## Run from the command line as:
## python CSV_Join.py filename1.csv filename2.csv
## Joins two SRTM csv files of the same size into one
## The code will attempt to join non-adjacent files so long as they share lat or lon!
import numpy
import sys
if __name__ == '__main__':
try:
... | [
"pc235603@gmail.com"
] | pc235603@gmail.com |
3b2c176863a5e194f22e386c5b7f32f37633bd8a | c2806d4c1044d4e26b46127bb5d9bdf6e8e42d0a | /hardware/hameg.py | a65aa91f9ca4523543a634dbd45b6d6d0d4c8997 | [] | no_license | Faridelnik/Pi3Diamond | f7876cc878793f13037b3007bd432fd9e62b0eb9 | 62e05ccb365d7f0b8c52aaa7be3723dd16d83689 | refs/heads/master | 2021-01-22T12:38:08.801473 | 2017-10-10T08:37:13 | 2017-10-10T08:37:13 | 102,353,439 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,393 | py | '''
Created on 20.04.2012
author: Helmut Fedder
'''
import time
import numpy as np
# helper class to represent a visa instrument via a socket
class SocketInstrument():
def __init__(self, device):
import socket
host,port = device.split(':')
sock = socket.socket(socket.AF_INET, socket.SOCK_... | [
"shagieva.farida@physics.msu.ru"
] | shagieva.farida@physics.msu.ru |
978c93ab7716a070e4b5c045ab3c4fac5825d8e4 | 7bbe7bf766dcf2bdf6b129ece0b78b5406a93adc | /python/20.py | 0642a43dc2916f147a36bcea87a04511465a5e1b | [] | no_license | ottiferous/euler | 8261c17139374777e14c17748e6e5ac9e8968aa2 | 4eebf05941fdada5c4c6b605864d61ea386e7f1b | refs/heads/master | 2021-01-18T21:33:16.732445 | 2016-05-24T23:55:48 | 2016-05-24T23:55:48 | 2,253,811 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | result = 0
for x in str(reduce(lambda x,y: x*y, xrange(1, 100), 1)):
result += int(x)
print result
| [
"github@andrewmarrone.com"
] | github@andrewmarrone.com |
01ea9b89c21c2662978b5f1fcd58afc9ebd35ada | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnsingula.py | 2760b64a1532a4d213c8fae350fa41d153d1278c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 104 | py | ii = [('WilkJMC2.py', 4), ('GilmCRS.py', 1), ('WestJIT2.py', 2), ('DibdTRL2.py', 1), ('MereHHB3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
06079a88e0315ff4a3ca5c78262cba05ed302bef | 279f46617264ffa386b600f05ddf9e15df41b596 | /ch7_funtinal_api.py | 2bb49895adb3e004f7c285fdb1aedbacc63e831e | [] | no_license | oakareahio/deeplearning_with_python | 98636831bd6e84046d8fb7548390acc9221d9ba7 | 1248370b9bb4a530908110b1f289ae5eaa77b422 | refs/heads/master | 2022-12-07T11:43:13.671594 | 2019-09-14T06:02:51 | 2019-09-14T06:02:51 | 208,393,641 | 0 | 0 | null | 2022-11-22T04:14:40 | 2019-09-14T05:27:02 | Python | UTF-8 | Python | false | false | 619 | py | from keras import Input, layers
from keras.models import Model
input_tensor = Input(shape=(64,))
x = layers.Dense(32, activation='relu')(input_tensor)
x = layers.Dense(32, activation='relu')(x)
output_tensor = layers.Dense(10, activation='softmax')(x)
model = Model(input_tensor, output_tensor)
model.compile(optimizer... | [
"okehara_aoi@microad.co.jp"
] | okehara_aoi@microad.co.jp |
42cbab2e55f7dc9e5fe0dd1ae6e8bc8112d0ad8a | f9ff745b7d825e685a196b1e24ccd14d9d744b6a | /args.py | ac8fa6ba56e2a1250e54b603a396f5a9913fb4f0 | [] | no_license | lv10wizard/ig-highlights-bot | ce061275acaca9108bd27da3017ec492832d3934 | e551d68f51f222c58428029df1eda7838825101f | refs/heads/master | 2021-05-16T05:38:38.934210 | 2018-04-07T03:34:22 | 2018-04-07T03:34:22 | 103,170,792 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,326 | py | from __future__ import print_function
import argparse
import os
import re
from six import iteritems
from six.moves import input
from constants import (
AUTHOR,
DATA_ROOT_DIR,
)
from src import (
config,
reddit,
)
from src.database import (
BadUsernamesDatabase,
Database... | [
"lv10wizard@gmail.com"
] | lv10wizard@gmail.com |
fac37f083d42c910f33527664fdf1b8d30cd9f26 | 132f437f6dea029a05a98cc51c1b33be9531ecdf | /env/bin/gunicorn | dd175d426dac34ccf8e9689d7bd3f0436ebc6f26 | [] | no_license | dnlbellfield/official_website | 15db7ae0e49c8757c051b24c4f4e95afab20ae46 | 7677941c89f91b26453dd54edb611a492ed2b9e4 | refs/heads/main | 2023-03-17T11:36:29.221759 | 2021-03-11T23:05:31 | 2021-03-11T23:05:31 | 346,860,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/Users/johnbellfield/official_website/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"dnlbellfield@gmail.com"
] | dnlbellfield@gmail.com | |
d13f09077c30b481d74bd155cde1b173f07758c0 | 295f34f4411d984f0ff6026be6e96fe134dc1550 | /home/pi/.local/share/Trash/files/lectoraTTL.py | 3741207e9b221e2106d60bb92b8a05f4e64ecb34 | [] | no_license | mcashjavier/disco-linux-raspy | 1e3fed914b6040fa9972e7cfc7357ecb72070e8c | 8c23103cf089059fbdadfad8cfb7059c1580da83 | refs/heads/master | 2022-12-20T17:06:39.967203 | 2019-03-12T12:09:22 | 2019-03-12T20:01:10 | 175,072,541 | 0 | 3 | null | 2022-12-18T06:59:27 | 2019-03-11T19:44:12 | null | UTF-8 | Python | false | false | 2,014 | py | #Programa para lectora TTL
#DATA IN por el pin 7-->GPIO4
#CLK IN por el pin 13-->GPIO27
#CARD PRESENT IN por el pin 15-->GPI22
import tkinter
import RPi.GPIO as IO
import time
IO.setwarnings(True)
IO.setmode(IO.BCM) #anda con los pines GPIOxx
#IO.setmode(IO.BOARD) #anda con los pines de placa
#IO.setup(4,IO.IN,pull... | [
"prog2@magneticash.com"
] | prog2@magneticash.com |
4808fcb09c746d4045f3885a0b1760f7e8bdeb06 | d82995f33a603b61e06deecd644f5a293823b746 | /fully_convolutional_networks/transposed_convolutional.py | 48d78190eca9ceba1e6e2adef3e7b2b4eb010ff1 | [] | no_license | RyanCargan/udacity-robond-term1 | 79d065aab42e4e308a93e36fa869bb48477aebef | a92a6e665e72930f9a33eb3a82f64da206b64fcf | refs/heads/master | 2021-09-07T08:39:07.181342 | 2018-02-20T12:27:29 | 2018-02-20T12:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import tensorflow as tf
import numpy as np
from one_by_one import custom_init
def upsample(x):
"""
Apply a 2 times upsample on x and return the result
x - the input feature
- 4 rank tensor
return: TF operation
"""
shape = x.get_shape()
input_shape = shape[1]
kernel_size = (input_s... | [
"j.tabacii@gmail.com"
] | j.tabacii@gmail.com |
d558ea33f4ad605890eb70d3641f85bb38c410a8 | 71b934d407ce48148ae68370f5f5844b1e3a418a | /src/asker.py | 4d1d1ccab26b5d60299de35466b2b2d023dc888e | [
"MIT"
] | permissive | davidteather/zoom-scheduler | 6734f8700716c8c726e9d7d85119d6d9176c3855 | 7f575979b508f50af65458ccb4ea73d842ea657e | refs/heads/main | 2023-02-19T20:11:07.954339 | 2021-01-23T09:57:18 | 2021-01-23T09:57:18 | 330,213,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | import dateparser
import json
import os
if not os.path.isdir('data'):
os.mkdir('data')
data_path = "data/meetings.json"
images_path = "images/"
def ask():
name = input("What is the name of your class? (e.g. CS 101): ")
time = input("What time is your class? (e.g. 14:30): ")
hour = time.split(":")[0]... | [
"noreply@github.com"
] | davidteather.noreply@github.com |
f282d1785b0e2341e87ca9678267cf02af90232c | ebfcad44f8314f9efa758431eee180cbbddc8d53 | /EplatServer/old/test.py | 9879d5b7ff11f98037036a773bc08560b3bb0688 | [] | no_license | rudi-code/e-plat | 7baa22e72f9e7cb7e2a0d0ad2fc3dd380d1af97f | ecb0ec9eb82e7d9b974d7fe7a0c2e463e9c8b8dd | refs/heads/master | 2023-06-19T20:40:29.846446 | 2021-07-22T12:21:02 | 2021-07-22T12:21:02 | 388,450,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,368 | py | import json
import math
def calculate_distance(lat1, lon1, lat2, lon2):
earth_radius = 6378.137 # Radius of earth in KM
dLat = lat2 * math.pi / 180 - lat1 * math.pi / 180
dLon = lon2 * math.pi / 180 - lon1 * math.pi / 180
a = math.sin(dLat/2) * math.sin(dLat/2) + \
math.cos(lat1 * math.pi / 180) * math.cos(lat2... | [
"rudi.purnomo@quadras.co.id"
] | rudi.purnomo@quadras.co.id |
47ca79ad241ea2f2be47ad3ac495a37ae51d61fc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /TmasgxCm6iz3gTGHk_24.py | 36dac173b508a5b700464e9c37d5bdb750607cd4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | """
Write a function that returns the **length of the shortest contiguous
sublist** whose sum of all elements **strictly exceeds** `n`.
### Examples
min_length([5, 8, 2, -1, 3, 4], 9) ➞ 2
min_length([3, -1, 4, -2, -7, 2], 4) ➞ 3
# Shortest sublist whose sum exceeds 4 is: [3, -1, 4]
min_le... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b7d757571c521ec0b025a9ed314c2e638c8e5170 | ffeae925479dfa94d0ec710fcd19061ac3a6e98a | /Fibonacci_recursive.py | ad067db15f7af75be20738034514ae661d2f50b1 | [
"MIT"
] | permissive | NageshJ2014/TestRepor | 7c346d162cd5bfcaf178c3b84d37083a5a45fee1 | bea3c5feca4fda196f43797d12bf752d7c97959a | refs/heads/master | 2020-04-02T00:42:05.923675 | 2018-10-19T17:28:45 | 2018-10-19T17:28:45 | 153,817,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | def fibonaaci(pos):
if pos == 1:
#print('0')
return 0
if pos == 2:
#print('1')
return 1;
n1 = fibonaaci(pos -1);
n2 = fibonaaci (pos -2);
print (n1)
return n1 + n2;
n5 = fibonaaci ( 5);
print(n5);
name = 'Andy' # define name
def printBob():
global name;
... | [
"nagesh.jayaram@gmail.com"
] | nagesh.jayaram@gmail.com |
4cf5c113f26e735a332c73a5524e7f0e21574ed9 | e140817f5831fdf7cf93111455a12788794da8eb | /testFiles/outdatedFiles/ZoneCollection.py | de4a428260c0d30b144b4ec282a45ee427f6680e | [] | no_license | Davidchristy/TVAC | 0ef40fbf5ecb6ab369f69db9ef281c9b09ecd7e6 | ab111fa67e7e1cecb4543887f5eaea28edcbc29e | refs/heads/master | 2021-09-09T14:14:05.342538 | 2018-03-16T21:57:56 | 2018-03-16T21:57:56 | 116,292,748 | 0 | 0 | null | 2018-02-02T04:09:16 | 2018-01-04T18:18:47 | Python | UTF-8 | Python | false | false | 1,235 | py | import uuid
from Logging.Logging import Logging
class ZoneCollection:
def __init__(self, parent):
Logging.debugPrint(2,"Creating ZoneCollection")
# self.zone_dict = build_zone_collection()
self.profile_uuid = uuid.uuid4()
self.parent = parent
# self.update_period = 10
... | [
"DavidChristy520@gmail.com"
] | DavidChristy520@gmail.com |
24a3c675c28fa9825a10c00d02ac5b8e5e160fe3 | 337a67e82c446a27bd96770d6b02e889a426eb8d | /03-Python/1/Activities/12-Stu_NumberChain/Solved/NumberChain_Solved.py | 0f299c03f8ad92022d5b6a63c1516139f2ee21bd | [] | no_license | ktatineni/GTechCode | 6a317a3020c91ef259aba8c647341c6b6f59396e | 01bcfca38f4f403825ff54ff1497ac78329d120e | refs/heads/master | 2020-05-01T13:44:06.320959 | 2019-05-14T16:31:10 | 2019-05-14T16:31:10 | 177,499,930 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Initial variable to track game play
user_play = "y"
# While we are still playing...
while user_play == "y":
# Ask the user how many numbers to loop through
user_number = input("How many numbers? ")
# Loop through the numbers. (Be sure to cast the string into an integer.)
for x in range(int(user_num... | [
"krishna@krishnas-mbp.attlocal.net"
] | krishna@krishnas-mbp.attlocal.net |
43f0bad355eb6dd19692fb8dfa7f34dd1d19199a | 7a14fa5256977a08c033aea484dace528a8e6ae2 | /formacao_primeit/exercises/swallows.py | 56dfa7d20d9ed4486ce54119c73f00f490b29816 | [] | no_license | vinicius-vph/python | cdf8496d12940d0ce2399b25d94da2aac0e4983b | 503712c83cf3f712a825127620974125945e2601 | refs/heads/main | 2023-05-16T15:26:53.440422 | 2023-05-09T19:42:54 | 2023-05-09T19:42:54 | 340,350,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # Vinicius Santos, Curso de python, Sessão 1
"""
Coméntarios qualquer
que está em várias linhas
"""
print("Hello, world!")
print("Hello, world!")
print()
print("Suppose two swallows \"carry\" it together.")
print('African or "European" swallows?')
| [
"vinicius.vph@gmail.com"
] | vinicius.vph@gmail.com |
226ea7fa9126703aafbe9372476da27dfecbdb89 | 7f54637e347e5773dfbfded7b46b58b50544cfe5 | /step6/qdoba/qdoba/middlewares.py | a506e086c2996cefbf6a582ca4db11cd012ac34d | [] | no_license | simba999/all-scrapy | 5cc26fd92b1d03366b74d4fff58c4a0641c85609 | d48aeb3c00fa2474153fbc8d131cf58402976e1d | refs/heads/master | 2021-01-25T14:24:04.715550 | 2018-03-03T13:43:13 | 2018-03-03T13:43:13 | 123,695,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class QdobaSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
b0e3e29b8c8d3347a402574bd4137ff42303a1f4 | 23a5c5ccb7bedbfd9929c611a358aba0caf1ea1c | /CFRplus.py | e081dc1af3c2c49e9ee76c590ef1f53c661e99cd | [] | no_license | snarb/RPSnn | 058db0483aa674f101242c0436b57686952e19ac | 60fa010a870fb1edb7de095469f1585b3868ad5e | refs/heads/master | 2021-01-18T18:01:48.233984 | 2017-06-12T14:01:48 | 2017-06-12T14:01:48 | 86,837,612 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | from KuhnPoker import *
from treelib import Node, Tree
from CfrNode import CfrNode
from GameTree import GameTree
from matplotlib import pyplot as plt
import Utils
import math
from collections import Counter
from math import sqrt
import random
import time
import pandas as pd
from NodeEstimator import Estimator
class C... | [
"thesnarb@gmail.com"
] | thesnarb@gmail.com |
c5a8fe695a4c1a3e451a369a01d1885998462d0d | c72266d064fe2b52f9389e9352e01bb369d7ee52 | /keyword_extraction/extra_analysis/word.py | 694d9741c234169c35719c08c5d6378ef7045175 | [
"MIT"
] | permissive | luckypython777/stackoverflow-search | 5f0e5f8bea4b778f46e4dd4ac0bc20196f9ed1e3 | 990b339a1b87530894d1068eb99d0b03e6476268 | refs/heads/master | 2021-12-09T13:11:35.448758 | 2016-05-17T06:33:41 | 2016-05-17T06:33:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | #########################################
# Plotting word clouds for common #
# words in the queries of each #
# language being analysed #
#########################################
from os import path
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import wordcloud
from wordcloud import ... | [
"hagarwa3@illinois.edu"
] | hagarwa3@illinois.edu |
1f63fe94a4ed3323b05298eb9685d791fe4f3e89 | 17052f5fa0d465e6a0f6f194cbab9ac66adb7b48 | /services/migrations/0015_auto_20210314_1558.py | 7a8222db2f2c72ed74c70830b663299925c50c7c | [] | no_license | Code-Institute-Submissions/Solid-Properties-Project | 7e7513b59acf4df85fe00634b3d504e7c04a5ffa | e573dcdd71092c90e35b1cf86e912d88200aa661 | refs/heads/master | 2023-04-02T16:21:20.437436 | 2021-04-05T10:25:05 | 2021-04-05T10:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # Generated by Django 3.1.5 on 2021-03-14 15:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0014_auto_20210314_1556'),
]
operations = [
migrations.AddField(
model_name='category',
name='icon',
... | [
"astig.mandalian2014@gmail.com"
] | astig.mandalian2014@gmail.com |
0d159cde821bf873eb32118c556e7c536b923354 | f7ed06524bfd49b8a3840f477696acea924e9728 | /django_project/users/views.py | 90741090346cf0debd4149e0d0c6f3256e754c74 | [] | no_license | alifarukyucel/django-web-app | 7362c126c67bc8434ca4c0180cbe27bcb835a27b | 01bc26d189e21e20206f8fc0ecede13cc58b8348 | refs/heads/main | 2023-07-09T12:41:28.808039 | 2021-08-18T15:39:25 | 2021-08-18T15:39:25 | 357,924,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
... | [
"alifarukyucel@gmail.com"
] | alifarukyucel@gmail.com |
e9dfda36ce273fddb9ce89b2447f01d11b529d54 | a15046d4bfd07025ed271a22820cdc43fb624cdc | /复读机.py | 17964c542ef5d795f1f4a0211bc6fca29b788552 | [] | no_license | vashti0622/WeChat-Auto-Reply | 3d5909a7085eeb37c8f993bdce1e8399fa666676 | fbea0c40a43c361411edc882d55aa9e85958aa24 | refs/heads/master | 2020-06-02T18:57:17.940154 | 2019-06-12T00:19:12 | 2019-06-12T00:19:12 | 191,274,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import itchat,re
@itchat.msg_register(itchat.content.TEXT)
def text_reply(msg):
reply_text = msg['Text']
if msg['Text'] == '?':
reply_text = '自动回复:欢迎来到复读机模式。'
return reply_text
itchat.auto_login(hotReload=True) #不用每次都扫码
itchat.run() | [
"noreply@github.com"
] | vashti0622.noreply@github.com |
8c665b7bb67da23417c012a0d814fee1582c6ba0 | 87f1f50002ac8d3835a578d46c12640bc5bd3d75 | /6kyu/Replace Alphabet Position.py | 108d0fe4c6aac63d0b5c0887e3d1d12eb861d251 | [] | no_license | cyrustsiu/Codewars-Solution | 141088cb2ad735182e90f65b635bd2ff390d1a40 | 3cab594488735df311fceea7aad768c0b411cefb | refs/heads/master | 2022-12-24T09:54:17.379176 | 2020-10-04T13:44:34 | 2020-10-04T13:44:34 | 288,074,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | def alphabet_position(text):
replace = {'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r': 18, 's':19, 't':20, 'u':21, 'v':22, 'w':23, 'x':24, 'y':25, 'z':26}
result = []
for word in text.lower():
if word in replace... | [
"noreply@github.com"
] | cyrustsiu.noreply@github.com |
2d7d14890a3799002720b8b25e8135482c83b170 | b7888fb921abeb2ad44ce6409bf62ecef77a458e | /src/djanban/apps/members/migrations/0023_auto_20170519_1715.py | 51f41a01f80784c5540f2db54942c0121d1f421e | [
"MIT"
] | permissive | my-favorite-repositories/djanban | 303ce59f821d01f727536068b83f8e8485b7d649 | 6451688d49cf235d03c604b19a6a8480b33eed87 | refs/heads/master | 2021-03-01T14:23:19.745085 | 2018-05-15T17:12:01 | 2018-05-15T17:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-19 15:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('members', '0022_member_custom_avatar'),
]
operations = [
migrations.AlterFiel... | [
"diegojromerolopez@gmail.com"
] | diegojromerolopez@gmail.com |
3d1151563451aabd27889d52b7c622cb5e6e639c | 08e160550216d40025c37f6617b2c5b87350ee0c | /django_rest_api/django_rest_api/settings.py | 855c75182761580ddcaa1e097989c1bad717f0a9 | [] | no_license | Poornima7/Django_RESt_API | 92b7c946a8afcc7304be71f518a24a86aae2588a | 6197372a0307b23d19bc0f7f73df29c6489867ac | refs/heads/master | 2020-04-15T04:26:34.194050 | 2019-01-07T08:02:22 | 2019-01-07T08:02:22 | 164,383,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | """
Django settings for django_rest_api project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impo... | [
"poornima.slv@outlook.com"
] | poornima.slv@outlook.com |
a40adac7fa8a2c68d1dce489b4ffce81f7b70679 | f885d8c09b9069817f1a25d0a11e889dbafdc4b4 | /a1/test_res/scrap.py | 998c748949cd3306a0315d40f8d49d18de2a726e | [] | no_license | icecreambean/COMP9517 | 39dcd0578e8b17bd957bdb79e40d1644395f18e9 | 9cae8ae147c55e8f714c8af12f22f2cb6e4e54d9 | refs/heads/master | 2022-08-21T14:50:23.155144 | 2020-06-02T01:32:27 | 2020-06-02T01:32:27 | 243,438,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | py |
border = int(max(g.shape)/4)
g_new = cv2.copyMakeBorder(g, border, border, border, border, cv2.BORDER_CONSTANT)
res = cv2.matchTemplate(r,g_new,cv2.TM_CCOEFF_NORMED)
min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(res)
r_top_left = max_loc
r_bottom_right = (r_top_left[0] + r.shape[1], r_top_left[1] + r.... | [
"vict.tse.business@gmail.com"
] | vict.tse.business@gmail.com |
d5885eb6a99f09e649a1083ed122485adadb790c | 6a41917cb0b0dd77d37bb040f43f758a28c9520a | /asign/settings.py | 914cf8f678141aedc2a8ce6574d404c13144ff3e | [] | no_license | akulacharan/asign | afe53b78197b6063c224853cad2ca67d6e98c584 | c22d782d8accb8c5d5230f29939e4bdf7a5f1b61 | refs/heads/master | 2022-11-21T21:30:42.552848 | 2020-07-29T08:29:09 | 2020-07-29T08:29:09 | 282,475,318 | 0 | 0 | null | 2020-07-25T15:51:28 | 2020-07-25T15:50:34 | Python | UTF-8 | Python | false | false | 3,403 | py | """
Django settings for asign project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import django_h... | [
"akulacharanteja@gmail.com"
] | akulacharanteja@gmail.com |
c039d48f55f8ecde519357b38ca442c0c18abd2c | 0a68afb453c069bf16c6931a158d2f43a717b429 | /nbc6.py | 4406e50f30f75d140a509ec3fc278151d31f35e4 | [] | no_license | neriki/newbiecontest | 7b53e05632aa9cc8f1358d82548c4a18de992244 | d80a020a1f52c3b0ee3c81b9ea554e7e785b0d55 | refs/heads/master | 2021-01-10T07:01:28.198592 | 2015-10-19T16:22:15 | 2015-10-19T16:22:15 | 44,391,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import urllib.request
from http import cookiejar
from urllib.parse import urlencode
import datetime
import math
jar = cookiejar.CookieJar()
credentials = {'user': 'neriki', 'passwrd': 'abcd1234!', 'cookielength' : '-1'}
credenc = urlencode(credentials).encode('ascii')
opener = urllib.request.build_opener(urllib.requ... | [
"neriki@free.fr"
] | neriki@free.fr |
9080eb145a61a76607a018edafa5a61503c3baa2 | 15826956f215966a3a4a628d2ee4dd43f2bb2820 | /mywebsite/videorequest/views.py | be34303b8398af594f98ecf3a08f3126fc350f54 | [] | no_license | tusharcastic/django-deployment-example | 3be0bc41775848d8fe60111be70c6996561cf9eb | ca355986eb7e598b2059547baae983b6b40bdc7c | refs/heads/master | 2021-10-12T03:11:21.699756 | 2019-02-01T05:10:08 | 2019-02-01T05:10:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.shortcuts import render,redirect
from . models import Video
# Create your views here.
from .forms import VideoForm
def index(request):
videos=Video.objects.order_by('date_added')
context={'videos':videos}
return render(request,'videorequest/index.html',context)
def vrform(request):
if req... | [
"tush.bhoge@gmail.com"
] | tush.bhoge@gmail.com |
6716a5f542a8636259abde410ce1729c4fff1f86 | 1e019ee356416b73c4232351e250a90f2eefa8e7 | /snippets/sqlite.py | 59c6aed70a4cacf67d0494d56238764373d26f7f | [
"MIT"
] | permissive | Teamworksapp/pydbvolve | cb131a66c72f42097f604726989463c6131afbd5 | e18bb8cf98997c52de0cf30a8e106c480ba0bb57 | refs/heads/master | 2021-08-26T00:12:23.924347 | 2017-08-11T14:18:00 | 2017-08-11T14:18:00 | 87,454,422 | 5 | 2 | MIT | 2021-08-21T03:51:47 | 2017-04-06T17:03:20 | Python | UTF-8 | Python | false | false | 967 | py | import sqlite3
# Simpler is better, in this case. The main script works with dict types.
def dict_factory(cur, row):
return {col[0]: row[ix] for ix, col in enumerate(cur.description)}
# End dict_factory
# This is a subclass of sqlite3.Cursor that includes rudimentary __enter__, __exit__
# methods so it can be u... | [
"hproctor@lasllc.com"
] | hproctor@lasllc.com |
0d5894429e093898d91010ad4c8b2ec5d49d08ca | d883bda370722eb014ac4589602fbde725044777 | /Final Project/decision_tree.py | a43c342d01fccbcfb5a67e71d85a7a4cdb9c840b | [] | no_license | vvv44/AIFinalProject | 4e74307d51487369f7868a2092bb65dc11019b27 | 4d58b48747ec438782caa203ad8ac9f059462af9 | refs/heads/master | 2022-06-04T02:41:30.075382 | 2020-05-02T19:24:01 | 2020-05-02T19:24:01 | 260,759,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,382 | py | import numpy as np
import csv
import pandas as pd
class DecisionTreeNode(object):
# Constructor
def __init__(self, att, thr, left, right):
self.attribute = att
self.threshold = thr
# left and right are either binary classifications or references to
# decision tree n... | [
"noreply@github.com"
] | vvv44.noreply@github.com |
3524e927dc7c490515bcea4140b896f22ca600bf | 2376c131bf62f305ad3b67f00c602b37d1d09265 | /Fitory/FitApp/forms.py | 802f3eb0133fc6b038588c7139ed87c22c05f3d2 | [] | no_license | dvdgatik/FitoryWeb | e85f009479e2af0918ab38c72a1eb329f8c9cf1b | 1964691fca943ad404cd83781be69d4576650085 | refs/heads/master | 2023-02-05T20:21:14.420245 | 2020-12-31T11:45:59 | 2020-12-31T11:45:59 | 325,788,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from django import forms
from django.forms import ModelForm, Textarea,SelectDateWidget
from image_cropping import ImageCropWidget,ImageRatioField
from .models import Estado, Ciudad, Servicio, Actividad, Club, ServicioClub, ActividadClub, ActividadHorario, Sucursal, Foto, EvaluacionSucursal, Cliente, EvaluacionCliente, ... | [
"davgatik@gmail.com"
] | davgatik@gmail.com |
a4750e44ec2f69260818178da844f2c7d29155d3 | b6aa4252e01c86e1f5bad2cf8e867b40bd3ebde0 | /projects/migrations/0007_auto_20190210_1457.py | f2d6ab02ce1751ed84c5c9855e70895721a8a06e | [] | no_license | degerli/wagtail-portfolio-1 | 2b0a2d576d706caad035a47a465e4a5d9999f405 | 69fd69a9533743e263f9d21d9aeac099ffa77812 | refs/heads/master | 2020-04-25T00:50:24.169432 | 2019-02-19T19:44:03 | 2019-02-19T19:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 2.1.5 on 2019-02-10 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0006_auto_20190210_1454'),
]
operations = [
migrations.AlterField(
model_name='individualprojectspage',
... | [
"raf@webconexus.nl"
] | raf@webconexus.nl |
079dd4266aad26fae72f8b1508ad6b63f9b96300 | 3cd426bf2d766a19b90799bb62f93deaeaf993b4 | /tic_tac_toe_oop.py | bb70ea5b7065b4838ae47309e0de323cab60fbc4 | [] | no_license | jpiversen/tic_tac_toe | 7cd0ba9c55713fb6f7dde157cc67a87a0dca57d9 | 9f6d8b8cf3d4d23c65dcd4c7923ebe9984ac195a | refs/heads/master | 2022-12-16T18:03:39.417270 | 2020-09-16T07:13:45 | 2020-09-16T07:13:45 | 286,309,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,676 | py |
from os import system, name
import random
class board:
def __init__(self):
# Define board
self.placeholder_text = " "
self.board = []
self.reset_board()
def reset_board(self):
self.board = [self.placeholder_text for i in range(9)]
def print_board(self):
str = """
| {} | {} | {} |
--- --- --- ... | [
"jan.p.iversen@gmail.com"
] | jan.p.iversen@gmail.com |
cbe3caf0e708d976b345b5027044c01b3de3bea0 | 8a3e3c00cecf59bcae98c1648427f61b3769a03b | /Intro-Python-CS1/Sprint-Challenge--Intro-Python/src/comp/comp.py | 402a17d885e6d6319ec5d68b2b1281e8e19a18e2 | [] | no_license | nvisagan/Intro-Python-CSS1 | af478a362033e3691dc91448d5e337dcd8dccca7 | 93b033165493335f1becb8238e8aef6fce4f7f8b | refs/heads/master | 2021-05-25T21:43:08.074857 | 2020-04-07T23:04:55 | 2020-04-07T23:04:55 | 253,931,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | # The following list comprehension exercises will make use of the
# defined Human class.
class Human:
def __init__(self, name, age):
self.name = name
self.age = age
def __repr__(self):
return f"<Human: {self.name}, {self.age}>"
humans = [
Human("Alice", 29),
Human... | [
"noreply@github.com"
] | nvisagan.noreply@github.com |
254fa2b9909b4cf0ad43eb4a299b9500957c2e30 | 9011cbf7413608c32ed0bad0f5e1568b8b6b9c34 | /forum/migrations/0012_rename_usermodel_profile.py | 0dded3f54df8946b66be0686f143b99c70517417 | [] | no_license | apurbadh/Orion | e09f000c8df33b24fddd0434494a4f6af7ab0c7e | 82231197ccf0299941e3b7631d049bbfb5953a78 | refs/heads/main | 2023-09-05T12:31:04.911527 | 2021-10-16T16:11:13 | 2021-10-16T16:11:13 | 400,513,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.2.6 on 2021-08-23 00:20
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('forum', '0011_auto_20210823_0011'),
]
operations = [
... | [
"erikduke182@gmail.com"
] | erikduke182@gmail.com |
be9ce7135e19b5c6f9bee27fe3eea1c9f56a2fd0 | 7615f326b4109fe4bfc30b2aaff5784d69610f40 | /blackj4ckPY.py | b4671e0fa830625b2dd26eafbd150cbbd233d099 | [] | no_license | attila5287/blackjack_app | bc8022048edc6c247ab12a0c6808f54eed503af1 | baa2a1f73703b20de278c401aa272a31b5c79cf8 | refs/heads/master | 2023-02-08T08:36:45.149201 | 2019-10-10T01:06:23 | 2019-10-10T01:06:23 | 196,545,663 | 0 | 0 | null | 2023-02-02T06:35:23 | 2019-07-12T09:00:15 | Python | UTF-8 | Python | false | false | 6,761 | py | from Card_Deck_Hand import Card, Deck, Hand
# -------------- 1-ON-1 BLACKJACK ------------------------
class blackjack_1on1(Deck):
""" CLASS INH FROM DECK THAT DEALS CARDS AND REPORTS THE PROBLTY """
def __init__(self, player_name = 'Attila'):
self.player_name = player_name
self.cards = [Card(su... | [
"atiturkoz@hotmail.com"
] | atiturkoz@hotmail.com |
4f5015ddbd668fd1c8c83c6f8a9d803f097b4891 | 43c8d27c72571d0a45a9ed5126fcee3b89f309df | /recommender.py | 4c9d68dda8b238b056a00ed67105e9e21fa19f13 | [
"Apache-2.0"
] | permissive | weaponsjtu/RecommederSystem | 592463a1e57eec5dcb80aca3de9905f08774dc0f | 0d148117da5299f76acaae93ff096ac98ba106e6 | refs/heads/master | 2021-01-25T06:40:04.839769 | 2015-01-08T09:09:54 | 2015-01-08T09:09:54 | 27,113,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,506 | py | import math
import time
class UserBased():
def __init__(self, matrix, user_list, item_list, sim_mat = None, related_users = None, user_item_mat = None):
# train matirx
self.matrix = matrix
self.user_list = user_list
self.item_list = item_list
# find the TOP-3 highest similarity users for e... | [
"javawebzwp@gmail.com"
] | javawebzwp@gmail.com |
1cb86d8bcc4f103101dcac632edba87aa1a4f73f | 35f91893173471ee30bf2438a60a865307b3b08d | /gdp/urls.py | 106776407bebcd3893f12bd26e9a7eb9a45dd2bc | [] | no_license | csetarun/django-basic | cfb9bd3178db3832162c77dfd19ded57a9e48a8e | 4ff5ae11149f758f70f6ac28937d5de4f912cca8 | refs/heads/master | 2020-03-23T10:00:30.558304 | 2018-07-18T10:43:34 | 2018-07-18T10:43:34 | 141,420,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from .views import ListCountries
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^$', ListCountries.as_view()),
] | [
"noreply@github.com"
] | csetarun.noreply@github.com |
0b39fa028df21f2382d22e21b76c38dae502a0a8 | 19b7c6149efe5ad3da76479da7131c2d66293194 | /pcap包dns解析.py | ad3db6eea779ebedb4ea1a5658a573bafb47969a | [] | no_license | jitianze/yanzixu | 7aab20183b394cd08397ae67015bd60249098cbc | df961cb6ee41af5e335974d49dae458a40e3f1f8 | refs/heads/master | 2021-01-12T06:50:58.711991 | 2017-09-30T01:06:33 | 2017-09-30T01:06:33 | 76,844,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
import struct
import dpkt
import sys
import socket
import binascii
import os
#mulu =raw_input("Please enter the directory you want to parse:")
DNS_A = 1 # RR types
DNS_IN = 1 # RR classes
def addr2str(addrobj):
if len(addrobj) != 4:
return "addr error!"
else:
... | [
"978941570@qq.com"
] | 978941570@qq.com |
112ee0674724c5a9a38297f73f438a2f4fdcf921 | f9ef62886912d547e05a25492d1c826d7c5b7ce4 | /main.py | 38159c098f450b62bae3af5c8987475757688976 | [] | no_license | DariaKutkanych/telebot1601 | f7fa3f7f2aa533eca969691afc2731edc562a7c1 | 525ff3787190d10d6c0c07c967ee3a1efb9a6af1 | refs/heads/master | 2020-12-14T10:29:03.986242 | 2020-01-18T10:38:21 | 2020-01-18T10:38:21 | 234,712,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | from telebot import TeleBot
import requests
from telebot import types
import re
from flask import Flask, request
import git
app = Flask(__name__)
@app.route('/update_server', methods=['POST'])
def webhook():
if request.method == 'POST':
repo = git.Repo('https://github.com/DariaKutkanych/telebot1601.git')... | [
"d.goubenko@gmail.com"
] | d.goubenko@gmail.com |
ef0e6cf6ca9250cefe2fa77139f106ff0ef48947 | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/network/eric_eccli/test_eccli_command.py | 69d1f7282b1984162e12aa895f75537d400e9f7d | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,111 | py | # (c) 2019 Ericsson.
#
# This file is part of Ansible
#
# Ansible 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 Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distri... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
f9b94fd16549e4335a99f5b29e47f86f3db2b938 | fba385a1beed395472bd05d99b8e994c3b88b450 | /Get_Save_Airfoils_Selig.py | fe7ebfa67e5ebd2559dbd3a1847ea7f74b747ebe | [
"MIT"
] | permissive | irfan-gh/Panel_Methods | d9730871de57b4cc57ab5eac07683916e54a1900 | a7d05d865e90bff36af06451b911bd4fa50df049 | refs/heads/master | 2023-08-08T21:56:17.675805 | 2020-09-27T15:05:50 | 2020-09-27T15:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | # GET AIRFOIL .DAT FILES FROM UIUC AIRFOIL SITE
# Written by: JoshTheEngineer
# Permission: Dr. Michael Selig (01/16/19)
# Started : 01/14/19
# Updated : 01/14/19 - Works as expected
#
# UIUC Airfoil Database: https://m-selig.ae.illinois.edu/ads/coord_database.html
# Importing
from bs4 import BeautifulSou... | [
"noreply@github.com"
] | irfan-gh.noreply@github.com |
ecdffd9ed404030f3f8c1e61cc3ed95a75635d09 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/kuv_08497+3856/sdB_KUV_08497+3856_coadd.py | 2a1ac0d64e1ee8a22903d7ed6955d68bab2928e7 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[133.22575,38.747683], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_KUV_08497+3856/sdB_KUV_08497+3856_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
ab810a2b2cc6921f5853a2df75b92560f5dd8270 | cc241a46fc269fe69294575b9ce9cd48d3485955 | /core/validator.py | 10d526bfbee5accc8a69a149140fda8a701fc75b | [] | no_license | xiami303/xiami | 322db504e1b7ba08023ee7dbfe70bb830b0a7f77 | c56ae851f6d5555a9f61b142ca5f12a267ff9303 | refs/heads/master | 2021-03-12T23:34:11.153647 | 2015-03-12T13:15:51 | 2015-03-12T13:15:51 | 20,083,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | #this is a validator of html
| [
"wuhongxia303@163.com"
] | wuhongxia303@163.com |
24fe36866435adf25568f086ec78f306946c56a1 | e34392bca8ad5d12a32fe9dc58ddcdf430283da4 | /sequential.py | a08d589e80e4ecc4a75ab94891902365c96c7051 | [] | no_license | sharnam19/Document-Classification-Using-RNN | cafda6cde3b2bc897a854e00e53dd074d0c24d92 | 4092363b5c827788dd77d05cea03d8b7fb7f1f1d | refs/heads/master | 2021-05-07T16:38:03.125478 | 2020-09-12T09:54:21 | 2020-09-12T09:54:21 | 108,593,763 | 1 | 0 | null | 2020-09-12T10:34:23 | 2017-10-27T20:42:28 | Python | UTF-8 | Python | false | false | 1,578 | py | import numpy as np
def rnn_step(x, h_prev, Wx, Wh, b):
"""
Input:
x : Input Sequence of shape (N,D)
h_prev : Previous Hidden State (N,H)
Wx : Input to Hidden Weight of shape (D,H)
Wh : Hidden to Hidden Weight of shape (H,H)
b : Bias of shape (H,)
... | [
"sharnam19.nc@gmail.com"
] | sharnam19.nc@gmail.com |
4d0157e39ea590c852ee5ca71d560e90eebf2017 | 18702622356806fc5e8184983712799c6b844e0f | /python_basic/PycharmProjects/learnpython/functions.py | 80ba82402870387d662ba215e58ae5e4f22f008f | [] | no_license | NumanIbnMazid/Python | 5db305554783f0b9bd1a741911b0dddabb9c96f5 | dea5e36853e6c833df49f0d5abc69b33e366151d | refs/heads/master | 2020-06-16T19:34:07.417135 | 2019-07-07T17:40:59 | 2019-07-07T17:40:59 | 195,680,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #must be properly indented. Indention Rules
def say_hi(name, age):
print("Hellow " + name, ", you are " + str(age))
print("Top", "35")
#calling function
say_hi("Numan", 22)
say_hi("Mike", 33)
print("Bottom", 36) | [
"numanibnmazid@gmail.com"
] | numanibnmazid@gmail.com |
2438900e536c9969f5fc625bbbc4d068063ee041 | 20d8dde9e3a64e65c1d2ff5905d83403415396ec | /modules/music_player.py | 22fd1021c2228cfa16adffb8bc31a4a7f4f2a10b | [] | no_license | carrtesy/embedded_system_project | 7ad7bb92b2f66b40ca39127c2e9f917b5ad3a962 | baedcdb2594d37fd81a2ca32f5103caff0b44a73 | refs/heads/master | 2023-01-31T00:38:18.854120 | 2020-12-10T08:00:48 | 2020-12-10T08:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import subprocess
import signal
import threading
import time, os
class MusicPlayer:
def __init__(self):
subprocess.call('pwd', shell=True)
subprocess.call('ls ./assets', shell=True)
self.process = None
def play(self, song):
if self.process is not None:
os.killpg(os.... | [
"dongminkim0220@gmail.com"
] | dongminkim0220@gmail.com |
b817f5069575a404f5eb5ca145bbed754f5c8792 | 40799b8e2cec6a481a2923183c79e35c7f654676 | /int_test.py | bde76eb3dd27975c152b2e5b15361bc0a18416ab | [] | no_license | chengxinlun/se-finder | af5c145e6037a9687717a759d5463caae155b1a4 | ffcd4f0450cbd7f5508271d0d001f892aab5c396 | refs/heads/master | 2021-01-10T13:37:18.213570 | 2016-02-22T12:53:24 | 2016-02-22T12:53:24 | 47,450,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import numpy as np
from fe_temp_int import FeII_template_int
from scipy.integrate import quad
import matplotlib.pyplot as plt
int_func_class = FeII_template_int(0.0, 2000.0, 1.0, 0.0, 2000.0, 1.0)
x = np.linspace(4000.0, 5500.0, 100000)
plt.plot(x, list(map(int_func_class.func, x)))
plt.show()
plt.close()
| [
"chengxinlun@gmail.com"
] | chengxinlun@gmail.com |
3a1b5cd260232af67ce4f66ab9915fe16b5c4d6e | a46b981266a27217e8bb2f9345a8f13c60062986 | /ex14.py | eb0c8d973e93668012eaff9f996b02ee96bb3b8e | [] | no_license | huxx-j/python-ex | 788d674ff2d0e8494a222de77df187de10dd2b04 | 7f9f7fd30c8a0878cb9b8ca6ac3844529d34718a | refs/heads/master | 2020-03-18T18:26:54.866320 | 2018-05-28T00:58:41 | 2018-05-28T00:58:41 | 135,093,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | s = '/usr/local/bin/python.exe'
s1 = s[1:].split("/",4)
s2 = ",".join(s1)
print(s2)
s3 = s.rsplit("/",1)
s4 = ",".join(s3)
print(s4) | [
"perfekta213@gmail.com"
] | perfekta213@gmail.com |
513b637f309d707ae9864a831908331cb3bf9d69 | d0db054bd2c437b741af9b8dc9fb05176a00912d | /manage.py | 87402b0f5cbf25485cbddb6ce75f2e770be0583e | [] | no_license | daubers/HackDoorMenu | 72ae16220c53f2fad9f25dccc8b115d888380eb5 | 6bf8732a082470b456bb29e93b1b447bed7509d5 | refs/heads/master | 2020-06-05T09:18:45.643756 | 2014-06-10T20:28:13 | 2014-06-10T20:28:13 | 20,156,300 | 1 | 0 | null | 2014-06-10T17:43:36 | 2014-05-25T14:21:58 | Python | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HackDoorMenu.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"matt@daubers.co.uk"
] | matt@daubers.co.uk |
be1b47f8e5db8863598580cf9d003925704e3d68 | e9fd34f8d78ad69c3586557fd3d0ff2d66b23f02 | /finishRoboFogExport.py | b09fc8689a75ba067ae33abe7b8dc5e2c26d6565 | [] | no_license | LettError/robofogExport | 878021681d7df090138563086318ca186bba2b26 | 1406dfbfb0aee0d3716da3d1fcdede849c585ff7 | refs/heads/master | 2021-01-01T03:44:46.116479 | 2016-04-17T17:05:21 | 2016-04-17T17:05:21 | 56,446,460 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 664 | py |
# finish the export from RoboFog.
"""
put the background glyphs in the right place
"""
def cleanupBackground(f):
moved = []
for g in f:
if g.name[0] == "#":
# do we have a foreground companion?
other = g.name.replace("#", "")
if other not in f:
... | [
"erik@letterror.com"
] | erik@letterror.com |
3001443877633db13aaffaceac1c2e45cbcdaa2c | 89c0ffc249cb9df44040841f5b639c4487aa0a74 | /web/talks/management/commands/update_all_talks.py | 4b03dfab115262bc02db6bcbe216ddd21fdbfdf0 | [
"Apache-2.0"
] | permissive | vtalks/vtalks.net | 161bb0b46199a4b7e81997560198500c940a0be5 | 80fb19ff9684e0854c6abe5f0eef73e80ec326a6 | refs/heads/master | 2018-09-01T13:18:08.236948 | 2018-07-25T02:34:10 | 2018-07-25T02:34:10 | 112,273,942 | 2 | 0 | Apache-2.0 | 2018-07-19T00:51:10 | 2017-11-28T02:18:29 | Python | UTF-8 | Python | false | false | 785 | py | from datetime import date
from datetime import datetime
from datetime import timedelta
from django.utils import timezone
from django.core import management
from django.core.management.base import BaseCommand
from talks.models import Talk
class Command(BaseCommand):
help = 'Update all talks on the database.'
... | [
"repejota@gmail.com"
] | repejota@gmail.com |
193330416b0d6f460cc33d93bbe928afd007ae08 | d2509e6d77789993530830e12b15d709831f6c06 | /array1.py | 796113e1ca7f141621ed98718b406133236bdfb0 | [] | no_license | jawnhoang/LessonsWithDaHomies | 08725537ff03600aabda9cee230d9b8eb0e88cd5 | 25ea7eaeb3e12ccb4bda56af0f57e5e516fd6e10 | refs/heads/main | 2023-06-16T12:34:53.181614 | 2021-07-13T19:40:12 | 2021-07-13T19:40:12 | 383,579,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # # fill an array with 100 integers, of multiples of 3s
# #declare array
# exArr =[]
# for i in range(100): #this should go from 0-99
# if i % 3 == 0:
# exArr.append(i)
#
# print(exArr)
#
# #remove all elements that end with a 5
# for i in exArr:
# if i % 5 == 0:
# exArr.remove(i)
#... | [
"noreply@github.com"
] | jawnhoang.noreply@github.com |
f3b39a7c3cc0ea7050dcfead11919b8c2437c76b | 2499d071c0c354d8d7ec800244ac964824756e4e | /ipcamera5.py | c317dc37883c6bb1b61f18185de310981cd19cec | [] | no_license | harshvardhan33/ImageProcessing | 959d88aca920f817f814aa493e1e436d01af29e5 | 6d137d9873731cf8f03d0d758308c145a15ff7d7 | refs/heads/master | 2023-06-10T22:36:30.324033 | 2021-06-26T06:34:58 | 2021-06-26T06:34:58 | 260,647,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 12:37:22 2020
@author: harshvardhan
"""
import cv2
video = cv2.VideoCapture(0)
address = "http://192.168.29.112:8080/video"
video.open(address)
if (video.isOpened() == False):
print("Error reading video file")
frame_width = int(video.get(3))
... | [
"noreply@github.com"
] | harshvardhan33.noreply@github.com |
d7604731d4f62ad742ee171ac900078bcbe1aeb9 | 7933620fcfc544c44b7b0d9d0c0c980465b86a70 | /participantes/urls.py | 32cd775bee002325151e6b86c642822389c979a8 | [] | no_license | pachecomuoz-pedro/Hackaton_2019 | c77b721f537035047fbbb2dbae76a08eeadd76ca | 0dd29167a9b390cf577caf7aad65023834a5f07e | refs/heads/master | 2020-04-09T21:37:30.372003 | 2018-12-06T02:50:01 | 2018-12-06T02:50:01 | 160,607,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django.urls import path
from participantes.views import entrar,lista_participantes,registro_participante,editar_participante,eliminar_participante,mostrar_mapa,carga_municipio
urlpatterns = [
path('', entrar, name='participantes'),
path('lista', lista_participantes, name='lista_participantes'),
... | [
"pachecomuoz_pedro@yahoo.com"
] | pachecomuoz_pedro@yahoo.com |
3d842aa4e62c82f865264b01e0f6d25b58ab2546 | d4cdc6c9e2580b2011d63f6d62f70ab9e13cd317 | /sld-dashboard/app/helpers/converter.py | a2bdb7cace1f5fe277b4e417f8993dae10948627 | [
"MIT"
] | permissive | timezombi/Stack-Lifecycle-Deployment | 75cc92bc0267953039f0d66c7c219a8d444817c8 | d84241099fb44762476b4201a2fc195e76975e26 | refs/heads/master | 2023-07-13T11:11:35.001371 | 2021-08-20T13:35:14 | 2021-08-20T13:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import ast
def convert_to_dict(data):
result = []
for key, val in data.items():
try:
check = ast.literal_eval(val)
except:
continue
if isinstance(check, dict):
data[key] = check
result.append(data)
elif isinstance(check, list):
... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
21a8b679743967c19a4d6d958380256532a3929d | fa8036fd416aecab3f1ca617acf0989f032f02ce | /abc162/C.py | 568b921d6090c303822258c9f02c9ac29a107550 | [] | no_license | MitsuruFujiwara/Atcoder | e2e2e82014e33e3422ea40eca812c6fdd8bcaaaa | bc73c4cd35a80c106d0e9b14cee34a064d89d343 | refs/heads/master | 2022-12-14T23:50:56.843336 | 2020-09-17T22:25:57 | 2020-09-17T22:25:57 | 252,980,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py |
from math import gcd
K = int(input())
ans = 0
for a in range(1,K+1):
for b in range(1,K+1):
for c in range(1,K+1):
ans += gcd(gcd(a,b),c)
print(ans)
| [
"fujiwara52jp@gmail.com"
] | fujiwara52jp@gmail.com |
3856aa50b182d6597a5a7fb4aeed9d94f6ab3a0f | a6add24cdf8a3428d69d647feae92175cf66b40c | /test/test_puts_demo.py | aaca9f2f37e99e3b813fd0c07963e932cdc2415c | [
"BSD-3-Clause",
"NCSA"
] | permissive | jriehl/llvmpy | 06cb662fb4361d7dc6fae9e067113b680d5dd596 | d2364404c7d8b6d376b4185ddd982d0d9748038d | refs/heads/master | 2021-01-18T17:59:12.119304 | 2012-11-15T17:53:24 | 2012-11-15T17:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | #! /usr/bin/env python
# ______________________________________________________________________
'''The goal of this test is to build and demonstrate the following
LLVM assembly code using the API:
@msg = internal constant [15 x i8] c"Hello, world.\\0A\\00"
declare i32 @puts(i8 *)
define i32 @not_really_main() {
%c... | [
"jriehl@spaceship.com"
] | jriehl@spaceship.com |
4632a80711b229a9ae8b9947f18494f68b594ed6 | 892785b084dde0a996e3d31246e1336335e41815 | /deployment/pkgs/bin/sample | 1d7489dc5a96c33c2339b0ad17ec2536791dd811 | [] | no_license | RyanBacastow/splitter | 5598090be1065687f54ee8a4d80836e533612e11 | 013869a40286f99facb09461fa5c8d3449c5c8b6 | refs/heads/master | 2022-12-11T08:43:02.046776 | 2020-08-31T14:40:25 | 2020-08-31T14:40:25 | 289,096,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | #!/var/lang/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from sample import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ryan.bacastow@tmsw.com"
] | ryan.bacastow@tmsw.com | |
d4803c4b5e71f53cb79dc8d47e3a297374733c42 | 5cfe09ff0079e8e39fc3bcfb7a4a7ba0803150de | /Python/grafica.py | a4b1acd8fbb5c04d6a81a25cea9033ecaeab55d6 | [] | no_license | MauricioD13/Proyecto1_Codigos | bf89b27cab3c91de3271382c896c211c825ec7d8 | 378076bcf9bdc36348cee9faa683be00048547ba | refs/heads/master | 2023-01-19T10:07:06.039576 | 2020-11-24T16:22:31 | 2020-11-24T16:22:31 | 298,728,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,683 | py | import matplotlib.pyplot as plt
import numpy as np
import sys
import math
import statistics
import mplcursors
def guardar(archivo,time,voltage0,voltage1,voltage2):
labels=[]
labels=archivo.readline().split("\t")
#labels[1]=labels[1].replace("\n","")
i=0
for line in archivo:
... | [
"mdavid_cuello@javeriana.edu.co"
] | mdavid_cuello@javeriana.edu.co |
d067020ff739438aeb20ffea7e8a9e17bfabef8d | 4f96e9ebc0ee5bd99b1e01cedcb6ce3eb5a83874 | /Gzuis.py | 6e8760977958ff91a26e992084e37d20ef192e95 | [] | no_license | hbisneto/Gzuis | e764c4057ce45406a552ef1632385d1ebe8e56c6 | a12d9d525300392b445eb77109f5bc2e1ec12d49 | refs/heads/main | 2023-03-03T00:52:12.621609 | 2021-02-08T21:03:14 | 2021-02-08T21:03:14 | 337,183,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # Bibliotecas e outras dependencias
import Palavra
import LoveCard
from datetime import date
AnoAtual = date.today().year
SoftwareName = "GZUIS"
Version = "1.0"
CopyrightName = "Heitor Bisneto."
Space = " "
print("="*80)
print(f'[{SoftwareName}] - Em Execução...')
print("="*80)
print("Nome:", Softwa... | [
"noreply@github.com"
] | hbisneto.noreply@github.com |
0dd18912dbc944902d7ec38e966c65cba6b73979 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v2/model/batch_confirm_configs_new_request.py | 371de812400930aa867c1cfd0c328c4bb1858b17 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,737 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchConfirmConfigsNewRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
23d043ad9da2ca665ea22dd1ccb6f5fdcd1127e0 | 5b711af0e64686c218bf25fa776d6fb461a70235 | /00-06/00-06_main.py | 561b11af37988dd96939cf122089f9d87558e4e7 | [] | no_license | slowhand123/region_OpenTK | 2f835205e4c935a1e5a656aab890ac87fdaa2ede | 53db37a12c7036ee9672617832a210de5586d574 | refs/heads/master | 2021-05-28T20:05:26.855525 | 2015-03-30T12:03:08 | 2015-03-30T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | #
# Reference Path : OpenTK
#
import clr
clr.AddReference("OpenTK")
from System import *
from OpenTK import *
from OpenTK.Graphics import *
from OpenTK.Graphics.OpenGL import *
from OpenTK.Input import *
class Game(GameWindow):
#800x600のウィンドウを作る。タイトルは「0-6:with IronPython」
def __init__(self):
super(Game, self)._... | [
"occar@hotmail.co.jp"
] | occar@hotmail.co.jp |
281fde97849774e3210a17505fd4660c09c7f133 | 93ba28a7808ed5a406753748fedbdbaea5f3c8b2 | /drawVarsData_KS_CheckFlat_sync.py | d4ec1d1e613ae79f95cf4ec181d5c49e8173d5cf | [] | no_license | zaixingmao/samples-plots | 7a55005abab1e7644296d1eb2e76f603d160a37b | bb2371c7f664a84c454189ec648bb55630cb7565 | refs/heads/master | 2020-05-21T23:27:34.390427 | 2017-07-14T14:59:52 | 2017-07-14T14:59:52 | 24,139,867 | 0 | 0 | null | 2015-10-23T16:00:22 | 2014-09-17T10:17:08 | Python | UTF-8 | Python | false | false | 24,839 | py | #!/usr/bin/env python
import ROOT as r
import tool
from operator import itemgetter
import os
from cfg import enVars
import varsList
import optparse
import math
from array import array
import numpy
import random
from cfg import draw_sync as draw_cfg
def opts():
parser = optparse.OptionParser()
parser.add_optio... | [
"zaixing.mao@cern.ch"
] | zaixing.mao@cern.ch |
b3c2d2be4040aef38a58cee25d669a3bf9fde47c | 40f9a3c7a1d90f9ff6ce230ff1bc9ffba2689c92 | /setup.py | 9049b95342383d1c4dc0933b16a039d4a6dd2bcb | [] | no_license | daemianmack/python-markdown-video | f79c52fb85203b242f846fe6614901597cd4d8db | 551d5f27402b073154b99c1aa9ec2e8aeaeff884 | refs/heads/master | 2021-01-18T14:11:44.620641 | 2015-11-02T13:23:31 | 2015-11-02T13:23:31 | 939,130 | 1 | 1 | null | 2015-11-02T13:23:31 | 2010-09-25T20:33:04 | Python | UTF-8 | Python | false | false | 361 | py | # -*- coding: utf-8 -*-
from distutils.core import setup
from mdx_video import version
setup(
name='mdx_video',
version=version,
description="Markdown 2.0 extension for easy video embedding",
author="Tyler Lesmann",
author_email="redhatcat@gmail.com",
url="http://code.tylerlesmann.com/mdx_video2... | [
"maturburu@gmail.com"
] | maturburu@gmail.com |
8ec7942f489530fd78fc17adda10403d07703211 | 8fa7967bec0bf9aefd2d170113e323bffd61a0fa | /shop/migrations/0005_product_discounted_price.py | 27bbbbc489c4d13faa511e2c2877df5e0ce8a2dd | [
"MIT"
] | permissive | RitvikDayal/The-Stone-Shop | 327395a2ddba86cd60c9483ffd1936b4e6aa197c | fed85d5ebb993fb1ce235f5e8a8ebc06a76fb956 | refs/heads/master | 2022-12-06T09:05:55.129652 | 2020-08-27T07:24:01 | 2020-08-27T07:24:01 | 290,305,600 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 3.0.8 on 2020-07-28 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0004_product_product_image'),
]
operations = [
migrations.AddField(
model_name='product',
name='discounted_p... | [
"ritvikr1605@gmail.com"
] | ritvikr1605@gmail.com |
12ffbea99224b0bf7e1abef29cd18bad1ccd3b21 | 6d44c144381f2c231f9f999aeefbea61bbeee4dc | /ShadingRatioModeling/ShadeModel.py | b1e379844d7e14eec3e2a432977e5dc03917d6b0 | [] | no_license | daigo0927/pyworks | 8d93327e2c8da45380d5acf8497cddfcb94814fe | 97c3af7ebc31c4857492e6b06c141ecaa7e6fa27 | refs/heads/master | 2021-05-01T11:50:22.796770 | 2017-05-13T17:20:38 | 2017-05-13T17:20:38 | 72,403,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,788 | py | import sys, os
sys.path.append(os.pardir)
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from common.gradient import numerical_gradient
from PIL import Image
from scipy.stats import multivariate_normal
from mpl_toolkits.mplot3d.axes3d import Axes3D
from misc import *
import pdb # pdb.set_trace... | [
"tappy.hello-planet@ezweb.ne.jp"
] | tappy.hello-planet@ezweb.ne.jp |
771d8fdd6297663bfb24be64ff621e13d7eb2298 | a86d1744f3b77d4dbdfc01949d24f707205dfba1 | /Euler19.py | d60650fe8fe9e4a3bb9ffe6806889183d67823a1 | [] | no_license | ThomasR75/python_work | 6da1737d5d54db654f3b022c3ea43659f90ec87d | 0ae9d93dc2a7934b93062433e3ce136e8c8fdcea | refs/heads/master | 2023-09-02T01:44:27.585714 | 2023-08-28T12:06:44 | 2023-08-28T12:06:44 | 214,607,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #Euler 19
import datetime
year = 1901
month = 1
day = 1
counter = 0
while year < 2001:
while month < 13:
date = datetime.datetime(year, month, day)
x = datetime.datetime.weekday(date)
if x == 6:
counter = counter + 1
month = month + 1
year = year + 1
month = 1
p... | [
"ThomasR75@gmail.com"
] | ThomasR75@gmail.com |
d7f644a7dba5f32a8525416d4e6ae82d13e7e038 | c7654051c33c72cf2da830a522495bf0b6ba6d2b | /get_article_info.py | 3695824556aec90858639ebda8dd066d18ee9c81 | [] | no_license | SamuelYJKim/checkbait | 74044ea29b24bb107e183eb2d7235c76154886e5 | 05db8968535e7342ae1e6190d3492b08b79a7645 | refs/heads/main | 2022-12-30T18:56:57.819089 | 2020-10-19T05:39:20 | 2020-10-19T05:39:20 | 305,045,341 | 1 | 0 | null | 2020-10-18T07:20:28 | 2020-10-18T07:20:28 | null | UTF-8 | Python | false | false | 717 | py | # Retrieve news article url and returns info about article.
# Title, Summary, Keywords
from newsfetch.news import newspaper
from summa import summarizer
#article = "https://www.cnn.com/2020/10/17/health/us-coronavirus-saturday/index.html"
# Returns title of article with URL
def get_title(url):
return newspaper(u... | [
"atalefard@gmail.com"
] | atalefard@gmail.com |
7e2e5b6da245f3631bc35adfab5d6b5c034f2293 | 4fa68c72849d96cc2e8c04649f18573b605e6e8c | /prymer/converter.py | 43c186561ba5ba768413327283209efa765ab63c | [] | no_license | jrjhealey/prymer | 3bb1d6cd83272dcdaff810dace3fd68bfa7a6576 | c82068cc5b560d602f4eb99af42dacd904ecc4be | refs/heads/master | 2020-04-08T00:15:11.201293 | 2019-02-27T14:47:36 | 2019-02-27T14:47:36 | 158,843,944 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | # A converter function to allow multiple input sequence types
# Big thanks to Peter van Heusden for refactoring the genbank code to yeild generators!
import os
from Bio import SeqIO
from Bio.SeqRecord import SeqRecord
class InputFormatException(Exception):
"""The exception to return when an input format cannot be ... | [
"jrj.healey@gmail.com"
] | jrj.healey@gmail.com |
0c13a0e21cc134454428127ba79f39c2fe89e3f7 | 84f08baaab25012fe46d16a6b7c3180fb4bb1097 | /shop/views.py | bd5ab57a66a1d8ffc807f879f1db859bde2457ac | [] | no_license | caravan4eg/myshop | 24fdccd4fd78720a0fbafa1565668f5229044d10 | c00c12ebf09b84a7713ecf06ba5c128297b4b069 | refs/heads/master | 2022-10-19T20:16:54.372608 | 2020-06-11T16:26:50 | 2020-06-11T16:26:50 | 268,129,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | from django.shortcuts import render, get_object_or_404
from .models import Category, Product
from cart.forms import CartAddProductForm
def product_list(request, category_slug=None):
category = None
categories = Category.objects.all()
products = Product.objects.filter(available=True)
if category_slug:... | [
"alex.apanasik@gmail.com"
] | alex.apanasik@gmail.com |
e25c7e7229cb9c605258c662fe0855bcd3294a98 | c655f659c7dcd2657aeeef0177731f41790ad780 | /retrain.py | a8d9ccda035d55a7945802e155af48459015f2b1 | [] | no_license | AbdesslemOuerghemmi/Mvision | 693b33923c8239c9e301db3f7f3af2d376ce728c | 41529923b39a6db8230f77957be8da68b1412350 | refs/heads/main | 2023-01-19T03:05:01.226348 | 2020-11-20T11:54:00 | 2020-11-20T11:54:00 | 314,537,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,866 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"noreply@github.com"
] | AbdesslemOuerghemmi.noreply@github.com |
01fcff1996438106ed4f432447a0a2790c2a95ff | e702dc1b5f37c72c49b550f9ea48c369d432fd12 | /collection相关用法/defaultdict.py | dd914b40d9b06e610ef179bc5477fbd1fb975019 | [] | no_license | HIT-jixiyang/offer | bf0fee0a410c8b55ce66da2cc0e186ad04ccdf1d | 486069be6f6c554f2853e1d71979a6747ca0a985 | refs/heads/master | 2022-12-15T09:16:48.055439 | 2020-09-20T07:47:11 | 2020-09-20T07:47:11 | 297,027,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from collections import defaultdict
dict1 = defaultdict(int)
dict2 = defaultdict(set)
dict3 = defaultdict(str)
dict4 = defaultdict(list)
dict1[2] ='two'
print(dict1[1])
print(dict2[1])
print(dict3[1])
print(dict4[1])
dict1[0]=1
print(dict1[3])
print(dict1.items())
print(dict1.popitem()) | [
"jixiyang_hit@163.com"
] | jixiyang_hit@163.com |
03a2ffcfc9ab66c8eb58b34e9a16f24bc0741915 | 9f8d4011beca8b4e1a1b73af40ef4eb96ec2cbc2 | /build/lib.linux-x86_64-2.7/ims/migrations/0005_auto_20150913_0927.py | dc468a7024661dd32721bdae38577ad693072d6a | [
"BSD-3-Clause"
] | permissive | grovesr/django-ims | 5650e38ae3ac9c8109fa370117b7b805a958123c | 2e3046c7dac45831879ff578675f6c5234226f95 | refs/heads/master | 2022-12-05T00:14:46.068546 | 2019-09-12T15:10:46 | 2019-09-12T15:10:46 | 39,070,579 | 0 | 0 | BSD-3-Clause | 2022-11-22T00:45:50 | 2015-07-14T11:19:28 | Python | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ims', '0004_auto_20150912_0647'),
]
operations = [
migrations.CreateModel(
name='ProductCategory',
f... | [
"robgroves0.gmailcom"
] | robgroves0.gmailcom |
f668a22354ea64ce662c8495e2344dc4f2584c25 | 75e358b563b17ded3c1396055937adc3caaa7407 | /django_jsonfield_backport/apps.py | 2e80922e7412ca656730b8b75564b651801472d7 | [] | no_license | bflower9/heliohostPack3.7 | 86a923ba13ab3d645fec5cb041d96bce913aa610 | 2b0a2ddde96d50cf93751256c79d6a005403095e | refs/heads/main | 2023-02-19T01:30:15.020439 | 2021-01-24T00:23:43 | 2021-01-24T00:23:43 | 330,469,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import django
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
from django_jsonfield_backport import features, models
class JSONFieldConfig(AppConfig):
name = "django_jsonfield_backport"
verbose_name = _("JSONField backport from Django 3.1")
def ready(self):
... | [
"mahmudula2000@gmail.com"
] | mahmudula2000@gmail.com |
2456ff4041186f6715f8539ddd562a3fde99db39 | 3ec711a6c756ef79e567c39031d95fb5d6a4653e | /shapes.py | 4c32491a2ddd581cbd63a6b7c38242428e0f4b47 | [] | no_license | jamcoy/Game_of_Life | 37274fd4ee668baa54cababa4ef53cdb7a7f363e | 236ed4d70f851c1afc8e3dfaef0a073edafa867a | refs/heads/master | 2021-01-12T15:30:54.522198 | 2016-10-26T07:03:16 | 2016-10-26T07:03:16 | 71,797,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | boat = """00000
01100
01010
00100
00000"""
beacon = """000000
011000
011000
000110
000110
000000"""
blinker = """00000
00000
01110
00000
00000"""
glider = """000000
010100
001100
001000
000000""" | [
"james@coynemail.net"
] | james@coynemail.net |
6a5bc1b04d063fb91936896dda1245ccf57096ba | 500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6 | /book_exercise/crash/Chapter 11: Testing Codes/test_cities.py | 8f25580e00267b30f7fb53ed979e1e4b9b772c82 | [] | no_license | carloslvm/learning-python | b3796a0a5b751baae8c551a9f6fe262f98980691 | 07f885454cf21b7d215a58da7fcb907715e546bd | refs/heads/master | 2022-07-27T21:39:11.937801 | 2022-07-09T17:47:56 | 2022-07-09T17:47:56 | 163,447,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #!/usr/bin/python3
import unittest
from city_functions import city_country
class cityTestCase(unittest.TestCase):
def test_cities(self):
_location_ = city_country('santiago','chile')
self.assertEqual(_location_, 'Santiago, Chile')
def test_population(self):
location_population = city_... | [
"cvaldez553@gmail.com"
] | cvaldez553@gmail.com |
d795cd341cfb9ade40d9854b34b82278ffc091d3 | 8f24e443e42315a81028b648e753c50967c51c78 | /rllib/utils/gym.py | 7a763400c9de97d74cf42e48451c0195c36fb597 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 2,754 | py | import gymnasium as gym
from typing import Optional
from ray.util.annotations import DeveloperAPI
@DeveloperAPI
def check_old_gym_env(
env: Optional[gym.Env] = None, *, step_results=None, reset_results=None
):
# Check `reset()` results.
if reset_results is not None:
if (
# Result is N... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
16ba6ba79522db1c88ad4d2db458fc5da6f3144b | 05beed78607892699db199dc28d4e0006df219d5 | /ssd_pytorch/train.py | fdcc71e5e4e0ad9bdcb90b9d568189c54e85dc89 | [
"MIT"
] | permissive | lugf027/MineSaver | 3430d8968d1f6ee9c94dc8a096228df4a96745e7 | 564f4137fc462f41d95b8588750c10daed869322 | refs/heads/master | 2022-11-27T23:09:33.357302 | 2020-08-06T23:30:14 | 2020-08-06T23:30:14 | 285,674,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,708 | py | from data import *
from utils.augmentations import SSDAugmentation
from layers.modules import MultiBoxLoss
from ssd import build_ssd
import os
import sys
import time
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
import torch.nn.in... | [
"161230578@qq.com"
] | 161230578@qq.com |
cb98d277a37629212ee122fcf3ef6d0dd7231947 | 53896f6339d20b806424bfa1a51f6fc518287cfc | /app/__init__.py | 088271f233d139d506f0be527e1bcaa541864b60 | [] | no_license | Jayin/python-microblog | 82dcf91dfc253434acf0dafa74724f3b2078bd20 | 3bd09ff79d2fbf8b4a864769ae5050c391fc9739 | refs/heads/master | 2020-12-24T14:09:27.391971 | 2014-04-09T13:36:35 | 2014-04-09T13:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #encoding:utf-8
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
from app import views,models | [
"tonjayin@gmail.com"
] | tonjayin@gmail.com |
fdd81c4ba3c9985c22ee4b986bf4b92364bd87bd | 8ee717196b3c1b8674de84e3bcfc081661d3dc7d | /resync/test/test_resource_list.py | 0e0c665f590a1f325335331651512beba880691c | [] | no_license | semantalytics/resync | 61ecd04685dc33f2c54f682936e44def4e4a377f | ec4ad4b76d6985d8cc955ae24e512d8074460dd7 | refs/heads/master | 2021-01-24T02:00:00.097911 | 2013-03-26T16:59:29 | 2013-03-26T16:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,636 | py | import unittest
import StringIO
import re
from resync.resource import Resource
from resync.resource_list import ResourceList, ResourceListDupeError
from resync.sitemap import SitemapParseError
class TestResourceList(unittest.TestCase):
def test01_same(self):
src = ResourceList()
src.add( Resource(... | [
"simeon.warner@cornell.edu"
] | simeon.warner@cornell.edu |
6c7a891f3da07aaeb08f6dc637af604162da73ee | 91c946b62413b1092e344c0bc05ab5808ef9deb8 | /regex_patent_classification.py | 7e7b0061faae45e64d9f80f08b24f7794450907f | [] | no_license | aaag97/PatentAnalysis | b540c0fea30e7b18966ee3940bc6f94715663ddc | 1096861a67c3aa33ed15a6f4e35919ba05a04cba | refs/heads/main | 2023-04-05T11:01:02.110539 | 2021-04-05T16:34:41 | 2021-04-05T16:34:41 | 303,387,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | import os
import re
import argparse
from PIL import Image
from ocrutils import OCR_Pages
def has_drawing_from_path(text_path):
"""
function to evaluate whether a patent has a drawing using regex
Args:
text_path - path towards text file
Returns:
boolean indicating whether the patent has a drawin... | [
"andre.ghattas@epfl.ch"
] | andre.ghattas@epfl.ch |
077791066522a7a2b06a16218258937703b43249 | 0378aa649119767970f4cccbe35afa732346c706 | /manage.py | 7ef7772b966f5323343d961a63cfe728363ef583 | [] | no_license | h4cktivist/job-agency | 4098041cf318e7740bc0ecae740b1bee195c0771 | 0fa82d42d61deb5e392ccf4856abf88ee8f2f175 | refs/heads/main | 2023-05-27T03:03:06.467090 | 2021-06-04T07:50:38 | 2021-06-04T07:50:38 | 366,696,287 | 0 | 0 | null | 2021-06-01T09:05:59 | 2021-05-12T11:44:37 | HTML | UTF-8 | Python | false | false | 665 | 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', 'JobAgency.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"popovvadim0605@gmail.com"
] | popovvadim0605@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.