blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ac55e5dbd0041a00a974e7c8b20ab991e00d9c3 | e40d5e30fb375589aa22efe2a4258f45cee99ce8 | /src/common/SConscript | 820fd7ffb580ec11c95fbc7d1ca8975217aaaac3 | [] | no_license | mironside/rabid | dfc0868a43b01fd4453981f50739af092e9889fe | 70c7d4c27202b518a9412ae8a9a29ab6097c39c0 | refs/heads/master | 2016-09-10T11:23:09.351459 | 2013-04-23T16:15:55 | 2013-04-23T16:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | srcfiles = [
'console.cpp',
'leakTracer.cpp',
'log.cpp',
'profile.cpp',
'cbuf.cpp',
'commandSystem.cpp',
'cvarSystem.cpp',
'common.cpp',
'timer.cpp',
'keys.cpp',
'defMgr.cpp',
'def.cpp',
]
subdirs = ['fileSystem',
]
Import('env')
objs = []
if len(srcfiles) > 0:
objs += env.Obje... | [
"chrisaolsen@gmail.com"
] | chrisaolsen@gmail.com | |
91c805fdec4b684631cbcdd4b9d943daae660904 | 823d010b24a1f6b3800cbaa071f7b8126f43ffc1 | /infer_D_through_autocorrelation_2D.py | 6d721c07de252dc036451641e21e5a9f9cc312a0 | [] | no_license | Alexander-Serov/out-of-equilibrium-detection | fe31aae88022c7ba381b75642c545a19828913c6 | 40d0630af3709fbceb234edcdff2d24aab7ef6b9 | refs/heads/master | 2021-06-18T13:34:43.240628 | 2020-02-20T13:25:48 | 2020-02-20T13:25:48 | 156,554,754 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,989 | py | # infer_D_through_autocorrelation_1D.py
# %%
try:
bl_has_run
except Exception:
%matplotlib
%load_ext autoreload
%autoreload 2
bl_has_run = True
import os
import pickle
import matplotlib.pyplot as plt
import numpy as np
from numpy import arctan, cos, pi, sin
from tqdm import tqdm
from hash_me imp... | [
"asserov@gmail.com"
] | asserov@gmail.com |
f532f6eae4a880f02144914a4ecc060970c1f4bb | 110b716c7234f931cbceda819e96f31f0ffb2615 | /test_main.py | 144df1573dd9157cbc3cc2c3cb2dbf607dc275ae | [] | no_license | moktanaj/python-solution | 17ae888e389b74df46493e38fbecbf87230e5fc6 | ad8b4f8d271e6f201bf5a22d6baf96550163af50 | refs/heads/main | 2023-02-13T08:22:56.754853 | 2021-01-09T18:33:56 | 2021-01-09T18:33:56 | 328,187,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import io
from main import *
from unittest import mock
@mock.patch("main.open_file")
def test_read_csv(mock_close_file_and_exit):
f = io.StringIO("some initial text data")
mock_close_file_and_exit.return_value = f
got_data = read_csv("does_not_exist.csv")
assert got_data == {}
def test_read_csv_with_... | [
"moktanaj@gmail.com"
] | moktanaj@gmail.com |
c6061d5f295fed6a46483bf27ca17b45bf838027 | 4c7ea6295a487ec18543e82f66e08a3a2a2fd124 | /apps/logs/action/action_monster_level_reward.py | 8a7e07ee77cf001a6d538be71ca87a390ab9e53c | [] | no_license | robot-nan/GameLogServer | 16217689d88ac5353a61881b03adb1b372cc3e16 | ff2afd6d29e9dce6157a66ff62b4d1ea97d04184 | refs/heads/master | 2021-11-07T21:27:30.494271 | 2015-09-23T15:01:55 | 2015-09-23T15:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | # -*- coding:utf-8 -*-
"""
宠物等级奖励
"""
from apps.logs.action import action_base
from apps.utils import game_define
def log(user, gold, stone, equip_str, item_str):
"""
输出日志
"""
action = game_define.EVENT_ACTION_GET_MONSTER_LEVEL
cur_gold = user.player.get_gold()
cur_stone = user.player... | [
"a.robot.n@gmail.com"
] | a.robot.n@gmail.com |
96b3f469a19190afd2c4b5b108d36137e49ac8d2 | 055581f9d6c81eda2f73ea05b90b7a2256da1219 | /parts/zodiac/zope/interface/common/tests/test_import_interfaces.py | 876383faf7234e93c6a5f7995278350ec5f54606 | [] | no_license | Tosti770/zodiac | 488a91c3e872a62d09a3ebb22a951dadcbd1c2df | af0380e20eb90699a84e3b7c6cb2085a1fb81667 | refs/heads/master | 2020-04-13T06:54:26.333228 | 2014-03-03T20:10:11 | 2014-03-03T20:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | /home/ruben/zodiac/eggs/zope.interface-4.0.5-py2.7-linux-x86_64.egg/zope/interface/common/tests/test_import_interfaces.py | [
"ruben_tc@hotmail.es"
] | ruben_tc@hotmail.es |
7ae1e204325dc9f0f443b7e2531a8b7ac35da9ae | 38bc29ca0f7ec65d9b4f030d01aaafc8c82928e0 | /minder/forms.py | c8c4b80005e5d2251412bca21ca591bd849e4b3d | [] | no_license | nkarim496/MindStream | 7164fea85517276513b9c083aa42b54cec60160f | 48768de70255c927d1271437e4365467bf8894a8 | refs/heads/master | 2021-07-21T22:53:04.666624 | 2017-10-28T01:04:17 | 2017-10-28T01:04:17 | 108,609,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.forms import ModelForm
from minder.models import Mind
class MindForm(ModelForm):
class Meta:
model = Mind
fields = ['mind', 'mind_img']
| [
"nkarim496@gmail.com"
] | nkarim496@gmail.com |
3bc24697dee04be43497c122b3028c6926362734 | b213fbd2f4f628aa0f2387c846673ac68e18aa91 | /Binary_Search/600.py | 4e544b47614dc36d42421f95f4fbc7fd3ea4e675 | [
"MIT"
] | permissive | wilbertgeng/LintCode_exercise | 94309b4451e34f1931fce6c2ae90d0c2e7c41d35 | e7a343b746e98ca3b4bc7b36655af7291f3150db | refs/heads/main | 2023-05-13T06:06:50.887791 | 2021-05-26T20:33:51 | 2021-05-26T20:33:51 | 347,850,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | """600. Smallest Rectangle Enclosing Black Pixels
"""
class Solution:
"""
@param image: a binary matrix with '0' and '1'
@param x: the location of one of the black pixels
@param y: the location of one of the black pixels
@return: an integer
"""
def minArea(self, image, x, y):
# write... | [
"wilbertgeng@gmail.com"
] | wilbertgeng@gmail.com |
3fffc2ba463ecceee2069ca4cf30b9a15adf8ed4 | d7c80095dce650af870ffd406ab2b2083299c603 | /3.1 Population Dynamics/module2.py | aa4f5203d4e125cf00c2618ae10ef63642c9228e | [] | no_license | vpjuguilon/AppPhysics156 | c46e8ac655943f0f94842e45244d84524a02cfff | 69ed54db4fc2cac52824ba774ea78b108343c3a0 | refs/heads/master | 2020-04-04T01:55:39.041134 | 2019-06-23T02:43:31 | 2019-06-23T02:43:31 | 155,682,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from matplotlib.pyplot import plot, show, scatter, hist, xlabel, ylabel
from numpy import linspace
def f(x, r):
return 4*r*x*(1-x)
R = 0.9642
xvals = linspace(0, 1, 1000)
ypara = f(xvals, R)
plot(xvals, xvals, 'k-')
plot(xvals, ypara, 'k-')
Xhistogram = [0.65]
for j in range(1000):
Xhistogram.a... | [
"noreply@github.com"
] | vpjuguilon.noreply@github.com |
be4ca29e261b08db9e72e699d5ce956447bcecb4 | 828282d212d33667f05818d144ce1534db0d1584 | /tests/test_experiments.py | 0f6d314fe61773b25392c907c5c50f5368f0d952 | [
"MIT"
] | permissive | HumanCompatibleAI/imitation | bdbb167d8e1abc0fb629d18ac88121a096881d43 | 5b0b531bdf6fdfcaab93ff18f454aa1b54bb4355 | refs/heads/master | 2023-08-17T08:29:01.192792 | 2023-08-11T07:57:29 | 2023-08-11T07:57:29 | 160,906,482 | 936 | 203 | MIT | 2023-09-14T12:04:40 | 2018-12-08T05:15:33 | Python | UTF-8 | Python | false | false | 12,459 | py | """Tests for commands.py + Smoke tests for bash scripts in experiments/."""
import glob
import os
import pathlib
import subprocess
from typing import List
import pytest
SCRIPT_NAMES = (
"bc_benchmark.sh",
"dagger_benchmark.sh",
"benchmark_and_table.sh",
"imit_benchmark.sh",
"rollouts_from_policie... | [
"noreply@github.com"
] | HumanCompatibleAI.noreply@github.com |
a1d78a24879670100945b229da0affe9517608fe | c04a7a9627e2914c92d48d473ada6214e9044d9b | /music_spider/common/DbManager.py | d2f4f7289ff12e8ab9a1e32b5ff778e9af2a161b | [] | no_license | xsren/uplooking_spider | b00194399f927a21cb395698fadd076413e39754 | e4d9cfed8c9f28458df5806d583109e58b9391d6 | refs/heads/master | 2020-03-24T11:20:20.500996 | 2018-08-18T09:12:37 | 2018-08-18T09:12:37 | 142,682,770 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,791 | py | # coding:utf8
import sys
import time
import traceback
from queue import Queue
from pymongo import UpdateOne, ReplaceOne, InsertOne, UpdateMany
from pymongo.errors import BulkWriteError
from twisted.internet import reactor, defer
# 本地库
sys.path.append('../main')
import settings
import common
class DbManager:
de... | [
"bestrenxs@gmail.com"
] | bestrenxs@gmail.com |
7ea06b38a6bea4ad844f28beed5014ddf7ec3be8 | 7899e522049f9c7aac5cc9a19a0e3cc36c132067 | /FlaskAPI/requests.py | 687a42138dd8d640c816138effcbcda6e9996c52 | [] | no_license | adityapoojary/ds_salary_proj | 261e25a7bd48d1402e9e425d7f1c18eeb5d2c3bf | 720fed3c0fcbe5169dd13799dc08fe7eb422906b | refs/heads/master | 2023-08-11T04:52:14.493436 | 2021-09-21T01:17:40 | 2021-09-21T01:17:40 | 380,216,228 | 0 | 0 | null | 2021-06-27T03:59:13 | 2021-06-25T11:26:22 | Jupyter Notebook | UTF-8 | Python | false | false | 301 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 29 23:53:45 2021
@author: adity
"""
import requests
from data_input import data_in
URL = 'http://127.0.0.1:5000/predict'
headers = {"Content-Type": "application/json"}
data = {"input":data_in}
r = requests.get(URL,headers=headers,json=data)
r.json() | [
"43313663+SirHacksalott@users.noreply.github.com"
] | 43313663+SirHacksalott@users.noreply.github.com |
21a3244c094f2c6fdba9b385874dde119094b631 | 525690b220962de7f6253dd1dc557717cffc3441 | /openstack/tests/unit/cloud_eye/test_cloudeye_service.py | 35b73816fe5fdd9edf0eaeabe9ed72d39d48f02c | [
"Apache-2.0"
] | permissive | huaweicloudsdk/sdk-python | bb8dc2bc195d0bdaddf13fef484e3f28aeb2681f | 60d75438d71ffb7998f5dc407ffa890cc98d3171 | refs/heads/master | 2021-06-05T00:04:59.030371 | 2018-09-30T09:40:49 | 2018-09-30T09:40:49 | 110,813,153 | 20 | 18 | NOASSERTION | 2020-07-23T17:01:59 | 2017-11-15T09:31:50 | Python | UTF-8 | Python | false | false | 1,102 | py | # 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, software
# distributed under t... | [
"iampurse@vip.qq.com"
] | iampurse@vip.qq.com |
9713a8500afd874259cb4bbe41e73268a84767b0 | f735f133ef299e65d3ea7d0d90a2dcbe49c030a1 | /csv_file_extraction.py | 697653884fa7ed26f2c33806628304fa4bcc7308 | [] | no_license | agrzybkowska/Data8Project | 41bbd1ee39e2f45f3951348923afdadef1812bea | 8c5decc720aae8b8555e7864b12361b46b57b2fa | refs/heads/master | 2021-06-12T22:53:57.438660 | 2020-04-09T11:15:44 | 2020-04-09T11:15:44 | 254,408,086 | 0 | 0 | null | 2020-04-09T15:23:59 | 2020-04-09T15:23:59 | null | UTF-8 | Python | false | false | 1,703 | py | ##not nicely packaged as a fucntion yet sorry
import boto3
from pprint import pprint
import csv
s3_client = boto3.client('s3')
contents = s3_client.list_objects_v2(Bucket='data8-engineering-project')['Contents']
a= 0
for x in contents:
a = a + 1
b= a
splitfile = x['Key'].split('/')
if split... | [
"noreply@github.com"
] | agrzybkowska.noreply@github.com |
0e4635e67e5d0d55f1378f08260a7f06ee2e70cc | c6292c1dd68f0c4dd3389628de0d2b786fa0ee64 | /0x06-python-classes/0-square.py | 4c030f02dd19538abaad2c6f969458caac16080a | [] | no_license | mj31508/holbertonschool-higher_level_programming2 | 835be695b568cd189c1448c54218a0201830005f | 3fa47001c041cd0c74f88c3a19677e126bee37b4 | refs/heads/master | 2021-07-06T22:31:05.040354 | 2017-09-29T05:28:45 | 2017-09-29T05:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | #!/usr/bin/python3
"""
Defines empty class Square
"""
class Square:
pass
| [
"mj31508@gmail.com"
] | mj31508@gmail.com |
9005aa6da759029734d49699d61f6dfb82e382ee | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_subordinating.py | f414e402006d840f8543ad90d26aa0594767e83c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py |
from xai.brain.wordbase.adjectives._subordinate import _SUBORDINATE
#calss header
class _SUBORDINATING(_SUBORDINATE, ):
def __init__(self,):
_SUBORDINATE.__init__(self)
self.name = "SUBORDINATING"
self.specie = 'adjectives'
self.basic = "subordinate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b4ed90aafb2fe13b609cabbd99a433643da13a2f | 5708a5b29d386e60acb7f93b41339ab767e80411 | /portal/posts/migrations/0011_post_confession.py | cdf0c988d532b89cb6422537939b90f4e57fe444 | [] | no_license | Pradyumnabiswal99/RestApiFounder | 70a42ad3dce3f1818fd18cc3bae3b6bc81372a39 | e031ac55830d74ca465427fae0e593ce94da236d | refs/heads/master | 2023-02-19T12:25:24.515359 | 2020-02-24T18:16:33 | 2020-02-24T18:16:33 | 332,734,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0010_auto_20160920_1545'),
]
operations = [
migrations.AddField(
model_name='post',
name='c... | [
"kaushik.debojit@gmail.com"
] | kaushik.debojit@gmail.com |
b204c2541423dde521dadee3fceaa2623a7ebe59 | 7a4ed01a40e8d79126b26f5e8fca43c8e61e78fd | /Geeky Shows/Core Python/128.reduce_Function[159].py | de2e40159a3a8f0c556f8d593fb761aa271c252a | [] | no_license | satyam-seth-learnings/python_learning | 5a7f75bb613dcd7fedc31a1567a434039b9417f8 | 7e76c03e94f5c314dcf1bfae6f26b4a8a6e658da | refs/heads/main | 2023-08-25T14:08:11.423875 | 2021-10-09T13:00:49 | 2021-10-09T13:00:49 | 333,840,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from functools import reduce
a=[10,20,30,40,50]
result=reduce(lambda n,m:n+m,a)
print(result)
print(type(result)) | [
"satyam1998.1998@gmail.com"
] | satyam1998.1998@gmail.com |
fcb6271b2ee05afbde34d933504cfdd1ae3f7cc4 | 1647fced5b389cdee749bd81d809db6442b2c1d7 | /listmethods/listmeth01.py | 01f537ddf52561205afb339f82db6c2290d12669 | [] | no_license | Lalit554/mycode | 774931e68db8a97a88bbcfc9c685c7844c7870c8 | 39d186fde871c3a118a0c65888390b0e81ff921f | refs/heads/main | 2023-06-06T12:03:56.009416 | 2021-06-23T18:31:39 | 2021-06-23T18:31:39 | 361,773,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #!/usr/bin/env python3
proto = ["ssh", "http", "https"]
print (proto)
print (proto[1])
proto.extend("dns") ## appends each letter as an element to the list
print(proto)
| [
"lalit.patil@fcagroup.com"
] | lalit.patil@fcagroup.com |
e9548f4466470f2ecbfe2b5aed82e666be9fd889 | 8648656c85014a8dee62334a6d85e9dcef17befb | /cnn_classifier_SaveAllFolds.py | 8e906ed0b06288d2c9b08b9c9622ec09616d4ecb | [
"CC0-1.0"
] | permissive | mohsen-azimi/SHM_CNN_CompressedData | 865d0d6efef5e4a0ee7620a29c0721fe49ad3a97 | 0b5c82d8fa64fb791d3c9690d3a3de5632413cf3 | refs/heads/master | 2022-08-22T15:37:41.331974 | 2022-08-03T23:51:26 | 2022-08-03T23:51:26 | 231,650,234 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,475 | py | import tensorflow as tf
import keras
from keras import Sequential
from keras.models import load_model
from keras.layers.advanced_activations import LeakyReLU, PReLU
from keras.layers.normalization import BatchNormalization
from keras.layers import Dense, Flatten, Dropout, Conv1D, MaxPool1D, AvgPool1D,Conv2D, MaxPool2... | [
"noreply@github.com"
] | mohsen-azimi.noreply@github.com |
0905cc6c738a84c48c2cf095039d96d8fe7af5d9 | 3b7e22b8c1cc96f6fd8440ad1ec1288bc2140d0f | /firstapp/views.py | 3cd82201cd161e23cc248e9fe2646dd5313acf4e | [] | no_license | bunnygoud25/mukeshportfolio | 535c336ebb7fcad14a5bf14cf5ea6b19dd6ab1fb | 96346b847df588ff345dff512eff6dba0273142e | refs/heads/master | 2020-07-31T00:44:40.957487 | 2019-09-23T18:19:39 | 2019-09-23T18:19:39 | 209,590,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from django.shortcuts import render
import os
from django.conf import settings
from django.http import HttpResponse, Http404
# Create your views here.
def index(request):
return render(request,'index.html')
def hire(request):
return render(request,'hire.html')
| [
"bunnygoud25@gmail.com"
] | bunnygoud25@gmail.com |
8fd238c93ae823bd8fbe9ee076b046a2eeb24a10 | e27ee08fbb99ca2abf0f822783603ac649a44f1d | /primeSum.py | 3ea232f3c4d15d9413732d2f45dbba6556a07fd4 | [] | no_license | weida8/Practice | c2def43ffd7e1f43163616c4dbb5aaa697cc8c63 | 2de2a6076e12fe196a7eea89cc69fb3a59ceaec7 | refs/heads/master | 2021-01-23T13:31:33.914228 | 2018-07-24T04:21:58 | 2018-07-24T04:21:58 | 102,670,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def isPrime(n):
for i in range(2, n):
if(n%i == 0):
return False
return True
def main():
totalSum =0
for i in range(2, 2000000):
if(isPrime(i)):
print(i)
totalSum += i
print(totalSum)
main()
| [
"noreply@github.com"
] | weida8.noreply@github.com |
e4f116f2d1e3e8c08ce2c7c35289d60e7a2455e5 | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/SimbaAdgroupsChangedGetRequest.py | 5b87c69b8afb5cee0f9b6ef7edd9ba1abccebb0d | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | '''
Created by auto_sdk on 2015-01-20 12:44:31
'''
from top.api.base import RestApi
class SimbaAdgroupsChangedGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.nick = None
self.page_no = None
self.page_size = None
self.start_time = ... | [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
ae75f741053ce7f25c92b229213b38134118e778 | 02619be3f115d170ab2e2951af482ef69698bbce | /bha/views.py | 62c564cd3314ae02ecf027e66bcd9aa49932d51c | [] | no_license | xkenneth/tdsurface | 08852b5f9f809ed682e4b50938d60d711884d94a | ec15a05e581ec5f53287cab31af2f4f3e1efcb63 | refs/heads/master | 2021-03-12T23:11:32.547441 | 2009-08-12T20:58:29 | 2009-08-12T20:58:29 | 84,442 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,464 | py | from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.http import HttpResponseNotFound
from django.http import Http404
from django.template import loader, Context
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.core.urlresol... | [
"andy@andy-vmdesktop.(none)"
] | andy@andy-vmdesktop.(none) |
252c203dd8b3c6c3ccdfa7211fa50cfc0bbb89fc | d6ea2105340cfdb7db3a209f69888c7312ecbce9 | /core/commons.py | 893e31247a7cf53186a7b1b8608b36286e7b0303 | [] | no_license | antonyflour/hometrol | 43bbd723b190185a80e40d7064a7f68d02a7d050 | e71360ba6170b47d809331050b3b4c204617fe6c | refs/heads/master | 2021-01-19T10:17:57.792982 | 2017-05-23T20:26:23 | 2017-05-23T20:26:23 | 87,851,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py |
REG_EXP_MAC_ADDRESS = "[0-9a-f]{2}([-:])[0-9a-f]{2}(\\1[0-9a-f]{2}){4}$"
class EngineCommands:
COMMAND_ADD_SHIELD = "addShield"
COMMAND_GET_INFO_SHIELDS= "getShields"
COMMAND_DELETE_SHIELD = "deleteShield"
COMMAND_MODIFY_PIN = "modifyPin"
COMMAND_GET_SHIELD = "getShield"
COMMAND_GET_PIN = "ge... | [
"antoniofarina1702@gmail.com"
] | antoniofarina1702@gmail.com |
ca2152782390e2a3cd07a0025946143c9aedaa23 | 9a85e9651d076c736fe57b8f957c44fd4a28e2e2 | /002,leetcode/leetcode-343.py | 4227901944fce5e65372cddf8a145171762e9006 | [] | no_license | Jesselinux/Data-Structures-and-Algorithms | 609b9230caf8a39290cb3581d1106879ff029add | 768c4d5ea75e9dd6aaf5f920accf32adf3355fdd | refs/heads/master | 2020-05-21T15:35:36.144829 | 2019-09-05T06:26:04 | 2019-09-05T06:26:04 | 186,094,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # leetcode-343:动态规划,beats 57.79%
class Solution:
def integerBreak(self, n: int) -> int:
sums = [0, 1]
for i in range(2, n+1):
tmp = 0
for j in range(1, i):
tmp = max(tmp, j*sums[i-j], j*(i-j))
sums.append(tmp)
return sums[n] | [
"wuchang508@163.com"
] | wuchang508@163.com |
5d857613084649081412e62cd5a3dd7998e0f1ec | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_ami_facts.py | fe8b57e7640e37f06e0f2c3b8a4e942fbe51bad9 | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 8,737 | py | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: ec2_a... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
e55a2fc605a7f546f9760bd66cc1036142daa65b | 70f3d3ab092e0656f48fce163d9c4a1baf91caec | /manage.py | 5a36edabacbcf2891e80d38c9215b9b2ba7c7cb1 | [] | no_license | wq56789/Django0109 | 5cca6ff7d477d14a8a3db260b907298bd90e1812 | cda7c9e5bc5b770d24ffec5ca5c2e7d2e94e2b51 | refs/heads/master | 2021-04-24T21:40:54.045733 | 2018-01-10T09:47:36 | 2018-01-10T09:47:36 | 116,754,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Django0109.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"2628540889@qq.com"
] | 2628540889@qq.com |
f4e6967c090f73bb4b1bf0ab41f5a3bf62707793 | 2480d64a4419705e453cc4e074ac121d1ae72f37 | /_data-processing/myvirtualenv/bin/symilar | 7efc626f908dcdc006c10617333b831cf3831880 | [] | no_license | rbdone/lotr-api | 4e98bc668aa71fb1f176c238d024dda32facdb8c | 1ec0a087d58fae3918a2586af878846d27ee12e1 | refs/heads/master | 2022-12-01T08:01:55.617851 | 2020-08-14T23:12:25 | 2020-08-14T23:12:25 | 287,639,055 | 0 | 0 | null | 2020-08-14T23:12:27 | 2020-08-14T22:58:16 | null | UTF-8 | Python | false | false | 278 | #!/media/ulrike/Daten/CODING/projects/lotr-api/data-processing/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"hello@ueberdiespree.de"
] | hello@ueberdiespree.de | |
b5a639dd6e57d236d82a3261a090bd72e75c1bef | 29336042b81ffab736a38dadcdf269296ce72c65 | /doit_ds_algorithm_python/04/stack_test.py | f72381e742301d270a49aa04e537322f02d41d2f | [] | no_license | wndms0901/algorithm | 61dd0e6a819c7714a96062e9e7f4c1eee453971e | 65c3b6f527ee659e89997ad8113195bd3377002b | refs/heads/main | 2023-02-27T12:21:46.340051 | 2021-02-08T14:39:31 | 2021-02-08T14:39:31 | 328,971,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | # 고정 길이 스택 클래스(collections.deque)를 사용하기
from enum import Enum
from stack import Stack
Menu = Enum('Menu', ['푸시', '팝', '피크', '검색', '덤프', '종료'])
def select_menu() -> Menu:
"""메뉴 선택"""
s = [f'({m.value}){m.name}' for m in Menu]
while True:
print(*s, sep=' ', end='')
n = int(input(': '))
... | [
"cherry25987@gmail.com"
] | cherry25987@gmail.com |
284b16862546a04753ca39ee352a14563fc28272 | eaf97194e79c31d80f7786b64bbf621581a95dec | /example.py | bba3baa0753070fdc4a03e7eb9cbacab6300db59 | [] | no_license | codesharedot/levolution-price | 333902c32137f9a82bd9d21b26575d646e0f4bb9 | 60c9d52fa42190e4fa929ead32ca611766906005 | refs/heads/master | 2020-08-02T14:26:47.832555 | 2019-09-27T19:27:47 | 2019-09-27T19:27:47 | 211,388,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import requests
import json
from forex_python.converter import CurrencyRates
import os
c = CurrencyRates()
rate = c.get_rate('USD', 'EUR')
print(rate)
levolution_api_url = 'https://api.coinmarketcap.com/v1/ticker/levolution/'
response = requests.get(levolution_api_url)
response_json = response.json()
print(response_... | [
"codeto@sent.com"
] | codeto@sent.com |
daf06ec2976e73d31fcee328355ba9e2cce230b9 | f3f3c68e7155396deb2bad0a8c82b5df86a67501 | /binary_tree_divide_conquer/binary_tree_max_path_sum_from_root.py | 7ee4174e42c467009946b49b30c40d873b96b19c | [] | no_license | libinjungle/LeetCode_Python | 41068dc79cd4f065964b4cab39d52fedb380df2f | 49d0831387227e69ae4067c1f5b7e828976377b4 | refs/heads/master | 2020-04-06T07:02:15.905469 | 2016-08-22T02:37:55 | 2016-08-22T02:37:55 | 59,625,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | class TreeNode(object):
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class Solution(object):
def maxPathSumFromRoot(self, root):
"""
Divide_And_Conquer
max sum is equal to the max of left and right child plus the root value.
:param root:
:return:
""... | [
"libinnku@gmail.com"
] | libinnku@gmail.com |
df3847d46c128ea4255e64467cb577d4e348b21b | 469e3e8de616263bab857df1050d426f40c30d5c | /module3.py | 5d847f0e4e820befd42f51495c91329a0d3b6499 | [
"MIT"
] | permissive | listenzcc/QuickPythonConfig | d487e3c35e906f84503d8992152ee79909d0da30 | ff883c1dd2b7a23a114ec794e3d711fd5d1d15c1 | refs/heads/main | 2023-01-07T20:30:39.060803 | 2020-11-10T08:52:10 | 2020-11-10T08:52:10 | 306,575,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # Example of using customized Config object
from Package.defines import Config
config = Config()
config.reload_logger('develop')
config.reload_cfg()
def main():
print('---------------------------------------------------------')
print(config.peek())
config.set('Module 3', 'says', 'It should be ... | [
"listenzcc@mail.bnu.edu.cn"
] | listenzcc@mail.bnu.edu.cn |
e52c20ecaeaa12fab452e4bfc96ac0cfec2f5a02 | bc301fd884d9efed927dbe6d25dfef11584e7739 | /p_code/RL/MDP/mrp.py | 1b1a9ddbcda31721c670903f13058816cd012a30 | [] | no_license | MonaHe123/coding-exercise | 87084c1dc2553cea2413992ec00c33be6b31c27a | 9c1db48888da9f83fa0bce47c297b070f513726e | refs/heads/main | 2023-06-13T08:21:09.647454 | 2021-07-05T08:34:27 | 2021-07-05T08:34:27 | 367,765,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | """
author:龚俊老婆
参考:叶强大佬
验证MRP,进行简单的轨迹回报计算
"""
#MRP包括:状态,转移概率,奖励,衰减因子
import numpy as np
from numpy.lib.shape_base import expand_dims
#状态
num_state = 7
#states' name to index
i_to_n = {}
i_to_n['0'] = 'C1'
i_to_n['1'] = 'C2'
i_to_n['2'] = 'C3'
i_to_n['3'] = 'Pass'
i_to_n['4'] = 'Pub'
i_to_n['5'] = 'FB'
i_to_n['6'] = 'S... | [
"1600012917@pku.edu.cn"
] | 1600012917@pku.edu.cn |
a87e412a4eb7af7d0d6c53b2b372fce0dbdd135b | a0914d6d16eb2d0e0c5fb570c9a68bc46a652ed4 | /git_trojan.py | 6c3412da1cadee3451999ecc3a79f6497b95dbf7 | [] | no_license | jdefrancesco/chapter0 | 8c8cc045ffd36804ead3b495f89beb824022eee0 | d218d5d07d93e7b7d79a0a452eb99dfb4ebfacc3 | refs/heads/master | 2016-09-05T12:08:30.940128 | 2015-01-15T14:56:51 | 2015-01-15T14:56:51 | 29,213,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | #!/usr/bin/env python
import json
import base64
import sys
import time
import imp
import random
import threading
import Queue
import os
from github3 import login
PASSWD = ""
trojan_id = "abc"
trojan_config = "%s.json" % trojan_id
data_path = "data/%s/" % trojan_id
trojan_modules = []
configured = False
task_queue... | [
"jdefr89@gmail.com"
] | jdefr89@gmail.com |
2d26d60da3093aabef092d3dbedd7020551ba13b | fc0383786c3b997a1c205749018cfc52114fc2fd | /docs/source/auto_examples/plot_otda_color_images.py | e77aec0878b6ce041a77db92a9b57d29622a5c96 | [
"MIT"
] | permissive | vfdev-5/POT | 5a9537e6c788fe53d8dbed2e349c811e9a057b7d | e757b75976ece1e6e53e655852b9f8863e7b6f5a | refs/heads/master | 2020-04-28T11:14:40.532459 | 2019-03-11T15:59:57 | 2019-03-11T15:59:57 | 175,230,317 | 0 | 0 | MIT | 2019-03-12T14:33:50 | 2019-03-12T14:33:50 | null | UTF-8 | Python | false | false | 3,597 | py | # -*- coding: utf-8 -*-
"""
=============================
OT for image color adaptation
=============================
This example presents a way of transferring colors between two image
with Optimal Transport as introduced in [6]
[6] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. (2014).
Regularized discret... | [
"remi.flamary@gmail.com"
] | remi.flamary@gmail.com |
79a75243a32e6932c69c6870f42fc84cb351e1fd | 037c66d0ed5453cadc4acd5f98283c74e37b0a01 | /isl_converter/video_processing/__init__.py | d1d6b677241279236ac5e88eeeafb40b62a83f2f | [] | no_license | eshandhawan51/isl_convertor | f85670c1d1ec9a21e0d43070fa2c418ab29e130f | 6d1453c4c15188e85d0afd3fa5ebbf1fd9ff9024 | refs/heads/master | 2023-02-11T23:19:36.950134 | 2021-01-01T07:58:24 | 2021-01-01T07:58:24 | 297,278,500 | 0 | 1 | null | 2020-10-02T21:35:02 | 2020-09-21T08:36:51 | Python | UTF-8 | Python | false | false | 175 | py | from isl_converter.video_processing.video_capture import *
from isl_converter.video_processing.image_transformation import *
__all__=["video_capture","image_transformation"]
| [
"eshandhawan51@gmail.com"
] | eshandhawan51@gmail.com |
e997c10457a55e2fbfa26f1c3303499cfccde220 | 4f1b754089bd2a2b1cd60589fc52d0f188076551 | /venv/bin/rdfs2dot | bf83243a1c042c7174c78d82fb98ec165e2a115b | [] | no_license | haroun3amri/happyMealSparQL | 52fae5ccf6662393f2eb8d61ef4e226b36ce45bd | f5a350f51daf57aff83bf6e084b9192f4ca612d1 | refs/heads/master | 2020-04-26T08:49:54.409081 | 2019-03-02T11:27:37 | 2019-03-02T11:27:37 | 173,435,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/home/haroun3amri/PycharmProjects/untitled/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rdflib.tools.rdfs2dot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"haroun3mari@gmail.com"
] | haroun3mari@gmail.com | |
6f45e31cd38fe22467cfb6b9bef6d61c3073ffef | 38c76d29799896a8335bd83b6220acd71d5d8bed | /pyeuler/p053.py | 32ec8ddbb6ba17ace49313419244944a5c2dde50 | [] | no_license | oozk/pyeuler | c010505624bb95043883faa55a776d954c0496dc | 74fd549985722f6d53a1394179d094a106c70689 | refs/heads/master | 2023-04-13T17:50:23.187918 | 2023-04-05T13:00:44 | 2023-04-05T13:00:44 | 261,848,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #!/usr/bin/env python3
###
# Problem 53
# https://projecteuler.net/problem=53
###
from math import factorial
def p053(l):
factorials = dict((i, factorial(i)) for i in range(0, l+1))
n_choose_r = lambda n, r: factorials[n] / factorials[r] / factorials[n-r]
return sum(1 for n in range(1, l+1) for r in rang... | [
"onur.ozkan.1@gmail.com"
] | onur.ozkan.1@gmail.com |
5622afa65eec464402bf0814aa5c5b61c5dcd50b | 71cfd1b92d701bea50ae38a8b257520e99076275 | /lecture_01/materials/sample_project/calculator/calc.py | 65c791e8112430f1cbabaa25a679fd6dce98b1c8 | [
"MIT"
] | permissive | arisend/epam_python_autumn_2020 | fb7c66b4cc2cadcea32886d9c4169620e9a1b606 | bc33ee6a2b4fd9a5502d7848fcdbe93970b1aa73 | refs/heads/main | 2023-09-02T13:55:32.063553 | 2021-11-07T18:31:15 | 2021-11-07T18:31:15 | 425,582,862 | 0 | 0 | MIT | 2021-11-09T18:45:13 | 2021-11-07T18:24:22 | Jupyter Notebook | UTF-8 | Python | false | false | 73 | py | def check_power_of_2(a: int) -> bool:
return not (bool(a & (a - 1)))
| [
"noreply@github.com"
] | arisend.noreply@github.com |
f217503815d23e66672cf76af9e8978e96ded141 | 1b5a2cfc319f1e8ddc3462ded94301fb4df0d799 | /fig/curve.py | 0e502ac51026d025be1d0b7127a12e186996bcc6 | [] | no_license | AnnaKarusevich/EffZeemana | 5fe651e07a59faa0f44db0c53ffb96f3d4c1fc17 | 9e7bea9a829601f200031615586e101a930dd1cb | refs/heads/master | 2020-04-09T02:44:50.621501 | 2018-12-01T14:25:41 | 2018-12-01T14:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import matplotlib.pyplot as plt
from functions import parsing
from math import pi
import numpy as np
plt.rc('text', usetex=True)
plt.rc('text.latex', unicode=True)
plt.rc('text.latex', preamble=[r'\usepackage[utf8x]{inputenc}',
r'\usepackage[russian]{babel}',
... | [
"annapurna.kar@mail.ru"
] | annapurna.kar@mail.ru |
3db0026a1e823dd188e9c24493bc95b80f214f06 | e8aaff29a076a12838115976d70fb44cb5778a97 | /proj/pipelines.py | f2bb8940ed08348ebb820ed23b0efdfd40692b79 | [] | no_license | roycocup/scrappertests | 76ce080a45e25f22005cc78bbbfb8257fe9ddc74 | 835c07a3fd8bc683c3b6788a3ce3e1a748316ea5 | refs/heads/master | 2022-12-10T15:06:03.596633 | 2020-09-11T20:23:44 | 2020-09-11T20:23:44 | 294,805,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class ProjPipeline:
def process_item(sel... | [
"rodrigo.pitta@gmail.com"
] | rodrigo.pitta@gmail.com |
bf4da77e6ed2f2440012c4f00d03d9e8f975a8c4 | c77c09eecd35e4f0538a2bd170007ecdcc70405f | /examples/eonia_bootstrap.py | de6e6103fdeb1d1c598c10b11c54507260c659c7 | [
"BSD-3-Clause"
] | permissive | bill18/QuantLibExt | c0459646268f8248bda804e56ed8db26c2358c66 | a6a1a23a2812830d9f32cd43e6a720913da5cb16 | refs/heads/master | 2020-06-26T18:54:11.142150 | 2019-08-10T11:26:07 | 2019-08-10T11:26:07 | 199,721,004 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # Copyright (C) 2019 Wenhua Wang
#
# This file is part of QuantLibExt, which is an extension to the
# free-software/open-source quantitative library QuantLib - http://quantlib.org/
#
# QuantLibExt is free software: you can redistribute it and/or modify it
# under the terms of the BSD license.
#
# QuantLib's license is ... | [
"fin.hcny@gmail.com"
] | fin.hcny@gmail.com |
ecd2249faf1ca2634b98e90a4a525d713f473543 | 233297266196f9f249d7e4bace933785fe1c2691 | /linked_lists/doubly_linked_list.py | 40d21fd4bc1aab7cf802b33e365ea355731311ff | [
"MIT"
] | permissive | a-churchill/miscellaneous-code | 9f7d6527259d655c668da1b5c2c741acca111a92 | cdb88783f39e1b9a89fdb12f7cddfe62619e4357 | refs/heads/master | 2021-10-10T18:16:51.449009 | 2019-01-15T05:34:30 | 2019-01-15T05:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,763 | py | # structure of a node in a doubly linked list
class Node:
def __init__(self, val, next_node=None, prev_node=None):
"""
Node constructor, next and prev are optional
"""
self.val = val
self.next_node = next_node
self.prev_node = prev_node
def __str__(self):
... | [
"chu.andrew.8@outlook.com"
] | chu.andrew.8@outlook.com |
873d1bcf8038fd8eba8a27027fd251e6cd57bec6 | aa96174a0bc7d87dec082e6be810930d48c431c2 | /test_case/test_youdao.py | 12b57c6de78e88310f777cd9460c9c7176c85934 | [] | no_license | nicoleghuang/selenium_use_case | d1197b4674bf65e28905cd27e78e0ebb316532f4 | c374e43097adc23689cdf6ce555b23208ffe16d4 | refs/heads/master | 2021-09-20T22:54:16.303331 | 2018-08-16T07:55:33 | 2018-08-16T07:55:33 | 106,635,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | #coding=utf-8
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import unittest,time,re
import HTMLTestRunner
now=time.strftim... | [
"noreply@github.com"
] | nicoleghuang.noreply@github.com |
d8a83a203ad3e39efa214b7786b7be640e6c5c2d | af192ea16aad4264a92039d594d72acca91d0e33 | /tests/tests.py | d329884aa00948981f710044b18f363c5eea0ca8 | [
"MIT"
] | permissive | TakumiHQ/emoji-unicode | ceed81325829e2c44b6d1b04c4dbc7257cc95c86 | 85e8193f05f822641a58eb539b765481b084f83c | refs/heads/master | 2021-01-18T16:08:52.817116 | 2015-11-20T13:10:44 | 2015-11-20T13:10:44 | 66,449,921 | 1 | 0 | null | 2016-08-24T09:17:27 | 2016-08-24T09:17:27 | null | UTF-8 | Python | false | false | 6,812 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
import logging
import os
import json
import io
from emoji_unicode import replace, normalize, Emoji
from emoji_unicode.utils import code_point_to_unicode, unicode_to_code_point
from emoji_unicode import data_parser
logging.disable(loggin... | [
"ecastroborsani@gmail.com"
] | ecastroborsani@gmail.com |
81692c3527f89a21d770bcf0dfe69059814ffe59 | 64f5c0f229e1b1186f12d75b4ba21c07adfcf152 | /index/models.py | fc2791e3989c627bacd03d10534b92d43824f717 | [] | no_license | Emehinola/intouch | 22dd3a81c935956914362604b8fd60d6d7cd2a46 | d370a48c21b93aed797c32a0621c3fa8bda89857 | refs/heads/master | 2023-01-24T22:37:41.862324 | 2020-12-13T08:54:55 | 2020-12-13T08:54:55 | 318,006,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.db import models
# Create your models here.
# home page view, i.e the surveys views
class HomeViewCount(models.Model):
views = models.IntegerField(default=0) # number of views or visits
time = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ['-time']
verbose_... | [
"emehinolasam01@gmail.com"
] | emehinolasam01@gmail.com |
c2e80a38a785c88209976e926fc65e085e4e529a | 6ffd3ef2b5286348b9150141bdd5c1dcd1a24a7a | /seaqube/nlp/tools.py | fd96f685357633f9b9e925f35ed06d20974c5258 | [
"MIT"
] | permissive | bees4ever/seaqube | f08ea505ee2d360e358e507276de0d80e7b0dbb7 | 51bfe8f07574a7d5bf365c7e707646b59b623244 | refs/heads/master | 2023-02-26T23:40:09.143495 | 2021-01-28T19:08:04 | 2021-01-28T19:08:04 | 296,326,813 | 2 | 1 | MIT | 2021-01-15T12:08:25 | 2020-09-17T12:58:07 | Python | UTF-8 | Python | false | false | 3,646 | py | """
Copyright (c) 2021 by Benjamin Manns
This file is part of the Semantic Quality Benchmark for Word Embeddings Tool in Python (SeaQuBe).
:author: Benjamin Manns
The nlp tool-kit which makes it possible to do text and doc loading, saving, processing in one-liners.
"""
from collections import Counter
from copy impor... | [
"beesforever@gmx.de"
] | beesforever@gmx.de |
800d88fb5ae5695580acd4ab58b82b3d63b220d0 | 0cc4c5c6b309f40872d9d744fe1ab7aae9f6060f | /demo_chainmap.py | f3d00e0c8f8b639e7bd2fa7c81de832b9d38745f | [] | no_license | Vigneshpandiyan600/Pythonfiles | aed22c7a2a9c47ee34d6b54cfc222b62e95de480 | 755ab463dc726b30204008cdcd58623fc8ec061e | refs/heads/master | 2022-11-23T22:12:16.617346 | 2020-07-29T03:44:23 | 2020-07-29T03:44:23 | 283,381,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from collections import ChainMap
dict1 = {'a':1, 'b':4}
dict2 = {'b':5, 'c':7}
cmap = ChainMap(dict1, dict2)
print(cmap)
for i in cmap.maps:
print(i)
for i in cmap.keys():
print(i)
for i in cmap.values():
print(i) | [
"noreply@github.com"
] | Vigneshpandiyan600.noreply@github.com |
5d0b9300f93e0f589d3e8b6b06b1dabd9844b08d | 8a5ce1b7864881a516edabafa7b9388d27b53c6d | /music_app/views/artists.py | 39c61cae6e109acb13ec4817bb28708f201c6d11 | [
"MIT"
] | permissive | ryzenboi98/music-app | 84c4666624aad0c1f1f336f6c625491a0a606c4f | 955417c1b4021bf1b757d55f7a1ec9d56a5596e2 | refs/heads/main | 2023-08-12T20:38:56.432150 | 2021-10-07T10:16:03 | 2021-10-07T10:16:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from music_app.models import Artist
from rest_framework import viewsets, permissions
from music_app import serializers
class UserReadOnlyPermissions(permissions.BasePermission):
def has_permission(self, request, view):
return request.method in permissions.SAFE_METHODS or request.user.is_superuser
class Ar... | [
"joaopro23@gmail.com"
] | joaopro23@gmail.com |
2372907ce176df44c3d9cbf02069995888b6c576 | 27694cb6497b948e9e6f6ce858cec6782adace01 | /ciscosparkapi/api/webhooks.py | fedacf258a38092351d394b4f6a3c4605770a7a9 | [
"MIT"
] | permissive | marsivo/ciscosparkapi | 780a087127f3c9c9c44707e4e4839eeae33a732b | f5ea6f4a8e1a9a90feb601ef3433c2dad7cd703f | refs/heads/master | 2021-01-21T18:57:38.492342 | 2016-09-19T09:02:39 | 2016-09-19T09:02:39 | 68,586,837 | 0 | 0 | null | 2016-09-19T08:47:46 | 2016-09-19T08:47:46 | null | UTF-8 | Python | false | false | 9,321 | py | """Cisco Spark Webhooks-API wrapper classes.
Classes:
Webhook: Models a Spark 'webhook' JSON object as a native Python object.
WebhooksAPI: Wrappers the Cisco Spark Webhooks-API and exposes the API
calls as Python method calls that return native Python objects.
"""
from ciscosparkapi.exceptions impo... | [
"chris@cmlccie.com"
] | chris@cmlccie.com |
97fa245b8f83144765ac2371741ea382a277a586 | bc69172516abbad11a53022a13efff54d3f361c0 | /utils/app.py | 5c203783bebe0220039a8a0ba8373386218ed05a | [] | no_license | abrance/MedicalLeagueChain | 8501ad5fc4110bbffc1a112a1264da793662ea24 | 61961e95bcee3f55868e2e2265e9f86c843a4500 | refs/heads/master | 2023-01-24T21:15:50.022300 | 2020-12-08T05:51:22 | 2020-12-08T05:51:22 | 291,379,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | import json
from constants import user
from utils.api import w3
from utils.log import logger, log_path
import datetime
"""
此模块提供 web3 ipc接口
"""
class EthInit(object):
def __init__(self):
self.log = {}
def commit(self, method, param, ret):
t = datetime.datetime.now().strftime('%Y-%m-%d_%H:%... | [
"your_email"
] | your_email |
f1a9777ec7e33129540ca8a03f8921fd33f2f177 | 94d101ae081c95e3f02fb0a4cabf6b189102a647 | /env/slurm/examples/tensorflow/example.py | b08f48ef4d0cc51f0a045d84c1779bd4fa4db957 | [] | no_license | sk-unikent/icarus-scripts | 06ead6cee3628af06ed3e9075905b9396502c7f8 | e20c2ebcec0df38bc07d032e77412b8ba5dd8c5f | refs/heads/master | 2021-04-27T06:05:57.613400 | 2018-10-02T06:59:45 | 2018-10-02T06:59:45 | 122,606,951 | 0 | 0 | null | 2018-10-02T06:59:46 | 2018-02-23T10:26:50 | Python | UTF-8 | Python | false | false | 149 | py | #
# Example Tensorflow Application
#
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
| [
"s.kelty@kent.ac.uk"
] | s.kelty@kent.ac.uk |
25ad96ae411bfd41662e4433ed36402bfc972d03 | 41aafc48b866158953c1af454ad0c9b33f1319c3 | /symbol/fspherenet.py | aa275ff12772d65dac29c386b84ea80381017c68 | [] | no_license | myknotruby/recognition | a1f9a2defabb416091da64b87b8419c8a7f0312a | 6c20026d5b226ce6e7fd580a408ff11b7f56158e | refs/heads/master | 2022-11-16T23:07:07.158119 | 2020-07-02T02:14:15 | 2020-07-02T02:14:15 | 272,152,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,034 | py | import os, sys
import mxnet as mx
import numpy as np
import symbol_utils
import math
#from mxnet.base import _Null
import symbol_utils
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from config import config
withBN = True
bn_mom = 0.9
def conv_branch_pool(data, units, filters, workspace):
body = data... | [
"zhzhaoliang@126.com"
] | zhzhaoliang@126.com |
606a16df0456b41332cf3ba90a58e11843c23db5 | dcc2aca1755516c165f8fc5d3e0bcaac96ddbac6 | /LDA/LDA_Train.py | 0476f09897774296705c0f29156a204f2d980a3b | [] | no_license | maurercartan/GIGABYTE_FuzzyQuery | 4fb97c859b293f6cf14e6c8bfad8f81479116568 | 83e8035e37bb7e028dea9740f6b26e1ab94f2a1b | refs/heads/master | 2021-03-01T10:16:12.566919 | 2020-03-08T14:38:56 | 2020-03-08T14:38:56 | 245,776,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,371 | py | __author__ = 'user'
from gensim import corpora, models
import jieba
import os
import configparser
import pickle
import pymysql
import pymysql.cursors
def getCorpus(dbHost,dbUser,dbPassword,dbDatabase,dbTable):
# 匯入檔案內容
config = configparser.ConfigParser()
myINI = os.getcwd()+'\\LDA\\dict.ini'... | [
"noreply@github.com"
] | maurercartan.noreply@github.com |
10de3e566c9cad31ae3f3f9601990deb0378c7c4 | f19e8b0c8c5ff38c6bbfce16c6d2ee976c964ffe | /tests/wpt/something.py | 10d52a0c04684fa7ff5b88cee8ec4b7fbe0bbb02 | [] | no_license | jdm/servo-mock | 2d5fcffe5781846911844be103b1da3e9177e557 | a52e82dffac424376031eb8bb5e7129c80eb0dea | refs/heads/master | 2021-04-09T15:07:13.742809 | 2018-03-16T20:36:22 | 2018-03-16T20:36:22 | 125,684,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print('this is a python file')
| [
"josh@joshmatthews.net"
] | josh@joshmatthews.net |
e346a931953ea62760ea6dc50e3a102aa937f7cd | bf5fd174005c08cc5b616165c2f4f6dc23e4510c | /bin/python-config | b9211a3f94fc6ca0a85a6904d914769311a784b3 | [] | no_license | adnanjam/gpa | 805b204c5b4adf3f6fa09ec19cea84c0925fb484 | b0fe0931153dea242618c0e635473057e3bf07de | refs/heads/master | 2021-03-13T17:59:13.917922 | 2020-12-21T10:08:50 | 2020-12-21T10:08:50 | 246,698,109 | 0 | 1 | null | 2020-12-21T10:08:52 | 2020-03-11T23:08:56 | Python | UTF-8 | Python | false | false | 2,342 | #!/home/adnan/projects/gpa/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >= (... | [
"addnan_98@hotmail.com"
] | addnan_98@hotmail.com | |
f5333922296905d8036b63e545886b126daa6b78 | 09dbecd235fb0108d0e64a0be9c40d938fa5155e | /itoit/Views/capitalBancaView.py | 8bca40254ea3cb7741b816c0be4928c199f0d8d0 | [] | no_license | ItoIT/Smarthack-ItoIT | ea0d06fc672413508ea0e409f7e1caf0c3596919 | 405a054f06719a249d29178cbf2a7c1efc1c7145 | refs/heads/main | 2023-01-04T01:03:52.628973 | 2020-11-01T09:13:01 | 2020-11-01T09:13:01 | 308,851,461 | 1 | 0 | null | 2020-11-01T00:29:42 | 2020-10-31T09:56:17 | JavaScript | UTF-8 | Python | false | false | 767 | py | from flask import render_template, url_for, redirect, request
from flask_login import login_user, current_user, logout_user, login_required
from itoit import app, db
from itoit.Models import models
@app.route("/capitalbanca", methods=['GET'])
def capitalbanca_get():
firm = models.Firm.query.filter(models.Firm.us... | [
"48451420+PredaMihaiDragos@users.noreply.github.com"
] | 48451420+PredaMihaiDragos@users.noreply.github.com |
9af9714d90dbab4214db386ac0e87a3796cbc58d | 128999141402ebf1170fa806178b00b394136744 | /Test/test1.py | 8dd071425883e374e9da7784098045526e10d035 | [] | no_license | keeees/RaspberryPi | 46a4389d52d57c9dd09fbbe8d50b87147f112d0c | 7129f29c52c945d6a929489b19999f6904c3f7b7 | refs/heads/master | 2020-09-03T05:25:33.099078 | 2020-03-22T03:24:11 | 2020-03-22T03:24:11 | 219,396,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import wget
import time
from ftplib import FTP
clock_start = time.clock()
time_start = time.time()
for i in range(1):
url = 'http://192.168.50.142:8000/test.jpg'
filename = wget.download(url)
clock_end = time.clock()
time_end = time.time()
# time.sleep(0.25)
duration_clock = clock_end - clock_start... | [
"kesun5@illinois.edu"
] | kesun5@illinois.edu |
1cae6677eccc4f88be48e2943c4890ce8ab007a3 | b977c156350bdd9361facaa8a0a28a3eab0b2818 | /acbmc/model/blender/constructing/bone_transform_node_factory.py | d77071dfe63610bd70b6da4849c75a683bce17f7 | [] | no_license | Spinu2b/AnimatedCharacterBlenderModelConstructor | 0df38578ae6bdfa32e54e909b30a313f70d1a55b | 134257436e2edc812de8df247b7365bef2663b01 | refs/heads/master | 2023-06-06T13:36:15.099556 | 2021-06-20T20:52:48 | 2021-06-20T21:01:52 | 293,935,988 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from acbmc.util.model.transform_node import TransformNode
from acbmc.model.blender.model.armature.bone_transform_node import BoneTransformNode
class BoneTransformNodeFactory:
@staticmethod
def get_from_bind_bone_pose(bone_name: str, bind_bone_pose: TransformNode) -> BoneTransformNode:
result = BoneTra... | [
"spinu2b@gmail.com"
] | spinu2b@gmail.com |
e01b8a34f7b5f66a12bde734e35f4d172d5c53be | 84da878d832a36804eb60372225c93fe12cd7e9c | /abc/135/a.py | dd2db216c4b09ab70e8006aaa98acc852ab364b5 | [] | no_license | gensasaki/atcoder | abb6be93dffa2f6d8a98a668d659cff04979017a | 6ce7bb5f8e7b18e76b4a1a30191b8e326cbe3d6a | refs/heads/master | 2020-11-24T21:20:29.883464 | 2019-12-19T05:03:53 | 2019-12-19T05:03:53 | 228,345,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | A, B = map(int, input().split())
K = (A + B) / 2
ans = int(K) if (A + B) % 2 == 0 else "IMPOSSIBLE"
print(ans) | [
"sasakigen11@gmail.com"
] | sasakigen11@gmail.com |
006fe964512bd31ae8ce8bffbf812f67aeeede45 | 63045bfda2cfa3b4908c62da8553c8ba9be7dd5c | /lambdas/s3ttl.py | 0329336640da8edf768ab39d0eae32db8e2cde5a | [] | no_license | chalfant/s3-ttl-lambda | 9b75e02f31a85e3c30ea69099fc11c563190e8bc | 68635c9b330fb76f5b940c76b8920fcce2168e7c | refs/heads/master | 2020-07-28T06:12:35.470279 | 2019-09-17T22:23:48 | 2019-09-17T22:23:48 | 209,334,081 | 0 | 0 | null | 2019-09-18T14:49:39 | 2019-09-18T14:49:38 | null | UTF-8 | Python | false | false | 1,158 | py | import json
import boto3
import os
from datetime import datetime, tzinfo
# import pytz
# utc=pytz.UTC
BUCKET = os.environ['S3_BUCKET']
LOG_LEVEL = os.environ['LOG_LEVEL']
TTL_HOURS = os.environ['TTL_HOURS']
s3 = boto3.resource('s3')
bucket = s3.Bucket(BUCKET)
def conv_secs_to_hours(seconds):
return seconds/60/... | [
"rayjan.wilson@gmail.com"
] | rayjan.wilson@gmail.com |
fbe96a843221eda18802199f2e7ee8c93a84406a | 33e021e80fa1a3f41845e118b2e1101072c3eb84 | /bankroll.py | a7da19354e37f5052ab4e32e131e1db15eee65c6 | [] | no_license | haoyang1234/bitcoin | 121034bf856551b9e2151078cbc684bab5c3ab23 | 532d3c2a06ca61b5ebdc0eeacf74eeea11bed4b6 | refs/heads/master | 2022-04-17T16:31:41.628981 | 2020-02-17T21:44:31 | 2020-02-17T21:44:31 | 239,562,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 10 14:13:51 2019
@author: Hao
"""
import os
import json
import glob
import numpy as np
import pandas as pd
total_pnl = []
name = []
folder1 = "C:\\Users\\Hao\\Desktop\\bitrepo\\Pumpdump&needlecatcher\\Pc-Po 99.5\\"
folder2 = "D:\\bitrepo\\Pumpdump&needleca... | [
"noreply@github.com"
] | haoyang1234.noreply@github.com |
2f183e94cac3a5db6b91056570d9c6600e246688 | bc8ba705e38224681b359922c9a314bf8a9140d1 | /tests/update_notify_cloudify_configuration/test_copy_ssl_cert.py | 13b33817da6835be5c3dd636de4c9bd79b29b26d | [] | no_license | cloudify-cosmo/cloudify-managed-nagios-plugin | 14173b019c286a94be367d5d0a79c14b0f5a9413 | 1b9681130a78af5db2d60cb3996dc549d847ef6e | refs/heads/master | 2023-08-01T13:35:27.623384 | 2022-12-01T19:11:36 | 2022-12-01T19:11:36 | 148,599,978 | 0 | 9 | null | 2023-04-09T14:53:41 | 2018-09-13T07:33:33 | Python | UTF-8 | Python | false | false | 536 | py | import mock
import tests.links.update_notify_cloudify_configuration as update_config
@mock.patch('tests.links.update_notify_cloudify_configuration.run')
def test_copy_cert(run):
expected_source_path = 'thepathwewant'
config = {
'something': 'yes',
'local_rest_cert_file': expected_source_path,... | [
"nobody@nowhere.local"
] | nobody@nowhere.local |
bb70c83fe48f0a14c8eb090192a8cc964f4e028c | 049c4629c466676950bc0adcfd2690028297ba01 | /DJANGO_MOVIE/movies/migrations/0001_initial.py | 0f33aef5d89b6a16bbee878479dcabbd1d6dbec7 | [] | no_license | bernow/Python | 2027a674d47dd1b3322c3678f1efa0082a742d5b | 04aa7b5236047e076c76c07dfa98286c7e24ae64 | refs/heads/master | 2020-08-24T04:56:32.456972 | 2019-11-19T08:23:39 | 2019-11-19T08:23:39 | 216,765,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # Generated by Django 2.2.6 on 2019-11-05 11:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
... | [
"kok9591@naver.com"
] | kok9591@naver.com |
a4f65bb6a45b521a60fef3ecc1413da2148a87d7 | 26b134b48a5556baa0ab8c80dd030d07f3277a46 | /tests/apps/python/web.py | b3e8ef72812a573a4b5a9005d8dccb9fbfa47032 | [
"MIT"
] | permissive | srr013/dokku | 376ac5e6fcfce6ba38e11cbece2a2532c401ea35 | 81d31c9934b76d6898a5079f6ec4cb26f706c1ed | refs/heads/master | 2023-01-27T11:31:25.061380 | 2020-12-02T19:19:07 | 2020-12-02T19:19:07 | 318,818,921 | 0 | 0 | MIT | 2020-12-05T15:14:36 | 2020-12-05T15:14:36 | null | UTF-8 | Python | false | false | 510 | py | import http.server
import os
class GetHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-Type", "text/plain; charset=utf-8")
self.end_headers()
self.wfile.write("python/http.server".encode("utf-8"))
if __name__ == "__m... | [
"email@josediazgonzalez.com"
] | email@josediazgonzalez.com |
e0a422afafd0c518668c019f26bccbc9e6a9bb01 | 6572f29c4472f1bd131dfb0fba441cb5b641ec83 | /django/mysite_personal_models/blog/urls.py | 6bdac35817b4968ca9cf7207271375c46c4feef1 | [] | no_license | kan-abhulimen/jango-training | 1ccbe04c9f2f481d4482e9fdfd50b1a5b43cc7ae | 734087392cd9635f00596a7955882f4849883930 | refs/heads/master | 2020-03-07T18:37:44.332426 | 2018-01-27T16:11:29 | 2018-01-27T16:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from django.conf.urls import url, include
from django.views.generic import ListView, DetailView
from blog.models import Post
urlpatterns = [
url(r'^$', ListView.as_view(
queryset=Post.objects.all().order_by("-date")[:25],
template_... | [
"mail_arunn@yahoo.com"
] | mail_arunn@yahoo.com |
c442740a0bcbc288556a64daa57037c8a3f469ab | d0326c87cda35a4c80d1bb137894a33ca3f1bcc9 | /jetracer/nvidia_racecar.py | ec1631454f4df2f3fb9181022e6a30c9bf3caab6 | [
"MIT"
] | permissive | tokk-nv/jetracer | 5a36fcf809348b609331d369d71cca20010c954a | e83f11522f75d5f89486442ce2e36624e20970a7 | refs/heads/master | 2023-07-03T21:58:25.670731 | 2021-08-09T23:33:58 | 2021-08-09T23:33:58 | 321,274,145 | 1 | 0 | MIT | 2021-06-01T20:47:28 | 2020-12-14T07:59:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,115 | py | from .racecar import Racecar
import traitlets
from adafruit_servokit import ServoKit
class NvidiaRacecar(Racecar):
i2c_address = traitlets.Integer(default_value=0x40)
steering_gain = traitlets.Float(default_value=-0.65)
steering_offset = traitlets.Float(default_value=0)
steering_channel = traitle... | [
"jwelsh@nvidia.com"
] | jwelsh@nvidia.com |
50330e7bea315b129dabe997e0dca018f5f5629c | f2042aebec30039aaff5c0279f4c9a67e4f79709 | /config/settings/production.py | 19047261293b339500d314e16f023c54eec5f457 | [] | no_license | MarcyNash/django_website | c6f2f01a22755396d52b2452d025cc16bd986e03 | dab5f5bc8c069d38624b2db71635733f4ef61363 | refs/heads/master | 2022-11-22T08:15:01.185312 | 2020-07-30T17:42:30 | 2020-07-30T17:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,282 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED... | [
"aqui.carattino@gmail.com"
] | aqui.carattino@gmail.com |
d5abc58eeb91065258b67686a5ddda5d762661d7 | 0b8b683b9a0ff758c0c5e1d0a19f90751422618a | /@61_.py | c2756d3fe5794b77d43b1d79d7efc356909ce082 | [] | no_license | aushine/100_ | 29712674728eafce9f7bf9a95dd21552c48614be | 36dd59aa88bc8eca720b654fd9ad3ce11bf61e5a | refs/heads/master | 2020-04-30T23:28:19.836172 | 2019-03-22T13:27:03 | 2019-03-22T13:27:03 | 177,144,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | if __name__ == "__main__":
a =[]
for each in range(10):
a.append([])
for each_ in range(1, each+2):
a[each].append(1)
for i in range(2, 10):
for j in range(1, i):
a[i][j] = a[i-1][j-1]+a[i-1][j]
b = []
for each in a:
b.append(' '.join(map(str, ... | [
"161596610@qq.com"
] | 161596610@qq.com |
fbdc9234549db3a006eb8b446d89f45360fb2362 | 3113b8fd9a0e74e8716ab1fb7bedc851d83c5183 | /fiesta_family/settings.py | 968060ca714c315fbd8d6f9e73a9d769f89f5717 | [] | no_license | ulank1/fiesta | 478ad3866d3df35e502d60ddd703224fcf173ccf | 71774598c5180a68c3e0ad75c7325a67ce1a72bc | refs/heads/master | 2020-07-27T08:41:26.330154 | 2016-08-27T12:02:45 | 2016-08-27T12:02:45 | 66,712,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,909 | py | """
Django settings for fiesta_family project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import... | [
"ulankarimov@mail.ru"
] | ulankarimov@mail.ru |
475728c282b849f2af54a99b7cb1b09018e8ffd4 | bb0e580e3fd528ea5212f74eaab797116ff42ab9 | /read_gps_speed.py | f9eb48a5af0f09d89218d7334bb6414acdda0dee | [] | no_license | 8n8/realbikenav | 0676f41664ca56fe12fbe42b1ebeefe45dab3b8f | e493e2247b7e026c9aee3f2ed2c1cd8be6ce7d0f | refs/heads/master | 2023-07-31T02:16:03.832891 | 2018-06-30T12:02:33 | 2018-06-30T12:02:33 | 405,713,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | """ It reads the GPS receiver and prints out its output. """
import serial # type: ignore
serial_port = serial.Serial('/dev/ttyACM0')
serial_port.baudrate = 115200
while True:
reading = serial_port.readline()
for line in reading.splitlines():
print(line)
if line[5:8] == 'VTG':
pr... | [
""
] | |
5cc81a779ecee18c8ef0e63e12697bfe059f8bf0 | e26d89b7e11f902fedb6642e9e4fe942105a1f1e | /LAB17/aluno.py | d334b2ca9af50221012b70a3e9bfa89c78cbcd3a | [] | no_license | Marcos-Tonari-Diaz/MC102 | 8caed787a897e42a4bead1aa46f4d89dd8b028de | 6482fa4ed09f103ed5757e7b76c202b1e5f85d9c | refs/heads/main | 2023-03-01T02:29:25.506078 | 2021-02-02T00:24:50 | 2021-02-02T00:24:50 | 335,121,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | class Aluno:
def __init__(self, nome, ra, email, usuario, senha):
self.nome = nome
self.ra = ra
self.email = email
self.usuario = usuario
self.senha = senha
| [
"marcos.dure.diaz@gmail.com"
] | marcos.dure.diaz@gmail.com |
47955f0cfeb6ad8ef9ded6bffccc8aa706933bee | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/l5d.py | d8160fd04b64e99d78c07839a70756ef5e92a3dc | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ec781f7631675e66a19b9c7c2f94e55d983f2331 | 46549aa548d7c367caf4f03dce97da373f71a299 | /src/python/sandbox/checkin_times.py | ef9f62f79a4dc7340dc6d120bbb0e95ffa798193 | [] | no_license | rboberg/bodeza | 6177b01c13c5b1a5e442f743014555667b98bf85 | 1b061fe10bb97d8d8f5f49c9ea5d86600fe4c7ae | refs/heads/master | 2021-01-10T21:39:45.457763 | 2014-12-19T06:00:13 | 2014-12-19T06:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 09 19:33:59 2014
@author: Ross
"""
import os
import json
import pandas as pd
from ggplot import *
repo_dir = 'C:/Users/Ross/Documents/GitHub/bodeza'
data_dir = os.path.dirname(repo_dir) + '/bodeza_data'
fd = open(data_dir + '/yelp_data/yelp_academic_dataset_checkin.jso... | [
"ross.boberg@gmail.com"
] | ross.boberg@gmail.com |
e6334f2a64f9a1b31d53af7cad6ac3abe5758f7d | 8cce0b5a4be09783016906a36192c52e9daa84aa | /cv_workshops/13-section/7-clazz.py | 4640afbe5beea856e54129e53ebbe39d9916db00 | [
"MIT"
] | permissive | Castrol68/opencv-practice | fcc9495553d3a10fb045c396697391a5d2a06f36 | 83d76132d004ebbc96d99d34a0fd3fc37a044f9f | refs/heads/master | 2023-08-31T07:18:51.497902 | 2020-05-03T17:43:12 | 2020-05-03T17:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import tensorflow as tf
"""
TensorFlow - hello world
使用安装的TensorFlow 2.0并导入
"""
def main():
# 导入数据集, 数据集下载地址为: http://yann.lecun.com/exdb/mnist/
mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
# 将... | [
"afterloe@foxmail.com"
] | afterloe@foxmail.com |
6ec621dff6324b2822383c42b374ac54637d859a | dc72e1eb44cfaed330d9477d0c27bee307a81e4a | /Jackpointnew/hand/scripts.py | 47913e46358e99f954ce1218749325896b5b7a09 | [] | no_license | bussiere/JackPointFInal | ba200d85606e17b423535af20a58c04bf5afa550 | c414480fee519e68aece68068e941278fe10cf0a | refs/heads/master | 2021-07-24T14:25:56.982106 | 2013-07-08T11:10:41 | 2013-07-08T11:10:41 | 5,333,141 | 0 | 0 | null | 2021-06-10T17:45:33 | 2012-08-07T20:29:46 | Python | UTF-8 | Python | false | false | 3,808 | py | from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.contrib.auth.decorators import login_required
from django.contrib import auth
from skill.models import Skill
from carac.models import Carac
from item.models import Item
from carac.forms import CaracFormChoice
from skill... | [
"bussiere@gmail.com"
] | bussiere@gmail.com |
b9f331103a0bf956b0ad3d59e3c5760c3f9345fb | 944809cdb595c2338518977317253f5cfa89756e | /scripts/background_subtraction.py | b552e7e8b692a4524d7f35a4a924144c3ca5f158 | [] | no_license | adithyamurali/DeepMilestones | 874965d7040d4ef54f6a6692274bd7ce8c791178 | c031f55595dbfc01d493bce0ccab548bdecb6001 | refs/heads/master | 2021-01-22T14:01:56.932705 | 2015-10-02T01:16:35 | 2015-10-02T01:16:35 | 39,215,948 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import numpy as np
import cv2
import argparse
import sys
import matplotlib.pyplot as plt
import IPython
import parser
import utils
import constants
def run_video_with_bsub(cap, func, kernel = None, params = None):
if params is not None:
fgbg = func(params[0], params[1], params[2], params[3])
else:
fgbg = func()... | [
"adithya_murali@berkeley.edu"
] | adithya_murali@berkeley.edu |
6a069aad4eae164b7a135b62b70c4a3ad36591d9 | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/tests/unit/virt/vmwareapi/test_configdrive.py | 9462d39ae2ad4d8c8a8ebadc31116bba226df242 | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 14,534 | py | begin_unit
comment|'# Copyright 2013 IBM Corp.'
nl|'\n'
comment|'# Copyright 2011 OpenStack Foundation'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
a87f1b16a0c24b911ed48b462eb0144df949a491 | 92796ecf76e64796b4d265df281bf27b4206f1b8 | /wechat/wechat/asgi.py | d603532362615412bd68c8353200c60bcc0a8d45 | [] | no_license | singhsagar27/Wechat---Real-Time-Chat-App | e4ee1d81f2c0d9cd83154609fcf2506c7f2b0655 | 6e74354daa76b2527ed070a84a36434e5e264069 | refs/heads/main | 2023-03-20T19:02:13.763649 | 2021-03-19T14:33:32 | 2021-03-19T14:33:32 | 348,711,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import os
from django.core.asgi import get_asgi_application
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
import chat.routing
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wechat.settings')
application = get_asgi_application()
application = ProtocolType... | [
"47419028+theambrosial@users.noreply.github.com"
] | 47419028+theambrosial@users.noreply.github.com |
83b81627d484d881a90f8b4ff4ac32c922a54f53 | 6ebffea0be90da76503a95b029d4a6a07204229e | /data/datamodule.py | d2d7aa6a8a5dbb72df301df3d32e7e0c46f6988f | [] | no_license | Huizerd/bnns | 7853a647ba1b592f42c8c9fd0fbe31108d41fd12 | 9e13cfdf25d3050ab23692dbca47446c8b9dbd90 | refs/heads/master | 2023-06-24T12:33:52.086644 | 2021-06-25T11:44:05 | 2021-06-25T11:44:05 | 371,048,303 | 1 | 0 | null | 2021-06-21T11:20:52 | 2021-05-26T13:42:32 | VHDL | UTF-8 | Python | false | false | 267 | py | from pl_bolts.datasets.mnist_dataset import BinaryMNIST
from pl_bolts.datamodules.mnist_datamodule import MNISTDataModule
class BinaryMNISTDataModule(MNISTDataModule):
name = "binarymnist"
dataset_cls = BinaryMNIST # has 0.5 as threshold for making binary
| [
"15855769+Huizerd@users.noreply.github.com"
] | 15855769+Huizerd@users.noreply.github.com |
68a6ad72b6ba110b69031ee89e2ee46750bbdae1 | 74be41563cba82ec784aed3c893a53261a428ab1 | /myapp/ocr_api/views.py | db6910d7ae1c32dea6bf6323e19f1305a4a8f71f | [] | no_license | Bakushin10/Django | e06ad485084d917886a50e5f3c38f8b049c85fb1 | 184db43f58e4679c2a556f9603f5e3bec61da1eb | refs/heads/master | 2022-12-12T13:34:24.391273 | 2019-11-05T14:33:29 | 2019-11-05T14:33:29 | 202,837,195 | 0 | 0 | null | 2022-12-08T06:53:31 | 2019-08-17T04:55:27 | Python | UTF-8 | Python | false | false | 5,626 | py | import os, sys, json
from PIL import Image, ImageDraw2
from django.shortcuts import render
from django.shortcuts import render, HttpResponseRedirect
from django.http import HttpResponse, JsonResponse
from ocr_api.models import OCRInputModel, JsonOCRInputModel
from ocr_api.serializers import OCRInputModelSeriali... | [
"shnnagai@gmail.com"
] | shnnagai@gmail.com |
b1f831dc5b99ada2504bfeae16902b81d431db0e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03470/s172972650.py | 57f94dcf85afe314754def063304ba328d8d9803 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | N = int(input())
d = sorted([int(input()) for i in range(N)])
ans = 1
for i in range(N-1):
if d[i] < d[i+1]:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8b52b027b34e1dcf92be1fa08afa21d1099e7062 | 3dae023e2da2117755a6caa6476e0279a3f3573b | /q3_sgd.py | 1bba51c77ebf3bb9cdc61e548b5e18e85d63395a | [] | no_license | saifkheraj/Word2Vec-CS224D | 86f222e3daf7dffb193ee168944cb25c847ba794 | 115855d218aa86cb4503ad57ebe71c1db0e394ab | refs/heads/master | 2020-03-26T07:04:06.062565 | 2018-08-15T07:31:28 | 2018-08-15T07:31:28 | 144,635,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | # Save parameters every a few SGD iterations as fail-safe
SAVE_PARAMS_EVERY = 1000
import glob
import random
import numpy as np
import os.path as op
import cPickle as pickle
def load_saved_params():
""" A helper function that loads previously saved parameters and resets iteration start """
st = 0
for f in... | [
"saifalikheraj@hotmail.com"
] | saifalikheraj@hotmail.com |
ebb1b965bd494a3d707ed357c8ce08c6929310db | 19d16656659d625d30bfccced5d51826772f5435 | /DataSc/env/bin/jupyter-nbextension | 96db8eb69e567d87cde671a4a9cf7b4afceff74a | [] | no_license | mannann/minacs50 | 5c76d9d0393d070a6a46da667a3de16829757ca5 | 14cbe1a7de1623696acd10eaf101752065755f7a | refs/heads/master | 2020-05-20T18:25:11.894824 | 2019-05-09T03:18:16 | 2019-05-09T03:18:16 | 185,703,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/home/ubuntu/workspace/DataSc/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from notebook.nbextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ubuntu@6cea0f54ee0b"
] | ubuntu@6cea0f54ee0b | |
88dacaa17e2b271dcad8fc79b31696d64d78931d | f49a4da9605020b09b38d342c305732002cbcdcd | /core/ffmpeg.py | 26e7d025894b999ac830175257f44b4eb6c25226 | [
"MIT"
] | permissive | hbhammaddyar0/TG-Watermark-bot | 334fd245910eb1e329d61b2bdffcb7686f83b373 | c98a249f6789131777cfb76d0123f1744dc354ad | refs/heads/main | 2023-06-07T15:38:37.907890 | 2021-06-17T06:29:46 | 2021-06-17T06:29:46 | 377,711,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,926 | py | # (c) @hbhammaddyar
# This is Telegram Video Watermark Adder Bot's Source Code.
# I Hardly Made This. So Don't Forget to Give Me Credits.
# Done this Huge Task for Free. If you guys not support me,
# I will stop making such things!
# Edit anything at your own risk!
# Don't forget to help me if I done any mistake in ... | [
"noreply@github.com"
] | hbhammaddyar0.noreply@github.com |
608f07046d35b8cdb5eff5795a164e522ef0ea84 | e81fa4692ef5a170aa597c814d648d500d1913fe | /bin/proc_ifg_cfn_exp.py | 4b7bebd0e6856b14f84c601ea5e368d484261df8 | [
"MIT"
] | permissive | wayne128/dinoSARaws | dc905c1ea591831c6c07a432352a51182d3c83d0 | 2b1bd017dfc0059817e22d739392c1ed6cc8d77a | refs/heads/master | 2020-06-12T02:26:47.243620 | 2018-12-17T01:21:47 | 2018-12-17T01:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
EXPERIMENTING WITH NEW CLOUD FORMATION SETTINGS
- send email when process begins and completes
- run interferogram using spot market
Note: intended for single interferogram processing. For batch processing
figure out how to store common data and DEM on an EFS drive
... | [
"scottyhq@gmail.com"
] | scottyhq@gmail.com |
dec6c0c42f0bad8ce00df0e0e3289617fbecf922 | e06161af1bafac937d3479d9f21bb58a25c571cb | /2d_array_take2.py | fad226c927eb34864e66927113a552d261d115a2 | [] | no_license | mdayunus/dsa-in-py | 641a4a1728fdb8b7c7aa70152a34922a64b7c096 | 6776e9927e85c0a81091190f3f2d0fa12d74a767 | refs/heads/master | 2023-04-17T08:32:40.259202 | 2021-05-07T22:42:52 | 2021-05-07T22:42:52 | 364,181,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | def simple(a):
maxi = 0
for i in range(1,5):
for j in range(1,5):
insum = a[i-1][j-1]+a[i-1][j]+a[i-1][j+1]+a[i][j]+a[i+1][j-1]+a[i+1][j]+a[i+1][j+1]
if insum > maxi:
maxi = insum
return maxi
if __name__ == '__main__':
a = [
[1, 1, 1, 0, 0, 0],
... | [
"mdayunus@gmail.com"
] | mdayunus@gmail.com |
bb2ddd0cc7eed6fb5c05708a37f3d838e9e6a58d | a5901321e965a12ed476899e69e5793b007f32b1 | /tristan-TristanD/week-8/flask-intro/.env/bin/pip | 1edc68b36e2942b1b903f0e8ea8863e553709615 | [] | no_license | trrstnn/sf-wdi-51-assignments | 4161483fd3aa8f81d63bf3503163b701bcee559d | 6ea3057e683a1c5c87230afd08efad73957f7bd8 | refs/heads/master | 2020-04-18T04:35:36.605552 | 2019-03-22T05:03:22 | 2019-03-22T05:03:22 | 167,245,007 | 0 | 0 | null | 2019-01-23T19:56:49 | 2019-01-23T19:56:48 | null | UTF-8 | Python | false | false | 272 | #!/Users/trizzy/Desktop/wdi/exercises/week-8/flask-intro/.env/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"edeclarin@gmail.com"
] | edeclarin@gmail.com | |
be170dcc3bdd5793fcc52084d7dd6184d1ea3928 | 51aa2894c317f60726fe9a778999eb7851b6be3e | /120_design_patterns/014_command/_exercises/templates/4-Command Pattern/Assignment/Solution/security_commands.py | dccb3920efff4cf8a244e3bb8df5cf9715871ec1 | [] | no_license | pranaymate/Python_Topics | dd7b288ab0f5bbee71d57080179d6481aae17304 | 33d29e0a5bf4cde104f9c7f0693cf9897f3f2101 | refs/heads/master | 2022-04-25T19:04:31.337737 | 2020-04-26T00:36:03 | 2020-04-26T00:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # ____ a__.s... ______ S..
# ____ c_a.. ______ AC..
#
#
# c_ SecurityArmCommand AC..
# ___ - security
# __ no. isi.. ? S..
# r_ T..
# ? ?
#
# ___ execute
# s____.a..
#
# ___ undo(
# s___.di..
#
#
# c_ SecurityDisarmCommand(AbsCommand):
# ___ - security
# ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
76b7b7fd8b8e98790d7b81290bc4cc77bea998c9 | a74a592d3e34c0cb2e19363a92410c520dc0ecda | /backend/course/models.py | 1ed6ffe755403a8dcb6cbf4e3dc54d87f002688f | [] | no_license | crowdbotics-apps/youthbuild-course-a-18675 | 5e4f0231b6127b215576c87593b8a073518200de | 4f17bfa2f588be23f24d862ca86fba569908e90e | refs/heads/master | 2022-11-08T20:55:36.094513 | 2020-07-07T19:33:25 | 2020-07-07T19:33:25 | 277,903,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | from django.conf import settings
from django.db import models
class Course(models.Model):
"Generated Model"
author = models.ForeignKey(
"users.User", on_delete=models.CASCADE, related_name="course_author",
)
title = models.CharField(null=True, blank=True, max_length=256,)
description = mod... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
19d3b612fa87b5b0dcdf3f23ddece88b33ff1990 | 6f496bd9095d232002440401655535c77def0d97 | /problem1.py | 94a522f3c16b4ec8cdc399a0c12ede621546ef98 | [] | no_license | kartavyabhatts30/Design-1 | 357aa23a8be518a331037bd651dde76412262597 | 0677c410142a130263f7865a1ed5cd52290dfd39 | refs/heads/master | 2022-11-22T04:40:59.934246 | 2020-07-22T04:46:46 | 2020-07-22T04:46:46 | 277,712,921 | 0 | 0 | null | 2020-07-07T04:04:58 | 2020-07-07T04:04:57 | null | UTF-8 | Python | false | false | 2,040 | py | # Time Complexity :
# Space Complexity :
# Did this code successfully run on Leetcode :
# Any problem you faced while coding this :
# Your code here along with comments explaining your approach
class linkedListNode:
def __init__(self, k, v):
self.key = k
self.value = v
se... | [
"bkartavya07@gmail.com"
] | bkartavya07@gmail.com |
d45bc129e292a1e9f115213dcfce753bb1df6867 | cfce575e6eb1bed6ba4cfcc457f32c396d62f2fc | /settings.py | fa55a701de2fc0a0d12d69742b2a1dca4ccd6585 | [] | no_license | Bligh-Park/mysite | 3edf7f18dc85e5418b3b3ad5c2212101658e44b1 | 7c21ff9b81aa03dd64f3d57357280e69a21fe97c | refs/heads/master | 2021-01-20T06:42:42.209083 | 2017-05-01T07:51:08 | 2017-05-01T07:51:08 | 89,910,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"sy131.park@gmail.com"
] | sy131.park@gmail.com |
a3b0628f021f81f748f640274f9ddface28f23ea | 500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6 | /book_exercise/py_intro/basics/Chapter 4: If statement/num_close.py | d5a70064327dbf0d92c9c632d600f35af5edadad | [] | 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 | 364 | py | #!/usr/bin/python3
# Guessing a float number
num = 10.000
user_num = float(input('Try to guess the float number: '))
if user_num == 10.001 or user_num == 9.999:
print('You were close.')
elif user_num != 10.001 and user_num != 9.999:
print('You were not close.')
elif user_num == num:
print('That\'s corre... | [
"cvaldez553@gmail.com"
] | cvaldez553@gmail.com |
c295ac822210fac2e47f1c17e39c91b6cf211895 | 63b833d7f84cfea52f5f897c8f6419096b38d9c6 | /LOF_iF_test.py | d6fd144e269a931c2ad9e3dee6918d4dd07221df | [] | no_license | jywang2016/Modelica-related-code | f1be6bf9b3b33145cd4d4cba5093c0a9b424f9d3 | 3098383c121b80bfe7715020eb045e85edb030f0 | refs/heads/master | 2022-03-15T06:58:53.342384 | 2019-10-28T21:28:48 | 2019-10-28T21:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | ## General imports
import numpy as np
import pandas as pd
import os,inspect
import math
# Get this current script file's directory:
loc = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
# Set working directory
os.chdir(loc)
os.chdir('..') # parent directory
from myFunctions import ... | [
"noreply@github.com"
] | jywang2016.noreply@github.com |
7cb899c9ef10872fd3b76e309dcb6ff0b2775ec2 | 3474e05ca41d697e8500981a81f195131031afb7 | /src/constants.py | 2283c18620165e5ce7e43e7bf4defee2837fc6ef | [
"BSD-3-Clause"
] | permissive | mayadeh-kooti/mne-bids-pipeline-runner | 1a3458659d9b2b690a63c12828d9618c910c66df | 8690c438c2a45c37fdd66d20c0a8794f028a0dbb | refs/heads/main | 2023-05-04T16:06:51.855304 | 2021-05-26T09:00:27 | 2021-05-26T09:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | GIT_REPO_URI = 'git@github.com:mne-tools/mne-bids-pipeline'
| [
"richard.hoechenberger@gmail.com"
] | richard.hoechenberger@gmail.com |
207c6ccefcf7af5a19bcab4956f9c8cf3e50ddbb | 5705b51fa12e7edb9ad0eae55f4de92aaddf43e4 | /parser_CAML.py | 9bdf909fadcca73b8b3bb849f6af41270b27621a | [] | no_license | Complex-data/Predicting-Restaurant-Closure-Through-Deep-Concept-Explainable-Model | c05253e5f522ed29c22beb79fcd7f0d477c9b623 | 3bdd5fc1bef162790f4d53e2ab770cf1a41acc71 | refs/heads/master | 2020-09-26T09:55:27.292035 | 2020-05-19T07:21:48 | 2020-05-19T07:21:48 | 226,231,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,349 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
def build_parser():
""" This function produces the default argparser.
Note that NOT all args are actively used. I used a generic
argparser for all my projects, so you will surely s... | [
"noreply@github.com"
] | Complex-data.noreply@github.com |
337372f50741ea51f7f9a1fac05e88744cbe730f | 7ab39c3457f5a944d9b4c02c23a445a50d807671 | /venv/bin/flask | 343e32d48da97dc73bcd0fd3f23b32e009a71b48 | [
"MIT"
] | permissive | jmtroll/my-resume2 | aa462668b9805b99e1df44e6b3aae798cd7480fa | 1f11f664c06a1a676e66440b775bd2263e2420ce | refs/heads/master | 2021-09-14T14:03:46.285614 | 2018-05-14T20:33:05 | 2018-05-14T20:33:05 | 112,559,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/Users/jmtroll/Desktop/Misy350/python/songbase-1/songbase/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jmtroll@udel.edu"
] | jmtroll@udel.edu | |
445127e0bd4c9c2071af44bf50ed006f99fa6f0f | c1f285c7fe5ede34fa8b9ccc1e978faf719c2956 | /borrowers/migrations/0006_auto_20200514_0707.py | 5778619d30ea59f6fa69b7d1bd2176b115a82c74 | [] | no_license | tadiparChinese/ucpbciif | cb5d5f0f09e9d5c58226ea8606b0fd77834c7294 | 9dbb6e5f1639b220ff163a962b58b0e13b5e18d0 | refs/heads/master | 2023-03-21T21:41:26.872229 | 2021-03-04T03:12:54 | 2021-03-04T03:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.1.7 on 2020-05-14 07:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('borrowers', '0005_auto_20200513_0653'),
]
operations = [
migrations.RenameField(
model_name='standingcommittee',
old_name='y... | [
"krystjyn.enriquez@gmail.com"
] | krystjyn.enriquez@gmail.com |
677767ca7ceb624e8d26a88b9ec1aea211c9eb4c | 29f5b2d3a3582afad36ce03d23ac8e25743c7a1d | /quickstart.py | 4e6bea7265daf75d13f0f31247acd9327aebbe9f | [] | no_license | kylinRao/djangowebbuild | 9b1e1f32ae8b8872e950ff91658296d92113597e | 75a06b8e35d50176d824e3a4e790a79796c28f70 | refs/heads/master | 2021-01-19T04:32:49.411920 | 2016-06-08T01:33:38 | 2016-06-08T01:33:38 | 60,658,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | from __future__ import print_function
import httplib2
import os
from apiclient import discovery
import oauth2client
from oauth2client import client
from oauth2client import tools
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
except ImportError:
flags = None
... | [
"975168367@qq.com"
] | 975168367@qq.com |
6c5e70a7d16afe0964cf1c6742205d3fd6d8e7a4 | ca24277734fc7a02d155f7d8b15e8e1b9888cef0 | /Instagram/migrations/0012_post_likes.py | c02f54982bd3cb0614d8eec5eda9b084da4e7b9e | [] | no_license | kvs-rajawat-bh/mtechProject | d64d574a1bbed732724707ecda275a9073dbe8ef | 7042379e97bd4514f9ebda8e50e189e81cf20411 | refs/heads/master | 2020-04-21T11:24:09.214037 | 2019-02-12T04:17:32 | 2019-02-12T04:17:32 | 169,523,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 2.1.5 on 2019-02-11 20:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Instagram', '0011_auto_20190211_2150'),
]
operations = [
migrations.AddField(
model_name='post',
name='likes',
... | [
"kvs.rajawat.bh@gmail.com"
] | kvs.rajawat.bh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.