blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ae2ba41318e5cf923f6e71130b05474ea22e368 | d3791c06d7a9434781330883aed6780283bd2e75 | /fastgreedy.py | 80355bdfa69608cb7ed9c91c3b179ea545feb979 | [] | no_license | saisrirammortha/Text-Document-Processing-For-Classification | 43f45a406c1dd7fe63bc82dfafb159ba135fff3a | 99ad04b61d7939ca975282bcc1db455a92cb44b1 | refs/heads/master | 2022-11-28T20:11:54.386201 | 2020-08-07T13:49:57 | 2020-08-07T13:49:57 | 181,516,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py |
def dist(a,b):
import math
n=len(a)
k=0
for i in range(0,n):
k=k+((a[i]-b[i])**2)
return math.sqrt(k)
def db(X,clusters):
n=len(X)
cno=0
temp=[]
for i in clusters:
if i not in temp:
cno=cno+1
temp.append(i)
index=0
centroid=[]
for i in range(0,cno):
cc=[]
count=0
... | [
"noreply@github.com"
] | noreply@github.com |
42b3884ac70b7a2e76ae5bcede46e819ad0e8578 | a36a320fe0124da12c94f93756f38c716874e534 | /tst/tst_chk_srt.py | 15840e5d19a6a7b0982e53ca00657719b7356ece | [
"BSD-3-Clause"
] | permissive | geoallen/rrr | 76376431c30a9cf7369c1ea8e31f004cf9994c2d | a1b3f273b30d7fc034af63074ad6a6d6c19ba4eb | refs/heads/master | 2021-05-05T01:53:34.058607 | 2018-04-16T21:01:06 | 2018-04-16T21:01:06 | 119,757,564 | 0 | 0 | null | 2018-01-31T23:39:56 | 2018-01-31T23:39:55 | null | UTF-8 | Python | false | false | 5,362 | py | #!/usr/bin/env python2
#*******************************************************************************
#tst_chk_srt.py
#*******************************************************************************
#Purpose:
#Given a river connectivity file and a river ID file, this program checks that
#the river ID file is sorted... | [
"cedric.david@jpl.nasa.gov"
] | cedric.david@jpl.nasa.gov |
9e29b73e6b373690d991733fa6fcf7dc2ccec79c | 4334fc4e5e500c5c97fef73a31add1b726abbe5e | /03.FindGroup/downloadzebodata.py | 293e133e10a3f230f084533ca27ad2af29aad152 | [] | no_license | tkrs/collective.intelligence | 5a68d9774fa775d698a0419cd0522f79df8d946f | 7180e03182be7f7f4050863523c2b7147aa6af74 | refs/heads/master | 2016-09-11T04:09:20.688577 | 2014-06-25T17:51:23 | 2014-06-25T17:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from BeautifulSoup import BeautifulSoup
import urllib2
import re
chare = re.compile(r'[!-\.&]')
itemowners = {}
# ignore patterns
dropwrds = ['a', 'new', 'some', 'more', 'my', 'own', 'the', 'many', 'other', 'another']
currentuser = 0
for i in range(1, 51):
c = urllib2.urlopen(
'http://member.zebo.com/Main... | [
"midium.size@gmail.com"
] | midium.size@gmail.com |
8815c48bbe620eaecd88f26cf0fccb55bd3142a6 | 9a1791bca8787b5e789e5017219b7dafe145ac89 | /nnutil2/layers/debug.py | 418ccee4bd94c0df87cbd8e85dcac3192ad44548 | [
"BSD-3-Clause"
] | permissive | aroig/nnutil2 | 7f6086c0d555ec3820447ca64a948c29496a79a6 | 1fc77df351d4eee1166688e25a94287a5cfa27c4 | refs/heads/master | 2023-04-11T14:07:17.649496 | 2020-08-01T18:03:57 | 2020-08-01T18:03:57 | 196,260,872 | 0 | 0 | BSD-3-Clause | 2023-03-25T00:50:57 | 2019-07-10T19:04:00 | Python | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# nnutil2 - Tensorflow utilities for training neural networks
# Copyright (c) 2019, Abdó Roig-Maranges <abdo.roig@gmail.com>
#
# This file is part of 'nnutil2'.
#
# This file may be modified and distributed under the terms of the 3-clause BSD
# license. See the LICENSE fi... | [
"abdo.roig@gmail.com"
] | abdo.roig@gmail.com |
3df0debeaf2e1dc76b3f8d82907893aba2e5e5b0 | fa455c127b669386a1b353554e1ecf14a13f173f | /FC_DenseNet_Tiramisu_org.py | 2724e2e3dacc33d831133dbbc7cff01fa1de9a96 | [] | no_license | gyeongchan-yun/computer-vision-project | f93340471baf132d8d5cdfa9d92d24722edd5b29 | 290d7ac7d57344d7b2482d13a9444e5ac19f97d5 | refs/heads/master | 2022-12-11T14:34:18.563367 | 2020-01-31T08:57:35 | 2020-01-31T08:57:35 | 237,391,713 | 0 | 0 | null | 2022-12-08T03:31:58 | 2020-01-31T08:46:32 | Python | UTF-8 | Python | false | false | 6,074 | py | from __future__ import division
import os,time,cv2
import tensorflow as tf
import tensorflow.contrib.slim as slim
import numpy as np
def preact_conv(inputs, n_filters, filter_size=[3, 3], dropout_p=0.2):
"""
Basic pre-activation layer for DenseNets
Apply successivly BatchNormalization, ReLU nonlinearity, C... | [
"rugyoon@gmail.com"
] | rugyoon@gmail.com |
d55a3164fd73e3a5fcbacf91e9d1ded395dafa83 | 366f6414e7ee6f5f032fb0ce395184aae1c24014 | /projectAwwards/serializer.py | c77674711754190d3eef3d72e8026864064f13c8 | [] | no_license | praize-laurine/Awwards | 271910bce5d31e0cabe6e65ba3660e49871f30c3 | 4c6a10abe17b2f08e06c27967ea8d044d0630964 | refs/heads/master | 2023-02-22T15:05:33.301611 | 2021-01-29T07:00:48 | 2021-01-29T07:00:48 | 331,952,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from rest_framework import serializers
from .models import Profile,Project
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = ('user','bio')
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
fields = ('tit... | [
"preyzelaurine@gmail.com"
] | preyzelaurine@gmail.com |
a95c69a39de74191a2cf07f7bbe52fda833d9226 | 58ee6d6e86a026cebcd51e146f37d30061f95e91 | /tutorial/quickstart/views.py | 99bc313def55a655d0ac568ab106cc8141d16847 | [] | no_license | SFSeiei/tutorial | fa7e28dbba0bd0e7a43630c882d52b123a78fe8d | dcda7533d80b9c89975884a2676243058f38d944 | refs/heads/master | 2020-08-31T10:47:55.636779 | 2019-10-31T06:19:26 | 2019-10-31T06:19:26 | 218,673,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from django.shortcuts import render
# Create your views here.
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from tutorial.quickstart.serializers import UserSerializer, GroupSerializer
from django.shortcuts import redirect, HttpResponse, reverse
class UserViewSet(viewsets.Mode... | [
"740969264@qq.com"
] | 740969264@qq.com |
1cdb295c7d4c5f4d444031d64b2eaf82620aa1e4 | 058749c63b46987c371edb227669332f297316cc | /2_AddTwoNumbers.py | 1256ea6dfb9a6709d9b324466b705a0d4bc0e29a | [] | no_license | gaosheng19920801/leetcode | 764b6e5c1e8ee449f23b6999fb2820c0088e0921 | f6752ba1010ed44e69f29274865f1788f0b31600 | refs/heads/master | 2021-06-21T18:43:36.838786 | 2021-05-10T13:43:02 | 2021-05-10T13:43:02 | 219,732,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def printList(self):
while self:
print(self.val)
self = self.next
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> L... | [
"noreply@github.com"
] | noreply@github.com |
a4aaf4f6008b047c676dfce3d862c91abf2f8237 | d53dd5d21588e210e00b6d765179aff934e2f24a | /instrumentation/instrumentation.py | 79657d9440b7e06a745e171c90d79dc820d828f9 | [
"Apache-2.0"
] | permissive | iobeam/samples-python | 8ad8a93b3fbd6478a0b5552a72b2545d9c261520 | b275e9515785ae346478f3a69e01463cc19d5354 | refs/heads/master | 2020-05-17T06:06:46.365775 | 2016-01-28T22:21:49 | 2016-01-28T22:21:49 | 41,765,693 | 2 | 0 | null | 2015-12-19T00:09:36 | 2015-09-01T22:02:09 | Python | UTF-8 | Python | false | false | 2,351 | py | from iobeam import iobeam
import datetime
import time
###########################
# Template for a basic instrumentation app.
#
# This template outlines a script that periodically transmits device instrumentation
# data (e.g., temperature, humidity, gps, etc.) to iobeam.
#
# Instructions:
#
# 0. Add your project info... | [
"ajay@watchvast.com"
] | ajay@watchvast.com |
745610ac743cdea2d4adb68730d67d5a100c65b7 | e50d7e173f76d4e0c9f297a1dca2ecff898daf7f | /config.py | f20bd8400b18a5dabee48365417d75b7d77f46a0 | [] | no_license | joshandrews/emilymcintyre.ca | 242d9f9bb5aa3b8ef40c718ca47968a3e6ae27ec | b22077896a90f7b77972bdd851329e3d0d030ceb | refs/heads/master | 2021-01-18T12:54:56.776590 | 2015-01-16T00:35:33 | 2015-01-16T00:35:33 | 28,666,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | #!/usr/bin/env python
import ConfigParser
import os.path
class Config:
def __init__(self):
self.config = ConfigParser.ConfigParser()
if not os.path.isfile("americano.ini"):
cfgfile = open("americano.ini",'w')
self.config.add_section('MySQL')
self.config.add_sec... | [
"joshphilipandrews@gmail.com"
] | joshphilipandrews@gmail.com |
b626ae56932dee05bae3412201691ec260ae1044 | a8182e9ddf3229dc50c752bd3526fac1ae5862e6 | /app/cabotapp/calendar.py | 6759d13fb0b76e29667a70889b3974f3cfd53def | [
"MIT"
] | permissive | kowsik/heroku-cabot | bb2159cf24398060551e55e10d0d893c2a10f405 | faa6b24606c7c30e8fdeb857d3ad0bf1347cb490 | refs/heads/master | 2021-01-17T18:05:26.269311 | 2014-04-28T18:04:41 | 2014-04-28T18:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py |
from django.conf import settings
from icalendar import Calendar, Event
import requests
def get_calendar_data():
feed_url = settings.CALENDAR_ICAL_URL
resp = requests.get(feed_url)
cal = Calendar.from_ical(resp.content)
return cal
def get_events():
events = []
for component in get_calendar_data().walk()... | [
"ryanaudiencepi@users.noreply.github.com"
] | ryanaudiencepi@users.noreply.github.com |
5aa055671b51307ce7e5d87a5287cc6d5064c1a9 | d1b1cd3710d0f5f248ace0d1230fc2a2170f7dc9 | /sc2/agent/DRLAgentWithNaiveDQN_phil.py | a73861718d2fb825ed55d6ce84b6896ecdda9658 | [] | no_license | prokokok/starcraft2_rl | a7e7a1d20972d232af83457a952cfbe9c52394fc | ade3b1cc3537f990a4581da132f40b2766518962 | refs/heads/master | 2022-12-28T01:12:16.085932 | 2020-09-22T01:36:26 | 2020-09-22T01:36:26 | 296,833,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,690 | py | import random
import time
import math
import os.path
import numpy as np
import pandas as pd
from pysc2.agents import base_agent
from pysc2.env import sc2_env, run_loop
from pysc2.lib import actions, features, units
from absl import app
import torch
from torch.utils.tensorboard import SummaryWriter
from skdrl.pytor... | [
"philhoon1991@gmail.com"
] | philhoon1991@gmail.com |
3f18c535d464c3fa0364386235cbbb1f472cbbf5 | 8a433500d1e66df60fdfe3ee7104e3591e2489d3 | /homework3/31.py | 344012ef0c5d9e8701910e7643a32b0dc126faef | [] | no_license | ratmirdudin/numerical | 091c4f1810f2225bc2dff741a04e500a9bf272bb | 2d16f4a5419d441b25016879fb838596e73a3979 | refs/heads/master | 2022-10-11T13:51:53.129953 | 2020-06-10T19:10:21 | 2020-06-10T19:10:21 | 264,369,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import numpy as np
import matplotlib.pyplot as plt
train_x = open('data1/train.dat', 'r')
train_y = open('data1/train.ans', 'r')
test_x = open('data1/test.dat', 'r')
test_y = open('data1/test.ans', 'w')
x = [float(i) for i in train_x.readline().split()]
y = [float(i) for i in train_y.readline().split()]
z = [float(i)... | [
"noreply@github.com"
] | noreply@github.com |
ce26fc7a6b6d61f812f05ba974c34ce227688d94 | 9e328530c7e96b9229cc7a7a06e433fd3e8a5b34 | /python/project2.py | 8c476f54aec71bb9c91045c738605e4609c76c6a | [] | no_license | anirudhRowjee/Class11 | e5bdc5b4dd2895fe278cf7caa0a12b36e58d2188 | dc90a5efd33ca71cfffa3e2f154621f064a1e2c1 | refs/heads/master | 2021-06-26T14:28:56.700587 | 2018-08-09T17:53:51 | 2018-08-09T17:53:51 | 143,626,058 | 2 | 2 | null | 2020-10-07T09:15:26 | 2018-08-05T15:42:49 | Python | UTF-8 | Python | false | false | 232 | py | a = float(input("please input a"))
b = float(input("please input b"))
c = float(input("please input c"))
x = float(input("please input x"))
answer = (((a*x*x*x) - (3*x*x))/(2*x)) + (((b*x*x) - (4*x)) / (c*x))
print answer
| [
"noreply@github.com"
] | noreply@github.com |
4cfa849ee0707d7f4584967ead32663365e3e83a | e86f88bd05d2dfc3197191245a28734e0a94306c | /scripts/manage_donors_db.py | 3c4a29bd2ebd82ae9f17f1414497b0935e76ab61 | [] | no_license | transreductionist/API-Project-1 | b83e008a8dcf19f690109d89b298111062f760c0 | d5ffcc5d276692d1578cea704125b1b3952beb1c | refs/heads/master | 2022-01-16T06:31:06.951095 | 2019-05-09T15:22:44 | 2019-05-09T15:22:44 | 185,820,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,882 | py | """The following script will DROP ALL tables and then CREATE ALL.
Use with caution! It will remove all existing data, and then reconstruct the tables with no entries. Other functions
can be added to manage other database tasks. To run a function navigate to the project root and, for example, on the
command line type:
... | [
"transreductionist@gmail.com"
] | transreductionist@gmail.com |
76165af58121e1b0a60e11a06bbd03a474677c14 | 248e9951f171425a21d30f4f9789b4780aef83a7 | /test/functional/rpc_scantxoutset.py | 84f69aff87facfef64e6d6695718a5fb529559c2 | [
"MIT"
] | permissive | bitcoinrtx/BitcoinRTX-V0.1 | 8dd4f2b79e40d1eba39a1dc8e27bffe5c34785d4 | defcb5024837d0a17152d1304e6de3fb338436f5 | refs/heads/master | 2023-03-12T11:16:08.751490 | 2021-03-06T20:05:56 | 2021-03-06T20:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,467 | py | #!/usr/bin/env python3
#
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the scantxoutset rpc call."""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, assert_rai... | [
"kunal@coinrecoil.com"
] | kunal@coinrecoil.com |
6a6ffca20c1c9cc02781e1c479389521f4e3e993 | 0be6823ef69ce50f35063aad98cba913abfca3d4 | /deepr/hooks/num_params.py | f7808e1823f80c1ab60b65387bdf8db04ea1edda | [
"Apache-2.0"
] | permissive | Mbompr/deepr | 944e827c114be60f73ad5882130a531bb2332559 | 1fb28e15aeeac6ef2d8e5b678feb380f2b1951f2 | refs/heads/master | 2022-11-11T10:02:01.929598 | 2020-05-20T16:29:38 | 2020-05-25T10:36:52 | 266,785,156 | 0 | 0 | Apache-2.0 | 2020-05-25T13:23:03 | 2020-05-25T13:23:02 | null | UTF-8 | Python | false | false | 1,408 | py | """Log Number of Parameters after session creation"""
from typing import Tuple, List
import logging
import tensorflow as tf
from deepr.utils import mlflow
LOGGER = logging.getLogger(__name__)
class NumParamsHook(tf.train.SessionRunHook):
"""Log Number of Parameters after session creation"""
def __init__... | [
"r.beaumont@criteo.com"
] | r.beaumont@criteo.com |
c0964f7a176be551ea3d34649e8c502828aa6ad1 | ecd3051e5baed08d2b987a36820a764223ceb7fd | /algo/leetcode/dp/perfect_square-279.py | 5afe06502d2b1a80d98a04de7d71aa57688dd3e3 | [
"CC0-1.0"
] | permissive | Hasaber8/cheatsheets | 5493cfbd178d01a1ab9cf6e216263299c9425776 | 94b44424e8661a74e2ded8445455d00b122f167f | refs/heads/master | 2021-04-16T20:09:17.095374 | 2018-07-08T04:34:26 | 2018-07-08T04:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py |
import math
class Solution(object):
def numSquares(self, n):
"""
:type n: int
:rtype: int
>>> s = Solution()
>>> s.numSquares(1)
1
>>> s.numSquares(2)
2
>>> s.numSquares(3)
3
>>> s.numSquares(4)
1
>>> s.numSqu... | [
"benquike@163.com"
] | benquike@163.com |
e2502517508c67dd94bb252188d8778ab806099e | 2fa075e320c1331dbef73d36f3697f29b72aa42a | /linkedin/11.binarytreeordertraversal.py | 383d0309216b00abc4a57079e1bde2ba6fc96ac8 | [] | no_license | ashushekar/python-advance-samples | c35313940a8c03eeef2446485fd2101a581f2c1b | a9acf02a1ac96eee0020284babc1102ebaab6b07 | refs/heads/master | 2020-09-11T09:47:30.126094 | 2019-11-25T13:29:26 | 2019-11-25T13:29:26 | 222,026,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def levelOrder(self, root: TreeNode) -> List[List[int]]:
result = []
if not root:
return result
current_level ... | [
"ashwinnaidu1991@gmail.com"
] | ashwinnaidu1991@gmail.com |
8143a6a3909f400bc57671bbfe5c265e553dee59 | dc9bd4397878980f708ee10b978a55880bcfcc4f | /posts/migrations/0001_initial.py | 6e351f5c4b67abb839d9e122baac1cd7507fd765 | [] | no_license | eslam2002/Socialsite- | e2dcdb01a622b39cd6a71ccf44a95410bf5cd3d7 | c97d97b1c0be24f9acf667b8e55bf9ae6ea1df63 | refs/heads/master | 2020-03-28T20:40:29.088657 | 2018-09-17T08:24:39 | 2018-09-17T08:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 2.0.5 on 2018-06-09 15:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('groups', '0001_initial'),
migrations.swappable_dependency(setti... | [
"es2002@protonmail.ch"
] | es2002@protonmail.ch |
0bda8a3cbb74408a4b46cea22f14d231b62063c4 | 218007ee08f382d5cebcf79b8bafb9d98d78b85a | /FugModel/MIM.py | fc920171842186666f9e207fac2b52bc526096df | [
"MIT"
] | permissive | DiamondModels/FugModel | 30222eff446787f6a5db03e61d3e902d673218f2 | d0247fe784439c97aa3c3d34934edf85e301059c | refs/heads/master | 2020-03-25T02:43:41.542865 | 2019-03-15T15:44:25 | 2019-03-15T15:44:25 | 143,304,689 | 0 | 1 | MIT | 2019-03-15T15:44:26 | 2018-08-02T14:20:28 | Python | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 3 11:22:09 2018
@author: Tim Rodgers
"""
import numpy as np
import pandas as pd
from HelperFuncs import vant_conv, arr_conv
from FugModel import FugModel
class MIM(FugModel):
"""Multimedia Indoor Model fugacity model object. Implementation of the model by
?... | [
"38299576+tfmrodge@users.noreply.github.com"
] | 38299576+tfmrodge@users.noreply.github.com |
4b74be3a151dab7cac6d990d8d186b1b84de6013 | 92fa526d5ca2e31f5908f17bb95c529b09ac9995 | /fun_models/game_2/gif2frame.py | 9270f8d5aded0cf8b274c0041422a5da62ac243d | [] | no_license | KevinLongkk/IFit | 55e1f7f872dbdd28e23066c9b96465315061ca2a | 438fbdbd63d7cf4059038623e2739fc0a860c26b | refs/heads/master | 2020-03-21T02:08:49.538064 | 2018-06-20T04:53:56 | 2018-06-20T04:53:56 | 137,982,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from PIL import Image, ImageSequence
import cv2
import numpy as np
pit_path = r'/home/kevin/IFit/fun_models/game_2/picture/p2motion_1.gif'
ii = Image.open(pit_path)
ite = ImageSequence.Iterator(ii)
index = 0
for i in ite:
i.save("/home/kevin/IFit/fun_models/game_2/picture/p2motion_1/frame%d.png" % index)
ind... | [
"1247594945@qq.com"
] | 1247594945@qq.com |
513b4655b7e6f455c974cd3837e7f4a99a34df90 | d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f | /modules/DEFA/plugin_text.py | e479b7a07afd519822d75554439bc5126dafbe03 | [
"Apache-2.0"
] | permissive | dfrc-korea/carpe | e88b4e3bcb536355e2a64d00e807bccd631f8c93 | f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac | refs/heads/master | 2023-04-28T01:12:49.138443 | 2023-04-18T07:37:39 | 2023-04-18T07:37:39 | 169,518,336 | 75 | 38 | Apache-2.0 | 2023-02-08T00:42:41 | 2019-02-07T04:21:23 | Python | UTF-8 | Python | false | false | 1,172 | py | # -*- coding: utf-8 -*-
import os
import datetime
from modules import defa_connector
from modules.DEFA import interface
from modules.DEFA.MappingDocuments import MappingDocuments
from modules import logger
class TextPlugin(interface.DEFAPlugin):
NAME = "TEXT"
DESCRIPTION = "text(txt/log) plugin"
def Proc... | [
"rlawnsgh92@naver.com"
] | rlawnsgh92@naver.com |
1e538e961da6d1f2cac2ea265c1da47f058b9c51 | 165d117a5c969c76f193adc477e53e7290ca7cdb | /ch_10/alice.py | 58eaaba0bef9184e450bd7dc010b57059e48beeb | [] | no_license | shubhammuramkar/pythonwork | b8beaf203bcb98718f0afcfa489bc3b96d5da406 | b43845a8fceec1bc05d257922b2c952e2e3b9462 | refs/heads/master | 2021-01-20T21:44:45.366588 | 2017-08-29T16:54:26 | 2017-08-29T16:54:26 | 101,785,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | file = "alice.txt"
try:
with open(file) as f:
data = f.read()
except FileNotFoundError:
msg = "Sorry, the file " + file + " does not exist."
print(msg)
else:
data.split()
l = len(data)
print(file + " file have " + str(l) + " words ") | [
"shubhammuramkar96@gmail.com"
] | shubhammuramkar96@gmail.com |
642d8566dd86655cd61f51f62c96be0d14eb0791 | 823ce1bb953187f59a2569ae8f5fdac0372e109f | /app1/admin.py | a9b718982e3943cb17b2e908f2da96d9cccab105 | [] | no_license | Devdeepsinh0591/Enhanced-Product-Management-System | 7c4984c47b03b90fa49490748e6e5315f7bf4340 | 460fe1498d8eaf558aaa566de688bac58154380f | refs/heads/main | 2023-07-07T16:24:20.043115 | 2021-08-18T10:22:34 | 2021-08-18T10:22:34 | 394,928,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from django.contrib import admin
from .models import Company_Details, Customer_Order,Company_Customers,Company_Product
# Register your models here.
admin.site.register(Company_Details)
admin.site.register(Company_Customers)
admin.site.register(Company_Product)
admin.site.register(Customer_Order)
| [
"noreply@github.com"
] | noreply@github.com |
8598a1df14804656d5d40abba2e7cc1ff46f7e9b | 8063bf621b0f7e54b9c31bbb4c0b27557c08978b | /src/model/_Model.py | b6bb34a2454ddc3c83de1119f32699907d921ba6 | [
"MIT"
] | permissive | hukuda222/Chat-Yojo-Bot | 8c703a8bfccc3d55a4df87a83a3bd77161d13ee6 | b431506ae85335f1b6fe7fe35074594dcd8fa6ca | refs/heads/master | 2020-03-26T21:26:37.745204 | 2019-01-21T08:21:39 | 2019-01-21T08:21:39 | 145,388,579 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,499 | py | import os
import sys
import copy
import time
import math
import random
import numpy as np
import functools as ft
import chainer
from chainer import cuda
from chainer import optimizers, serializers
from chainer import Chain
import chainer.functions as F
import chainer.links as L
yaju = 810
# ++++++++++++++++++++++++... | [
"zionbanzai3@gmail.com"
] | zionbanzai3@gmail.com |
a17ee63004936c7173f0f09cc22d22f71b8bff3a | dc612714dbde7fc1d6060599035333d9cd182a53 | /databasemysql.py | 3ed29735f48a511986b6604cbd96eee6d6d975b6 | [] | no_license | ratsi-boy/blood-donation | b88e4d6b07a1540396f9ee887d2cc4a263574473 | b5d2d8a96bfac48f43e79f9c99de7994f639bc89 | refs/heads/main | 2023-03-31T12:14:30.988621 | 2021-03-29T07:48:18 | 2021-03-29T07:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,790 | py | from tkinter import *
from tkinter import messagebox
from tkinter import ttk
from tkinter import colorchooser
import mysql.connector
import datetime
from PIL import ImageTk, Image
root= Tk()
root.title("Blood Bank System")
root.geometry("1024x686+-8+-8")
root.configure(background='white')
root.bind("<Return>")
my_men... | [
"ratsikumar66@gmail.com"
] | ratsikumar66@gmail.com |
f1e94113114ac69c0633da7f51734a3613a42aa1 | 45ec599e17e8b848f694f9d091b2fdd05efdb4e9 | /2.1-databases/work_with_database/phones/models.py | e904ab93191dc8bba335b39769ac54fa7f034252 | [] | no_license | TVP-18/hw_Django | 042ffc45a45c248fcdc7c7a4c65c1dd64e515649 | 4b4eade4fe7feb364adad63bf32e8fc634264dd0 | refs/heads/master | 2023-08-25T13:47:13.037055 | 2021-10-10T08:37:44 | 2021-10-10T08:37:44 | 392,289,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.db import models
class Phone(models.Model):
name = models.CharField(max_length=255)
price = models.DecimalField(max_digits=10, decimal_places=2)
image = models.TextField()
release_date = models.DateField()
lte_exists = models.BooleanField()
slug = models.SlugField()
def __str_... | [
"tatiana_mail@bk.ru"
] | tatiana_mail@bk.ru |
672e718a1caa49c808935d85d027e983ba5e9a4c | 044da5aa2acc9e92888dd40b06a8d2f50cccfca0 | /blog/migrations/0003_post_tags.py | ea622c3bdd266741783036ae4a4bf24209a76490 | [] | no_license | KunalKP4042/KPs-Resto-Bar | b189f591eb42827a9813a14e40b569312281bac8 | 8ccc73d1425965fe65a31c4345538de00715becb | refs/heads/master | 2023-04-09T13:56:25.573775 | 2021-04-18T07:16:27 | 2021-04-18T07:16:27 | 337,150,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Generated by Django 3.1.3 on 2021-01-11 15:23
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0003_taggeditem_add_unique_index'),
('blog', '0002_auto_20210111_1959'),
]
operations = [
migrations.AddFie... | [
"kunalpardeshi4042@gmail.com"
] | kunalpardeshi4042@gmail.com |
e5f14a4bfe366c2341e18edf43b7120c578dd466 | 487f4987f7ade541c673f2c6571545c09d345a84 | /main.py | 001a420a8bdf948d8a8694bc729f149c64fd3bf9 | [] | no_license | tolulope-od/Diagonal-FileTraverse-Python3 | 9afb7e13b179b98fa4bcf32d859e36c8a79d7932 | 42c431578e37ed05f7fd7ff98eaad14fa297d5b6 | refs/heads/master | 2020-04-02T00:24:13.297318 | 2018-10-19T15:22:33 | 2018-10-19T15:22:33 | 153,802,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | #import the xlrd module for working with xlsx extension files
import xlrd
traverseresult = list() #create an empty list to hold results of the data gotten from the file
#create a class that can make instances of xlsx file objects
class ReadXlsx(object):
#Create a method to open the file and traverse it
def traversefi... | [
"tolulope.od@gmail.com"
] | tolulope.od@gmail.com |
e0eade989224a93aace44ec5a8e10d22abaee72e | 646d4d2e4457f30c602610e36afc81b461ff31ca | /taskproject/auth_backends.py | c340c90a32346f53da0f5b4afc6e85813e429e75 | [] | no_license | rupeshdeoria/customuser | f25d7c4e14f0c0a521020d2770e1d0e6b53c7daa | 24e7cd6c70d94ad9b338284998a0a7e4b1674282 | refs/heads/master | 2021-03-12T20:09:28.652690 | 2014-10-21T07:19:41 | 2014-10-21T07:19:41 | 25,507,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | # import the User object
from django.contrib.auth.models import User
# Name my backend 'MyCustomBackend'
class MyCustomBackend:
# Create an authentication method
# This is called by the standard Django login procedure
def authenticate(self, username=None, password=None):
try:
# Try to fi... | [
"rupeshdeoria@gmail.com"
] | rupeshdeoria@gmail.com |
1ff6304e4f44581cb3db2507410b0bcf616e211c | 896c304b4b44945b7c00753dc929c404ba220e05 | /ChatServer.py | 2e41e9a5b1bac62f9d8c660c9c6490ebb537e3a9 | [] | no_license | essigs13/Chat-room-Server-and-Client | 97d22ac2c88bc8e4af850e897409a73729a884fc | b7b326a3b7643178b5621fbbb7042477eb3e70c5 | refs/heads/master | 2020-04-17T01:21:43.536168 | 2019-01-16T18:28:26 | 2019-01-16T18:28:26 | 166,088,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #assn1 server program written by Steven Essig
import socket
# Create a TCP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the port
server_address = ('localhost', 12222)
sock.bind(server_address)
print("listening on: %s and port: %s" % server_address)
#Listen for inc... | [
"noreply@github.com"
] | noreply@github.com |
4f4c63844906ccc546fe71211dcb411fb127f080 | 0e37e0f2427b05cc1f583327c9e9b31a1dd4ebf8 | /melon-production/shipping_procedure.py | fb24a9463c32add8965f0fb953f8c8963799e75a | [] | no_license | EmmaOnThursday/hackbright-homework | c271c5c2e4bec53eef85d17a105cec7cc940a01b | e9831afd297a1256648622b62c21f9ddad73ca64 | refs/heads/master | 2016-08-12T23:46:57.955461 | 2016-02-02T04:59:14 | 2016-02-02T04:59:14 | 50,083,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,846 | py | """Shipping procedures for Ubermelon."""
import robots
import sys
MELON_LIMIT = 200
class Melon(object):
"""Melon."""
def __init__(self, melon_type):
"""Initialize melon.
melon_type: type of melon being built.
"""
self.melon_type = melon_type
self.weight = 0.0
... | [
"emmamferguson@gmail.com"
] | emmamferguson@gmail.com |
6d28be97f2afbd88a2e1dc0864ef9d921ab270b3 | f70b87f3f5e690c149a5034528f2e1dd10b5096e | /python/strings.py | af964df1b00c4d254d10d6c25e34ba38236044eb | [] | no_license | kriti-ixix/ml-230 | 02ebfb0a85a73f52683e59bf513e25e949b163da | d7dac60034677b82de51c9197c4f9d38938322b6 | refs/heads/main | 2023-07-09T07:09:19.134665 | 2021-08-18T07:05:11 | 2021-08-18T07:05:11 | 386,823,869 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | myString = "Hello world!"
myString2 = "How are you?"
#String Indexing
print(myString[2])
print(myString[7])
print(myString[-1]) #Negative Indexing
#String slicing
#string[start=0 : stop=len(exclusive) : step=1]
print(myString[2:8])
print(myString[2:8:2])
print(myString[::-1]) #Reverse a string
#Length of a string
pr... | [
"60443387+kriti-ixix@users.noreply.github.com"
] | 60443387+kriti-ixix@users.noreply.github.com |
1de6e990459f2886842476ffbf3f9018c7bb01db | 72c732f0e7e8bae3a14700368b3a4ec54f8958b7 | /scripts/parse_wiki.py | 7b645f7e3d8e5b64bee3410e8fd95e37a0744e0f | [] | no_license | colinsongf/medical_lexical_simplification | 7b0db42993fe985e4beca3b8817f5118475abac7 | 4bfe189265bc64c095a8ec0889cf8f3137194dbf | refs/heads/master | 2020-08-29T06:04:03.295970 | 2019-10-09T10:10:26 | 2019-10-09T10:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 17 12:29:09 2018
@author: Samuele Garda
"""
import argparse
import logging
import multiprocessing
import bz2
import functools
from collections import defaultdict
import smart_open
from gensim.corpora import wikicorpus
from gensim.utils import to_un... | [
"sgarda@posteo.net"
] | sgarda@posteo.net |
34ae655ceb66bb79bd0c2a65c932b65b98108990 | ce680c45968e7f7c6c6906b24fab90487d860f69 | /ml_gym/environments/attention_allocation_test.py | d70b9658cd652ff238503121a4deaedfb2a0555b | [
"Apache-2.0"
] | permissive | olliethomas/ml-fairness-gym | 884420d058301be342ae68b72a2dcf2d2651525b | adaa878596d3ce7dc0ee821f53f99cdf0cd2ef5f | refs/heads/master | 2021-03-30T05:40:39.356381 | 2020-03-17T16:48:35 | 2020-03-17T16:48:35 | 248,021,897 | 0 | 0 | Apache-2.0 | 2020-03-17T16:41:11 | 2020-03-17T16:41:10 | null | UTF-8 | Python | false | false | 5,508 | py | # coding=utf-8
# Copyright 2020 The ML Fairness Gym Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"1835492+olliethomas@users.noreply.github.com"
] | 1835492+olliethomas@users.noreply.github.com |
0e8a3cb11dc43c1866ed7af41b88fab6d7a8deaf | 81c280d8a6187615b9a80b7c8870523d531d5edb | /policy_eval_recurrenct.py | a564d15a49bdc4dc098ba4c801e80bc77cc37ccb | [] | no_license | haoranyuan/MasterThesis | 02ab80ca775051822bee175272bcbcf5a402d619 | f12501b6cf4ecde7d04e738697d04dde3cbc4e7f | refs/heads/master | 2022-12-19T12:11:14.844840 | 2020-09-10T07:44:59 | 2020-09-10T07:44:59 | 294,337,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | from matplotlib import pyplot as plt
import numpy as np
from rl_policy_dir import RL_Multi
from rewardconstruct import FeatureExpectation
from demo_discrete import Discretize
import os
def policy_eval(DIR, iter, PLOT=False, force_evaluate=False):
# import mixed policies
dis = Discretize(data=None)
fe = Fea... | [
"haoranyuan1995tudelft@gmail.com"
] | haoranyuan1995tudelft@gmail.com |
80ba13b0f9ecdfd7d0b9ad1d2b306231339bd5f4 | 05a9ebf253d821cf8a5d408b20fbbb73797edb9e | /python/tvm/driver/tvmc/composite_target.py | ba7862378557c905811c6293c23e9c5bc6a8fd0d | [
"Apache-2.0",
"Zlib",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | axistek/tvm | af881afcd336cdc370ea19c000c0443f2df55b09 | c559855c2738f98cb5d925fb9924acbe50e91278 | refs/heads/main | 2023-08-21T03:33:22.671864 | 2021-10-27T01:02:30 | 2021-10-27T01:02:30 | 344,383,241 | 0 | 2 | Apache-2.0 | 2021-03-04T07:12:26 | 2021-03-04T07:12:26 | null | UTF-8 | Python | false | false | 3,088 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
e89af17f04f427784e2cae3449287fb1f36f07e6 | fea1810e5e08687bd631d7d824429a32a748b606 | /moving_rectangles.py | f2d1c10edd2165d8654540316b107f921d412e38 | [] | no_license | digipodium/sophomore_python_1230_oct_21 | a72938a3e7db09e8f0d7a29bcfdac7c27875e258 | e723cbac406114f6b88675491245a540a21a57ac | refs/heads/main | 2023-08-28T03:07:37.939849 | 2021-10-25T08:30:59 | 2021-10-25T08:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Write your code here :-)
WIDTH = 500
HEIGHT = 500
box = Rect((20,20), (60,60))
box2 = Rect((400,350),(60,60))
def draw():
screen.clear()
screen.draw.rect(box,'yellow')
screen.draw.filled_rect(box2,'orange')
def update():
box.x = box.x + 10
if box.x > WIDTH:
box.x = 0
box2.x +=2
... | [
"xaidmetamorphos@gmail.com"
] | xaidmetamorphos@gmail.com |
81c456913d2484e9f7bda48bacf4d1eb2c6b9a04 | e9bbf3133c91c3323cb4750bcaaad288ac830f24 | /reports/report.py | 57e752cf4b15b8897cbd6fa263fcbe56afbe25b5 | [] | no_license | ricardocr18/igo_vereador | ff89942fbb874f5ec8f6ccf8c46c9449e013218d | 95bb0c17ff0ed4e0b7878a772e0354dda31dcf8a | refs/heads/main | 2023-07-12T04:20:37.371384 | 2021-08-17T06:11:35 | 2021-08-17T06:11:35 | 383,234,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api,tools,exceptions, _, SUPERUSER_ID
class RelatorioSolicitacao(models.TransientModel):
_name = 'report_solicitacao'
#Campos para o usuario selecionar
status = fields.Selection([('andamento', 'Em andamento'),
('pendent... | [
"ricardocribeiro@hotmail.com"
] | ricardocribeiro@hotmail.com |
a3a925b906dc6944d5f8c7f307fb6c90fddcbefa | e33eb3bd25f4e7f0612a32cbee94b3f0c61e1c76 | /tests/mealpy_test.py | 6938fc4d75cc4079cbb432ed0ad047aeb460a6fc | [
"MIT"
] | permissive | pmbranco/mealpy | 107e8178b05d21fe16ec66f939422ac160af620d | 5d2eef36d1003b85d048ebab7c16d9987332571e | refs/heads/master | 2022-01-19T01:05:45.382003 | 2019-05-14T02:02:49 | 2019-05-14T02:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,328 | py | from collections import namedtuple
from unittest import mock
import pytest
import requests
import responses
from mealpy import mealpy
City = namedtuple('City', 'name objectId')
@pytest.fixture(autouse=True)
def mock_responses():
with responses.RequestsMock() as _responses:
yield _responses
class Test... | [
"ipwnponies@gmail.com"
] | ipwnponies@gmail.com |
066dff68cd6fc3bdfb737f2e654f0e3701cfb805 | 9b568abb1d2ecb56b8f5f68c6291fb3dac46a53e | /squares.py | df70233e73e96c32742c08395b5ee043364afa1d | [] | no_license | lnc31/PythonX | e15da81f8bb0c7fd809a7ab51ec652909be0c5d4 | a327748d24272dce80de5de00e5d7ef8421ab0a6 | refs/heads/master | 2023-04-15T04:34:39.234851 | 2021-04-24T18:33:34 | 2021-04-24T18:33:34 | 361,239,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from Functions import square
for i in range(10):
print(f"The square of {i} is {square(i)}") | [
"Lanc-cesS@outlook.it"
] | Lanc-cesS@outlook.it |
8ac8bab9bee70c5b61b4c9bf716b822881de78e0 | 19595705c8dfe4d21d672ba344a4bbfd2dd9b56d | /fantasyStocks/fantasyStocks/settings.py | 2ecd914356bad70f80806593acc3d986f7d38055 | [
"Apache-2.0"
] | permissive | Newzald/FantasyStocks | f80ea70bc4b04ee5bf695d67a7681bf5393238f4 | 65671bec2d65da0bade27d19e4bbd29da3bbddb9 | refs/heads/master | 2021-01-15T09:02:56.183594 | 2016-06-20T01:17:02 | 2016-06-20T01:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | """
Django settings for fantasyStocks project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build... | [
"ddsnowboard@gmail.com"
] | ddsnowboard@gmail.com |
52e7d93a3be694d33c6f756375b712af5059afe2 | 91053fd1765a1ea747f7b01537badf21c574c577 | /src/baseline/features.py | f58db342f3c834907283a1449087eba3927d5ca6 | [] | no_license | yaya-sy/mwe-extraction | 2812b0531ef21ccfa8f54db0be9472bf508b173d | 30a259a9a6cefd22db6fb46b9a76115d949a5631 | refs/heads/main | 2023-06-07T00:04:35.907068 | 2021-06-24T20:47:13 | 2021-06-24T20:47:13 | 372,106,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | """Ce module module contient des fonction d'extraction de caractéristiques pour la baseline
"""
from itertools import chain
def features(phrase, tags, span_w, span_s, position) :
"""
Fonction qui extrait les features en créant un dictionnaire : pour chaque mot (par exemeple 'désinfection'), on regarde
-... | [
"yayasysco@gmail.com"
] | yayasysco@gmail.com |
f5819bc1758f11c02fccbff2b04871087efe5580 | e70ae13dfd1db072941b24b51a452de9b42e838e | /xorKeras/test.py | b67efdb96f0b149222ce0c19bd05941008201d9f | [] | no_license | mohanmanju/tensorFlow | 136670c28e1afe95e35767f171e24c5172bcfbd9 | 38db20420a2ff40875ff532cdbc9c5a7c77a6e06 | refs/heads/master | 2021-01-02T08:35:41.483827 | 2018-07-30T18:26:59 | 2018-07-30T18:26:59 | 99,025,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from keras.models import Sequential
from keras.layers import Dense
from keras.models import model_from_json
import numpy as np
import os
json_file = open('model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)
loaded_model.load_weights("model.h5")
l... | [
"31mohan31@gmail.com"
] | 31mohan31@gmail.com |
d5f9b10607579fcf1a3df619faa2d5218ff61628 | ee4c4c2cc6c663d4233d8145b01ae9eb4fdeb6c0 | /tools/r3det_kl/train.py | 68a4bf224bda39eb73ffa6aa70f6eb0d96e4a9d9 | [
"Apache-2.0"
] | permissive | yangcyz/RotationDetection | c86f40f0be1142c30671d4fed91446aa01ee31c1 | 82706f4c4297c39a6824b9b53a55226998fcd2b2 | refs/heads/main | 2023-09-01T23:25:31.956004 | 2021-11-23T13:57:31 | 2021-11-23T13:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,816 | py | # -*- coding:utf-8 -*-
# Author: Xue Yang <yangxue-2019-sjtu@sjtu.edu.cn>, <yangxue0827@126.com>
# License: Apache-2.0 license
# Copyright (c) SJTU. ALL Rights Reserved.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import numpy as n... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
f54baea6e40dbc71d63547b07f97abfce23a5921 | 5a61cd84b3ef2d154258b72c6594c61779d02e24 | /robeep/core/exceptions.py | cd696fba766a82c6fb691d7141f4839f76ae1e4e | [
"MIT"
] | permissive | k-nii0211/rbp_agent | c925a6c6815e9dbee349858c7145f3ea0cba916a | 53724797ee7b579fc98d63809b9551867929476e | refs/heads/master | 2021-01-10T09:32:54.873043 | 2016-04-01T09:09:15 | 2016-04-01T09:09:15 | 55,218,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | class ConfigurationError(Exception):
pass
class DiscardDataException(Exception):
pass
| [
"cm10030@gmail.com"
] | cm10030@gmail.com |
14334a24ea2719d723061d0662ccc472d18deae4 | df350a0d14afdc30b38194104f5e3e3d927ec95f | /origin/main_03_visualize_and_generate_video.py | 022ee365c6aecc2439d5c8742e34c6802f4a4b2d | [] | no_license | sugartom/fromXiaochen | 80945e97fe36aaba399ad6d87124933572212999 | 16aa4052406b1ead135cfbb42b26981798ee57a0 | refs/heads/master | 2020-03-19T22:54:56.356696 | 2018-08-20T05:28:49 | 2018-08-20T05:28:49 | 136,986,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,936 | py | import numpy as np
import os
import json
import cv2
import argparse
from time import time
VIDEO_OUT_FOLDER = './output_videos/'
TUBE_COLORS = np.random.rand(300,3) * 255
TUBE_COLORS = TUBE_COLORS.astype(int)
with open('label_conversion.json') as fp:
LABEL_CONV = json.load(fp)
# "training2real": {"0": [15, "... | [
"sugartom.hu@gmail.com"
] | sugartom.hu@gmail.com |
f4f44e30aaa47a84790961c15312ca28b5d5b394 | 8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac | /PySide/QtGui/QStringListModel.py | 73f8b4abdbcfac2c25221147365010e9ac073514 | [
"Apache-2.0"
] | permissive | sonictk/python-skeletons | be09526bf490856bb644fed6bf4e801194089f0d | 49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d | refs/heads/master | 2020-04-06T04:38:01.918589 | 2016-06-09T20:37:43 | 2016-06-09T20:37:43 | 56,334,503 | 0 | 0 | null | 2016-04-15T16:30:42 | 2016-04-15T16:30:42 | null | UTF-8 | Python | false | false | 1,377 | py | # encoding: utf-8
# module PySide.QtGui
# from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtGui.so
# by generator 1.138
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
class QStringListModel(__PySide_QtCore.QAbstract... | [
"yliangsiew@blizzard.com"
] | yliangsiew@blizzard.com |
f6f7f79e264f3dc7c08372cc1a93769028e1ca8a | ea515ab67b832dad3a9b69bef723bd9d918395e7 | /03_Implementacao/DataBase/true_or_false_question_frequent_nums_rotate_and_roman_nums/question/version_2/program2.py | 782a9221cbec6629fd468a1175446f7f77203c96 | [] | no_license | projeto-exercicios/Exercicios-Python-de-correccao-automatica | b52be3211e75d97cb55b6cdccdaa1d9f9d84f65b | a7c80ea2bec33296a3c2fbe4901ca509df4b1be6 | refs/heads/master | 2022-12-13T15:53:59.283232 | 2020-09-20T21:25:57 | 2020-09-20T21:25:57 | 295,470,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from random import randint
from random import seed
seed(1486166)
def int_to_roman(num):
def most_frequent(List):
def least_frequent(List):
def rotate_list(nums, h):
e = []
for j in range(19222):
e.append(randint(30, 570))
| [
"ruski@milo.com"
] | ruski@milo.com |
ea4d718083ea5fed390d5f996879d6489332aded | 6a965a7e9a3691c77c1e0e9980de8d17baa8e3d2 | /todo/migrations/0001_initial.py | 91e40c017b8a92b86699fe3f68a207eb3ba91dff | [] | no_license | laurence100795/Django-First-Look | 10fd40b2491b09a72e07ccc8a20dcd63f01458f0 | 80c1293e3dc1ce87438bcc894ef3d611c2aa177f | refs/heads/master | 2023-08-04T01:40:23.179937 | 2020-06-20T16:47:01 | 2020-06-20T16:47:01 | 270,749,532 | 0 | 0 | null | 2021-09-22T19:11:29 | 2020-06-08T16:53:53 | HTML | UTF-8 | Python | false | false | 545 | py | # Generated by Django 3.0.7 on 2020-06-09 17:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(aut... | [
"laurence100795@gmail.com"
] | laurence100795@gmail.com |
97cf1fadf12602012e1aa3ec11e2b6f0aeff22ae | 72dc7d124cdac8f2dcab3f72e95e9a646154a6a0 | /scripts/create_database_tables.py | a1e12ba385835734338ff86ff143500afb84177c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | m-ober/byceps | e6569802ee76e8d81b892f1f547881010359e416 | 4d0d43446f3f86a7888ed55395bc2aba58eb52d5 | refs/heads/master | 2020-11-30T23:31:33.944870 | 2020-02-12T23:53:55 | 2020-02-12T23:56:04 | 40,315,983 | 0 | 0 | null | 2015-08-06T16:41:36 | 2015-08-06T16:41:36 | null | UTF-8 | Python | false | false | 679 | py | #!/usr/bin/env python
"""Create the initial database structure.
Existing tables will be ignored, and those not existing will be created.
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import click
from byceps.database import db
from byceps.util.system import get_con... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
ce69df129364894f433ebc76cdfc03d2a08f13a5 | 7029dcf95ef133431e376a121b720b810d2b7e39 | /backend/mobile_app_dev_1693/settings.py | ab679299c67e25c38465c3a376854417ed2e3e39 | [] | no_license | crowdbotics-apps/mobile-app-dev-1693 | 880a3a9fe3466578573743b208237a25b0ae79e5 | 0a84178ba92f857525857dcebcecc79d9c126695 | refs/heads/master | 2022-04-04T20:30:14.633621 | 2020-02-21T07:36:37 | 2020-02-21T07:36:37 | 241,854,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,741 | py | """
Django settings for mobile_app_dev_1693 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fc574674773d487563c29aaf36bef49acd284013 | 65b2c16b3e04cf9f0c5f341718a5c8ab9e74c268 | /blog_cookiecutter/blog-cookiecutter/docs/conf.py | 8cf6fe0a60ceb83d32f85ebf2924cffd1deddef7 | [
"MIT",
"BSD-3-Clause"
] | permissive | Jaleleddine/blog-projects | bbe5407daa6cf4c9796781db5a0936c78d406a59 | 5f71ec9d5558f354856373adac12406ee345bb1c | refs/heads/master | 2022-12-14T20:13:09.323100 | 2020-06-08T06:28:06 | 2020-06-08T06:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,914 | py | # -*- coding: utf-8 -*-
#
# blog_cookiecutter documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration val... | [
"krzysztof.zuraw@gmail.com"
] | krzysztof.zuraw@gmail.com |
87be869d242f2572f7ccf70c6c233552612f5b9b | 957387796af9ea12af26bc17dc2c0ce75bebffd0 | /dj_medical_reminder/asgi.py | a8f5bce4f5a853ba847d078b8c7b96ad0e08737f | [] | no_license | iamgaddiel/typmeAPI | e152871b3b72f268518f5c5aee109943dc5eb637 | bff3aa10c505dca7b1265c2a693dcb6334aa9993 | refs/heads/main | 2023-02-19T17:28:57.730511 | 2021-01-22T00:30:49 | 2021-01-22T00:30:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
ASGI config for dj_medical_reminder 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('... | [
"ighotagaddiel98@gmail.com"
] | ighotagaddiel98@gmail.com |
fb9ddbb0e53ee6a524821b91c6f3d4bad3b8bb85 | 5da3c9ff915dd4ee53d0db57babbe2bcd832bfd0 | /pago/models.py | 8e7e096a783467da3d86516cecf25c400d84f6f3 | [] | no_license | LopsanAMO/ejemplo-django-conekta | 3f90def1f4116483a023b1b0a8d2996abc3959d1 | 9f4e92066e47fb95855b2c2f53a90ca9988b6d78 | refs/heads/master | 2021-01-11T06:06:52.802869 | 2016-10-23T08:06:44 | 2016-10-23T08:06:44 | 71,689,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py |
from __future__ import unicode_literals
from django.db import models
from django.conf import settings
import conekta
import json
class Sale(models.Model):
def __init__(self, *args, **kwargs):
super(Sale, self).__init__(*args, **kwargs)
conekta.api_key = settings.CONEKTA_PRIVATE_KEY
def char... | [
"makiki789@gmail.com"
] | makiki789@gmail.com |
f981c59ed5948e48e7b95680c69b2d4ed02de4c9 | 78ae6050590464bcfe37eed2dcfcc62c46f40c45 | /TF4_Overfitting.py | ffa1653f2dcec2452fa87b4cf3bdb9574b858b56 | [] | no_license | JesusUrtasun/MachineLearningRep | 3c7c6c38f3fca172763006f175aa6a341e0f6a56 | 83a603df2845fce5883b087623b107f1d447f978 | refs/heads/master | 2020-04-20T01:53:40.513058 | 2019-03-21T12:01:00 | 2019-03-21T12:01:00 | 168,557,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,556 | py | # TensorFlow Chapter 4. Overfitting and underfitting
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
# Check the version of TensorFlow
print("TensorFlow version: {}".format(tf.__version__))
print("TensorFlow Chapter 4: Overfitting and underfitting")
# As seen in... | [
"Jesus.Urtasun@mi.infn.it"
] | Jesus.Urtasun@mi.infn.it |
4254377a5d2940c8d357014eda1cb62590da6ef7 | 4f946107165c8be6380f7399fc1170f64d4e1a61 | /Projectionable/urls.py | 82ad876fddbb3728b3bde18112bb8840ed90544f | [] | no_license | vail130/projectionable | 744a74afbe16354f937c5a2f6f0f4916a581299a | a7c749f616e57895847d6583e9e522c5452152b7 | refs/heads/master | 2021-01-20T04:33:26.459509 | 2013-11-02T18:04:32 | 2013-11-02T18:04:32 | 14,071,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | from django.conf.urls import patterns, url
from django.conf import settings
from app.views import *
from project_api.views import *
from account_api.views import *
urlpatterns = patterns('',
url(r'^$', App.as_view(), name='app'),
url(r'^home/?$', Home.as_view(), name='home'),
url(r'^signup/?$', Signup.as_v... | [
"vail130@gmail.com"
] | vail130@gmail.com |
d6628e565916deb25682028f7bc00649b17deace | c06efd90533c51c2b29b7e92cd13723388de25ee | /actions/patchCoreV1NamespacedPod.py | e554a7d6a49f7318cebf1d3759cd8ba3c64fc0e8 | [] | no_license | ajohnstone/stackstorm-kubernetes | 490e4a73daad3713d7c5b5b639d5f30ff1ab3e58 | 99ffad27f5947583a2ab1b56e80c06003d014c47 | refs/heads/master | 2021-01-11T23:29:49.642435 | 2016-12-07T13:20:34 | 2016-12-07T13:20:34 | 78,588,572 | 0 | 0 | null | 2017-01-11T00:48:59 | 2017-01-11T00:48:59 | null | UTF-8 | Python | false | false | 892 | py | from lib import k8s
from st2actions.runners.pythonrunner import Action
class patchCoreV1NamespacedPod(Action):
def run(self,body,name,namespace,config_override=None,pretty=None):
myk8s = k8s.K8sClient(self.config)
args = {}
if body is not None:
args['body'] = body
else... | [
"andy@impulsed.net"
] | andy@impulsed.net |
caaefd1f715b30c6abb83cedb29f149cf97de3d9 | 58263e881e677a76ace8d4c0587d34db893dba97 | /ExtractionManager.py | 5aacc9a60ffaefa904adb45d77dc4d3eb1a47bab | [
"MIT"
] | permissive | AndresRestrepoRodriguez/NLPTweets | 9874d6a5e29de6077e1c66ce0710f220d2941acc | a3222c543cf73905639d104c9a975b464f93923b | refs/heads/main | 2023-01-24T06:22:25.857865 | 2020-12-10T12:31:20 | 2020-12-10T12:31:20 | 315,610,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | from datetime import datetime, timedelta
import json
from APIConnection import APIConnection
from Extraction import Extraction
class ExtractionManager:
def __init__(self):
self._dates = list()
self._credentials = dict()
self._dataExtracted = list()
def setCredentials(self, pathfile):
... | [
"aorestrepor@correo.udistrital.edu.co"
] | aorestrepor@correo.udistrital.edu.co |
b4b9d6422487b26d0713f3b750b3210f9a67418c | 6d11d48fb6d6ce45d2f9866f05310ae873a727dc | /code/deeplab/datasets/data_generator.py | a5802794f4f5bd487117cb6823901cf0d85ba4ca | [
"MIT"
] | permissive | BasemElbarashy/image-compression-and-semantic-segmentation | 634b107154377d4ac1a41fba5777d21d6f8ad075 | 760d7f779e97659f3f8f59f68eaa4268ec08618b | refs/heads/master | 2020-12-19T02:05:02.249473 | 2020-01-22T15:08:14 | 2020-01-22T15:08:14 | 235,588,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,276 | py | # Copyright 2018 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"mllover1992@gmail.com"
] | mllover1992@gmail.com |
5e66ca3f880c62a693021918fb5172b2376c63ff | 8cdaf9c49ae75bcc24d0c01860bb12bd5f7b5cfb | /svs_only_tsr.py | f72e37daaa03d88e4e3d42d5351f668332f41b37 | [] | no_license | TheSimpleRobotics/tsr_carla_scripts | e9cad8a3163956ce20313b198e1c96ad1b1ec118 | e7ec995d54eb2895a5574b542373098408abd229 | refs/heads/master | 2020-04-29T07:09:30.339650 | 2019-03-17T13:49:06 | 2019-03-17T13:49:06 | 175,941,876 | 0 | 0 | null | 2019-03-17T14:14:48 | 2019-03-16T07:43:48 | Python | UTF-8 | Python | false | false | 18,061 | py | #!/usr/bin/env python
# Copyright (c) 2018 The simple robotics
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
# Allows controlling a vehicle with a keyboard. For a simpler and more
# documented example, please take a look at tutorial.py.
"""
Welco... | [
"d.d.tananaev@gmail.com"
] | d.d.tananaev@gmail.com |
e4e921e27952df4763b04936511b286bd092123e | 4bcd94d568aee06e638d6f451ec4a2136714d9e1 | /HW_1_1.py | 90c7106bc37ca101f236dba19efdc8f92bfb2321 | [] | no_license | kuchabska/python_cource | 82a582071361163446d9e63be9d54058416244eb | 72ef68b9c55af18f41467e3d07ef7926a9ecdab8 | refs/heads/master | 2020-07-11T07:23:26.573974 | 2019-08-26T13:10:29 | 2019-08-26T13:10:29 | 204,477,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a = float (input ( 'input a \n'))
b = float (input ( 'input b \n'))
print (a + b)
print (a - b)
print (a * b)
print (a / b) | [
"galunkakuchabska@gmail.com"
] | galunkakuchabska@gmail.com |
2540b0d2ce8d3f80b974b15498b4478fcfb42135 | 32535cc2c4a2ec52a0031d34e3125cbc7751a3e4 | /project_name/project_name/configuracion/base.py | 32fcfb9b1c327eaee4f110d735be7bbcaed109b9 | [] | no_license | lizceth/prueba2 | 0bd5024abfb0d8095f421bb49d2d354a2929f19e | 4c4c5d68ef3f715adbc18d1b9e7a7b0b55e8f148 | refs/heads/master | 2021-01-20T03:26:00.468046 | 2014-09-19T18:50:06 | 2014-09-19T18:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,096 | py | import os
from os.path import dirname, basename, normpath, abspath, join
from sys import path
#muestra la ruta del proyecto django
DJANGO_ROOT=dirname(dirname(abspath(__file__)))
#muestra la ruta del repositorio del proyecto
SITE_ROOT=dirname(DJANGO_ROOT)
#muestra el nombre del projecto dajngo
SITE_NAME=basename(DJA... | [
"shanny.liz13@gmail.com.com"
] | shanny.liz13@gmail.com.com |
da2d4be10dbde9b53d5252fb39575bc48970029f | 9225ad5fb5dd92af547f4c4e04874bc812620d04 | /0.Dev Training/1.Junior/22.绘制并定制化图表/moveax.py | 31e2697b37e24ebbcdd193de787acc00f050b56c | [] | no_license | skynimrod/dt_python | 6fb50d354d3e8cef995edc459ef45fe42b234c48 | bd822140634ae56d1f2331bde9877c871f62507a | refs/heads/master | 2021-05-16T06:55:32.840279 | 2017-09-15T04:11:10 | 2017-09-15T04:11:10 | 103,612,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace( -np.pi, np.pi, 500, endpoint = True )
y = np.sin(x)
plt.plot(x, y)
ax = plt.gca()
# hide two spines
ax.spines['right'].set_color('none')
ax.spines['top'].set_color('none')
# move bottom and left spine to 0,0
ax.spines['bottom'].set_position(('data... | [
"adamswang_2000@aliyun.com"
] | adamswang_2000@aliyun.com |
43f48b573d2b18f3d9446e41b86481c7d77fef58 | 4b5d0b71b6a1d5615f7678037bca48a45ce1dc22 | /basic_app/views.py | 5f7ea383f42bbd684805bcdf3caea2be99be67a5 | [] | no_license | Gigi1111/django-deployment-example | 71b91e79557d0a2579676582442e647f817fb9f3 | f1b125bb7546d47072a0150fbf2cdfc617b82229 | refs/heads/master | 2020-07-08T23:36:18.461744 | 2019-08-22T15:10:08 | 2019-08-22T15:10:08 | 203,812,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | from django.shortcuts import render
from basic_app.forms import UserForm, UserProfileInfoForm
# Create your views here.
# login
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
# before django 2.0 from django.core.urlresolvers import reverse
from dj... | [
"airolg1111@gmail.com"
] | airolg1111@gmail.com |
e89a4fa08e2efb9d31175514312fd1b1f0d96881 | b657f54555330af28ef9f22ee935bfed697a91f0 | /Exercicios Loop/exercicio 40 - secao 06.py | 68b3bded1e4b36e98db190cdf57dbd3d25668c08 | [
"MIT"
] | permissive | cristinamais/exercicios_python | cecadd29a5f610b30ee929b94b00a4491d90d116 | 8a09b0b68ffaa62d13afb952998e890a79667c7e | refs/heads/master | 2021-06-12T18:58:35.595609 | 2020-04-09T14:01:43 | 2020-04-09T14:01:43 | 254,380,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
40 - Elabore um programa que faça leitura de vários números inteiros, até que se digite um número
negativo. O programa tem que retornar o maior e o menor número lido.
"""
lista = []
numero = int(input(f'Digite o número: '))
while numero >= 0:
lista.append(numero)
numero = int(input(f'Digite o número: '))
p... | [
"cristinamais2@gmail.com"
] | cristinamais2@gmail.com |
e545daf7555bd993e6f754da1bdbdf23ba23b0d4 | b79c76bfba65afb209eff02293e8f73fbeced7fd | /3-11.py | 771fd8e5a9cf7bd6667be998059d625bc0001f11 | [] | no_license | MyeongJun88/homework | c4d910a2802f9675f78f773f8553efb47763438b | c9a13407f726700eea87c0bee3ca03752db9f20c | refs/heads/master | 2020-03-24T16:27:20.910258 | 2018-07-30T04:33:52 | 2018-07-30T04:33:52 | 142,825,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | def calculate_change(payment, cost):
| [
"mcloudk@naver.com"
] | mcloudk@naver.com |
069841c93b19d8461a30d4b06d90309bc17b5cf9 | a371e9122dacaf433d6fc1619955cf6173ec79fd | /app/my_settings/settings.py | 4b6967026dfd5dbc9bd6fbc7a73d6f017e5733dd | [] | no_license | Jason-Oleana/from-classification-to-web-application | 978768d1b38b44d23ae7b64ca570631232eac899 | a6568172c5f9ee5a754736b63e122ba182c13159 | refs/heads/main | 2023-04-16T08:09:16.170501 | 2021-04-29T15:47:47 | 2021-04-29T15:47:47 | 360,296,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,376 | py | """
Django settings for project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"jason@geniusvoice.nl"
] | jason@geniusvoice.nl |
2adbc4e7e758cf4da8dc63ae807a98e4c7ac40f2 | 6e517b4043d1ed39462621e592c5536b519fae2d | /algorithms/python/datastruct/nchoosek.py | 96af871e0b88a9dd6cee5c0b227b2141ef209baa | [] | no_license | ziXiong/leetcode | c4552d725358ccab33bfd5755add79e34b4c2be4 | 2bedcdb585661cbb5addf0ff8bc1a23343a120ce | refs/heads/master | 2022-04-30T11:13:42.126460 | 2022-04-10T11:27:04 | 2022-04-10T11:27:04 | 25,695,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
def nchoosek(nums, k):
if k == 0:
return [[]]
if k == len(nums):
return [nums]
return nchoosek(nums[:-1], k) + [[nums[-1]] + res for res in nchoosek(nums[:-1], k - 1)]
nums = [1, 2, 3, 4, 9] * 10
print(nchoosek(nums, 5))
| [
"harleyque@sohu-inc.com"
] | harleyque@sohu-inc.com |
a6f81a9adc3eb8a103dfdd5fb1363a4b70f26c5e | 586e6c48ac0a29c35882c73d53a8eab59847c53c | /sigteca/settings/active.py | b1f54383e2dafab2b9225c512ab9d746fd97cc0a | [] | no_license | rodolphopivetta/sigteca | cf831bdec997ac002b757cdd5e68dfa81e4a0c01 | 58390c22be5600d21c62639452839ec609c497fc | refs/heads/master | 2020-04-10T00:48:41.253951 | 2016-03-08T22:47:08 | 2016-03-08T22:47:08 | 40,916,167 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | # -*- coding: utf-8 -*-
from sigteca.settings.development import *
| [
"rodolpho.pivetta@gmail.com"
] | rodolpho.pivetta@gmail.com |
163c63c277b114424bc9dd73fa5d4a369238a9ab | aeea3a1183773a375190806f6022b78ef6bfebea | /blog/search_indexes.py | a065e105ee8c40566f2dbe43152ed1e1f2306144 | [] | no_license | hnlisf/myblog-0.6 | cb57ae3db779cad6a73cd8f6e9c14693f819554f | b5fae2a27ca9a3a2f81debae0a69ad6641cccd12 | refs/heads/master | 2021-08-30T10:55:26.663980 | 2017-12-17T15:28:10 | 2017-12-17T15:28:10 | 114,540,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #!/root/myenv1/bin python3.5
# -*- coding: utf-8 -*-
from haystack import indexes
from .models import Post
# 全文检索模块
class PostIndex(indexes.SearchIndex,indexes.Indexable):
text = indexes.CharField(document=True,use_template=True)
def get_model(self):
return Post
def index_queryset(self, using=No... | [
"370466434@qq.com"
] | 370466434@qq.com |
5d077083bf21613f0ecaf29e149ad0d24d8c2b4b | 443f2d8ef26de8bd17512c64a9c1a7565cdb3f21 | /app/libs/redprint.py | bd3d0c8d73893f3928f7d4706b524d48048f3a43 | [] | no_license | AaronTesting/ginger | fc4040cedb782543440cb527b9206d5122b0f66d | f63bb8c20b1f92c8f4d015d4e330a28ab4acd08a | refs/heads/master | 2021-05-20T00:31:13.420675 | 2020-04-01T16:26:33 | 2020-04-01T16:26:33 | 252,108,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # -*- coding: utf-8 -*-
__author__ = 'Aaron'
__date__ = '2020/4/1 0001 17:20'
class Redprint:
def __init__(self, name):
self.name = name
self.mound = []
def route(self, rule, **options):
def decorator(f):
self.mound.append((f, rule, options))
return f
... | [
"lirenlong_9990@163.com"
] | lirenlong_9990@163.com |
51dcaf59b1453a68599a83e6cda3997c59335edf | 3c157d4e652be07d867088387bfdd8b1b2b7560d | /example.py | 681b4fa6ac848842d49f21d1ba76a51aff95b5e6 | [
"MIT"
] | permissive | zotsing/WealthEngine-Python-SDK | 6b318ce085cc71a2d08f51d6ceb2534567c70c81 | f59801e0ac07030caca1f0aad5d21fe1937af22c | refs/heads/master | 2020-03-07T07:46:38.014486 | 2015-07-05T20:41:50 | 2015-07-05T20:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | from wealthengine_python_sdk import WealthEngineClient
#Instantiate the WealtheEngine SDK with API Key and Environment
WeAPI = WealthEngineClient('ddb26e11-9348-4ead-9e2a-5a3b80a01b52', 'prod')
#Look up a WealthEngine Profile by email address
post_fields = {
"email": "zackproser@gmail.com",
"first_name": "zack", ... | [
"zackproser@gmail.com"
] | zackproser@gmail.com |
c48abf9be04d7fb8c779c33c68b4c60769dc4e78 | 2dff30dc6d6fbadf499b61fa0eb4b0b98459f278 | /chapter9/src/dict_comp.py | 5a685cb507c34a6dd7cc1d6b187beabe453c7128 | [] | no_license | Vignesh77/python-learning | 7133549123df24dc6e75114c858f58d38d064ec4 | ed4034aba0d17db1299aa9dcbdcb6f2014240892 | refs/heads/master | 2021-01-19T14:18:41.238465 | 2018-03-20T13:51:02 | 2018-03-20T13:51:02 | 88,144,674 | 0 | 0 | null | 2017-05-26T05:30:11 | 2017-04-13T08:49:47 | Python | UTF-8 | Python | false | false | 317 | py | """
@file :dict_comp.py
@brief :Create the dictionary dict_sample = {1:1, 2:2} using
dictionary comprehension
@author :vignesh
"""
def print_dict():
"""
function for creating dictionary
comprehension
"""
dict1 = {n:n for n in range(1, 11)}
print dict1
print_dict()
| [
"vigneshece7766@gmail.com"
] | vigneshece7766@gmail.com |
3bb065239227e8de41c95b1c3570296e2f87de46 | 39aa8f4c6260b5307f1c427780ef462b7dfc751f | /data/actions/sum.py | 24c7b3713e47259c983426249e091278456898f9 | [] | no_license | ovkhasch/procflow | 51e66c8048292e64a9679da3432003c1a19276e7 | c58dcc538c54cbc876938254fa871cfda200d458 | refs/heads/master | 2022-11-17T00:00:15.814910 | 2020-07-08T07:44:34 | 2020-07-08T07:44:34 | 277,301,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | res = arg1 + arg2
print(f'{arg1}+{arg2}={res}')
res | [
"oleg.khaschansky@smddev.com"
] | oleg.khaschansky@smddev.com |
76820e8e2f4659673c77d3ece8a36ecaa9983766 | 12ceb4b82994048d1aa4561afc7e98b56a9b629d | /Hugo Bohácsek/mx_cif.py | c15f9130684738275789aadcaf7bd76452092b79 | [] | no_license | oguh43/bilicka | c5a3006f82cfcfec0d25bc012f6bdb7cc2877ceb | 8df20f487ad553f66b29004f2009a12819fe9cc6 | refs/heads/master | 2023-02-16T12:40:47.844257 | 2023-02-15T10:46:45 | 2023-02-15T10:46:45 | 220,057,073 | 8 | 1 | null | 2019-11-06T20:09:36 | 2019-11-06T17:52:33 | null | UTF-8 | Python | false | false | 199 | py | inp = list(input("Číselko? > "))
print(f'Najväčšia cifra je {max(inp)}!')
mx = 0
inp = map(int,inp)
for c in inp:
if c > mx:
mx = c
print(f'Najväčšia cifra je {mx}!')
| [
"noreply@github.com"
] | noreply@github.com |
786aba9b3e6665e708a3db46f46a3a40c11ec478 | 224f314304bb3d6ae6c89d9a438233b740116323 | /versioningproj/versioningproj/wsgi.py | fadc28262c35e0e7ae3bff6b7a03fe53ce24d3cb | [] | no_license | thanhgit/backend-contest | 29f2b5a6947b2960759a41f7b7c8f46a244185fb | 4995210fab6d40bd05dd699386274db8dd6427ff | refs/heads/master | 2020-07-11T05:21:55.190418 | 2020-06-21T09:23:06 | 2020-06-21T09:23:06 | 204,455,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for versioningproj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"thanh29695@gmail.com"
] | thanh29695@gmail.com |
e9e8cf762df89cb9437ef0b569dc75287034fb2a | 4c974c8bbb0c0b24db263f0db447fb92d7bc5cbd | /evaluations/evaluation_friends.py | eb63af40a183603c6106c4e3a21df6551aa70648 | [] | no_license | QualityMinds/classroom-reputation-simulator | 62aba472025de214bcab6b1105d442a573d462d0 | 36627c452a0a5d75db00d531e3891ed888e05c4f | refs/heads/master | 2020-03-11T09:21:47.064345 | 2018-05-24T07:54:08 | 2018-05-24T07:54:08 | 129,908,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | from centrality.eigentrust import EigenTrust
from centrality.indegree import InDegree
from centrality.indegree_positive import InDegreePositive
from centrality.pagerank import PageRank
from evaluations.community.online_discussion_group import OnlineDiscussionGroup
from output.chart import chart
from output.metrics impo... | [
"marco.hoffmann@qualityminds.de"
] | marco.hoffmann@qualityminds.de |
b089325c3b000bf90d4528103da4c099ebdfef77 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day05/day5/作业.py | 8002d8c0a0cc3a7e25803679291ab1221c2456f4 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 1,011 | py | # 1.注册一个账号,创建一个自己的博客主页
# 你的博客主页贴给我们的
# 每一周-两周 有一篇产出
# 2.递归函数 - 三级菜单
# 递归函数 - 二分查找
# 3.random 实现一个验证码,可以是4位或者6位,可以是纯数字,数字+字母
# 大作业:re模块和正则表达式 循环 不推荐用递归
exp = '1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568/14 )) - (-4*3)/ (16-3*2) )'
# exp = 2*3
# exp = 2+3
# exp = 2-3
# exp = 2/3
# 2+3*5
# prin... | [
"13269469526@163.com"
] | 13269469526@163.com |
c17e6e15b7fd656e21bd5cc3fdeef62ebc17e120 | 189a8025592f58dd0f0f90fe6197c0d7b865ea93 | /EulerFuncTester.py | 4b5ba9dc263d912542f971c38dba8f3faa13934f | [] | no_license | stepzhou/Project-Euler | 526c6c5085038f33cb72e444d46a442f6e9a3ab9 | e45db80cbdb87520e2264766b7913018995312c9 | refs/heads/master | 2021-01-19T11:26:16.631291 | 2012-10-16T19:19:37 | 2012-10-16T19:19:37 | 3,293,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | '''
Created on Jan 8, 2012
@author: Admin
'''
import EulerFuncs
import timeit
def test_sieve_time():
TRIALS = 20
t = timeit.Timer("EulerFuncs.primes_below(1000000)", "import EulerFuncs")
print "Own: %.4f s/pass" % (t.timeit(number=TRIALS)/TRIALS)
t = timeit.Timer("EulerFuncs.primes_under(1000000)", "... | [
"step.zhou@gmail.com"
] | step.zhou@gmail.com |
b1b7fad020c7a06528fed6a5731846ed727c0807 | 5bf5baf1bb79affd4756c1a6b40a8701ebef4cdb | /store/urls.py | 7ffc65c5a0376193b8f114567d631ed604ea18a2 | [] | no_license | sgithub99/E-Shop | 42b4144f37b7e3771cf3dbe5cb50ff340cc51477 | 6830bda9484f4964d5f0a0104b2d1c108186e30c | refs/heads/master | 2023-06-10T17:19:54.200585 | 2021-06-23T17:03:51 | 2021-06-23T17:03:51 | 378,679,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | """Eshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-based v... | [
"xuansondoan99@gmail.com"
] | xuansondoan99@gmail.com |
a406bd698bd55916814911f3075806d30eda981b | e177c23ce7763551ca6c0d0c763e26887e136a4e | /MoreExampleOfMouseEvent.py | d9df12aa31a647df547b18132c06b5ad64530201 | [] | no_license | happyiminjay1/PythonOpenCVPractice | 8786e46d9d3ef3b9acc08d878535e2e91159e99b | 2c4930b990ed5b9531f0b70e91bf3e3c0ad25cc5 | refs/heads/master | 2020-07-05T15:08:46.508950 | 2019-08-19T07:51:47 | 2019-08-19T07:51:47 | 202,681,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import numpy as np
import cv2
#events = [i for i in dir(cv2)]
#print(events)
def click_event(event,x,y,flags,param) :
if event == cv2.EVENT_LBUTTONDOWN:
cv2.circle(img,(x,y),3,(0,0,255),-1)
points.append((x,y))
if len(points) >= 2 :
cv2.line(img
cv2.imshow('image', img... | [
"happyiminjay1@gmail.com"
] | happyiminjay1@gmail.com |
b6c7bba737c9ddcc917d06d094c7fb376bf00b31 | dcdeb1935f73fd5090a1f5146c0e0cd52b9803c5 | /main.py | 17815c158456469eb423f0bb73bcb9163d2aedb8 | [] | no_license | RetroDude128/EpicBot-Discord | d6a18f95217f5d7100fb8dc95d61c4a00fac292f | 5b763264d99c22f39df0ffa1abb75704058248ec | refs/heads/main | 2023-06-25T06:37:08.180569 | 2021-07-31T13:45:52 | 2021-07-31T13:45:52 | 391,253,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from discord.ext import commands
import discord
print("token?")
TOKEN = input()
I = 1
di = 1
prefix = "!"
bot = commands.Bot(prefix)
print("Bot is ready!")
@bot.command()
async def die(ctx):
await ctx.send("So you have chosen death")
print("Someone used the command [!die]")
bot.run(TOKEN)
| [
"noreply@github.com"
] | noreply@github.com |
3efd5fde40d40b037e28cde351d3d54173d164f9 | 3cdd026cb269ca0c009016500cd2ba09655a6de6 | /server/instapic/tests/test_user.py | 4517ca9dd2a83a74a4facd275dd6c9aa3d1e5882 | [] | no_license | mileswong/instapic | 3034e7c768426dc4973dd65a0c7fde7695cfaf85 | 335229200e70e21d76495f36998b56deee6fc55c | refs/heads/master | 2022-03-02T23:32:01.314901 | 2019-05-28T14:54:42 | 2019-05-29T06:03:17 | 188,964,347 | 0 | 0 | null | 2022-02-10T17:50:42 | 2019-05-28T06:05:22 | JavaScript | UTF-8 | Python | false | false | 2,950 | py | import pytest
import logging
import json
from instapic.models import db, User
from instapic.config import Config
from flask_jwt_extended import (
create_access_token,
create_refresh_token,
)
def get_test_client(app):
return app.test_client()
def post_client(client, url, data=None, headers=None):
re... | [
"miles@findsolutiongroup.com"
] | miles@findsolutiongroup.com |
6911200ffb465a9a5709a7ade0f83c5c5ac558b3 | f880f230f90241dbfd2e729c02cf329ad27ca082 | /lab1/graph_results.py | a6230876d1d8161c40f161892010a08c76d1086e | [] | no_license | c-brenn/conc_sys_labs | bc666ec1870e8fea07557af785b58f9e24c0fbd7 | 24b21dd780b9a17b32a8125895f06c6d8af32549 | refs/heads/master | 2016-09-08T02:38:01.893716 | 2015-03-04T23:12:06 | 2015-03-04T23:12:06 | 30,213,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import matplotlib.pyplot as pyplot
import json
import sys
#get the name of the file containing
#the results to be plotted
file_name = sys.argv[1]
#open the file and load the contents as JSON
data = open(file_name, 'r')
data = data.read()
results = json.loads(data)
#extract the x and y values to plot
x = results['x']... | [
"brennc27@tcd.ie"
] | brennc27@tcd.ie |
1e2311f171807948b3c2b3e2d22c964acf347270 | aa52f688fc9203d4dc78c8a80b6938ef385780b5 | /week6/Lecture_6/printing_to_binary.py | 8e123059e9deb4ab2312189b818c42647d964bb3 | [] | no_license | mohitKhanna1411/COMP9021-Principles-of-Programming-1 | 9ec91753de914b1ed3abb72468a66ce0cac9224a | f04dec815e0c8a29a86e7ab2bdd2d6d0f5d0558f | refs/heads/master | 2020-08-31T20:32:38.336752 | 2018-09-11T10:36:11 | 2018-09-11T10:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # Prints out the representation of a nonnegative number in base 2,
# using two recursive procedures, one of which is tail-recursive.
#
# Written by Eric Martin for COMP9021
def print_binary_representation_1(n):
'''
>>> print_binary_representation_1(0)
0
>>> print_binary_representation_1(1)
1
>... | [
"41141770+mompccc@users.noreply.github.com"
] | 41141770+mompccc@users.noreply.github.com |
d05a52b546234ab73ee386e23bc8b67c8fd8b956 | fdf946b10a1478ea490e96d22bb4b04be30d0f39 | /flask_demo/1_get_hello_world.py | 34af100f93a44156b5fa044af6fb850e88a94ab2 | [] | no_license | ermakovpetr/rsoi | b27ae054bb7a6f0ea2fda74893025ce0f3accfd2 | 23f680d0090a8353621151b2872a22466fa82e92 | refs/heads/master | 2021-01-22T22:53:07.938139 | 2015-10-05T16:38:16 | 2015-10-05T16:38:16 | 35,239,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | # coding=utf-8
from flask import Flask
app = Flask(__name__)
@app.route('/hello_world')
def hello_world():
return 'hello world'
if __name__ == '__main__':
app.run(debug=True)
| [
"ermakov.pd@gmail.com"
] | ermakov.pd@gmail.com |
b9e27aec2cd9a9e2fa16db440f40306ebc490801 | 2db9b4efc9a5f62213e18d0241f3179916b8a5de | /using-python-to-access-web-data/extensible_markup_language(XML)_chapter13/parsing_XML.py | 1d59bba777cc88cc443846f21d3b9170a1837f71 | [] | no_license | Pratimathulung/python-tutorial | 52ced7b40087e1791a94cc5d52eee2a1f2505dd9 | 4d0136d849c6bd784181fb85ca4943a86d5b1d8d | refs/heads/master | 2020-03-20T22:59:09.199034 | 2019-01-25T18:48:55 | 2019-01-25T18:48:55 | 137,824,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import xml.etree.ElementTree as ET
# data = '''<person>
# <name>Pratima</name>
# <phone type="intl">
# +17039609603
# </phone>
# <email hide="yes"/>
# </person>'''
#
# tree = ET.fromstring(data)
# print('Name:', tree.find('name').text)
# print('Attr:', tree.find('email').get('hide'))
input = '''<stuff>
<users>
... | [
"pratima.thulungrai@gmail.com"
] | pratima.thulungrai@gmail.com |
4559d843f122d32a32c92fec1111354c7de91b94 | 24046530f58ecb5f90cdf65e8fb65a3135e4615f | /src/server_test.py | 911bad81fc2366d8b78225c0371a840577e56449 | [] | no_license | HappyYusuke/door_open_ver2 | d73d1c89e910fbb3877a3d053fe7c73674a85820 | 600f5cbf1e0016848c73e31bea637d38dca028a3 | refs/heads/main | 2023-06-30T18:05:09.290460 | 2021-08-04T11:07:12 | 2021-08-04T11:07:12 | 392,164,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#----------------------------------------------------------------------
#Title: door_open_ver2のサービスサーバ
#Author: Kanazawa Yusuke
#Data: 2021/7/2
#memo: サービスサーバーから進行速度、入室してからの進行距離を指定できる
#----------------------------------------------------------------------
import rospy
from ... | [
"c1005073@planet.kanazawa-it.ac.jp"
] | c1005073@planet.kanazawa-it.ac.jp |
9cf1e8ef1a108dc58dd252619ae16129a83d49ed | ca58f8e1696e6275116dfb3eea68ff17eec3bbe1 | /PyQt5开发与实战(网易云课堂)/src/dialogs/QFileDialogDemo.py | d43697b37326b45d10d3714df30cc967736fd162 | [] | no_license | piperpi/python_book_code | 9b8f99d08ed9840d34389aa008fd9ff5fd15e1ae | 19d35e33624923a764711469bed9006549a59d52 | refs/heads/master | 2022-07-15T05:34:53.226952 | 2020-06-30T10:20:40 | 2020-06-30T10:20:40 | 217,888,567 | 3 | 2 | null | 2022-07-06T20:42:49 | 2019-10-27T17:10:00 | Python | UTF-8 | Python | false | false | 1,525 | py | '''
文件对话框:QFileDialog
'''
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
class QFileDialogDemo(QWidget):
def __init__(self):
super(QFileDialogDemo,self).__init__()
self.initUI()
def initUI(self):
layout = QVBoxLayout()
self.butto... | [
"775996445@qq.com"
] | 775996445@qq.com |
d0628825b606d2a282727436ee6ae01b097cec5d | 11ba1df6ef160aea4459e1f98cd44d3232647ff8 | /game_stats.py | ca15ebfba0c9ca267b4d1d80fcfb2619f5893901 | [] | no_license | frankTheCodeBoy/PYGAME_GAME_DEVELOPMENT | ddd4d79eea94bd3b40d2fa392277491809453662 | 1a58123e39b02ed559fc33583ac71a14a7cfc8d3 | refs/heads/main | 2023-03-21T14:19:03.934349 | 2021-03-12T13:49:11 | 2021-03-12T13:49:11 | 343,720,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | class GameStats:
"""Track statistics for Alien Invasion."""
def __init__(self,first_play):
"""Initialize statistics."""
self.settings = first_play.settings
self.reset_stats()
# Start game in an inactive state.
self.game_active = False
# High score should never b... | [
"olumfrank48@gmail.com"
] | olumfrank48@gmail.com |
40ceb780fe2991fec43e0dd14528fcefa02c234d | 82ed7d2c21c5576a193ceafd30e74c1c48c6ad47 | /max2cookie.py | d9fc37a423ef25d599571340fe4e9529f59df740 | [] | no_license | alixedi/Max2Cookie | 4483d45b3588e081334f7a95e4c9cc1866868237 | ab42bb2a9ea9bc8a4109eed645f6051ec6def44e | refs/heads/master | 2016-08-03T18:46:24.365224 | 2014-12-12T13:05:37 | 2014-12-12T13:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | """
max_to_cookie
=============
Usage
-----
max_to_cookie.py <project_path> <stem_name>
Where:
<project>: Name of the project directory that is generated using the MaxIDE.
<stem_name>: Value of one of the fields in the project creation dialogue. At the moment, for simplicity, we do not support override ... | [
"azaidi@gust.office.maxeler.com"
] | azaidi@gust.office.maxeler.com |
15bd7ffc90a297cef5a326704f3d014f642e5396 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/internet/iocpreactor/ops.py | ab8211afcfdec329364da2053fefe05b753acb86 | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"MIT"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,752 | py | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
import struct, socket, os, errno
#import time
from twisted.internet import error
from twisted.python import failure
from _iocp import have_connectex
SO_UPDATE_ACCEPT_CONTEXT = 0x700B
SO_UPDATE_CONNECT_CONTEXT = 0x7010
ERROR_CONNECTI... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
f3d4bbace67d36667abafa32f72fc581eac19388 | 62e53c576274ef8734300c44edb00f857e01b9cc | /utils/coco_utils.py | e51aec46956f1c61893c9dc85b36684688d82d87 | [] | no_license | dmatos2012/torch-object-detection | ca26457df050d35255aca71a0a3fa9b67297442c | de1ff8fe55d40a185ef6a6748485993ca0ce0959 | refs/heads/master | 2023-07-25T11:08:51.627728 | 2021-08-24T11:56:06 | 2021-08-24T11:56:06 | 380,284,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,078 | py | # Taken from https://github.com/pytorch/vision/blob/master/references/detection/coco_utils.py
# Modified slightly to fit my needs
import copy
import numpy as np
import torch
import torch.utils.data
import torchvision
from pycocotools import mask as coco_mask
from pycocotools.coco import COCO
class FilterAndRemapCoc... | [
"davidmatos06@gmail.com"
] | davidmatos06@gmail.com |
f4181c7e25478f21c87d670378495933b5304fb8 | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L30/30-26_MD_NVT_rerun/set_4.py | 8cf73f4cd9548453c53991a4c27c186eeea9f7b8 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L30/MD_NVT_rerun/ti_one-step/30_26/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_4.in'
temp_pbs = filesdir + 'temp_4.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
fb8191dad12514eabd745e1a21bf0a4e1f269672 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /adafruit-circuitpython-bundle-py-20210402/lib/adafruit_sgp30.py | 4a58560aa73b763fdcb32ad065a5317380db7802 | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,228 | py | # SPDX-FileCopyrightText: 2017 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_sgp30`
====================================================
I2C driver for SGP30 Sensirion VoC sensor
* Author(s): ladyada
Implementation Notes
--------------------
**Hardware:**
* Adafruit `SGP30 Air Qua... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
c810a8c7f61382cb93aa85d97410ffbc095726b3 | 7baebc3c3e8cb27a0e21ffd118e7ec11ad1dc1d3 | /first_assignement/section4.py | 4587b531fdd628a74359fe747547ba1374cd9dae | [] | no_license | robin-libert/INFO8003-1-OPTIMAL-DECISION-MAKING-FOR-COMPLEX-PROBLEMS | 8e67a869d6cd9072d7bb3133c6c981f3331cd749 | 4374b33b2d660c8fb98a58418434d8d2e5598340 | refs/heads/master | 2021-01-02T03:01:39.420136 | 2020-04-13T11:29:03 | 2020-04-13T11:29:03 | 239,462,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,713 | py | from domain import Domain
import random
random.seed(42)#for reproductibility
domain = Domain()
def my_routine(T):
"""
Compute r(x,u) and p(x'|x,u) and a trajectory of size T
"""
p = {}
r = {}
#counters to compute the mean
nr = {}
np = {}
counter = 0
ht = []
for i in domain.... | [
"xenoeus@gmail.com"
] | xenoeus@gmail.com |
760bd612f39858593c024b41140e20e18fedf54b | 633be23fe191d1daf6adee05fc455520d6a378bd | /json-to-xml/json_to_xml.py | 91cb119280de173bd0a1cca079366ee36df53078 | [] | no_license | gabrielw33/Xml_Test | 524745c9619289135aabfea278b7714b2f14497b | d79b0f4eee80a673e09fbdd9e7511431bb52db2e | refs/heads/master | 2020-07-05T15:04:04.565633 | 2019-08-19T11:15:36 | 2019-08-19T11:15:36 | 202,680,084 | 0 | 0 | null | 2019-08-16T11:38:41 | 2019-08-16T07:27:33 | Python | UTF-8 | Python | false | false | 748 | py | import xml.etree.ElementTree as ET
import json
import sys
import argparse
import Function as F
parser = argparse.ArgumentParser(description='')
parser.add_argument('json', help='json file with configurations')
parser.add_argument('xml', help='xml base file')
parser.add_argument('-id', help='product id', default="mxb"... | [
"gabriel.w33@protonmail.com"
] | gabriel.w33@protonmail.com |
1f344a548e0eb08347b4cbbc2725414f705f0872 | 5d89e400ab38309e144a3ff2082fe8500f70d952 | /ProjectStructure/__init__.py | 0e15df4929e7ef46a01ddefc566046afddc7ab84 | [] | no_license | GarageManager/Doc_Converter | f9dbdb2b587a52fbd92b4f4fa046fa1970fbbcb6 | b5655ed747107850b1c832cc48fbbd5c4d8f2f7c | refs/heads/master | 2022-12-20T04:10:49.503929 | 2020-10-07T07:54:58 | 2020-10-07T07:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from ProjectStructure.InterfaceInfo import InterfaceInfo
from ProjectStructure.NamespaceInfo import NamespaceInfo
from ProjectStructure.PropertyInfo import PropertyInfo
from ProjectStructure.StructInfo import StructInfo
from ProjectStructure.MethodInfo import MethodInfo, Method
from ProjectStructure.ClassInfo import Cl... | [
"alisher021299@gmail.com"
] | alisher021299@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.