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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
126a20fb489533be6f9eb87fb82a6b0b6be1efa9 | ca010e22f1cf5238a3529a43536960193054370c | /game_2048/main.py | b099d76e807ea858df663ef3c6368e31d45d7b79 | [] | no_license | acoderboy/code | e916a83160a6c9ccc12bf16b3f08e4c73abb5867 | 4f32f84525c12da48b2fc2c785a1a2ddbf5678f7 | refs/heads/master | 2020-07-15T20:38:49.139795 | 2019-09-01T08:18:12 | 2019-09-01T08:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | """
游戏入口
10:40 上课
"""
from ui import GameConsoleView
if __name__ == "__main__":
view = GameConsoleView()
view.start()
view.update()
| [
"396871178@qq.com"
] | 396871178@qq.com |
e564cbb6e5bd4a5146b48e57490b98887aa49bcc | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /AtCoder/tkppc/c.py | c001eb99b71d1c90cfe2d44eb70b9b13d6f44518 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 321 | py | # https://tkppc.contest.atcoder.jp/tasks/tkppc2015_c
N, M = map(int, input().split())
S = int(input())
T = [0 for _ in range(10000)]
for _ in range(N):
t, k = map(int, input().split())
T[t-1] = k
# print(T)
total = 0
d = 0
for i in range(S - 1):
total += T[i]
if total >= M:
d += 1
print(d)... | [
"takecian@gmail.com"
] | takecian@gmail.com |
b141c7a18efb2baa9b0e19dbd1d9477614e8ad49 | 6061701df1acc2cae24fdadd8054b96b10f96f56 | /tests/test_matrix.py | 64a731af58583c1d85ee14307776fea81f2c0fed | [
"Apache-2.0"
] | permissive | gf2crypto/blincodes | f1b0615ca5455743ad097a884fc261dc4ab7119b | c1471168c89f7f395f45e5844d1c04780518fcfa | refs/heads/master | 2022-02-19T04:49:38.040674 | 2020-04-25T18:21:02 | 2020-04-25T18:21:02 | 231,413,664 | 0 | 3 | Apache-2.0 | 2022-01-21T20:18:47 | 2020-01-02T15:56:54 | Python | UTF-8 | Python | false | false | 39,034 | py | """Unit tests for matrix module."""
import unittest
from blincodes import matrix
from blincodes.vector import Vector
class InitMatrixTestCase(unittest.TestCase):
"""Test to init of Matrix object."""
def test_init_default(self):
"""Init by default values."""
matr = matrix.Matrix()
sel... | [
"ivchizhov@gmail.com"
] | ivchizhov@gmail.com |
2484e18a908970de9c105cff0b254bb207d90b5e | 9e6564ecbe82a89bb61b0edaa1ece34508d118eb | /tests/client_tests/test_client_callback.py | f7ae5d00c854711b7d65393eaf782f48e74e1473 | [
"MIT"
] | permissive | richmahn/tx-manager | 4cae2d68b31a7da1af50ab4da76fd86ebacf081a | a01f8c425c7f9634dea00e331fac7e20595f3aa5 | refs/heads/do-not-use | 2020-12-25T17:45:56.395142 | 2017-07-06T17:20:35 | 2017-07-06T17:20:35 | 68,339,644 | 0 | 0 | null | 2016-09-15T23:34:19 | 2016-09-15T23:34:19 | null | UTF-8 | Python | false | false | 6,876 | py | from __future__ import absolute_import, unicode_literals, print_function
import json
import tempfile
import os
import shutil
from libraries.aws_tools.s3_handler import S3Handler
from libraries.general_tools import file_utils
from mock import patch
from unittest import TestCase
from libraries.client.client_callback impo... | [
"richmahn@users.noreply.github.com"
] | richmahn@users.noreply.github.com |
3db9fbe581392cbb9ce6e18651b9b6cefe80e988 | f958555fa2ff0dbcd4d548436e581a476a416ab8 | /Day3-1.py | 5ca0b6a24815c9c6fd9795273da4595f99721a75 | [] | no_license | tony940411/python200805 | c750549f4d476637ef8a661f357d9040edaff225 | aabef929cb1cad4fa4601e63abb08018ad33ab61 | refs/heads/master | 2022-11-29T03:10:23.626631 | 2020-08-05T08:41:04 | 2020-08-05T08:41:04 | 285,170,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 5 09:27:49 2020
@author: user
"""
for i in range(1,10,1):
#print(i)
for j in range(1,10,1):
print(i,'*',j , '=' ,i*j)
| [
"noreply@github.com"
] | tony940411.noreply@github.com |
f442f7588502633da7efa36fefb3ef833092ca60 | 50b5281dc2daa2b50fc6591cb64fc4c7db2c4ffc | /SentimentAnalysis/plotting.py | fb56314599ef9b8a73bd5777514d41e58213e3b3 | [] | no_license | vaibhavsingh007/DMTM | 5c01d8c28adb5122bb9430e658313bdcb0b38e3e | 81efce65aa134abda4f1a4e04650bdd74717fab8 | refs/heads/master | 2021-04-29T11:58:21.293755 | 2018-05-13T17:43:25 | 2018-05-13T17:43:25 | 121,720,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | import matplotlib.pyplot as plt
def plot_avg_p_r_curves(precision, recall, average_precision):
plt.figure()
plt.step(recall['micro'], precision['micro'], color='b', alpha=0.2,
where='post')
plt.fill_between(recall["micro"], precision["micro"], step='post', alpha=0.2,
color... | [
"vaibhav.singh21@yahoo.co.in"
] | vaibhav.singh21@yahoo.co.in |
e962467186f30fec64065c41550c2d274278e0de | 5732aa2a46c3793dd512ea0585a14d23afbabbfd | /fake_channel_app/migrations/0002_contact_responseset.py | f9f5e7c00261f4610bc56415731a4dcc9e44df1f | [] | no_license | ihor-palii/fake-channel | 4fad13eae1218e65a6e9c3d575f5df0739bb6953 | 988fd84002a372c61e4e14d7c1ceafdc968acc8c | refs/heads/main | 2023-07-08T18:43:39.813437 | 2021-08-10T16:20:29 | 2021-08-10T16:20:29 | 303,385,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # Generated by Django 3.1.2 on 2020-10-12 11:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fake_channel_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"ithor@communityconnectlabs.com"
] | ithor@communityconnectlabs.com |
a1d72f52c959e13a6eb7ba685ecd9da2c752d9fd | 1904cd3ef48f37810d220373e735e3d8e64a1058 | /python/avi/sdk/samples/autoscale/aws_samplescaleout.py | 6b1321e457b4ceb86ef200531cffe609064589d9 | [
"Apache-2.0"
] | permissive | avinetworks/sdk | 5d4fff95376737505bece591eed23235b06de9ef | 2998d85d5e7604b4e3223972d43899cd34b44a2d | refs/heads/master | 2022-04-28T08:11:22.394520 | 2021-04-01T16:51:28 | 2021-04-01T16:51:28 | 353,759,395 | 7 | 7 | Apache-2.0 | 2021-05-25T03:39:57 | 2021-04-01T16:21:11 | Java | UTF-8 | Python | false | false | 9,423 | py | #!/usr/bin/python
'''
Created on Apr 15, 2015
@author: Gaurav Rastogi
Avi Networks Inc.
It implements scaleout and scalein hooks that can be used for implementing scaleout and scalein workflow.
Usage:
Step 1: Create Alert with filter string to match on event SERVER_AUTOSCALE_IN or SERVER_AUTOSCALE_OUT as:
filter... | [
"grastogi@avinetworks.com"
] | grastogi@avinetworks.com |
103df15e530a3641af992efa603c744e6645ac74 | 73e3a93b6ce524111d57ad72e865e9e573c735f8 | /Project_3_Collaboration_and_Competition/files/agent.py | 744f0989f6de98be618c17475c0c040c21d80471 | [] | no_license | verbeemen/Udacity-Deep-Reinforcement-Learning | ffe5037132bd32e43cd7a4b9ae941aca3732570c | f50a2b5aa97a36b9845554ab1dac771143f53796 | refs/heads/master | 2022-12-30T19:25:25.367314 | 2020-11-01T19:36:20 | 2020-11-01T19:36:20 | 216,380,995 | 0 | 0 | null | 2022-12-27T15:33:49 | 2019-10-20T15:10:35 | HTML | UTF-8 | Python | false | false | 7,388 | py | import numpy as np
import random
import torch
import torch.nn.functional as F
import torch.optim as optim
from files.replayBuffer import ReplayBuffer
from ouNoise import OUNoise
from model_actor import Actor
from model_critic import Critic
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
class ... | [
"noreply@github.com"
] | verbeemen.noreply@github.com |
466091c8d567dd766be080701fcfc16fa667e45c | 576a6ffef41be7eec4ccc1535781f6b50f720b65 | /app/get_env_app.py | cc58b6790cbe8a3764ab57a30b23d27b8e33c059 | [] | no_license | crouchr/cv19 | 05415cfe6c7e25b2b4eb55e3b4aa6c82699f8a17 | e7657a7fcf7c4a887b3dbbfd87832772bbddd27e | refs/heads/master | 2023-06-16T18:14:21.437661 | 2021-06-28T16:33:05 | 2021-06-28T16:33:05 | 350,139,961 | 0 | 0 | null | 2021-03-29T08:42:36 | 2021-03-21T22:50:50 | Python | UTF-8 | Python | false | false | 206 | py | import os
def get_poll_secs():
if 'POLL_SECS' in os.environ:
poll_secs = os.environ['POLL_SECS']
else:
poll_secs = 300 # same as polling OpenWeather API
return poll_secs
| [
"richard.crouch100@gmail.com"
] | richard.crouch100@gmail.com |
dd226443065d6f7a1b74ccf3736fb3b9c90418d0 | 6728681b24674eb653447a15ce58509d4566b74d | /pset6/tweets/analizerfinal.py | c1c7a5014a0a171a546095749cea422339e054fc | [] | no_license | Jcgo3003/CS50-Studies | 6f23033e5113e3e604a637243b9329d8deab8947 | 89a6970c06dc5a5f32f11a3705c619f7a02aeaeb | refs/heads/master | 2020-05-14T16:47:52.199916 | 2019-04-17T11:41:28 | 2019-04-17T11:41:28 | 181,865,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import nltk
class Analyzer():
"""Implements sentiment analysis."""
def __init__(self, positives, negatives):
"""Initialize Analyzer."""
#allocate espace in memory
self.negatives = set()
self.positives = set()
#adding negatives words
file_neg = open(negatives, "... | [
"jcgo3003@outlook.com"
] | jcgo3003@outlook.com |
be54ea3ff5b875b693eba7f37503f0dd65d88fda | 505503f0c1703d8b49fabaebcd245ae8619799df | /pymqttvideo/piomxplay.py | a62e804d4bf0a26f0320675fb62ae8abcd5f7184 | [] | no_license | erlendstav/drafts | 333ae15af3496007e22c161b48cdeb8b157acc89 | 60e23070dec5d5201e6a66d99575c3d71df456ba | refs/heads/master | 2021-11-24T08:08:03.614186 | 2021-10-28T21:27:04 | 2021-10-28T21:27:04 | 154,835,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | import paho.mqtt.client as mqtt
import time
import random
from omxplayer.player import OMXPlayer
from pathlib import Path
server_address="192.168.1.50"
client_name = "Pi4Video1"
# scare levels
LVL_FRIENDLY = "level/friendly"
LVL_NORMAL = "level/normal"
LVL_SCARY = "level/scary"
# Paths for videos
VIDEO_PATH = Path("... | [
"erlend.stav@gmail.com"
] | erlend.stav@gmail.com |
71f0a9cb84e03ebdb58ea58e957eb8bad44a7181 | 19bb0960311956cdc966b7c5324419aacdb02de1 | /boutique_ado/settings.py | e625909f404d2eb80166c20709703a824190e963 | [] | no_license | joshhunt1991/boutique_ado_v1 | 18a4a6e48767eef7deadc0ca6a764ce8a26eef96 | 6a5ef34cb13e237ef3e6a79a821ed8b3c41a1a88 | refs/heads/master | 2023-04-08T07:08:13.315387 | 2021-04-13T18:09:34 | 2021-04-13T18:09:34 | 352,735,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,872 | py | """
Django settings for boutique_ado project.
Generated by 'django-admin startproject' using Django 3.0.1.
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 os
... | [
"Joshhunt_1991@hotmail.co.uk"
] | Joshhunt_1991@hotmail.co.uk |
64e2c618b140ed47ae8db4922ea4a51e7fc75108 | fca4f1073b5d6f3068ddd23651a9890be59367fe | /scoreboard.py | 8acb47e350f95243ede732b91607e660af2f575b | [] | no_license | learyjk/snake-game | ea752d315b5c235910837b04e93e7d63483247af | 265a1a3e5fabf6171918a5405c44aa29458f6421 | refs/heads/master | 2023-01-12T04:08:11.221772 | 2020-11-09T19:37:09 | 2020-11-09T19:37:09 | 310,493,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | from turtle import Turtle
ALIGNMENT = "center"
FONT = ("Courier", 24, "normal")
class Scoreboard(Turtle):
def __init__(self):
super().__init__()
self.score = 0
with open("data.txt") as data:
self.high_score = int(data.read())
self.color("white")
self.penup()
... | [
"leary.keegan@gmail.com"
] | leary.keegan@gmail.com |
faba0987aed4324e8dd12c43cf14e4551e37d6c3 | e0351b06c6721fe11fb3f6886dd77362366c521e | /com_4.py | e39c160d989acceffbe07be1ac0100a570472cc5 | [] | no_license | sauravshaurya/Home-Automation | 88928ae9c1b0181859fa0cd779f04be692d057f5 | 282c9a22cd1f5625ac4fcadff3c57538034c2622 | refs/heads/master | 2022-07-10T07:42:36.731500 | 2018-06-23T21:41:01 | 2018-06-23T21:41:01 | 224,234,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import serial
from datetime import datetime
data = serial.Serial('/dev/ttyACM0',9600)
while True:
while (data.inWaiting()==0):
pass
arduinoString = data.readline()
print(arduinoString)
f = open('log.txt','a')
f.write('{} - {}\n'.format(datetime.now().strftime("%c"),arduinoString))
f.clos... | [
"noreply@github.com"
] | sauravshaurya.noreply@github.com |
b3a16c0fcb3f1cc1e5a2bcabca0c3d000509cfbc | 5ac48b24a04fcbb423dcee269514da57c7a02fb5 | /setup.py | 7cb463d67572d9d29a70c31f62a6c8708dd588df | [
"MIT"
] | permissive | abassel/Flask-DSwagger | c1c06bd3837de27ea5acbf8ed494c1bbeba58351 | b98c8b45ab7d45ecbe5e9d1b7e6d683f98333ae4 | refs/heads/master | 2021-05-10T14:17:09.726222 | 2019-03-16T23:13:59 | 2019-03-16T23:13:59 | 118,510,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# python setup.py build
# python setup.py sdist
# python setup.py bdist_egg
from __future__ import absolute_import
from __future__ import print_function
import io
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
f... | [
"abassel@gmail.com"
] | abassel@gmail.com |
4ab92065962d53964ce2f930d220837337ee3eac | c318bd15c40063639edc95bb8419f4c0f4a2b54f | /update_s3_configuration.py | e520e1541db8ce977a5e0513f0439b48d7e25a29 | [
"MIT"
] | permissive | cwestleyj/HearthstoneJSON | 716fa1b05782d311a04c16c5917ad6e6ae15749a | ed30c943983a4ee0da3a80562655d5a274faad39 | refs/heads/master | 2021-01-19T10:36:59.554294 | 2017-02-10T16:29:13 | 2017-02-10T16:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | #!/usr/bin/env python
import sys
import boto3
from pprint import pprint
API_BUCKET = "api.hearthstonejson.com"
ART_BUCKET = "art.hearthstonejson.com"
def update_website_configuration(s3, build, bucket=API_BUCKET):
print("Querying website configuration for %r" % (bucket))
orig_config = s3.get_bucket_website(Bucke... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
ef5db8ce40bc075966dac562c543c33ef9f3ee02 | ca1cc0f1cc7217900e2fc33b6e1f001cd9ba565d | /mainapp/migrations/0018_auto_20171225_1806.py | 3b022536df5077ac2005815b7f03567c8515d047 | [] | no_license | ccyjoshua/amazoncb | a592c45fc3bac2a5af54cec0417fa576fff48d41 | 7f6f8911605d163f92d25126a2180ecef3bec72f | refs/heads/master | 2021-09-06T17:42:42.779395 | 2018-02-09T06:41:22 | 2018-02-09T06:41:22 | 113,111,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-12-26 02:06
from __future__ import unicode_literals
from django.db import migrations, models
import mainapp.validators
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0017_auto_20171225_1749'),
]
operations = [
... | [
"ccyjoshua@gmail.com"
] | ccyjoshua@gmail.com |
02f372267f82ab0fb8dfcbd4c69bebafc4f80903 | 5a8bba80e4d0835235a3a4494db87808e7c5d0f8 | /setup.py | 54e99bab9fc25e73164eb473c01c808b6240e822 | [
"MIT"
] | permissive | JLyons1985/SmartMirrorServer | 3d562d42143c5c3d2269ea22e7c9338838534065 | 417540280dee57b7e39004e6891f13835aa15ced | refs/heads/master | 2021-01-12T03:36:37.612847 | 2017-01-06T20:35:20 | 2017-01-06T20:35:20 | 78,236,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | #!/usr/bin/python
from distutils.core import setup
setup(name='forismatic',
version='1.0',
description='PyForismatic package',
long_description = "Getting quotes from http://forismatic.com using API",
author='Andrey Basalyha',
author_email='abasalyha@gmail.com',
url='http://ab-dev... | [
"josh@lyonsdensoftware.com"
] | josh@lyonsdensoftware.com |
731800828469aa1b78563d3dae74e8f7ed296abf | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/point/president/way/kerberos_place_part.py | a02fe413ce8add5d86a79fbfa0f688adb60943f7 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
public class Program
{
public static string traducida;
public static void Main(string[] args)
{
//TranslateAsync().Wait();
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
f5693ba9d5f5661315af0ff316348508bfffa665 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_42606.py | 4c7ba5374406b23f4f9662574ff7bdd96180c47f | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,833 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
e90ae16967de9f07884f180a93732c5449e223bb | c467be10195f4849ac1eba4c566a0e6f39af99d5 | /Ignore/DPLL P1.py | c04aee2fbba80b76e0e94e17828b4b17ea0b7fe5 | [
"Apache-2.0"
] | permissive | paxcema/cl-dpll | 5b2bac82074000310a8191a982b484e9a7004c7d | e91815779ecb9a41ecaca32e62c25d7fe7c2804e | refs/heads/master | 2021-06-01T07:36:22.846027 | 2016-06-14T15:43:08 | 2016-06-14T15:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | __author__ = 'Patricio Cerda, Joaquin Moreno y Pedro Zepeda'
import os
from time import time
#Pseudocodigo de lo que se debe hacer para optimizar el algoritmo base:
#
#Unit propagation
#If a clause is a unit clause, i.e. it contains only a single unassigned literal,
#this clause can only be satisfied by assigning the... | [
"pcerda2@uc.cl"
] | pcerda2@uc.cl |
daef37796dc30e504e3045c54fa5fe319374339c | 285d322cdd60997987603f263fe9749b08ffe3b6 | /venv/Scripts/fixup_firestore_v1_keywords.py | cde584e9a2cef539babe3b4e03ca6dff8bc2923d | [] | no_license | ChristianCollaguazo/flask-app | 0904cced10d9edde3580805d899e3f8434efa105 | 09e1de6242ba47286a851cb16abfd91d67c43adc | refs/heads/master | 2023-06-03T12:26:57.057395 | 2021-06-18T22:46:54 | 2021-06-18T22:46:54 | 378,279,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,343 | py | #!c:\users\chris\pycharmprojects\to-do-list\venv\scripts\python.exe
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apac... | [
"christian.collaguazom@gmail.com"
] | christian.collaguazom@gmail.com |
f7d13a2a878558bb3b53dd2d4ec2dd8a9005bf90 | 7d19ab25d7eaff3bbfe477c12c146b07dd4f2db3 | /stubserver.py | 17aec2a608e21255e19f7dd24f115810c80f5c64 | [
"BSD-2-Clause-Views"
] | permissive | tarttelin/pyrestmodels | 071f8910b877ef802f989637fc9eadb89334f3c0 | 0c36fb2360d503e3b8df24971edfad655836ca47 | refs/heads/master | 2021-03-12T19:45:55.391900 | 2013-01-03T15:16:44 | 2013-01-03T15:16:44 | 7,397,305 | 1 | 2 | null | 2015-09-08T13:30:49 | 2013-01-01T17:33:42 | Python | UTF-8 | Python | false | false | 10,972 | py | """
Copyright 2009 Chris Tarttelin
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
Redistribution... | [
"chris@tarttelin.co.uk"
] | chris@tarttelin.co.uk |
b5d7d906ca1b952f86510b73dd4b2ab3e980c6db | 283815445952a37e0124801b456844774355733f | /app/models/__init__.py | ffca30aca69e6931817c66d4933a609c5d6bf330 | [] | no_license | paulosjd/woodrecs | 7aa4bec22f2c126bd51023e141f1a113c8faf3d8 | 19a8a53c753ae0978fc092d9a2f6f560dc8644bf | refs/heads/master | 2022-07-07T08:36:06.902801 | 2020-11-08T21:59:00 | 2020-11-08T21:59:00 | 251,587,209 | 0 | 0 | null | 2022-06-22T01:36:43 | 2020-03-31T11:47:53 | Python | UTF-8 | Python | false | false | 183 | py | from .profile import Profile
from .profile_board import ProfileBoard
from .route import Route
from .user import User
__all__ = [
Profile,
ProfileBoard,
Route,
User
]
| [
"pjdavis@gmx.com"
] | pjdavis@gmx.com |
7e973f7b6ada2d4a52895cd70e33c4f1bb0ed231 | adff01ff96615108d64fcc85e8f2ac80eb564b15 | /venv/bin/pip2 | 76c93c3b5b8eff088359bc4a87879ba92d1b1c3b | [] | no_license | Drisicus/hackaton_2017_python_server | 8645c7b02d1608f7838b58a5944b6f7bb22ed1d5 | 25531d73136ac87ae41150ccdc52781556932f04 | refs/heads/master | 2021-05-04T18:42:52.094795 | 2017-10-06T02:41:11 | 2017-10-06T02:41:11 | 105,961,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/home/drisicus/Escritorio/HackatonInditex2017/colasBackend/Server/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aaasssccc@gmail.com"
] | aaasssccc@gmail.com | |
5c53ac3afeba59c03e9437ce6dfc39c59e1ca5cd | d989358ccdd0e21daf33e70742058b02f805c549 | /section1/06.py | d5fc3e8f0eb4cb286a1ef236fb4e520238489a3b | [] | no_license | kouheiszk/nltk | d8f21a3ad8aad7547f002e30638160eb81f322ca | 12046291bc7ddc6130024400c09649e8ee58a411 | refs/heads/master | 2016-09-05T15:42:03.870484 | 2012-08-04T06:37:56 | 2012-08-04T06:37:56 | 4,922,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import nltk
from nltk.book import *
text2.dispersion_plot(["Edward", "Elinor", "Willoughby", "Marianne"])
| [
"kouhei.szk@gmail.com"
] | kouhei.szk@gmail.com |
6c4ec435613984dddbe630af2cf2b84ad8144ed3 | 9415ab209b475b670ec24ff458ba48b34134ad12 | /Week2/numpy_practice.py | 554f3936ebf3078f77bc7f2a0bf23eddfe0ae2fe | [] | no_license | jmoon34/advanced-ml-specialization | cb84201362ea267135b5e75267f7f06269209ef9 | 0b488a96eafebd0075837e3c26eed56cc4aee1e8 | refs/heads/master | 2021-02-18T21:43:42.629082 | 2020-03-05T18:57:32 | 2020-03-05T18:57:32 | 245,240,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
# def sinus2d(x, y):
# return np.sin(x) + np.sin(y)
#
# x = np.linspace(0, 2*np.pi, 100)
# y = np.linspace(0, 2*np.pi, 100)
#
# xx, yy = np.meshgrid(x, y)
# z = sinus2d(xx, yy)
# plt.imshow(z, origin='lower', interpolation='none')
# plt.sho... | [
"jmcube@gmail.com"
] | jmcube@gmail.com |
23392d5b646b6de77cc4f67ba3f42220c8974f41 | 03b628d6103eb0a9b41e36a9521129793ab3c4d9 | /bookkeeping/migrations/0007_auto_20181119_1234.py | 9f2651a9cfbb80fe7ba5b3c81af3e15ac9aec821 | [] | no_license | McDiamund/Accuracy | dcd9b625d5c6ee5432a7349b7c6a7a393f950656 | 63eec74feec43ed7554b4cd7d8225ecc75a460e3 | refs/heads/master | 2020-04-08T04:58:17.087562 | 2018-11-26T03:41:11 | 2018-11-26T03:41:11 | 159,040,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # Generated by Django 2.1.1 on 2018-11-19 17:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bookkeeping', '0006_auto_20181119_1233'),
]
operations = [
migrations.RenameField(
model_name='account',
old_name='accounts'... | [
"mcdiamundtasks@gmail.com"
] | mcdiamundtasks@gmail.com |
061b46322d284653c94c803921d86a35f31c4c3a | 8c067089ac94844919c4dc37681c898c0f93819e | /jenkins-master/jobs/scripts/workspace/config.py | c477a45df06ebcddcd194c10096182da65606db8 | [] | no_license | Ramireddyashok/mozmill-ci | 9ac1a5762fa8c14c4802447a9d5878422d2e164a | 0b8c6417e596235cca403ca80947fc328bd2fe8b | refs/heads/master | 2021-04-30T01:27:42.502771 | 2017-06-14T18:24:50 | 2017-06-14T18:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
here = os.path.dirname(os.path.abspath(__file__))
config = {
'test_types': {
'functional': {
... | [
"mail@hskupin.info"
] | mail@hskupin.info |
4a4ea706f226e5b29344a5ed46350541e6b35925 | 44d3026f538e4d63f4f9616a8041519079e1358b | /ToSpark.py | 68be7b341087d19499d5d272dd2c4ce11f7b80f2 | [] | no_license | TIM245-W16/twitter-sentiment | 29ad30207fa98fdaceec5bfcfdb0c6bdd09106ef | fbfd3fdb176bf1a76b19353562f5eb71a0551a7c | refs/heads/master | 2020-12-07T15:36:36.645728 | 2016-03-17T23:55:17 | 2016-03-17T23:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,908 | py | """
This program process all 1247391 tweets I collcted in my database.
Transform each tweet into a vector by comparing words in wordlist.
Save 70% tweets as train set 30% tweets as test set into txt files.
"""
import pymongo
import nltk
import io
try:
import json
except ImportError:
import simplejson as json
... | [
"junyuancs@gmail.com"
] | junyuancs@gmail.com |
b969aff50964ebae5ecd9541c8ed4af2b0ec93fa | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/GLX/EXT/NV/copy_image.py | 1981ca497e85e50301da73e66cd5b08f9e4f85dd | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from OpenGLCffi.GLX import params
@params(api='glx', prms=['dpy', 'srcCtx', 'srcName', 'srcTarget', 'srcLevel', 'srcX', 'srcY', 'srcZ', 'dstCtx', 'dstName', 'dstTarget', 'dstLevel', 'dstX', 'dstY', 'dstZ', 'width', 'height', 'depth'])
def glXCopyImageSubDataNV(dpy, srcCtx, srcName, srcTarget, srcLevel, srcX, srcY, srcZ... | [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
130f5e58a29834c93b9660f4e8a1496ca2c37af7 | 3c2a698420a70516960d6b7f939731d69d55c050 | /Python游戏开发入门/helloWorld.py | 85b2d07dfec8def39620ddf4c19c6c6a6bbeb37f | [] | no_license | qiebzps/163note | c9d7b55d81a2dd4df40bab68630d37ddb7d35160 | ae7173fcd46f782323abb7e90c7e2b7c8139dd88 | refs/heads/master | 2021-09-02T04:39:02.530279 | 2017-12-29T07:45:52 | 2017-12-29T07:45:52 | 113,682,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # Unit PYG02: Pygame Hello World Game
import pygame, sys # 引入
pygame.init() # 初始化(对Pygame内部各功能模块进行初始化创建及变量设置,默认调用)
screen = pygame.display.set_mode((600,400)) # 窗口大小600x400
pygame.display.set_caption("Pygame游戏之旅")# 设置标题
# main loop
while True:
for event in p... | [
"1033239636@qq.com"
] | 1033239636@qq.com |
09038e22ac74201634b7000c44b95ec681573279 | fde51c57b2fbfbb2e33c695a2c6bb7114fbc8da6 | /2.구현/트럭_ghoon99.py | 044c3064f5813ecf404aa6d3b1bc474b751a0a6a | [] | no_license | GHooN99/2021_SJU_BOJAlgorithm.py | 6302b305518908efd7b818b373cbbecbbf352221 | fd98dde1e0c593b3f7f4287765f965ead13ec7c1 | refs/heads/main | 2023-08-07T12:26:41.527546 | 2021-04-13T12:49:46 | 2021-04-13T12:49:46 | 329,366,544 | 0 | 1 | null | 2021-01-18T08:09:39 | 2021-01-13T16:27:43 | Python | UTF-8 | Python | false | false | 456 | py | from collections import deque
# input
n,w,l =map(int,input().split())
arr = deque(list(map(int,input().split())))
# solution
moved = []
bridge = deque([0]*w)
result = 0
#print(bridge)
while len(moved)!=n:
if arr and sum(bridge)+arr[0]-bridge[-1] <= l:
bridge.appendleft(arr.popleft())
else:
bridge.appendl... | [
"noreply@github.com"
] | GHooN99.noreply@github.com |
7f2c3f1106ce8ea93756f1ab4bb249953c260728 | d6dd8f1d468dff79b21039870fb9df5d9bd002a9 | /Python/exercices/week3/week3.py | a5b7323c74be17bed07463ce50d7fad81b4ea684 | [] | no_license | timdepater/periode_2-1 | 6edd3f982cfb80655f934e8a08295196bd81ef21 | f9a1a126cad32d44493c0d1ee46ff8b2f8ba8e7b | refs/heads/master | 2020-06-03T23:01:59.430115 | 2019-05-08T12:32:35 | 2019-05-08T12:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,162 | py |
# opgave 1
### A
class A:
def __init__(self, i = 0):
self.i = i
def m1(self):
self.i += 1
class B(A):
def __init__(self, j = 0):
super().__init__(3)
self.j = j
def m1(self):
self.i += 1
def main():
b = B() # b.i = 3 b.j = 0
p... | [
"timostrating@home.nl"
] | timostrating@home.nl |
af04c17e64634697c76c907107a82c65fdf844af | 52467ee4b50eabada0af517b5d30c4f059b3b64b | /app.py | 7702d3727318cd1c108c475ec5ae4a67c3dfb621 | [] | no_license | robotBaby/clinics | e85b63741694b90505fedfc6cfda22417937006f | 841dba66c728c477cb32e4dd4260041f685a2ead | refs/heads/master | 2021-01-20T14:02:12.026151 | 2017-05-07T16:54:59 | 2017-05-07T16:54:59 | 90,547,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from flask import Flask, render_template, jsonify, request
from flask.ext.sqlalchemy import SQLAlchemy
from config import SQLALCHEMY_DATABASE_URI
from datetime import datetime
import json
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] ... | [
"arindrimadatta@gmail.com"
] | arindrimadatta@gmail.com |
f882f5c485a3e1e225e0601808e8510847b4d66d | 964b3baf11dd9d150b06eac439f11fb7c85c1a23 | /Classes-inClassLesson/Superhero/TestSuperman.py | 75f246ef34b5f7b7c2ea8b5636016a7e9cfd68ff | [] | no_license | markellisdev/bangazon-llc-orientation-exercises | 8c278ae54dcf2e0415706ed9e9344cf4808c04a9 | 6faabb33cb451e4a2eb65b5c7faca038865a08ac | refs/heads/master | 2021-01-12T03:37:32.793508 | 2017-01-10T22:53:47 | 2017-01-10T22:53:47 | 78,242,190 | 0 | 0 | null | 2017-01-10T22:53:47 | 2017-01-06T22:03:54 | Python | UTF-8 | Python | false | false | 934 | py | import unittest
from superheroPart3 import *
class TestSuperman(unittest.TestCase):
@classmethod
def setUpClass(self):
print('Set up class')
self.superman = Superman()
def test_SupermanMustBeBulletproof(self):
# superman = Superman() Now unecessary after @classmethod setUpClass
self.assertTrue(self.superma... | [
"markellisdev@gmail.com"
] | markellisdev@gmail.com |
f6403a7179164b65baf0defb76db1e75596bf584 | 63db67c4b5f8f427acd4210cba386f12f853a09b | /decoder/decoder_simple.py | e6958d943b1b69032ec032a8bccfe2578c5e5b71 | [
"MIT"
] | permissive | xclmj/VAE-GAN | 920a3176e5bc57ddac0baf36e26be4e40783f7ea | 37fe060cd993d89c983bc8cfcc59c6edc3c5920f | refs/heads/master | 2020-06-20T04:24:23.021385 | 2018-06-21T05:22:17 | 2018-11-21T06:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import os
import sys
import tensorflow as tf
import tensorflow.contrib.layers as tcl
sys.path.append('../')
from netutils.weightsinit import get_weightsinit
from netutils.activation import get_activation
from netutils.normalization import get_normalization
from network.devgg import DEVGG
from network.base_network ... | [
"1069163331@qq.com"
] | 1069163331@qq.com |
a120684b2c1a40c3ec177781c4159a744f83ff71 | 6763fa3a0fbc42f5199ed806c736588be2bb66fa | /TP2/TestTP2.py | 25b8dc7a2aa97b41dd903852f4dbdc89c59ac95a | [] | no_license | etouss/Python | 3c0b75991cc72d33c24b1beb018edbf4abf4fbe5 | 0bcc7ff845bfef8863a2e61a8bc5e30541e081e6 | refs/heads/master | 2020-12-24T16:43:03.987578 | 2015-01-21T16:17:12 | 2015-01-21T16:17:12 | 19,542,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | '''
TestTP2.py
Ce fichier contient quelques réponses erronées du tp2.
Vous devez le compléter pour les tester et les corriger.
'''
# Ici, on importe les modules:
from my_test import # Compléter par les fonctions a importer
# Ici, on definit les fonctions:
def suffixe(p):
(s,n) = p
if len(s) >= n:
... | [
"tsst.etienne@gmail.com"
] | tsst.etienne@gmail.com |
e7e0aae2e70c383f7b5f090b4e1e35349fa8464b | 9e688b5bf5951a6a5a229c64a96672ec1895f900 | /Python/head/head.py | bb0dfb1e6140a751c15f68b76e1f5f5c136620fc | [] | no_license | andrew-morris/coding-homework | baf8c55898f5ef67e50c0c5b73b71b9b24a06513 | aad5a35277b4931da903a246280cf25f032ff483 | refs/heads/master | 2021-01-24T18:59:01.365843 | 2017-09-02T20:10:34 | 2017-09-02T20:10:34 | 86,171,852 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | #!/usr/bin/env python
import sys
#TODO: Add arg for amount of lines
#TODO: Add arg for amount of bytes
#TODO: Support reading from a file
#TODO: Support reading from stdin
def main():
data = sys.stdin.read()
lines = data.split('\n')
for line in lines[:10]:
sys.stdout.write(line + '\n')
if __name... | [
"morr.drew@gmail.com"
] | morr.drew@gmail.com |
55ba8ba43e70ad0c81ae5a13092713c51815930f | 93c05672c065e1ae091c1ad06ff5c66f07875ac7 | /semanticModel/residual.py | d3c4fcefd3b5ba49aa97c40e4196026ed5bf1a21 | [] | no_license | ncu-psl/STFlow | eeb7ab689dd97cc6712cc2e53adfae49d539fe55 | cf5024e1944d03f9defdad4e28ca1b85f9efab4d | refs/heads/master | 2023-07-10T01:26:54.197445 | 2021-08-09T10:32:40 | 2021-08-09T10:32:40 | 271,042,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import abc
from cffi import FFI
import _FDtomoC
class ResidualVector(object):
def __init__(self, residual_vector = None):
self.residualField = None
self.residual_vector = residual_vector
def getClass(self):
self.residual_vector = _FDtomoC.ffi.unpack(self.residualField, 50000000)
d... | [
"q1qip123@gmail.com"
] | q1qip123@gmail.com |
c285f313dbea3d3eb1634c811e4e1e7ec485035a | fcde34b7f162cddee7f848122196b6c39523d9b1 | /django_movies/django_movies/asgi.py | 213752a3cf45f784192b7bd4ea08acbb4e0f47b2 | [] | no_license | ViktorRaboshchuk/movies_api | 9fa3552867aeae55536fecb8a38e05a1b4d5c4c2 | 9b510d858ca56729ebfad41ce4257a83c812eb2e | refs/heads/master | 2023-03-24T03:04:53.816223 | 2021-03-25T14:25:25 | 2021-03-25T14:25:25 | 346,648,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for django_movies project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"viktor.raboshchuk@gmail.com"
] | viktor.raboshchuk@gmail.com |
5467fae7e4778c44980c1df105301dce1b6eade3 | 6bd94f1a333fd7145996408d17ecba750d58f15f | /Code/wifi/RSSI/main.py | f03192499461c4d7e57c2c93e21d4d5bc20c5e36 | [] | no_license | jo-taye/Iot-Workshop-AASTU | 96228e92ef9d8a607319fc61745615b6edd299b3 | d5433e1b2b88d59b4c54fa0a9fef592f2b583361 | refs/heads/master | 2020-06-23T21:43:32.146187 | 2019-07-26T13:01:44 | 2019-07-26T13:01:44 | 198,761,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import machine
from network import WLAN
import pycom
wlan = WLAN(mode=WLAN.STA)
nets = wlan.scan()
print(nets)
while True:
for net in nets:
if net.ssid == "Ethiopia":
rssid = net.rssi
if rssid < -80:
pycom.rgbled(0x7f0000)
elif rssid >= -80 and rssid <=... | [
"yohannes.taye@aau.edu.et"
] | yohannes.taye@aau.edu.et |
eed711eb7afe83895d8a6bef4923273b65aa7ac0 | a3852496b239fdcb9789ab6f762c83eb634078ad | /events/migrations/0004_auto_20180725_1359.py | 9a0ccc648abe57061536edd6177211d5f865e559 | [] | no_license | MohamedRadwan180/test | 5159ee992d56abedf1fc6cd5928bef1168b5ac07 | 52759db05ae5991b356d3fd4016733a5002a20df | refs/heads/master | 2020-03-25T23:59:29.438648 | 2018-08-10T15:23:12 | 2018-08-10T15:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # Generated by Django 2.0.7 on 2018-07-25 10:59
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0003_auto_20180725_1302'),
]
operations = [
migrations.AddField(
model_name='offer',
... | [
"m.medhat_180@yahoo.com"
] | m.medhat_180@yahoo.com |
651930fd736184cb7f793d23885d3a0c3a2be442 | 67c3c2a310a4d129a45739ca6351052f36f6d5f4 | /venv/lib/python3.7/tarfile.py | 1ac8bdb103bbf0d353b2ffa45630fbbea77736ed | [] | no_license | cyobero/django-blog | a743203bdaf1d8ae9e6bd47c6e7b33a213a7abfd | 307335c84a0fa9eba6d3f69172a47580144cc066 | refs/heads/master | 2022-12-09T20:25:51.396813 | 2020-03-10T14:52:26 | 2020-03-10T14:52:26 | 245,950,344 | 0 | 0 | null | 2022-11-22T05:22:50 | 2020-03-09T05:20:31 | Python | UTF-8 | Python | false | false | 48 | py | /home/cyobero/anaconda3/lib/python3.7/tarfile.py | [
"cyobero@gmail.com"
] | cyobero@gmail.com |
f3d1fe716956a41dcaccd88cddd806332ba54e33 | 1b5c3039c05427ad5e731a18e06e0e0accb5ce98 | /scripts/creatematches.py | 2c4bb9fd8b280c5439cdaa0f3eddc508cad483bc | [] | no_license | matthew-brett/beatbased | 1df43cb7f16b4d6cde18acecd7d2b7209887ed89 | f6c7c6bd0fb62efcb3397d512f70717b49f5cccd | refs/heads/master | 2021-01-23T21:42:29.063883 | 2014-05-30T19:05:06 | 2014-05-30T19:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/bin/env python
'''Creates as many matches as possible for metric sequences, with 5-7 intervals'''
import beatsequence as BS
#First, create a list of all combinations of intervals, taking those which add up to 12
print "calculating possible combinations"
S=[]
for length in range(5,10):
L=[4 for n in range(lengt... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
709391620a55b233d0d5e264d633f5b22a369552 | 50740127489647171d701e7b26513fbb48bc7144 | /python-docs-samples-master/speech/cloud-client/transcribe.py | 259242e797a0e876925fd25b6e8cd329b3fbb888 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nick-merlino/multimediaToolkit | e11ab5d0a596d86733aeb4833987d9ce53f7adf9 | d471857bca122fe0e97713c0c0148dc3646036af | refs/heads/master | 2021-01-01T17:15:26.991782 | 2017-07-22T15:15:23 | 2017-07-22T15:15:23 | 98,036,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | py | #!/usr/bin/env python
# Copyright 2017 Google Inc. 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 require... | [
"NMERLINO@MITRE.ORG"
] | NMERLINO@MITRE.ORG |
348cf09a6a4d5dfc28378c1f633c35951329607f | 5e0abacbf058cbe730fb44b8121e1a6c8e6db0fc | /statusCheck/status/views.py | 2785a9f9b43abd0c39941b626647e06beb3e734c | [] | no_license | sprakashsingh/pythonDjangoDocker | 3c2f05144e1af418c200655d422659a84bed823b | 70ed0871b1390b15b9a76ccb2a3886a63312ba66 | refs/heads/master | 2020-04-07T19:36:04.148625 | 2018-11-22T08:49:35 | 2018-11-22T08:49:35 | 158,654,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from django.shortcuts import render
from rest_framework import generics, mixins, status, viewsets, serializers
from datetime import datetime
# Create your views here.
from rest_framework.response import Response
class TagListAPIView(generics.ListAPIView):
def list(self, request):
serializer_data = datetim... | [
"satyap@synopsys.com"
] | satyap@synopsys.com |
b2a97343f96ca9246962933acc173b23375b9a5c | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/rch/mlab/yarn_cs.py | 2d8a38ca1f2761ea2b42d42e5d831bb3cf157889 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 3,840 | py | #-------------------------------------------------------------------------------
#
# Copyright (c) 2009, IMB, RWTH Aachen.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in simvisage/LICENSE.txt and may be redistributed only
# under the conditions des... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
be3316f334e724c618b42189f507354ad4952699 | d450ba14e9b0b970a3817d11d510553fd10696b5 | /python/169.MajorityElement.py | 3f5f549cb8dcddf8afb68b8e23d69ca990cbe5d2 | [] | no_license | xy-cai/leetcode | bf43f710332f20e7c4de96a9ddbd135ed16d25f4 | 3ee5af84a9b591d1a3814bcfb9bae5d8183261c1 | refs/heads/master | 2021-01-23T03:48:24.273020 | 2015-09-06T15:27:54 | 2015-09-06T15:27:54 | 40,019,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# delete two different num
# then the majority element will be the rest
# candidate = nums[0]
cnt = 0
for ele in nums:
if cn... | [
"tifosi.cai@gmail.com"
] | tifosi.cai@gmail.com |
fddbcb160ab6e4a91ee203118dc66d2e57485552 | 6a704951972e1debf3f41e4ae08867932930c816 | /exo1.py | a39137f5165ccd051d8a20f5fe85a79be8a69d7e | [] | no_license | Ngangolo/python-liste | db6868c114d354436ee2af52bafd866b31be2337 | 337291182feaa10f6835b974f79d5e909920aaa0 | refs/heads/main | 2023-03-17T12:22:18.583844 | 2021-03-16T00:23:56 | 2021-03-16T00:23:56 | 340,368,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | jours=["lundi","mardi","mercredi","jeudi","vendredi"]
chiffres=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
composite=[0, "chocolat", 145, "Python", "Landais", 12.1, True]
print(chiffres) ; print(composite) ; print(jours[0]) ; print(jours[1]) ; print(jours[4]) ;
print(composite[2]) ; print(chiffres[3]+composite[2]) ; print(chiff... | [
"konengangolo54@gmail.com"
] | konengangolo54@gmail.com |
91f597ec42d56a81ab6b52570b993350a022eb20 | 93b5603de5cbc7f2bcd8348172e3f059105870b9 | /app/__init__.py | 35d84664de18bbbb3bdce674ddcd820a2d7a56ba | [] | no_license | kimpadkjaer/sample | 97804767898ca686a6dc3e359a9766855fc71bf8 | 042bae2e48180837dde146ef8dac33bf272b488e | refs/heads/master | 2020-05-07T10:56:53.309832 | 2019-04-23T20:10:26 | 2019-04-23T20:10:26 | 180,440,000 | 0 | 0 | null | 2019-04-09T19:58:28 | 2019-04-09T19:58:28 | null | UTF-8 | Python | false | false | 214 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
from app import routes, models, errors
| [
"noreply@github.com"
] | kimpadkjaer.noreply@github.com |
c2325688216669fc6c3d6a76dd35b96ec2905b34 | 6f59c30eb8801c7ab96fc6a0c67aeacff98ba333 | /football/urls.py | e6f5d5b5b0f041f5ab0e57efc364ea2cd7e09886 | [] | no_license | PyaeZaw97/FootballInfoProject | 7b9b250e69e807289e6b62f236909c7ca28ee29d | 2140bf7f7de5e0e952fe63a1eddb6a03b1f9aa3a | refs/heads/master | 2022-12-13T00:45:36.241848 | 2021-10-16T05:20:55 | 2021-10-16T05:20:55 | 196,852,309 | 0 | 0 | null | 2022-12-08T05:18:58 | 2019-07-14T15:23:06 | HTML | UTF-8 | Python | false | false | 824 | py | """football URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"noreply@github.com"
] | PyaeZaw97.noreply@github.com |
403301171b3118fa6b8b8f4c0438c7feedec9f3b | 05a598acd2128ac8fe5954fb7237329075625655 | /playlist-app/models.py | 52b1cce72ad990df108081e85c3860f61cb1211e | [] | no_license | ktkinsey37/flask-database-dj | d9c441c918645ff27e1b6be6c089e2f896adbc3b | 6d553eea21db596669aa6ae36937a0f036d9037f | refs/heads/master | 2023-04-15T16:39:28.118028 | 2021-04-21T21:33:36 | 2021-04-21T21:33:36 | 360,319,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | """Models for Playlist app."""
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.schema import PrimaryKeyConstraint
db = SQLAlchemy()
class Playlist(db.Model):
"""Playlist."""
def __repr__(self):
p = self
return f'<Playlist {p.id} {p.name} {p.description}'
__tablename__ = 'playl... | [
"ktkinsey37@gmail.com"
] | ktkinsey37@gmail.com |
8178707676f800fb50f1590ef87fccd174c3c21f | e9d55ae524563c2de237a426d848df9bf15c938d | /watson_apis/Base/Base/urls.py | c5a697a323ddd4b5204ca4b331d31ef5994fff8e | [] | no_license | arycloud/google_vision_nlp_api_implementation | c87af9e615a7415f6c775884ead64412a870dab3 | b75c2181a888ac1d7965f5ee0744f017decc9464 | refs/heads/master | 2020-03-18T00:16:49.852534 | 2018-05-19T18:16:45 | 2018-05-19T18:16:45 | 132,249,489 | 0 | 1 | null | 2018-05-19T06:49:00 | 2018-05-05T13:16:29 | JavaScript | UTF-8 | Python | false | false | 837 | py | """Base URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"abdul12391@gmail.com"
] | abdul12391@gmail.com |
df4de3c89e3e0456ec62e028fb88040009f9c36e | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/api/taskqueue/taskqueue_service_pb.py | bb940144f8a18ef4f4b1e6b825080cea0ed6df38 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 262,899 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
dc75500ae42c946d704a13d2ae7eeeb42dddde45 | 77741a07e162b9578f2ff3f37761856cd2ec3122 | /node_modules/connect-mongostore/node_modules/bson/build/config.gypi | c6b3c26214493c4a691d1a776d81493a900a75fd | [
"Apache-2.0",
"MIT"
] | permissive | Alisher4444/shopping-cart | 3327cc4fb376458819ff4845cb18705968126a91 | fb369f63bfc3ced742fd5818af276d06591f1e8d | refs/heads/master | 2021-01-23T07:44:45.749064 | 2017-03-28T11:20:28 | 2017-03-28T11:20:28 | 86,442,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,389 | 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",
"force_dynami... | [
"alisher.bazarkhanov@gmail.com"
] | alisher.bazarkhanov@gmail.com |
bbdd38098ebc51601efb9b898bf5258e1baffde4 | e3c55bf263c7f920fa14988ea94e0be316fa993a | /Steganography.py | 8f0d450ff997f9613e599b4a71720ce19a2ff129 | [
"MIT"
] | permissive | Markus28/Steganography | a6f7a0df1973d06feb850bc733d97cf25c4bb976 | 5e1d35fd45901e93a1fff2b4be688178a488259e | refs/heads/master | 2020-05-29T11:44:32.537658 | 2019-09-14T22:09:36 | 2019-09-14T22:09:36 | 66,156,273 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,829 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import os
import sys
import base64
import ntpath
import StringIO
from Crypto.Cipher import AES
from Crypto import Random
import hashlib
import random
import cv2
import time
import numpy as np
from scipy.io import wavfile
import subprocess
from shu... | [
"montcyril@gmail.com"
] | montcyril@gmail.com |
ba8f9e33ad748f4bc592da7f8827d698b4c68c2f | c446c6343a057ab91bc4544055244b897570f0e2 | /Snakefile | e4d060883b730fe0146376109dd5c456ab0ca1b2 | [] | no_license | WagnerGroup/pyqmc-pbc-workflow | f400d7974ca9c3cc9e2b9ec346a429006ebf37cc | de9d7d23bf20ca723558e17729d6a14df1677959 | refs/heads/main | 2023-03-10T21:17:28.982041 | 2021-02-27T14:56:01 | 2021-02-27T14:56:01 | 337,127,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,984 | import functions
import concurrent
import numpy as np
import pyqmc
import json
settings=json.load(open("settings.json"))
rule MEAN_FIELD:
input: "{dir}/system.json"
output: "{dir}/{functional}_{nx}_{ny}_{nz}/{basis}_{exp_to_discard}/mf.chk"
resources:
walltime=settings["mean-field"]["walltime"], p... | [
"lucas.wagner@gmail.com"
] | lucas.wagner@gmail.com | |
66692bd24c758481fae08982ce8fdf0a3fb9a107 | c1cf8aab423f850805e7f0b9ac7e8ebed22dfc47 | /11_basic_operations.py | 13e54193924798532135382e8fba779af92ddfaf | [] | no_license | karim-aly/OpenCV-Python | ae1bdc070138296be083c875a03d2f338f0fd525 | 26437ddc75d689b26d4a3b44efc265f0733b6935 | refs/heads/master | 2021-06-14T20:37:48.390247 | 2017-03-12T17:22:18 | 2017-03-12T17:22:18 | 83,915,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
# load a color image
img = cv.imread('messi5.jpg')
####### Single Pixel Accessing #######
# You can access a pixel value by its row and column coordinates.
# For BGR image, it returns an array of Blue, Green, Red values.
# For grayscale image... | [
"karimalyazzam@gmail.com"
] | karimalyazzam@gmail.com |
cfccdfad8b4f394fc126e00b86f458af855f98dd | d8d8d7d731c57617ef165f22b8f1a58395e71714 | /spec_pythonizer/sanity_check.py | a97b7e690a4fedf22c297a83adbc1423da3dd383 | [
"MIT"
] | permissive | hwwhww/research | e2568293282befb47567c6bd89b8b7738c1404d6 | 4bde287aae017cd93fa936f587f21cddcc7c4129 | refs/heads/master | 2020-04-27T01:18:01.106838 | 2019-03-05T02:37:34 | 2019-03-05T02:37:34 | 173,961,168 | 1 | 0 | MIT | 2019-03-05T14:25:04 | 2019-03-05T14:25:04 | null | UTF-8 | Python | false | false | 3,489 | py | from copy import deepcopy
from spec import (
FAR_FUTURE_EPOCH,
GENESIS_EPOCH,
MAX_DEPOSIT_AMOUNT,
SLOTS_PER_EPOCH,
ZERO_HASH,
BeaconBlock,
DepositData,
DepositInput,
Eth1Data,
Validator,
int_to_bytes48,
merkle_root,
get_genesis_beacon_state,
get_block_root,
g... | [
"dannyjryan@gmail.com"
] | dannyjryan@gmail.com |
e4e62fa5b63d53d9d3a3ecd4d5d2cd972c8a7787 | a02a1f3213510f8822bebf38d8e1228d7f19e573 | /Converter.py | 655fb40a6749d214c7b768e72efb61de4c0ebb43 | [] | no_license | HDing-CN/rainRemoval | 672c07466bfeadc2e1658a7c25c283c0aba5708b | 3acd7218feb7db6919c44c6ba6c763f54542ee12 | refs/heads/master | 2022-12-19T21:50:31.241029 | 2020-10-17T23:32:59 | 2020-10-17T23:32:59 | 262,968,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | py | import numpy as np
import cv2
from itertools import cycle
import os
from os.path import isfile, join
def convert_single_channel(video, view):
print('start converting to new viewing angle only on single color channel')
video = np.asarray(video)
N, H, W, C = video.shape
new_video = []
for k in range... | [
"hding@amazon.com"
] | hding@amazon.com |
c01a756b86dab86351f0cf370efdb332e7680fcc | b6890b36a98f1fc8ac6193549c3684c2e06fb9e9 | /day-05-in-class/in-class-05-monte-carlo.py | 4256dacc5c12bfc5b05f703ad7b91bedbb26606d | [] | no_license | wiltand1/cmse_20 | 25399f21f7932b46079943522ee2bda078fd7460 | b69a3227ea1445a2f5c8bd6466ecff24b0913000 | refs/heads/master | 2022-04-17T07:56:48.053379 | 2020-04-16T19:43:35 | 2020-04-16T19:43:35 | 232,853,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | import math
import random
npoints = 16
points_in = 0
points_out = 0
x_in = []
x_out = []
y_in = []
y_out = []
for i in range(npoints):
x = random.random()
y = random.random()
if y > math.pi*(0.5*x)**2 and y < math.pi*(1*x)**2:
points_in += 1
x_in.append(x)
y_in.append(y)
e... | [
"youraddress@emailserverwiltand1@msu.edu"
] | youraddress@emailserverwiltand1@msu.edu |
7b459863ace7904da1f6e6affba8dd4247466e96 | fea6e9d6b20b0c5f2a05a6f2433aae4176b2a00a | /server/applibs/account/models/phoneuser.py | 2b9987502723a11b18689e14372406d54281c047 | [] | no_license | fanshuai/kubrick | fddf6c21bcd500223d9a05bd002e47eb1ecf8839 | b7ed6588e13d2916a4162d56509d2794742a1eb1 | refs/heads/main | 2023-03-24T12:21:44.562850 | 2021-03-19T15:11:40 | 2021-03-19T15:11:40 | 349,445,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,497 | py | import json
import logging
import phonenumbers
from django.db import models, transaction
from django.utils.functional import cached_property
from phonenumbers import PhoneNumberFormat as PNFormat
from phonenumbers import carrier, geocoder
from mirage import fields as mg_fields
from server.constant import mochoice as m... | [
"zfaner@gmail.com"
] | zfaner@gmail.com |
91e35d122c3244912dcba634ce0ab3662d198689 | 42ae4ecdd41ca9c77e152114a14b5fdc83654799 | /sinx.py | 034ca6db99fd4c53718d47fbad732263914d7f1c | [] | no_license | smaugx/matplotlib | 2e82747ecf5c5977b54b006e46c17d9a815b53b3 | 3ce937ec55d63acf33cbc2771f8857e1f0346b2a | refs/heads/master | 2021-09-05T15:25:30.819241 | 2018-01-29T08:05:58 | 2018-01-29T08:05:58 | 119,353,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.pyplot import savefig
x = np.linspace(0, 2 * np.pi, 1000)
y = np.sin(x)
#plt.plot(x,np.sin(x),x,np.sin(2*x))
#plt.plot(x,y,marker='o',mec='b',mfc='w')
plt.plot(x,y,mec='b',mfc='w')
#plt.show()
savefig('.... | [
"linuxcode2niki@gmail.com"
] | linuxcode2niki@gmail.com |
8980e2c8b13abaaab2ebad57556f52347554b925 | a9919484603c010156c65a9e435efc478473221e | /dataset.py | aabb174f76921fedaa2cb69aafed4e0bd2b20c8f | [] | no_license | chease3640/tf_transformer | 9147b7840e5546eee7a9910611e37051d52a87c7 | a877bcb61b549299083d0e91ade3c8cf252e2e78 | refs/heads/main | 2023-04-15T15:02:11.744924 | 2021-04-19T11:55:06 | 2021-04-19T11:55:06 | 359,439,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | #!/usr/bin/env python
# coding: utf-8
"""This module contains efficient data read and transform using tf.data API.
There are total 2 table schema for model training and predict as follows:
1. Input train data schema (1 fields):
id STRING
x1 STRING
x2 STRING
2. Input predict data schema (2 fields):
... | [
"noreply@github.com"
] | chease3640.noreply@github.com |
2e2b8705b460a63f5c112ef28e86945c639ebe7a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-DNS-CLIENT-MIB.py | 01fce15acb4eef7b472a8ae3f75dca628704efbc | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 8,248 | py | #
# PySNMP MIB module CISCO-DNS-CLIENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-DNS-CLIENT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:38:02 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
a567d591cdf24c0735bcb885e6877837227e144a | 857794546116eef6163a04c3f9939a792ea2163f | /xarrange_cef_mkt_nav_quotes_times.py | 5272061f83da328088db0609625dbe6915548f3b | [] | no_license | Beliavsky/CEF_and_ETF_data | 9ab05f67459d0ae27a38a9e921cf0d251da6527f | 4f40583c5f3aa6505aa1ce9a53b174014a11f0ea | refs/heads/main | 2023-08-21T18:16:22.493858 | 2021-10-14T15:51:00 | 2021-10-14T15:51:00 | 417,181,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | # 03/18/2020 08:03 PM added market and NAV times
# 03/18/2020 07:23 PM branched from xarrange_cef_mkt_nav_quotes.py to xarrange_cef_mkt_nav_quotes_times.py
# 03/18/2020 08:20 AM computes and prints premium
# process a file with lines such as these, produced by rterm < xget_quotes_pimco_cefs.r
# Trade Time Last ... | [
"noreply@github.com"
] | Beliavsky.noreply@github.com |
6d018da31acfda0e7f95e98aaad0a1fc9db773ee | 10f7043ad519878fcf55a1b7f9d8050ab92230a1 | /app.py | 216628070718b1775d84d34dc27f92a4f620df58 | [
"Apache-2.0"
] | permissive | Rajatkhatri7/OCR-Api | 542a12f9b0ede951d246c00e2ad90e761747ab31 | 677da04b1aad44810384c548eee1c698c2e26c0f | refs/heads/main | 2023-05-29T02:04:46.035743 | 2021-06-16T08:25:18 | 2021-06-16T08:25:18 | 376,799,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | import os
from flask import Flask, json, render_template, request , jsonify
from pathlib import Path
import json
from ocr_core import ocr_core # ocr function
#global variables
BASE_DIR = Path(__file__).resolve().parent
UPLOAD_FOLDER = str(BASE_DIR) + "/src/uploads/"
# allowed files
ALLOWED_EXTENSIONS = set(['png', ... | [
"rajatkhatri0002@gmail.com"
] | rajatkhatri0002@gmail.com |
3b6a980ffb87af3580820c10aa1428a173c1618d | 9399d687b2e41245968ba0e9d413a6789d773b1d | /CI/erlang/erlang/libs/fake_ne/interface/FakeNeKeyword.py | d00bfa40b778bc57c8f8d8b44ee00d7e54648cad | [] | no_license | jiangliu888/DemoForSpeed | be41bdb85a1d1f5ca9350a3a1f681ced5ec9b929 | 11319bc19c074327d863ac2813a04cef3487f8d6 | refs/heads/main | 2023-08-23T14:16:21.686155 | 2021-10-17T12:01:34 | 2021-10-17T12:01:34 | 388,452,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | import os
from client.device import DeviceClient
from erlang.libs.uranus.interface.EsInterface import EsInterface
from erlang.libs.uranus.interface.UranusInterface import UranusInterface
from erlang.libs.variables import MeasureResultVariables
class FakeNeKeyword(object):
DB_PORT = 3000
DB_REST_PORT ... | [
"admin@example.com"
] | admin@example.com |
4d00ccd7e2aa83e59a80c5067dca230245fd07bc | 09f8a8bb1655cc76a29ac60896d1d42b0145f3c2 | /Utils.py | f617be1131d20d1c307cca7ba5b167e85ef6ea3f | [
"BSD-3-Clause"
] | permissive | FlatL1neAPT/PoshC2_Python | 4d1eb4d6a639395a32a2674ee49a17969a2b8a79 | 39f755f67bf4de15e93f56cd690e50924aa8bba0 | refs/heads/master | 2020-05-04T02:58:16.717780 | 2019-03-08T10:32:55 | 2019-03-08T10:32:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os, base64, string, random, re
validate_sleep_regex = re.compile("^[0-9]*[smh]$")
def gen_key():
key = os.urandom(256/8)
return base64.b64encode(key)
def formStrMacro(varstr, instr):
holder = []
str1 = ''
str2 = ''
str1 = varstr + ' = "' + instr[:54] + '"'
for i in xrange(54, len(instr), 48):
... | [
"email"
] | email |
fbf8daf4bdf2aad64abe58cfe148dc29d70aeed1 | d9bec654ec199b2d97337766576d96d95bf7f81a | /home/migrations/0003_auto_20210323_0637.py | b66714b2f97db66a9138bb46046789d04511e7bb | [] | no_license | falvo02421/Absensi-karyawan | ceccf4eaf3efb75861f546faadad9530669a44ae | 10ed70fdb875f1cfe89671073621969a88148d46 | refs/heads/main | 2023-06-03T04:33:53.180180 | 2021-06-19T11:23:01 | 2021-06-19T11:23:01 | 355,257,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Generated by Django 3.1.5 on 2021-03-22 23:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20210318_2209'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"noreply@github.com"
] | falvo02421.noreply@github.com |
a9ae5097afbf68db22e045080f2b8d85de9f6360 | d95d25e8dd1ce5961762e5c8523172d9c58bdf3e | /www/metclass_test/aiotodotest.py | 34403419498d22ac4fd25fed03195eb6742425bf | [] | no_license | juntian2013/awesome-python-webapp | 8dddcb12b6a57761976def14a1aac7a73e87665e | 0ad54273a08c7ef46bd5c873486a64e4e93ef98c | refs/heads/master | 2021-05-08T22:09:30.127691 | 2018-01-31T09:28:45 | 2018-01-31T09:28:45 | 119,665,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import requests,json
body = json.dumps({"name":"feed the api"})
url = "http://localhost:8080/todos/"
r = requests.post(url=url,data=body)
r.content
| [
"cs10b2010@126.com"
] | cs10b2010@126.com |
d318c67bfe43dfcfe07f336f3f50f911165df8fe | 763d50bae84af9c7fdc5fa7a68b0b37c9f613f24 | /projects/migrations/0003_auto_20200620_2033.py | 5927d275b1093432d39f60d0ea9747228399b19d | [
"MIT"
] | permissive | ketzu/knet-django | 767f3c1e80b644d7a9907e8726dabcc336d7cc59 | cc2ebef54bf4bd1bac6cd79c3458a6e1f3eb28a5 | refs/heads/master | 2023-04-14T13:18:11.484234 | 2020-09-20T09:04:05 | 2020-09-20T09:04:05 | 272,266,394 | 0 | 0 | MIT | 2021-04-08T21:00:19 | 2020-06-14T19:06:35 | Python | UTF-8 | Python | false | false | 793 | py | # Generated by Django 3.0.7 on 2020-06-20 18:33
from django.db import migrations, models
import stdimage.models
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_auto_20200615_2044'),
]
operations = [
migrations.AlterField(
model_name='project',
... | [
"david.moedinger@ketzu.net"
] | david.moedinger@ketzu.net |
c81609759a584d86444b2de3a819ea5a348374f2 | 6a92231b6ae8af4cb6eff50440b0872f0fba6b69 | /polls/views.py | 71243eb6de631331ea2c254a438c6ff823bfa6dd | [] | no_license | qkrdbwls613/django_project | 209ecef378bb2660ebdbeb815e3d5a6e734fa5d9 | dc464e20172922df93a494f43815fb1f3f9b5bd7 | refs/heads/master | 2023-02-03T04:45:55.166021 | 2020-12-20T18:12:58 | 2020-12-20T18:12:58 | 318,987,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from django.shortcuts import render, get_object_or_404
from .models import Question, Choice
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.views import generic
# Create your views here.
### Generic View (class-based views)
class IndexView(generic.ListView):
t... | [
"qkrdbwls613"
] | qkrdbwls613 |
fbc34bce75ef0bcc33b60c5c56c4ee439012a1ba | 7e470dd54740ca6331d1341328e344a713329a77 | /src/DQD_counting_statistics/zero_freq_statistics.py | a710fb1843cd96bbb95ceec6215f5f71d5d12580 | [] | no_license | rstones/DQD_counting_statistics | 127eb2ad83c5c69bdfb168975077f541c09d4bbc | 3eb5ad9876b59c43c35150238c3af3396b3ad100 | refs/heads/master | 2020-04-07T03:10:59.294391 | 2017-10-22T10:58:06 | 2017-10-22T10:58:06 | 53,421,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | '''
Created on 8 Mar 2016
@author: rstones
'''
import numpy as np
import quant_mech.utils as utils
from DQD_counting_statistics.DQD_model import DQDModel
import matplotlib.pyplot as plt
bias_values = np.array([0, 1.5, 3., 4.5, 6.])
Gamma_R_range = np.logspace(-4, 3, 1000)
model = DQDModel(remove_elements=True)
curre... | [
"r.stones@ucl.ac.uk"
] | r.stones@ucl.ac.uk |
20918f080964777e9fb5a2f25eac7aeeaec8b011 | 9a32c23a1579c55ae23270ad1d1f3a457bde9616 | /python/baseline_demo.py | bc5fc6bfe810f1b5f10524135bed533fd92c3b42 | [] | no_license | mathycee/bid-lands | 00debbe06851cc9224256a13bfaf789bc2345478 | cc6e9b570c47df94407a77450de8a82fc4649804 | refs/heads/master | 2020-04-10T19:12:30.083853 | 2016-04-04T14:51:43 | 2016-04-04T14:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,320 | py | from DecisionTree import *
from evaluation import getANLP
from matplotlib.pyplot import *
from math import ceil
def getTrainData_b(ifname_data,ifname_bid):
fin = open(ifname_data,'r')
i = 0
w = []
winAuctions = []
winbid = {}
losebid = {}
for line in fin:
i += 1
... | [
"785547425@qq.com"
] | 785547425@qq.com |
ef82a35376200f13baed1c3fb88eb212a5d84882 | 12474339bb0f1d8385f692c7210176ec53159d3f | /athene.py | 0bb209b1467677582846e018afeb4c59b168dd1d | [] | no_license | girvel/Athene | cc4c56eb08591b015348f9758c968c4f64828476 | e6b18a15de3b3254ac678da9489acf14c5f2c449 | refs/heads/master | 2022-02-27T10:38:14.889959 | 2019-10-05T17:07:45 | 2019-10-05T17:07:45 | 213,038,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | class And:
def __init__(self, *arguments):
self.arguments = arguments
def calculate(self):
return all(a.calculate() for a in self.arguments)
class Or:
def __init__(self, *arguments):
self.arguments = arguments
def calculate(self):
return any(a.calculate() for a in sel... | [
"widauka@ya.ru"
] | widauka@ya.ru |
e6a48ce39aa713d23d60c4ea365bae32998199dd | 541a65de9fc79cdc5301de66a22a8f82e06d352b | /price_optimization/Accuracy_check/Build_sequence_change_product_test.py | a9acef17bfaca2c6c0e552658255f1abeaf47bf4 | [] | no_license | sajith1995s/Reasearh_Scripts | 0b99b232e424296b15b4f429f0758ba0dc76b8c9 | 7c5b4c6851307193ca2ae446d98b5a134952f415 | refs/heads/master | 2022-07-07T05:43:26.439148 | 2019-11-09T04:31:28 | 2019-11-09T04:31:28 | 194,444,917 | 0 | 0 | null | 2022-06-21T22:18:14 | 2019-06-29T20:14:11 | Python | UTF-8 | Python | false | false | 7,416 | py | import csv
result = []
predicted = []
# Change product Algorithm
def algorithm(want_product, motherboard_pro, cpu_pro, ram_pro, vga_pro, hard_disk_pro, min_price, max_price):
products = []
with open('csv/products.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
for row in readCSV... | [
"virajlakshitha39@gmail.com"
] | virajlakshitha39@gmail.com |
cd6c69845e5a73b3b9376f0c68a51864342f01d2 | e4ce8df3aeb0f8c8eb2195ef9dabe466e137023b | /3月/4.py | 7f728c025da50b95f61a9b95f7f36065989eacf0 | [] | no_license | eecopt/Study-notes | 82c995a10d16570e8d9c1124dfd8b581ec836336 | c3bdd6651702fcdf0baefd262cf4a7899fb4a951 | refs/heads/master | 2021-03-11T11:41:57.365102 | 2020-05-01T14:49:02 | 2020-05-01T14:49:02 | 246,526,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
for i in range(ord('x'),ord('z') + 1):
for j in range(ord('x'),ord('z') + 1):
if i != j:
for k in range(ord('x'),ord('z') + 1):
if (i != k) and (j != k):
if (i != ord('x')) and (k != ord('x')) and (k != ord('... | [
"3503419092@qq.com"
] | 3503419092@qq.com |
28459452020b3f9d921767c1fd75d3f868741f99 | 26f23588e80acc2b28d4cc70a8fbcf78c5b33a20 | /PythonModels/learnBasic/file_options.py | 4173a88638e76c5058927e4ba42da592ecbd3ca6 | [] | no_license | Timehsw/PythonCouldbeEverything | aa31b3e32bf68b49fe8e96b971637353a8ef644f | 85d4f1a2c93c7b1edc34ceb9e8bb3c8d7beb30e9 | refs/heads/master | 2021-01-01T15:38:25.253094 | 2018-01-22T06:49:05 | 2018-01-22T06:49:05 | 97,661,530 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # coding=utf8
__author__ = 'zenith'
#读文件
f=open("D:\data.txt","r")
#print(f.read())
#print(f.readline().strip())
#print(f.readline().strip())
for line in f.readlines():
print(line.strip())
f.close()
#文件追加内容
f=open("D:\data.txt","a")
f.write("\n超人学院")
f.close()
#文件覆盖内容
f=open("D:\data.txt","w")
f.write("\n超人学院"... | [
"hsw.time@gmail.com"
] | hsw.time@gmail.com |
b9471a7ff4c1049c12d691354010582c295a8452 | d042f025bc8c34fd4425e5a382a342dfe61c49b6 | /core_app/migrations/0010_auto_20200910_1008.py | 85c3625271c0e2fc834e8649ea51f9b903e95e45 | [] | no_license | jannnnnnnnnn/job_tracker_app | adaff7397d4fc049b8587e78da58849c8acad255 | 15e29e824df03284b04621d863a251a5bf60bc4e | refs/heads/master | 2023-02-20T05:40:15.430645 | 2021-01-23T00:44:31 | 2021-01-23T00:44:31 | 292,585,184 | 1 | 5 | null | 2021-01-23T00:44:32 | 2020-09-03T13:56:18 | Python | UTF-8 | Python | false | false | 370 | py | # Generated by Django 3.0.8 on 2020-09-10 16:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core_app', '0009_auto_20200910_0814'),
]
operations = [
migrations.RenameField(
model_name='profile',
old_name='postalcode',... | [
"draz@ualberta.ca"
] | draz@ualberta.ca |
2ce65950f3a3c6a7276ff0eaa5fe5c7f9c82aea8 | 78632136f73b88bf807a7e8598710531931db790 | /src/이코테/다이나믹 프로그래밍/1로 만들기.py | f31aa5863a3ee86a8f09f6abb9ad352d5beebf5e | [] | no_license | ycs1m1yk/PS | b5962264324cc82ce7a256555442237da615de02 | a6e3619c119f4cb86d1ba160302597738bbb1f9f | refs/heads/master | 2022-05-09T10:26:49.545895 | 2022-04-17T15:30:06 | 2022-04-17T15:30:06 | 222,115,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import time
MAX = 30000
cache = [0]*MAX
def make_one(x):
ret = cache[x]
if x == 1:
return 0
if ret != 0:
return ret
ret = make_one(x-1) + 1
if(x % 5 == 0):
ret = min(ret, make_one(x//5)+1)
elif(x % 3 == 0):
ret = min(ret, make_one(x//3)+1)
elif(x % 2 == 0):... | [
"satoly4@gmail.com"
] | satoly4@gmail.com |
e627e38d127df4495b21bc9f5850539cd623030f | d5e26c8fbd1af417fbd1ba9e1069d0dba6bd3cf9 | /core/src/main/python/compare_models.py | f6e8cfa731daab2702f96e565cd30611c58ac6b3 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"UPL-1.0"
] | permissive | mwooten/weblogic-deploy-tooling-ct | 47b946e191fe1d6312c77c0176f783655a29ded5 | a9a269981077fb99897a6cde9de3444b7c94e326 | refs/heads/master | 2020-03-19T08:57:21.179962 | 2018-06-06T17:22:39 | 2018-06-06T17:22:39 | 136,248,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,822 | py | """
Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
The entry point for WDT Tester component that compares domain models
"""
import os
import sys
from java.lang import IllegalArgumentException
from oracle.weblogic.deploy.util import File... | [
"mike.wooten@oracle.com"
] | mike.wooten@oracle.com |
7635e2b62ef503cb48a2e97a4726b3ce2b22a9fe | c7613949a341556021e6c97596d53e7e63cbee24 | /main.py | f9f32a148c2b535764ce33aeac075f0b123c340f | [] | no_license | EdwinAlmira/proyectoPython | 90724f145172e4fb51c92d8a4149aa72dad94c88 | 68f86fd580bfec50ba11623daf25c32a282ca4e7 | refs/heads/master | 2021-02-06T16:15:24.756571 | 2020-03-11T21:30:37 | 2020-03-11T21:30:37 | 243,930,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | #imports
import sys
#Listado
clients = ['pablo','gerardo']
#Create function
def create_client(client_name):
global clients
if client_name not in clients:
clients.append(client_name)
else:
print('Client already in the client\'s list')
#Update function
def update_client(old_name, ne... | [
"ealopezalmira@gmail.com"
] | ealopezalmira@gmail.com |
4ec82c4d69562c103864beb83bc5eac587470077 | 1af49694004c6fbc31deada5618dae37255ce978 | /third_party/blink/renderer/bindings/scripts/bind_gen/__init__.py | 44c068af8ca05cd83d23acbbb3e0bc2dfd11be14 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | sadrulhc/chromium | 59682b173a00269ed036eee5ebfa317ba3a770cc | a4b950c23db47a0fdd63549cccf9ac8acd8e2c41 | refs/heads/master | 2023-02-02T07:59:20.295144 | 2020-12-01T21:32:32 | 2020-12-01T21:32:32 | 317,678,056 | 3 | 0 | BSD-3-Clause | 2020-12-01T21:56:26 | 2020-12-01T21:56:25 | null | UTF-8 | Python | false | false | 2,353 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os.path
import sys
# Set up |sys.path| so that this module works without user-side setup of
# PYTHONPATH assuming Chromium's directory tree structur... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
b02702d79f0095758bb048b0ee93700d8d522848 | cb7519b77e3c772f5c8f388e2e19150c7dbcf830 | /product/views.py | 276a04ba34e6b55497c7454ac0ae4b98a25ee112 | [] | no_license | kyoyo/ecshop | 2022395d3dd0f2a5c6e62ff614f0b5456412d3e5 | 0dcebbe16e040a7316ac17e59c9c4473a1b2731c | refs/heads/master | 2021-05-08T01:29:41.358321 | 2017-10-30T09:38:19 | 2017-10-30T09:38:19 | 107,854,955 | 12 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,218 | py | from django.shortcuts import render
from django.views.generic import ListView,DetailView
from .models import Category,Goods
from django.conf import settings
# Create your views here.
class CategoryDetailView(ListView):
template_name = 'product/goods_list.html'
context_object_name = 'goods_list'
page_typ... | [
"kyo.stone2015@gmail.com"
] | kyo.stone2015@gmail.com |
7978d48814a86434a335c4d6f6ad9ce32c0ddfc7 | 871f5cce3dc447662447843370dfdb7f9fa4df6c | /testing_scripts/test2.py | 056029773c3a8641f13d3949e6b0900f0dea4d00 | [] | no_license | hrishi32/Video-Colorization | a25da366a455c93027745404394c190eabc2be6d | 627d9274d972458bdf50d2c6e1a8b20c1e27a236 | refs/heads/master | 2020-05-24T19:33:20.164039 | 2019-05-19T13:45:44 | 2019-05-19T13:45:44 | 187,436,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #!/usr/bin/env python
# coding: utf-8
import keras
from keras.models import *
import numpy as np
import cv2
import glob
import sys
import os
def frameExtractor(path):
videoObject = cv2.VideoCapture(path)
success = 1
while success:
success, image = videoObject.read()
yield image[:,:480,:... | [
"sarodehrishikesh18@gmail.com"
] | sarodehrishikesh18@gmail.com |
50d41bc04b35250d86a4adb67e67092dd7f34b51 | 34339da2c834d79c9d3142afb8c498c62fb8917d | /thenewboston_node/blockchain/tasks/debug_task.py | 5af50cb9f0a73b2cb20d0323ab22fd1023029219 | [
"MIT"
] | permissive | olegtropinin/thenewboston-node | 5abfcbe02404f7c5347af724fb06c7f6420226ba | 2de4e14ef6855646121840224a82fcfc505b213c | refs/heads/master | 2023-08-23T09:33:25.286098 | 2021-10-14T22:53:15 | 2021-10-14T22:53:15 | 417,582,617 | 0 | 0 | MIT | 2021-10-15T17:27:52 | 2021-10-15T17:27:51 | null | UTF-8 | Python | false | false | 190 | py | # TODO(dmu) HIGH: Remove this example task once real tasks are created
from celery import shared_task
@shared_task(bind=True)
def debug_task(self):
print(f'Request: {self.request!r}')
| [
"dmugtasimov@gmail.com"
] | dmugtasimov@gmail.com |
6817f6dec4c9946e360e3675139c6c8fea5de0f2 | 4106e79ee431c3567304cfc8e429c5c667ba9fc4 | /util.py | 87d9679e4f6d8ee44baee62f75ac924bd8fa406f | [] | no_license | justinwilly/Sprint-Challenge--Graphs | dc313f39b040b6677fd78babf1783003d61b1f9c | 6d65af8a6efeeb9c747a00d1589ebc86e1e28560 | refs/heads/master | 2022-12-26T22:20:27.930909 | 2020-10-07T20:34:08 | 2020-10-07T20:34:08 | 263,991,022 | 0 | 0 | null | 2020-10-07T20:34:09 | 2020-05-14T18:14:07 | null | UTF-8 | Python | false | false | 3,393 | py | # Note: This Queue class is sub-optimal. Why?
class Queue():
def __init__(self):
self.queue = []
def enqueue(self, value):
self.queue.append(value)
def dequeue(self):
if self.size() > 0:
return self.queue.pop(0)
else:
return None
def size(self... | [
"45780143+justinwilly@users.noreply.github.com"
] | 45780143+justinwilly@users.noreply.github.com |
9755b139b741d0c2700bb0413e958eed81d94419 | f2668e062d0c72c7e96a007f555459fecfd02ebe | /wagtail_review/__init__.py | 2a422415622321b2cc310a82fd0013f1e2c4c900 | [
"BSD-3-Clause"
] | permissive | BackBayRider/wagtail-review | 170e1f48d421ed46f56c8607756b25d495e35c6c | 45841611921d3cf67be94370e2ab6c332b0f838c | refs/heads/master | 2023-04-19T11:26:15.577124 | 2021-03-01T16:22:32 | 2021-03-01T16:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | default_app_config = 'wagtail_review.apps.WagtailReviewAppConfig' | [
"matthew@torchbox.com"
] | matthew@torchbox.com |
c8d1f9bd715d63c1a95aa03a193d4b226997120f | b1ed07f9a475e77d6295ecfc1e5564a42b1b6800 | /core/templatetags/my_custom_tags.py | ce3bab3735a9a905747cfb1ff78c996de02c146a | [
"MIT"
] | permissive | SubhanRzayev/E-commerce-Tmart | 4a764a8c84976455d5c9d7d3942efeff807f7536 | 239218397f4ee55ab6ae4ef1798fbc83bc7d1159 | refs/heads/main | 2023-07-08T19:15:07.807938 | 2021-08-13T12:24:40 | 2021-08-13T12:24:40 | 395,606,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from blog.models import Category
from django.template import Library
from core.models import *
register = Library()
@register.filter
def main_catagory(self):
if self.category == None:
return self.category
| [
"subhanrzayev97@gmail.com"
] | subhanrzayev97@gmail.com |
8a2ab4c6d3a5e094042ddf4c2df9dbb5ffce65ca | 29091a32fbcbfc5c5db0b1e2a8aa344835a82f68 | /ctrlengine/sensors/__init__.py | 9e8adab2a9274c69dc8209f319d7f4752f1ae404 | [
"MIT"
] | permissive | 0xJeremy/ctrl.engine | 52b0244f42e9a7a92486ba1fcfcf2fe2fedc5631 | 19abba70df149a05edc5722cc95ceacc538448e6 | refs/heads/master | 2022-11-17T23:48:40.547073 | 2020-07-06T22:31:37 | 2020-07-06T22:31:37 | 241,662,968 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | from .camera import camera
from .realsense import realsense_camera
| [
"jeremy.kanovsky@tufts.edu"
] | jeremy.kanovsky@tufts.edu |
088a093e36d31ff4a4fc4890cd0ea0a3f98a32e7 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_BoxCox/trend_MovingMedian/cycle_30/ar_/test_artificial_32_BoxCox_MovingMedian_30__100.py | eaa3d461b45d44c18f2e1bbaffa799b7393f51fd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
f1cee029a06eff14cdeffffac24ff6c8d018a802 | 53c3ec3f0e86de2cf91f5c17819532ebc94fb05d | /network/cl.py | 7d87db70e0f4cf7b9c5a4edbf153d4911dc481e0 | [] | no_license | gobackmysoul/test | d52d40f7bf01b71d909925b2a20b66fa415dab85 | 47a4ae6f29651e00cafd5e8a73074194db4d2f05 | refs/heads/master | 2020-04-14T16:44:39.102773 | 2019-01-03T10:55:51 | 2019-01-03T10:55:51 | 163,960,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | #!/usr/bin/python3.5
# -*- coding:utf-8 -*-
# @Filename : cl.py
# @Author : 搏鲨
# @Create date : 18-9-22 上午10:27
# @Email : 1170120381@qq.com
# @QQ : 1170120381
# @Blog : http://www.cnblogs.com/bosha/
# @license : (C) Copyright 2018-2020, ... | [
"1821950544@qq.com"
] | 1821950544@qq.com |
e7a4a6f5c28e38bae86f0c0f5778bea9e373777a | 1ba63f3fdbfb7e42e5182d78ec24d2865e3549eb | /Ingestion/CTD/aux/ba_gui.py | 8271a7024ba573121e1535b19b18188b160270dd | [] | no_license | Fiskaaling/FA_Ingestion_engine | 6494fd8f26572b08b907301520270980c2abf983 | 92533ed17c12aaec1a2f3516d8ddc2fbb345f3dd | refs/heads/master | 2022-11-26T18:08:27.050661 | 2020-06-25T07:42:32 | 2020-06-25T07:42:32 | 147,329,930 | 2 | 0 | null | 2020-06-25T07:42:25 | 2018-09-04T10:37:27 | Python | UTF-8 | Python | false | false | 7,088 | py | # Hesin fílurin er til at minka um gui skrambul í bin_average fílinum
import os
import numpy as np
from tkinter import Label, TOP, W
import pandas as pd
def refresh_qframe(Quality_frame, list_of_casts, parent_folder, filnavn, mappunavn_dict):
textsize = 16 # TODO: Set hettar í ein settings fíl
metadata = []
... | [
"johannus@fiskaaling.fo"
] | johannus@fiskaaling.fo |
4b0b8daf7547c7e417e5cb7ee7e7ad92e7ccbb55 | 7a56929fb3bdfc824faf357f0b72e79d53c40363 | /assignment1/cs231n/classifiers/linear_svm.py | 9bb845695ebd7d6ffda1f7a358a7f05b517eb905 | [] | no_license | entgl-t/CS231n | 19d0a7a70755280405a582b08ac0e2269c080fc6 | 54ea6a152981f615650096a49f1d67dd79ed6277 | refs/heads/master | 2022-12-09T13:21:50.089435 | 2020-01-10T15:12:57 | 2020-01-10T15:12:57 | 233,016,115 | 0 | 0 | null | 2022-12-07T23:32:57 | 2020-01-10T09:47:44 | Jupyter Notebook | UTF-8 | Python | false | false | 4,625 | py | import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of sh... | [
"doniyor.tropmann@gmail.com"
] | doniyor.tropmann@gmail.com |
c51fe6bf797c8e68f550ef920d793a474a3c2284 | 893d3bfadad7d233b42322a685081df0eb82e440 | /dataSetMerger.py | 9b8ae9ab0079ecd00b007a203d55af185e4e9e16 | [] | no_license | hantus/Internship | 9ad858ddca847725da790d15ebef91c9db575627 | 16d0b7d581715d4835055ef3e4b4331f8d80d302 | refs/heads/master | 2022-10-30T06:03:08.490194 | 2020-06-19T20:47:04 | 2020-06-19T20:47:04 | 265,277,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | import numpy as np
dataSet1 = np.load('data/1person10_merged.npy')
dataSet2 = np.load('data/1person_hat10_merged.npy')
dataSet3 = np.load('data/1person_hood10_merged.npy')
dataSet4 = np.load('data/2ppl10_merged.npy')
dataSet5 = np.load('data/2ppl_1hat10_merged.npy')
dataSet6 = np.load('data/1person_add10_merged.npy')
... | [
"piotr.handkowski@etu.univ-grenoble-alpes.fr"
] | piotr.handkowski@etu.univ-grenoble-alpes.fr |
353717fed1fffc1dd0f1e4b9724d49c1af9d4f19 | edcb05e9463a222e5b57564dd574632d74e0d7a7 | /pages/urls.py | ed1cb739fbd7fa43693c6cf3a79204053567cf95 | [] | no_license | hungnc6969/dj1_helloworld | ab4d0223d942a05960cd4b055655396e5bcbecb4 | 20e772b176e3d737c67824496680665f23bc5746 | refs/heads/master | 2023-05-28T03:41:26.774325 | 2020-04-28T00:49:20 | 2020-04-28T00:49:20 | 259,492,274 | 0 | 0 | null | 2021-06-10T22:52:48 | 2020-04-28T00:47:57 | Python | UTF-8 | Python | false | false | 200 | py | # pages/urls.py
# file nay mapping url den conten trong file views.py
from django.urls import path
from .views import homePageView
urlpatterns = [
path('', homePageView, name = 'home'),
]
| [
"hungnc6969@gmail.com"
] | hungnc6969@gmail.com |
f9a3518f256b925c3a31d214b721e8d53706123e | f0b741f24ccf8bfe9bd1950425d83b6291d21b10 | /backend/api/v2beta1/python_http_client/test/test_v2beta1_runtime_config.py | ea104015c08bff480428f747f9b1fe16d1dd0715 | [
"Apache-2.0"
] | permissive | kubeflow/pipelines | e678342b8a325559dec0a6e1e484c525fdcc8ce8 | 3fb199658f68e7debf4906d9ce32a9a307e39243 | refs/heads/master | 2023-09-04T11:54:56.449867 | 2023-09-01T19:07:33 | 2023-09-01T19:12:27 | 133,100,880 | 3,434 | 1,675 | Apache-2.0 | 2023-09-14T20:19:06 | 2018-05-12T00:31:47 | Python | UTF-8 | Python | false | false | 1,580 | py | # coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import ... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.