blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ab1dae99d3aab2a0201b1a098c67d8853ed4631 | 28a681ed25b767620f0a21580ddd4e057ccfed98 | /gate_camera.py | d5cfac49697c354726f074ca03b4e4e6b53d200c | [
"MIT"
] | permissive | sid1689/parking_lot_gate_final | 761cb4d473876e92a6ff9527263f4a7249d0d306 | d097c811aee706f23f1f1c83d130aa8e6654c7a8 | refs/heads/main | 2023-08-01T20:56:59.795965 | 2021-10-02T17:01:52 | 2021-10-02T17:01:52 | 412,719,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from parking_camera import ParkingCamera
class GateCamera(ParkingCamera):
"""
Represents a camera at a gate.
"""
def __init__(self, camera_address):
super().__init__(camera_address)
@property
def _gate_open(self):
return not self._can_take_picture
@_gate_open.setter
def _gate_open(self, value):
self... | [
"sid_artaalmeida@hotmail.com"
] | sid_artaalmeida@hotmail.com |
cbe0bee2021ee9e00108c613fe4a09506fe21021 | 5bad7ccd38b4ad78ed8ef09d84ca060b1686208e | /test/test_nutrient.py | a4fb8db63120a4015d342621eec2b3c5c16076ab | [
"Apache-2.0"
] | permissive | HallaApp/python-client | 6862ffbd7bdf3a0c2b8b255beb7f2a3f7004db0d | 326d796952cb99951f46bdf29c06798405dd78ce | refs/heads/master | 2023-03-22T19:16:02.251439 | 2021-03-17T21:49:18 | 2021-03-17T21:49:18 | 348,852,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | # coding: utf-8
"""
Halla I/O
<p><strong>Getting Started:</strong></p> <ol type=\"1\"> <li><p>Obtain Credentials (Please Contact Halla to Obtain Credentials):</p> <ol type=\"a\"> <li><p><strong>'serviceAccount'</strong>: Add your Service Account in the <strong>header</strong> for all API requests to the Halla... | [
"ospgospg@gmail.com"
] | ospgospg@gmail.com |
b25b89b0209466c2429a890c6abb637fb33ab2bb | 5c90661aedf5f830b672ad979c781c3a9f693e9f | /image/sample3.py | b91308ef7d15c24bcbfaf948dfd18a2e5d835135 | [] | no_license | Sylphy0052/PyGame_Sample | b3312ba0c731d46c002fc03e90e5612be03b7396 | 0cf971556b950e1b50014b473ebf8fbcae72c57a | refs/heads/master | 2020-04-14T19:33:12.073567 | 2019-03-17T08:49:27 | 2019-03-17T08:49:27 | 164,062,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import pygame
from pygame.locals import *
import sys
SCREEN_SIZE = (640, 480)
def load_image(filename, colorkey=None):
try:
image = pygame.image.load(filename)
except (pygame.error, message):
print("Cannot load image: {}".format(filename))
raise (SystemExit, message)
image = image.... | [
"ma17099@shibaura-it.ac.jp"
] | ma17099@shibaura-it.ac.jp |
220a336a1a4b55acfe67c77f5f2cae1589985e1e | 830225393fad2b53d1592a87973074a9c5cced02 | /build/rbcar_common/rbcar_description/catkin_generated/pkg.installspace.context.pc.py | 729bbf05e9ea062319bef7ae2bfa82f0ecf55f75 | [] | no_license | gtziafas/rbcar_workspace | 24e69c30a62b919d78ca88d04dedff25209893b1 | c64e2c4a19df800b28826a62133d8fd0da3674c0 | refs/heads/master | 2021-06-09T15:53:53.751753 | 2021-05-31T12:29:27 | 2021-05-31T12:29:27 | 131,979,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rbcar_description"
PROJECT_SPACE_DIR ... | [
"noreply@github.com"
] | gtziafas.noreply@github.com |
c252ebbcecd170aa13eef5bf53383465b4098786 | b88c7f892b4ec97a1bfecc1ca15b4014f3d9257e | /nasbench_asr/training/tf/datasets/text_encoder.py | 98262f2021b219d8e35726114ba0fa17da044327 | [
"Apache-2.0"
] | permissive | akhauriyash/nb-asr | 66b0d1dcf5c769763bb2945c130e17756c523164 | 8889f37081ebbde253da1589d13fe3bc9ccd9ef8 | refs/heads/main | 2023-06-23T05:20:41.390868 | 2021-07-22T20:50:51 | 2021-07-22T20:50:51 | 388,593,693 | 0 | 0 | Apache-2.0 | 2021-07-22T20:50:18 | 2021-07-22T20:50:17 | null | UTF-8 | Python | false | false | 1,829 | py | # pylint: skip-file
from nasbench_asr.quiet_tensorflow import tensorflow as tf
from .phoneme_encoder import PhonemeEncoder
def get_utf8_valid_sentence(sentence):
return sentence.numpy()
def get_corpus_generator(ds):
for _, sentence in ds:
yield get_utf8_valid_sentence(sentence)
def get_encoded_... | [
"l.dudziak@samsung.com"
] | l.dudziak@samsung.com |
760838f1d87ce31ef4b3b11e4015e744328df7c6 | f265a8d47a3b9ff21dfbd3a14405f8021c51c692 | /DocumentFiltering/naivebayes.py | 3136d8e7a8636886480bca4462d4293be4e8d2e5 | [] | no_license | fengxianyun/ji_ti_zhi_hui | a0f7ca5c04daa6d605d7e785e8d07de63e46e73a | c4548ec106e398bdb574c181a19e6afba6450258 | refs/heads/master | 2021-03-12T20:05:13.633604 | 2015-09-30T01:57:45 | 2015-09-30T01:57:45 | 42,382,038 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,197 | py | #coding:gbk
'''
Created on 2015年9月2日
@author: fxy
'''
#朴素贝叶斯分类器
import docclass
class naivebayes(docclass.classifier):
def docprob(self,item,category):
features=self.getfeatures(item)
#将所有特征的概率相乘
p=1.0
for feature in features:
p*=self.weightedProb(feature, categ... | [
"937002565@qq.com"
] | 937002565@qq.com |
6ff08466a1384f6af041270b3190c0fffa2b4e7f | f0801ad1a4e4097a7026cca8767e88fe74036ea7 | /main/migrations/backup/0003_auto_20170218_0804.py | a79bd7966d057587a348b1ba3e8ac2458e8413f0 | [] | no_license | meadhikari/django-crm | 4ca446e020f07c50286a4d6debb5ecbf275abb39 | 944319ed0ead8aa1911b8ba2d66b390411972f35 | refs/heads/master | 2021-01-19T13:42:17.014964 | 2017-02-18T19:32:39 | 2017-02-18T19:32:41 | 82,411,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-18 08:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20170218_0748'),
]
operations = [
migrations.AddField(
... | [
"salik.adhikari@gmail.com"
] | salik.adhikari@gmail.com |
80e6680172774c8afdd21f6cabff10d713655524 | bbed39c1514e1f8014aa68a3ac59233c726de48a | /cnn_v2.py | 3ef86cdf73ee0f955ddb5a250259df46e48fc17e | [] | no_license | GodzSom/few-shot-segmentation | 37a04ebfe95f04c75e107c1586a4795763b144fa | 7f8e404a1da337e1bccee6cc2f278c998c7b27f7 | refs/heads/master | 2023-04-10T12:29:47.584839 | 2021-04-19T08:47:50 | 2021-04-19T08:47:50 | 281,317,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | import torch, os, torchvision
import torch.nn.functional as F
from torch.utils.data import TensorDataset
from PIL import Image
import numpy as np
from tqdm import tqdm
import matplotlib.pyplot as plt
from torch.utils.tensorboard import SummaryWriter
from stylegan import z_sample
from nethook import InstrumentedModel
fr... | [
"noreply@github.com"
] | GodzSom.noreply@github.com |
c75f2a6a359a2b27092edb7aed9fe3b1166980a2 | 47e3f13ce4e42fc157db6580154acd3e9a7169d7 | /activejob/activejob/jobs/migrations/0001_initial.py | 87ebbdc0cf0ff645d03df89b5ce118469f0786c9 | [] | no_license | dreadkopp/activejob_bootstrap | d266c15565f1371cd9c271de093c9570e0511231 | 8bcdb73f1f95265a06a8e9c751113ccf0cce67eb | refs/heads/master | 2020-12-30T13:40:19.351153 | 2017-08-22T15:48:28 | 2017-08-22T15:48:28 | 91,242,018 | 0 | 1 | null | 2017-08-22T15:48:29 | 2017-05-14T12:30:55 | Python | UTF-8 | Python | false | false | 2,801 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-18 18:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"dm@xanadu.dd.activ-job.intra"
] | dm@xanadu.dd.activ-job.intra |
4ce16e2eaacf769eca66aff6d2b31bc0a779050b | 749fa5a348def37a142ba15b3665ff1525c50321 | /image_reseize.py | 3950f4384ad5affa810deba01159b28e57484366 | [] | no_license | rahmakaichi1/Object_Detection | 163bd5ed19fa6e8ae9704d093c216734142c80a8 | aecd6346cf5baf94e1ecac0c4df42d1c5a254d4e | refs/heads/master | 2022-10-31T04:25:18.713807 | 2019-08-23T12:19:23 | 2019-08-23T12:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py |
directory ="/content/Tensorflow_object_detector/workspace/training_OD/images/jpg"
for file_name in os.listdir(directory):
print("Processing %s" % file_name)
image = Image.open(os.path.join(directory, file_name))
new_dimensions = (224, 224)
output = image.resize(new_dimensions, Image.ANTIALIAS)
folder = ... | [
"rahma.akaichi@ensi-uma.tn"
] | rahma.akaichi@ensi-uma.tn |
bdd9bde6ac4d525d029a7f01e0a25d1437f68c1d | a5e50ee7c94feae560ac169064f9af67197071c7 | /Chatroom/chat/routing.py | 2d68790ba0f1bfadb80d827cbca5a93e2e12a469 | [] | no_license | AmaanNaikwadi/Public-Chatroom1 | 0683bb314459f89e03ab426dbc46ec402c49b183 | 1d44de92923be2c6715cec5b5d1c9a821d9928f8 | refs/heads/master | 2023-06-22T08:30:41.843079 | 2021-07-24T18:06:06 | 2021-07-24T18:06:06 | 383,660,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django.urls import re_path
from . import consumers
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
websocket_urlpatterns = [
re_path(r'ws/chat/', consumers.ChatRoomConsumer.as_asgi()),
re_path(r'ws/(?P<group_name>\w+)/$', consumers.GroupChatConsumer... | [
"amaannaikwadi@gmail.com"
] | amaannaikwadi@gmail.com |
0daf65ce49a311fdb34c04109af046ccda6c1f28 | 9a50b0a97c5caf12bcfc7fff8cee0b72326e2fc2 | /worksheet_12a.py | 70813069bc0a715121589f75df5b471280599008 | [] | no_license | seannydududu/schoolproject | e3e88dd695f7a2633201f6542ec0eab7c05508d5 | 4388e63a52fd452b01ae90e39990ad486c8419f4 | refs/heads/main | 2023-05-26T21:38:52.296951 | 2021-06-08T05:33:40 | 2021-06-08T05:33:40 | 374,891,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #Question 1
def qn1():
name = input("Enter your name:")
index = input("Enter your index number:")
class_name = input("Enter your class:")
print("Hi, I am {} from class {} and my index number is {}.\nNice to meet you.".format(name,class_name,index))
#Question3
def qn3():
counter = 0
total = 0
... | [
"progamer12323432@gmail.com"
] | progamer12323432@gmail.com |
2cd12e80087b56b034e20a935df8bd724ed19e13 | b277ca06cb0c33635e31928a3643c85f67623af4 | /buildenv/lib/python3.5/site-packages/sphinx/ext/mathjax.py | 7fb3b17ad61bc87381b6d2036ece930c89f04dce | [
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | angrycaptain19/container-camp | a3e5c9b9f130776c842032148fcdba094bc0da8f | b0b14fe30aee310cb3775c1491d5b6304173936b | refs/heads/master | 2023-03-12T18:04:13.700249 | 2021-03-01T23:02:30 | 2021-03-01T23:02:30 | 343,728,529 | 0 | 0 | NOASSERTION | 2021-03-02T10:30:35 | 2021-03-02T10:07:11 | null | UTF-8 | Python | false | false | 3,258 | py | # -*- coding: utf-8 -*-
"""
sphinx.ext.mathjax
~~~~~~~~~~~~~~~~~~
Allow `MathJax <http://mathjax.org/>`_ to be used to display math in
Sphinx's HTML writer -- requires the MathJax JavaScript library on your
webserver/computer.
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
... | [
"mmsprinkle@gmail.com"
] | mmsprinkle@gmail.com |
baa4949892d605c13b56159e9f3b000b491bc3e4 | 7ba34d8a6eaed1ccc4efb043060a4b8415c47b1d | /netdev/vendors/alcatel/alcatel_aos.py | cb2db396a24d53fc11c48975244eebad4226c885 | [
"Apache-2.0"
] | permissive | ixjx/netdev | 8b9da831dd5e45855ee65ce0552c0039ecff285b | cd30593c233c92e301cdaca97798ec71668ab78d | refs/heads/master | 2023-07-04T08:04:58.243607 | 2021-07-28T09:32:11 | 2021-07-28T09:32:11 | 295,272,213 | 0 | 0 | Apache-2.0 | 2020-09-14T01:27:07 | 2020-09-14T01:27:06 | null | UTF-8 | Python | false | false | 1,242 | py | from netdev.vendors.base import BaseDevice
from netdev.logger import logger
import asyncio
import re
class AlcatelAOS(BaseDevice):
"""Class for working with Alcatel AOS"""
async def _read_until_prompt_or_pattern(self, pattern="", re_flags=0):
"""Read until either self.base_pattern or pattern is detec... | [
"ericorain@hotmail.com"
] | ericorain@hotmail.com |
1d97790987ac8d1d3091fc2896c5f47f49471e9b | e24da5964925d5b32f76b0aa4d671018b4a2c5be | /cride/circles/models/memberships.py | 467e5178d49feb9277b9f8b4780d46490ada2345 | [
"MIT"
] | permissive | valot3/Cride-API | 9b50db986cd27b42b22679b2d1a806653b7e4348 | a9e201942e6eecd479f575733e93ff73e6df573d | refs/heads/master | 2023-08-20T12:53:27.220691 | 2021-09-14T23:34:15 | 2021-09-14T23:34:15 | 406,551,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | """Membership model."""
#Django
from django.db import models
#Project
from cride.utils.models import CRideModel
class Membership(CRideModel):
"""Membership model.
A membership model is the table that holds the relationship between a user and a circle.
"""
user = models.ForeignKey('users.User'... | [
"valen.blanco.2004@hotmail.com"
] | valen.blanco.2004@hotmail.com |
280d6693da1ac1395f21a1816d99169a91c8a6d6 | f653dcf96b79a0b43650a1fb00146c8089c46e02 | /23.py | a2c9eb2011fe8e74e9f8d01133962b8f94d7174c | [] | no_license | nishtha-rokde/DSA | 7877e72bc562902555df33d00f67f6f69d1bcbfa | 38741c121ef9a6731a53b0023327e44bc8e3e3f3 | refs/heads/main | 2023-01-01T13:43:13.544150 | 2020-10-24T17:05:31 | 2020-10-24T17:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def arr_sum(arr,sum):
arr.sort()
start = 0
end = len(arr) - 1
list = []
count = 0
while start < end:
if (arr[start] + arr[end]) < sum:
start +=1
elif (arr[start] + arr[end]) > sum:
end -= 1
elif (arr[start] + arr[end]) == sum:
list.appe... | [
"nishtharokde@gmail.com"
] | nishtharokde@gmail.com |
8b13f1478a12075ef8ff3736fa85e9679d78bfa6 | 85594f78a0bb3d790e08f3805add72d9bb2a6ab8 | /Codes/keyboard_teleop.py | 7b7ac8fc989140c87ad4a79e2e8fde86c02987c5 | [] | no_license | PatilVrush/TAL-BRABO-ROS-CONTROL | b5c8e89210a6eb7cbb746744e11a06cadedf4377 | 9e8a573c52d9b4454ace9b47d4d2af9501146b73 | refs/heads/master | 2020-09-04T01:53:28.765498 | 2019-12-13T23:24:22 | 2019-12-13T23:24:22 | 219,633,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | #!/usr/bin/env python
# license removed for brevity
import rospy
import serial
import struct
import math
import time
import pygame, time
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((640, 480))
pygame.display.set_caption('Pygame Keyboard Test')
pygame.mouse.set_visible(0)
pygame.key.set_... | [
"noreply@github.com"
] | PatilVrush.noreply@github.com |
6c3738a82dfea2e1e403e4977157e4892817fe62 | a459d1413a65f1bf8ed982342f4ba9a1921f4a0c | /students/views/journal.py | 6aac3af7e786afaa1544dd8e22ae507de936774d | [] | no_license | Igorisius/project_studentsdb | 94c75e1f7c15e6a60aa71e9acdb443b8ada1ecc2 | ee37fc03c601c6ce5ff68baea862ac8e812f3379 | refs/heads/master | 2020-12-30T09:38:18.072616 | 2015-04-05T21:15:32 | 2015-04-05T21:15:32 | 28,105,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse
def journal_list(request):
journal = (
{'id': 1,
'last_name': u'Петро Білочка'},
{'id': 2,
'last_name': u'Іван Іванович'},
{'id': 3,
'last_name': u'Михайло Пилипенко'},
... | [
"Sakivskyy.igor@gmail.com"
] | Sakivskyy.igor@gmail.com |
66b654358f12a58b653f3dd74fb992717fe0bcc6 | a6b46a37bb2fc9e27ed000cb5d2e1fcef6e7527c | /python/common/expressions.py | fac15ec0ea42f9bfa0e78d51628dfc525e99d9a9 | [
"MIT"
] | permissive | data-man-34/ad_examples | 3c4b522b64a8387aed922a6fd062114a3e96c26f | f0d5d95c443cf1cfaf293a2e76b9bff3cbfd85b7 | refs/heads/master | 2020-04-09T15:12:48.677931 | 2018-12-04T18:58:22 | 2018-12-04T18:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,371 | py | import tokenize
import re
import os
import numpy as np
# from sklearn.metrics import f1_score
from sklearn.metrics import precision_recall_fscore_support
"""
General Rule-parsing functions. We might use only a subset of the features available.
For some rule illustrations/examples, see test_rule_apis()
To test:
p... | [
"smd.shubhomoydas@gmail.com"
] | smd.shubhomoydas@gmail.com |
c2ee78250d0f3860d8ec164c11ab88e734704bed | 8efd8bcd3945d88370f6203e92b0376ca6b41c87 | /problems100_200/151_Reverse_Words_in_a_String.py | 11b5357b6300152e2debfd6b3f1328822ffebdd4 | [] | no_license | Provinm/leetcode_archive | 732ad1ef5dcdfdde6dd5a33522e86f7e24ae2db5 | 3e72dcaa579f4ae6f587898dd316fce8189b3d6a | refs/heads/master | 2021-09-21T08:03:31.427465 | 2018-08-22T15:58:30 | 2018-08-22T15:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #coding=utf-8
'''
151. Reverse Words in a String
Given an input string, reverse the string word by word.
Example:
Input: "the sky is blue",
Output: "blue is sky the".
Note:
A word is defined as a sequence of non-space characters.
Input string may contain leading or trailing spaces. However, your reversed string... | [
"zhouxin@gmail.com"
] | zhouxin@gmail.com |
7c2df051bd8cf8322dd447539b9d462156b9db26 | a52ff0573d248b13d40c605f6d70b14be3fc696b | /cienciaDaComputacaoPython/lista3/fatorial.py | 315006f68ac44ab4c8e8ea3add307246a6e7f553 | [] | no_license | jlucasldm/coursera | 29007f21c3d0f4aae8652bde37748c3b083c7875 | 5a5b974c5ba296f96786c1124f6d03cd695a9a75 | refs/heads/master | 2022-12-05T23:41:45.036283 | 2020-08-10T01:27:44 | 2020-08-10T01:27:44 | 275,711,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Escreva um programa que receba um número natural nn na
# entrada e imprima n!n! (fatorial) na saída. Exemplo:
# Digite o valor de n: 5
# 120
valor = int(input('Digite o valor de n: '))
produto = 1
while valor!=0:
produto*=valor
valor-=1
print(produto) | [
"49415623+jlucasldm@users.noreply.github.com"
] | 49415623+jlucasldm@users.noreply.github.com |
3ea14480eea3e779545c922160ad1ab5bcf348fd | aa0c7a133f4aae575e526a9e0dd392626f217fff | /build_bipartites_train.py | 6c5ce23ccc8d6fc9ddc2e0ff94b300c7b181d1cb | [
"Apache-2.0"
] | permissive | jodsche/BachPropagate | 526472f8649c33d7f2a61f1ed102dfbdd4b4efbb | 0bb0054d182c954bad6f002189285991fa62daa2 | refs/heads/master | 2023-05-15T06:10:39.227227 | 2018-07-04T15:22:06 | 2018-07-04T15:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,591 | py | import itertools as it
import sys
import json
import re
import collections
import os
from utils import write_to_pickle
path = 'data/raw'
bipartite_path = 'data/bipartite_challenge'
# Generate BiPartites and save as Objects.
filenames = os.listdir(path)
count = 0
AllDataPidTitleBipartite = {}
AllDataPidTrackListBip... | [
"t.iofciu@mytaxi.com"
] | t.iofciu@mytaxi.com |
49dc43df0df8a4ad400a6dcaf0937a7ba4713c34 | 3c1c9d89ef6a2324fbd439d88a79fa45fca58b43 | /VAEs/refer-multi-vaes/main_fonts_betavae.py | bfc3927b375871430156711dd905a94337d09044 | [
"MIT",
"Python-2.0"
] | permissive | charlesxin97/fonts_interpolation | 746e4802c229267a246a0163016cfe395cc2e2bc | e4b9cea37778c4fb370a2849cbe31fe058920681 | refs/heads/master | 2022-12-15T20:08:46.347162 | 2020-09-21T22:04:41 | 2020-09-21T22:04:41 | 297,469,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,305 | py | import argparse
import logging
import sys
import os
from configparser import ConfigParser
from torch import optim
from disvae import init_specific_model, Trainer, Evaluator
from disvae.utils.modelIO import save_model, load_model, load_metadata
from disvae.models.losses import LOSSES, RECON_DIST, get_loss_f
from disva... | [
"845992541@qq.com"
] | 845992541@qq.com |
289ffbd3b38c89023985e5dd2c6fb39330486eeb | d215aa9d6a07a93c5d0f62181e19812cd5724599 | /onMoped/control/state.py | e630e49aedf08b91fa86d88c753795dd18cb4d7e | [] | no_license | petrosdeb/Group-Stierna | 4f471276c37b59dd14b960a7f0f64a11fd7d5146 | 0789ef4aba54cf8d1da6a2ed501977311678a7a9 | refs/heads/master | 2021-01-21T12:11:26.214735 | 2017-10-27T14:57:43 | 2017-10-27T14:57:43 | 102,047,524 | 4 | 0 | null | 2017-10-26T09:45:52 | 2017-08-31T21:36:15 | Python | UTF-8 | Python | false | false | 510 | py | """
Simple enum-class representing the 3 driving
states of the MOPED.
Used in core to determine what output values
are written
"""
from enum import Enum
class State(Enum):
"""Basic enum class"""
UNDEF = -1
MANUAL = 0
ACC = 1
PLATOONING = 2
def char_to_state(char):
"""Returns a State for a g... | [
"wamby@student.chalmers.se"
] | wamby@student.chalmers.se |
08f5bd7c3e007ee5cc2828e16065a3548eafdfe4 | a0194ea7a08913847c2cfc3a9c5262816b188c5d | /TVGL/exampleTVGL.py | 0c825edbcd9c70961845ea16edd6a7497c5e9f28 | [] | no_license | aboomer07/HighDimensional_TVGL | 39f93c832c22589c807e535903d0ab58deda9bea | 1db3ab011fb8a61bb861c8663ca37f74067cb9e6 | refs/heads/master | 2023-08-16T00:28:02.529881 | 2021-10-08T22:14:12 | 2021-10-08T22:14:12 | 411,791,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from TVGL import *
import numpy as np
Cov = np.array([[5, 1], [1, 7]])
data = np.random.multivariate_normal(np.zeros(2), Cov, 50)
data = np.genfromtxt('PaperCode/Datasets/finance.csv', delimiter=',')
data = data[0:30,0:10]
lamb = 2.5
beta = 12
lengthOfSlice = 10
thetaSet = TVGL(data, lengthOfSlice, lamb, beta, index... | [
"aboomer07@gmail.com"
] | aboomer07@gmail.com |
b2b5ff0bd1ab1d7aed0a02913cc5eba5962ed9e5 | af4edde514d5e4b1823ebd77b4df3d18c4165047 | /parsl/tests/test_sites/test_CC-IN2P3/cc_in2p3.py | 568b9db60c01cf60e4caf43c2efa02f3f8b1e5f4 | [
"Apache-2.0"
] | permissive | kylechard/parsl | 5f48d51f06631248b7885cee165c1b11a5881cff | 1080cc17e0c42f877cab18d1452bb6a2bc4c40b7 | refs/heads/master | 2020-12-30T09:26:39.786962 | 2018-03-29T18:08:30 | 2018-03-29T18:08:30 | 100,407,921 | 0 | 0 | null | 2018-03-29T01:27:15 | 2017-08-15T18:40:47 | Python | UTF-8 | Python | false | false | 22 | py | ../configs/cc_in2p3.py | [
"ybabuji@cca009.in2p3.fr"
] | ybabuji@cca009.in2p3.fr |
fb93ec9ad172b75595a7d1dbfe69925d43ebec3b | 6b4346ab5d8e3cc5d1857ecb5fbc7160b9002566 | /backend/src/logbug.py | f4c49d4d8c705191ec2e8af6e99c4c45cc4cdedb | [] | no_license | theballkyo/SDN-handmade | eb582eb0aa3e23e40107dfea8d9e30e03bf4ded5 | bba04cf24220cef378a458b87b62af8fe09c2411 | refs/heads/master | 2021-01-22T13:22:28.830473 | 2018-01-28T02:58:16 | 2018-01-28T02:58:16 | 100,669,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # import pprint
import logging
import logging.handlers
import struct
# import readline
from datetime import datetime
try:
import readline
except ImportError:
import pyreadline as readline
class LogBugHandler(logging.Handler):
def __init__(self):
logging.Handler.__init__(self)
def emit(self,... | [
"theball_kyo@hotmail.com"
] | theball_kyo@hotmail.com |
e971626e0f9e825a4073e567b737aeff836e3c06 | 946fa06e50cf680f25af3560e84969b123c9b43b | /CopyTranslator.py | 963a3c7ae8ad080a6328f71bb372912b1bf0503f | [] | no_license | getnewday/copyTranslate-sample-pyqt | f0bc05f7f79f08f145003a42730d0b8ca25f7ea0 | f0ce44ec72238e23f1ee07f1b2404f1518e49a48 | refs/heads/master | 2023-02-09T05:20:21.518029 | 2020-12-27T04:41:48 | 2020-12-27T04:41:48 | 324,686,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,730 | py | import sys,math,time
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from translate import Translate
from settings import Settings
from utils import Utils
class CopyTranslator(QMainWindow):
def __init__(self):
super(CopyTranslator, self).__init__()
self.settings ... | [
"756459364@qq.com"
] | 756459364@qq.com |
e85cfa7c32176fd928719363cbe5642a5916c867 | d59fce89fd7e7e93e0f8ebfe677e8060e5c2144a | /loops/prime_check.py | 2dda2f9c13cf248522c5276f435ea40a3840555b | [
"MIT"
] | permissive | Rhoynar/pysel | a7cdb91063270c1f41fb88661702b0127c009931 | 7a283cfdcaea3b1e33e615d1e655b6bd1f23f09f | refs/heads/master | 2021-05-07T03:38:22.376371 | 2017-12-01T22:19:02 | 2017-12-01T22:19:02 | 110,787,353 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # Check if a number is prime
num = int(raw_input('Enter number: '))
prime = True
for i in range(2, int(num/2)):
if num % i == 0:
prime = False
break
if prime:
print('Number {} is a prime number!'.format(num))
else:
print('Number {} is NOT a prime number!'.format(num))
| [
"harsh@rhoynar.com"
] | harsh@rhoynar.com |
ba97794c6bdae848bc13d24f3bde25199dd1f016 | 3b65a1502d0e2847079f2fcd8e81b644e752072b | /venv/Lib/site-packages/doc/conf.py | c7beb206c93e200ae770294205bc0d686fc021d4 | [] | no_license | triplew86-cl/ontology_demo | 109436558e76a731b2cf6741f6e25cf9b4ca83ee | e780052c79e717d1259b6849d964d80680bf7261 | refs/heads/master | 2022-10-21T03:46:32.838250 | 2019-03-21T05:41:30 | 2019-03-21T05:41:30 | 176,867,270 | 0 | 1 | null | 2022-10-17T22:49:19 | 2019-03-21T04:02:19 | Python | UTF-8 | Python | false | false | 7,608 | py | # -*- coding: utf-8 -*-
#
# azure-storage-python documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 27 15:42:45 2014.
#
# 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
# autogenerate... | [
"wenwenwang@crimsonlogic.com"
] | wenwenwang@crimsonlogic.com |
e4ef6f4daa034338122443da3d297af7f4609fc5 | 0a79ec5939314e206f6b34744927711278eca712 | /author_publication.py | d4e1a3acf3f5dc083c29cf1baa56da5fb89cccce | [] | no_license | jbragg/cscw16-bootstrapping | 9c6d69b8f5c6e54b190d29298447165e97c62f6e | bef2dcf5be09a1da4dafae262dc772b96f40bcd4 | refs/heads/master | 2021-03-24T10:19:11.952218 | 2018-08-15T04:59:34 | 2018-08-15T04:59:34 | 71,861,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py |
import sys
import urllib
import urllib2
import mechanize
from bs4 import BeautifulSoup
import csv
import json
import os
import re
#http://academic.research.microsoft.com/RankList?entitytype=2&topDomainID=2&subDomainID=5&last=0&start=1&end=100
def main():
fout = open('authors_publication.csv','a')
writer = c... | [
"wenhuang98@gmail.com"
] | wenhuang98@gmail.com |
e348b3e0dfab26e0cc1f9c6a114ae59be50476c4 | 4c8755443320f0e8fde2718aec40c49ef27ab6fe | /{{cookiecutter.repo_name}}/cookiecutter_repo/utils/loaders.py | 0d90448aa34fd2244e0f3ef816996b8e56608d99 | [
"MIT"
] | permissive | ethman/cookiecutter-nussl | 28266f2b714607493016aa554794617e1cb431aa | 302df1bee74b13ff0e2c6725997f7b7fa26b32d5 | refs/heads/master | 2020-12-09T23:50:09.844838 | 2020-01-12T17:19:06 | 2020-01-12T17:19:06 | 233,449,725 | 0 | 0 | null | 2020-01-12T19:54:48 | 2020-01-12T19:54:47 | null | UTF-8 | Python | false | false | 586 | py | from .. import dataset, model
def load_dataset(dataset_class, dataset_folder, dataset_config):
DatasetClass = getattr(dataset, dataset_class)
dataset_instance = DatasetClass(dataset_folder, dataset_config)
return dataset_instance
def load_model(model_config):
model_class = model_config.pop('class', 'S... | [
"prem@u.northwestern.edu"
] | prem@u.northwestern.edu |
c0d4bd4492c238dfe6bf330055dd6f46d240b564 | c043029afde70a73e55f181ca2a86607b69f847b | /1_fundamentals/statistics_python/covid-19.py | 024ca2151c211e3d3be1341897ad7430f512ef29 | [] | no_license | viasmo1/edem-mda | 9918a2e1178ef661e34a0eb002342b994ea12e1b | 4bba5b1252bec405ead2d45f4eb6b49652a99584 | refs/heads/master | 2023-06-14T16:20:45.725054 | 2021-07-10T08:18:48 | 2021-07-10T08:18:48 | 296,832,549 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 22 14:42:01 2020
@author: vicent
EDEM
Master Data Analytics
Statistics with Python
Analysis Covid-19 in Spain
"""
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# %%
# Get working directory
print("Current Working directory: ", os.getcw... | [
"vicent.asenmol@gmail.com"
] | vicent.asenmol@gmail.com |
6659b4d8145e55d900dcabb7398db42929c560f4 | d75560d9acde4f1f6457898d8862b06ba5f8dd7b | /backend/msm_sgsjhsjh4803_de_13561/wsgi.py | 3cd1976c5b367e8dc49ef8d3516ab2cc510980f7 | [] | no_license | crowdbotics-apps/msm-sgsjhsjh4803-de-13561 | af6563f775832664041dbd8abc5d05af9d8d4a4f | 9364d828ffee0edfe68d263fce2b0a7cb2949039 | refs/heads/master | 2022-12-29T15:25:29.870944 | 2020-10-19T08:18:12 | 2020-10-19T08:18:12 | 305,263,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for msm_sgsjhsjh4803_de_13561 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.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
84c2e76f5f17862565434bb732ecf476cd09b662 | 44ee04c2447612c00691bebf3bc9b2f4742bc4f2 | /contact/migrations/0002_delete_contact_page.py | fcfd44612b9315c5db7c2b4b706260393bd2e266 | [] | no_license | mohamedabouseif/Resume | 1bb52522b74ac358e9c71dc4df09a48a3af15a3d | 7a2abc4c1fd55b593842fdffa7301556e8717c3d | refs/heads/master | 2020-05-16T06:23:39.547341 | 2019-04-22T20:21:31 | 2019-04-22T20:21:31 | 175,219,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-03-14 13:47
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('contact', '0001_initial'),
]
operations = [
migrations.DeleteModel(
nam... | [
"mohammedfaried364@gmail"
] | mohammedfaried364@gmail |
0d6abab4f087b0d960991fcb7127878d6ac60af7 | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /neoOkpara/Phase-1/Day7/environmentVariables.py | 65ec4f88a10f613d3f23446bd640b865aa59094e | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 110 | py | import os
print(os.environ['JAVA_HOME'])
for k, v in os.environ.items():
print('{0}={1}'.format(k, v))
| [
"emmox55@gmail.com"
] | emmox55@gmail.com |
b041c4045da2e483c82f6f9891353b1cf13e7757 | 344d025661d615a7740adf0482df5b66545302d2 | /NLG/table/IO.py | 1d757ca452586182c366042d454725c898f2b718 | [] | no_license | Lyz1213/msc_dissertation | 641806eda03cc0b943553c5709ced57a238b7c0d | 7f109bcf3cc17d2c669e18fb2ad3357aa4e0fc2e | refs/heads/main | 2023-07-03T19:59:19.893076 | 2021-08-16T10:22:16 | 2021-08-16T10:22:16 | 396,736,327 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,153 | py | import torch
import torchtext.data
import torchtext.vocab
from collections import Counter, defaultdict
from itertools import chain
from table.Tokenize import SrcVocab
PAD_WORD = '[PAD]'
PAD = 0
BOS_WORD = '<s>'
BOS = 1
EOS_WORD = '</s>'
EOS = 2
SKP_WORD = '<sk>'
SKP = 3
UNK_WORD = '[UNK]'
UNK = 4
special_token_list = ... | [
"liyanzhou97@outlook.com"
] | liyanzhou97@outlook.com |
e9efde3650a1b2f848407adf06cf593657f835a2 | 01fa58693f3cca73d37837bae6792b7c4c1c32f6 | /urls.py | 87c9ebc979e591309f7fd8dfb19f3034538bfcc1 | [] | no_license | Penchal9959/PayTM_Paymentgateway_Integration | 80af615504f021f90930313d1fb4f1be93d12d20 | 3bf4e9c88f4d52b6758d325afc41866a38b61b5e | refs/heads/master | 2023-01-10T10:52:19.949707 | 2020-11-14T07:48:55 | 2020-11-14T07:48:55 | 288,612,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | """paytm_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-... | [
"noreply@github.com"
] | Penchal9959.noreply@github.com |
a663a571c791506a5bbea2e874df529dbed68ebb | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1907/py02/day01/cut_log.py | cceaf977d83d75e82696a61778603e0948c24313 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 525 | py | import time
t9 = time.strptime('2019-05-15 09:00:00', '%Y-%m-%d %H:%M:%S')
t12 = time.strptime('2019-05-15 12:00:00', '%Y-%m-%d %H:%M:%S')
with open('mylog.txt') as fobj:
for line in fobj:
t = time.strptime(line[:19], '%Y-%m-%d %H:%M:%S')
if t > t12:
break
if t >= t9:
... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
c7d28a4fe1f480a771b61ed94b499e75064b41c0 | abd5d19050e1c6eaf9fb0a760533177be6bdf8ad | /Chp 15. Webcam Face Detection/cam.py | f7009acd342a1f9addfaed7a416c246671767371 | [] | no_license | Dodant/practical-opencv | 9184899b7a0484bb8ca258de6e4906839c27861c | 12d2dbe80791a1b8fec684640fe3975c58522b7c | refs/heads/master | 2021-02-18T01:49:50.935088 | 2020-04-02T06:29:09 | 2020-04-02T06:29:09 | 245,146,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | from pyimagesearch.facedetector import FaceDetector
import imutils
import argparse
import cv2
ap = argparse.ArgumentParser()
# ap.add_argument("-f", "--face", required=True, help="Path to where the face cascade resides")
# ap.add_argument("-v", "--video", required=True, help="Path to the (optional) video file")
args =... | [
"ohho0728@naver.com"
] | ohho0728@naver.com |
63bd2a6cd2928deb0aa5f613631c38f4e76fbd4f | 5be5d40aef67d9aac7dd4705e537af64d2d9ef40 | /Ch7/restaurant_seating.py | 4b61d89b10545f180e23b024e27b43b18079ae7d | [] | no_license | ajfm88/PythonCrashCourse | 389ed422943d5caded10300b13fae5e4778f477c | e78a139edddd687257afc5ae7fd2b606d9568674 | refs/heads/master | 2023-06-16T16:13:46.296824 | 2021-07-07T06:59:36 | 2021-07-07T06:59:36 | 333,620,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #Write a program that asks the user how many people are in their dinner group.
#If the answer is more than eight, print a message saying they'll have to wait for a table.
#Otherwise, report that their table is ready.
guests = input("How many people are there in your dinner group?: ")
guests = int(guests)
if guests > ... | [
"ajfoucaultmo@mail.usf.edu"
] | ajfoucaultmo@mail.usf.edu |
1586616caf1191874f3dfdf0a908af9d390cbd3e | 54eeab2befaa4bf0d96a7bd18110900f8f32c766 | /other/sql/sqlite.py | cc06497fe5586ae73d672cbedf67aa19174a1c04 | [] | no_license | w8833531/mypython | 40239ada90426db73444ee54e6e79decc6c9fc9b | 45ed12a611efd33838766e7bd73840e6d8b73e28 | refs/heads/master | 2021-01-19T06:59:09.790525 | 2017-10-18T06:20:43 | 2017-10-18T06:20:43 | 87,513,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#由于SQLite的驱动内置在Python标准库中,所以我们可以直接来操作SQLite数据库。
#要操作关系数据库,首先需要连接到数据库,一个数据库连接称为Connection;
#连接到数据库后,需要打开游标,称之为Cursor,通过Cursor执行SQL语句,然后,获得执行结果。
#导入SQLite 驱动
import sqlite3
try:
# 连接到SQLite数据库
# 数据库文件是test.db
# 如果文件不存在,会自动在当前目录创建:
conn = sqlite3.connect('test.db')
curs... | [
"w8833531@hotmail.com"
] | w8833531@hotmail.com |
977abdd38f889b2f3c099b3ed2094d0a74a80e64 | d5f34a573256944cffd9f89e646f38cd3c4a8207 | /bin/module/Name.py | 90832e8376c5c9f4da430940bd1930045bcd7b95 | [
"MIT"
] | permissive | Skadisson/phoenix | 03df6064ec6215472721753c5d09040382966ab6 | 5026088a224b71a6c3d51b5f921cf45ef4ff7327 | refs/heads/master | 2021-12-20T05:35:06.295600 | 2021-12-07T14:50:28 | 2021-12-07T14:50:28 | 217,016,873 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from bin.service import Logger, UserStorage
class Name:
def __init__(self):
self.logger = Logger.Logger()
def run(self, name):
result = {
'message': '',
'success': True,
'error': None
}
try:
user_storage = UserStorage.UserStora... | [
"skadisson@mailbox.org"
] | skadisson@mailbox.org |
f4f0aeaaed3e82afde0e0b60f90c9241c94be569 | ec66135cd72a7a7dc115a48402e71f31fde54330 | /database.py | 9208a9f4e5efe41f403e8568f4d8eeebad55edd7 | [] | no_license | ghiffaryr/Scraper-Berita | 1efa8c231e2dc2843f96835166d84a886b383d99 | f222c9f1bc30d89b2f36bb905a0c56fa56a73b8b | refs/heads/main | 2023-05-22T00:29:29.378378 | 2021-06-09T15:52:25 | 2021-06-09T15:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | import sqlalchemy
import os
def init_connection_engine():
db_config = {
# [START cloud_sql_mysql_sqlalchemy_limit]
# Pool size is the maximum number of permanent connections to keep.
"pool_size": 5,
# Temporarily exceeds the set pool_size if no connections are available.
"ma... | [
"isamujahid.im@gmail.com"
] | isamujahid.im@gmail.com |
0051e201f83b7918036521db7a336b590e2f1a20 | e7291fab42533b944bf7b97df5f0f57428784c43 | /web2attack/w2a/modules/info/reverse_ip.py | f4a348db5dd907bdba5a2b638795342a1d06f4a5 | [] | no_license | carson0321/Py-Web-vul | 10a60a393b212ba243146af30d852fb7c656dc03 | 4a66a66096b7393aa048b18cf6c1a4737c60c4cd | refs/heads/master | 2022-11-23T01:25:00.958775 | 2017-03-12T13:45:19 | 2017-03-12T13:45:19 | 84,727,875 | 1 | 2 | null | 2020-07-24T07:22:43 | 2017-03-12T13:31:43 | Python | UTF-8 | Python | false | false | 10,563 | py | # modules/reverse_ip.py
#
# Copyright 2012 Kid :">
from w2a.core.templates import Templates
from w2a.lib.net.http import HTTP
from w2a.config import CONFIG
from w2a.lib.thread import Thread
from w2a.lib.dbconnect import IPInSerter, getDomain, getIP
from w2a.lib.file import FullPath, ReadFromFile, AppendFile
from re... | [
"carson.wang@droi.com"
] | carson.wang@droi.com |
423634247b347229c7434b61802502f83d82c1ff | b61163a79208557226f1868478693c314972d436 | /Project_MNIST_Miniflow/OR.py | f58b3e0119db55d28b81dcc783d31b8f207acbc1 | [] | no_license | nonlining/DeepLearningFoundation | e2fc5e5690e29b3ead68ca64d47e9fd8aa293edf | 5614c4fdad194661e7837a4bf109551bf9e8551a | refs/heads/master | 2022-11-12T09:46:33.886504 | 2017-12-12T14:37:59 | 2017-12-12T14:37:59 | 81,570,144 | 0 | 1 | null | 2022-10-26T13:56:56 | 2017-02-10T13:57:18 | HTML | UTF-8 | Python | false | false | 1,473 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: MJWang
#
# Created: 02/11/2017
# Copyright: (c) MJWang 2017
# Licence: <your licence>
#-------------------------------------------------------------------------------
import nump... | [
"nonlining@gmail.com"
] | nonlining@gmail.com |
7394010400225008bcf0ebefdea0242ca3765d3e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/1509.py | 985390ba9c8945569ce4096912a9a40962d7ecaf | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | from string import split
f1=open('B-large.in','r')
f2=open('out.txt','w')
t=int(f1.readline())
for i in range (t):
k=0
s=f1.readline()
data=list(map(int,s.split(' ')))
u=data[1]+0
for j in range(data[0]):
if data[j+3]==0 or data[j+3]==1:
if data[j+3]>=data[2]:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
837d8f52574c6bab972f540869f2bca52b2bf000 | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /qiskit/circuit/library/boolean_logic/quantum_or.py | 0864affb7958edffe5050f3c8d54af82bdc515be | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 3,664 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
670480ff5dfa0c5afbda89a5114d85d8cdcdb17d | 998e595768b290c06823278bd9fd9f33f569bcef | /multilang/resources/test.py | abc72a44b7a3354d4a03b4dfbc0ead4ae7c46dfd | [] | no_license | devbas/realtime-analytics-public-transport | bfdd8e5531a1ca8d15cf9029f511901998eeab77 | 1bb05f9243ced39ca4e6a798758b2d441a339424 | refs/heads/master | 2021-02-26T11:33:28.620428 | 2020-03-06T21:44:05 | 2020-03-06T21:44:05 | 245,521,710 | 0 | 0 | null | 2020-03-06T21:44:06 | 2020-03-06T21:42:04 | Python | UTF-8 | Python | false | false | 89 | py | #!/usr/bin/env python
import sys
while True:
line = sys.stdin.readline()
print(line) | [
"bastiangeneugelijk@me.com"
] | bastiangeneugelijk@me.com |
4642c3af95c961a08c5a33c1113ba484420e0887 | 5f51709bb1a8fd1e120e1aaaaaf655379d44e0e7 | /venv/bin/flask | 9f21f568c130daf42c7c3b7e8935124c0b5ed910 | [] | no_license | amruthasanthosh0/todomanager | f58d026fd300db759104a01a2a55837f56f05082 | b37c241718ef98bfe19fc6a49d91b8a8f55f121f | refs/heads/main | 2023-06-26T06:07:00.515518 | 2021-07-31T07:35:13 | 2021-07-31T07:35:13 | 391,285,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | #!/home/amrutha/todo/api/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"amrutha123santhosh@gmail.com"
] | amrutha123santhosh@gmail.com | |
4ae9d4cd17ad18027fa1dffe901e6463804b40c4 | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/python/typecheck/mypy/skip_field.py | 672a681eeba2e506b35d3c2f51bbadb683934354 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 897 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.python.target_types import (
PythonSourcesGeneratorTarget,
PythonSourceTarget,
PythonTestsGeneratorTarget,
PythonTestTarget,
PythonTestUtilsGenerator... | [
"noreply@github.com"
] | pantsbuild.noreply@github.com |
873e739ab0eea0d3486e0e87c7319848bca001ad | 9cd923d5c0c3c8252f27ff21b84433aa7e09b60e | /user/tests.py | 6e1933ff6dee3f92ba34ba6cd8c91f6afb254329 | [] | no_license | Muxazuxa/freelance | 45d66708da44a2c20385502f9f0f00b0f830bfcf | b18e8052f818a1c05734116186b5724a4d7d6b25 | refs/heads/master | 2022-06-17T02:09:42.717739 | 2019-07-28T16:44:59 | 2019-07-28T16:44:59 | 190,109,963 | 0 | 0 | null | 2022-05-25T02:27:57 | 2019-06-04T01:49:19 | Python | UTF-8 | Python | false | false | 1,062 | py | from django.test import TestCase
from django.shortcuts import reverse
from django.test import Client
class UserProfileTest(TestCase):
def setUp(self):
self.client = Client()
self.client.post(reverse('users:list'), {'username': 'test', 'email': 'test@mail.ru', 'password': '12345'})
self.cli... | [
"muxazuxa@mail.ru"
] | muxazuxa@mail.ru |
2ca0d2411629882a527b6fd48b184d6699705bea | 55bed1d892c8eecc91d2c49711f08871c11fdbe4 | /web_app/views.py | a49ab48c2fa095a21d1bfa273243cff4eda18606 | [] | no_license | RydhaValenda/Website-Using-Flask-Admin1 | 7c2a32c42ec918a10d2e389ef84f6a6d678f3ca3 | 2076769bd1ac0288e199f7079011ba129fe36af9 | refs/heads/master | 2022-06-20T21:55:59.236219 | 2020-05-03T09:24:20 | 2020-05-03T09:24:20 | 259,565,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | from flask import request, url_for
from flask_admin import AdminIndexView
from flask_admin.contrib.sqla import ModelView
from flask_login import current_user
from werkzeug.utils import redirect
from wtforms import TextAreaField
from wtforms.widgets import TextArea
class CKEditorWidget(TextArea):
def __call__(self... | [
"ryval.study@gmail.com"
] | ryval.study@gmail.com |
ab14c4d4a9d8c432ae24647c18b9e98e4968ece0 | 90be755a741d6c93dd59d4acef8b27b4cf93ff54 | /src/elsia/scripts/get_abs_ori.py | 8decc0c43e2f8716f8f28629c4b7ed417de7cc24 | [] | no_license | karry3775/Elsia_ws | 05aa5786a6f3f64b70c7ceafead6d72d4ca18bab | 031f8006e9a439d9947be5ed288a666f20fca3a7 | refs/heads/master | 2023-02-21T05:21:10.842475 | 2021-01-23T14:58:57 | 2021-01-23T15:21:46 | 326,032,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | #!/usr/bin/env python
import rospy
from sensor_msgs.msg import Image
from tf.transformations import quaternion_from_euler, euler_from_quaternion
from cv_bridge import CvBridge, CvBridgeError
from nav_msgs.msg import Odometry
import cv2
import numpy as np
import math as m
# initialize the node
rospy.init_node("get_abs_... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
01abb829ed3171dd9ab444b05d782bc3a26e2d9b | 334e7e8b9162cd74e1c9dd115a6e293f01051454 | /src/videos/views.py | 0215dd18336157f194698c4c49d03bb9bff38c8a | [
"MIT"
] | permissive | contactr2m/remote_repo | dec0dff9c299ab665cd36642a757ae9fa35950c3 | 5665c55b794929fd40645264c5c149e64d172097 | refs/heads/master | 2021-01-10T13:13:47.359357 | 2016-04-26T14:23:49 | 2016-04-26T14:23:49 | 53,814,820 | 0 | 0 | null | 2016-03-20T19:37:37 | 2016-03-14T00:13:06 | Python | UTF-8 | Python | false | false | 170 | py | from django.shortcuts import render
from django.views import generic
# Create your views here.
class VideoPage(generic.TemplateView):
template_name = "videos.html"
| [
"contactr2m@gmail.com"
] | contactr2m@gmail.com |
3a7a4e0fc74d98a3d4bb90e7220f2bca91eaa4d0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/239/54617/submittedfiles/lecker.py | e3ba12e1ff6dc558621a8f2f17a217e1787cc426 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
from __future__ import division
def lecker (lista):
cont=0
for i in range (0,len(lista),1
if i==0:
if lista[i]>lista[i+1]:
cont=cont+1
elif i==(len(lista)-1):
if lista[i]>lista[i-1]:
cont=cont+1
else:
if lista[i]>lis... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4e752d4ff716073c6fb85e0f1f876a69a596e0af | 634f86d2e9a534566b4e120c986c079ffb246804 | /relevate_web_app/apps/profiles/models/user_models.py | f0a7aa99c6659f50c12aa50697a6032381edca4b | [] | no_license | jhock/Relevate | dcbb32a11c44766a55291dec1ed8b1f68fb32236 | 8296c49dfa8771b47965c24b6b49a2b6e8ace6cf | refs/heads/master | 2023-01-19T14:13:56.756661 | 2019-08-12T22:19:02 | 2019-08-12T22:19:02 | 105,825,724 | 1 | 0 | null | 2023-01-13T22:30:25 | 2017-10-04T22:31:12 | JavaScript | UTF-8 | Python | false | false | 1,625 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from .contributor_model import ContributorProfile
from ...contribution.models import Topics
class UserProfile(models.Model):
user = models.OneToOneField(User)
confirmed = models.BooleanField(default=False... | [
"joshua.a.hock@gmail.com"
] | joshua.a.hock@gmail.com |
a06dff71a67cdd28e24856b0673ae851213d50df | 6b6361645b19cf0aa97b7372c19ff9f72ca45041 | /Open Sources/code-for-blog-master/pygame-3D/5_Using_matrices/displayWireframe.py | a026594df2c541a1e24b59c37ff578ec6d11375b | [] | no_license | ssy05468/2018-OOP-Python-lightbulb | 43e1c72fd9ec00f85cf1f0fdaca98a61a0cb603a | 3dd59e2f37173d92f5f1870729ef32e25a5b33f7 | refs/heads/master | 2020-04-06T08:26:59.805006 | 2019-06-05T01:08:42 | 2019-06-05T01:08:42 | 157,305,036 | 2 | 1 | null | 2018-12-07T20:13:33 | 2018-11-13T02:00:54 | Python | UTF-8 | Python | false | false | 3,722 | py | import wireframe as wf
import pygame
import numpy as np
key_to_function = {
pygame.K_LEFT: (lambda x: x.translateAll('x', -10)),
pygame.K_RIGHT: (lambda x: x.translateAll('x', 10)),
pygame.K_DOWN: (lambda x: x.translateAll('y', 10)),
pygame.K_UP: (lambda x: x.translateAll('y', -10)),
pyg... | [
"34187131+magicjunha@users.noreply.github.com"
] | 34187131+magicjunha@users.noreply.github.com |
3ec6bfaea601759fd9ce090e2468cd49049e454d | 88cfeb8f7076450e7a38d31ab2d11883c1818c8d | /net/dpn92.py | bee4297159590c50e4ca40b1570569426a17eb3b | [] | no_license | ZQPei/Alibaba_Cloud_German_AI_Challenge_for_Earth_Observation | 4e5a127c12e0c02ed1914ab000a131e1a7f7d844 | c2efb32763af0a56a3a7ecb9d83c0744f71d5c14 | refs/heads/master | 2020-04-26T04:31:57.731178 | 2019-02-17T01:10:55 | 2019-02-17T01:10:55 | 173,305,034 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,563 | py | '''Dual Path Networks in PyTorch.'''
import torch
import torch.nn as nn
import torch.nn.functional as F
class Bottleneck(nn.Module):
def __init__(self, last_planes, in_planes, out_planes, dense_depth, stride, first_layer):
super(Bottleneck, self).__init__()
self.out_planes = out_planes
sel... | [
"dfzspzq@163.com"
] | dfzspzq@163.com |
24f4ad0bc75271d08496072c0885072c734d3990 | 5b1ff6054c4f60e4ae7315db9f20a334bc0b7634 | /Launchkey_MK2/Colors.py | 6f5028d35ea48a5ef4fb11c613cb1206a59fc846 | [] | no_license | maratbakirov/AbletonLive9_RemoteScripts | 2869122174634c75405a965401aa97a2dae924a1 | 4a1517c206353409542e8276ebab7f36f9bbd4ef | refs/heads/master | 2021-06-05T14:38:27.959025 | 2021-05-09T11:42:10 | 2021-05-09T11:42:10 | 13,348,327 | 3 | 4 | null | 2016-10-16T13:51:11 | 2013-10-05T16:27:04 | Python | UTF-8 | Python | false | false | 4,566 | py | #Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchkey_MK2/Colors.py
from _Framework.ButtonElement import Color
from .consts import BLINK_LED_CHANNEL, PULSE_LED_CHANNEL
class Blink(Color):
def __init__(self, midi_value = 0, *a, **k):
su... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
92863297ffa311b51dc9f97b666ff2df19874bba | 62f10bb996b14777001da4bd3f27428e0d0010d8 | /Flask_blog/flaskblog/__init__.py | 9f61ec9055774dc52d7552dfa913e7a02cd79949 | [] | no_license | Hardik-Ghori/Blog-using-Flask | d3ba0022ad79bd16d93af2cff665a086b62dbe3d | 9f0b87beffcd09c8e1a65ae1917f5f1c432bbb4c | refs/heads/main | 2023-03-11T02:51:46.440657 | 2021-03-02T17:05:26 | 2021-03-02T17:05:26 | 343,848,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
app = Flask(__name__)
app.config['SECRET_KEY'] = 'fe65090ff8a3280dec4e4f0010526fa6'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
from flaskblog imp... | [
"noreply@github.com"
] | Hardik-Ghori.noreply@github.com |
e3338b3c6f281013c90ce45537f49a37b900d982 | b2f03f8bf5974baef7f56ebeb9a5f4bc00bb3a04 | /aristaflow/remote_iterator_handler.py | 9755d766cd379f8342099d3ba9ecc31b0d8d289e | [
"MIT"
] | permissive | riuns/aristaflowpy | 14d79d9a03c5dea1e3b49425aeb28b0a592fe448 | 58ad48310366484379fc519d649c564c762f89f9 | refs/heads/main | 2023-06-18T22:24:10.561605 | 2021-06-17T09:34:34 | 2021-06-17T09:34:34 | 385,566,380 | 0 | 0 | MIT | 2021-07-13T10:35:36 | 2021-07-13T10:35:35 | null | UTF-8 | Python | false | false | 1,408 | py | # coding: utf-8
# Default Python Libraries
from typing import List, Type
# AristaFlow REST Libraries
from aristaflow.service_provider import ServiceProvider
class RemoteIteratorHandler(object):
"""
Utilities for handling remote iterators
"""
_service_provider: ServiceProvider = None
def __init_... | [
"kevin.goeser@aristaflow.com"
] | kevin.goeser@aristaflow.com |
fb2c1991f3e1461bc18cd5e916c0b0efc55a91b4 | b50a760fa751b03afc9fcf7a938fc91a90b229c7 | /sensor/bin/surfids-check.py | e92b2ab8178c476bd3a66a5091c56d5811fc58ff | [] | no_license | cyberintelframework/sensor | 9e81fc7dea378c4be978689a758845c1191a5024 | b6ef69fe2bf4f4a26af505cdaba579539f2dffee | refs/heads/master | 2021-01-01T19:33:42.845958 | 2012-10-18T14:46:18 | 2012-10-18T14:46:18 | 38,752,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | #!/usr/bin/env python
import logging
import os
from sensor import altlog
from sensor import functions
from sensor import locations
cmd = "ifconfig -a | grep ^br | wc -l"
chk = os.popen(cmd).readline().rstrip()
if chk == "0":
logging.debug("Tunnel status: disabled")
else:
logging.debug("Tunnel status: enabled... | [
"github@nabber.nl"
] | github@nabber.nl |
00213373c71f2901f04b9c3f250dfd0d591ee90b | bfd41fc543f6dbfc821341522cf8e7a9d2e34ce8 | /venv/lib/python2.7/site-packages/astroid/scoped_nodes.py | f9ec7b774f86c4821ff457b8eb19100ab3217d62 | [] | no_license | MaraKovalcik/Flask | 783243560ead637a381f76d3893da2b212eff898 | 1ff8413f3551b051f8e6c76db6cf402fc7428188 | refs/heads/master | 2021-01-22T09:09:16.165734 | 2015-02-24T16:57:14 | 2015-02-24T16:57:14 | 31,268,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,465 | py | # copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of astroid.
#
# astroid is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
#... | [
"mara.kovalcik@gmail.com"
] | mara.kovalcik@gmail.com |
331b189e0343621baccb34a048bf215ef7de4929 | bd00b3ada3097671771b2b37e49f3459023cae5d | /models/CNNs/p3d/p3d.py | b43169e5635de448229a9eb889492c7a21bd8b60 | [] | no_license | jasonkli/cs224n-project | 92d3f97625c6e5b7754ef471ed08a54835359983 | 05d5607bf5b9011e43496a30098a6643232a5467 | refs/heads/master | 2020-04-26T01:21:58.494887 | 2019-03-29T04:51:47 | 2019-03-29T04:51:47 | 173,201,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,561 | py | from __future__ import print_function
import torch
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
from torch.autograd import Variable
import math
from functools import partial
__all__ = ['P3D', 'P3D63', 'P3D131','P3D199']
def conv_S(in_planes,out_planes,stride=1,padding=1):
# as is descr... | [
"jasonkli@stanford.edu"
] | jasonkli@stanford.edu |
c4f8406bcf2bcb16312ae99e077dfae8f7b74118 | c16fb74fd2fd69d65cd813a3d23d5e7b61f9808f | /xueqiu/scrape_callback2_p3.py | 68dc6122a14157b3fe762554b9739ee400a06198 | [] | no_license | nightqiuhua/selenium_crawler_xueqiu | 9d3f9d10b2fdb5a479269e6d14cc52c97945ec31 | 0c68eeed7033c28f81def5f94351f2fbb42ca079 | refs/heads/master | 2020-03-20T17:54:53.943464 | 2018-06-16T13:36:45 | 2018-06-16T13:36:45 | 137,568,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import re
import pymongo
from pymongo import MongoClient,errors
class Scrape_Callback:
def __init__(self):
self.db = pymongo.MongoClient("localhost", 27017).cache
def __call__(self,html):
#html = Downloader(url).decode('utf-8')
data_regx = re.compile('<pre style="word-wrap: break-word; white-space: pre-wrap;... | [
"208408@whut.edu.cn"
] | 208408@whut.edu.cn |
37493f770591ef660a442812b1c6032e2a27f92b | 01be310880d1df1d4207daa2e2c7bfaa9c065952 | /calC.py | 368076ea7cad2da9f18028d3b434c6105444f9eb | [] | no_license | pathakdhruv/GalDynPsr_0 | 62cb4e84e38ca305c38c5f1797ad8dedc97ea4e1 | a36753767c7cc9940fbea4de11bc4fbe552c8095 | refs/heads/master | 2021-08-30T09:47:40.524768 | 2017-12-17T09:52:00 | 2017-12-17T09:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | from __future__ import print_function
import math
import numpy as np
import parameters as par
from ExcessZ import g
from Excesspl import aplmod
from Excesspl import Rpkpcfunc
from Excesspl import Vprat
from err_NT import errNT
from err_excesspl_Reid import err_Reid14
def calc(bdeg, sigb, ldeg, sigl, dkpc, sigd, Har... | [
"noreply@github.com"
] | pathakdhruv.noreply@github.com |
b1dde0477b45dffe82a9f680f72b5dc5f910eee9 | 3eb4d64a8bb0bc240a2ef189724f4d51b5275eac | /heltour/tournament/migrations/0106_auto_20161031_0546.py | 059d9943ff0cb31240b7a8a561df84ba822d9f3b | [
"MIT"
] | permissive | brucemubayiwa/heltour | c01cc88be7f86dce8246f619d7aa2da37e0e0ac2 | fa4e9b06343acaf6a8a99337860e1ad433e68f6b | refs/heads/master | 2021-01-23T19:59:04.099215 | 2017-09-06T03:34:31 | 2017-09-06T03:34:31 | 102,840,526 | 1 | 0 | null | 2017-09-08T08:53:30 | 2017-09-08T08:53:30 | null | UTF-8 | Python | false | false | 2,839 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-10-31 05:46
from __future__ import unicode_literals
from django.db import migrations
import django.db.models.deletion
import select2.fields
class Migration(migrations.Migration):
dependencies = [
('tournament', '0105_seasonplayer_final_rating')... | [
"ben.cyanfish@gmail.com"
] | ben.cyanfish@gmail.com |
cab1ad315dd1080096ab4bf7cb6ea70f947a2eac | 2d57a05c549be8cc43cef84f7959193db7f8ead8 | /5_Peer_Graded_Assignment_Questions (1).py | 3e5615753fe47546c34b433ea9451c787ab6b28b | [] | no_license | Gagan8533/pandas-dash | b526a49851495694e1e427619e6210d7dc947b01 | e6cfb2988375d9906af573ce8bf447dfcde33685 | refs/heads/main | 2023-07-18T00:36:40.135049 | 2021-08-20T19:15:15 | 2021-08-20T19:15:15 | 398,377,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,133 | py | # Import required libraries
import pandas as pd
import dash
import dash_html_components as html
import dash_core_components as dcc
from dash.dependencies import Input, Output, State
import plotly.graph_objects as go
import plotly.express as px
from dash import no_update
# Create a dash application
app = dash.Dash(__n... | [
"noreply@github.com"
] | Gagan8533.noreply@github.com |
df62e1d9eca4e326139aca3e09b2b263a8f172c2 | 0e2484fd7660c0a21e4f2ac199b0cc6737f19cfa | /api_tag/api_tag/settings.py | b613bbf56b628b4e6e77f5b120cd475c61008640 | [] | no_license | codesree/tag-build | 63bfa32c6036f78f7aa7659920369a2e51c3f892 | 192f305df88f08606b62f111152dfebf7f6f4063 | refs/heads/master | 2020-03-22T20:34:10.474808 | 2018-09-16T16:05:40 | 2018-09-16T16:05:40 | 140,610,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | """
Django settings for api_tag project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
im... | [
"srekanth.me@gmail.com"
] | srekanth.me@gmail.com |
6b723c4ecce3eb9878dfd0f11f0ff48ecb26c830 | f04d1f900583708f54ff889e0cfce4c5aeb83030 | /clustering/prepare.py | a4501944b0a1773fbca16017cdd29cb4f3596c44 | [] | no_license | chemiczny/neural_networks_neupy | 9facd09bc21407e7238c27dde7dafe5419b16d5a | bbf234b20140a4b24a2b897a35471bf1703461af | refs/heads/master | 2020-05-06T12:14:19.646643 | 2019-04-11T13:27:31 | 2019-04-11T13:27:31 | 180,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 8 16:34:42 2019
@author: michal
"""
from os.path import isdir, join
from os import mkdir, remove
from glob import glob
from SOFMgenerator import SOFMgenerator
from dataPreprocessor import DataPreprocessor
inputDir = "inputs"
if not isdir(inputDi... | [
"glanowskimichal@gmail.com"
] | glanowskimichal@gmail.com |
42bcc717daa52c76b623b77adb64ac1e50d8fe60 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/py00033SpiderDeath.py | 6fd5b9134c2358a8544c5ef441100d8e4da50196 | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from toee import *
from utilities import *
from combat_standard_routines import *
def san_dying( attachee, triggerer ):
if should_modify_CR( attachee ):
modify_CR( attachee, get_av_level() )
if (attachee.map == 5069):
game.global_vars[3] = game.global_vars[3] + 1
if (game.party_alignment == LAWFUL_NEUTRAL or ... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
34eae03af1fab17696208689483285aabf0088d4 | 8c82443ac6f24f21509a73392a8bba6b49f12f88 | /timepass.py | ddd73684ffda985025898a64ce6c4931b37dcc3b | [] | no_license | meetparmar002/Optimization-Lab | 2b7ec211d2f7bfbbd4a482c0e64c14b53e870ecb | 95ba34f7e3ced33e2b5961143738174d65ab49cc | refs/heads/master | 2023-01-19T03:22:42.642312 | 2020-11-25T19:15:51 | 2020-11-25T19:15:51 | 306,827,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import numpy as np
import matplotlib.pyplot as plt
a = [[1, 2], [3, 4]]
print(a)
b = []
for i in a:
b.append(i.copy())
a[0][0] = 5
print(a)
print(b)
| [
"201801195@daiict.ac.in"
] | 201801195@daiict.ac.in |
29643c3046fd8c594d777bdbc9bb75858a56e9ef | a7211f3f0ef6cbb96a796e502062656681dcdf9b | /run_rle.py | 744e4c9379f0be2a0affd1c521af8540da053fae | [
"MIT"
] | permissive | chplushsieh/carvana-challenge | fdc3e78966a37f95f3e60a179a511705cc0da55f | cba536657714df7c1c33150b92e3e152195b68db | refs/heads/master | 2021-01-01T19:40:08.442482 | 2017-10-05T17:53:29 | 2017-10-05T17:53:29 | 98,639,822 | 24 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | import time
import argparse
import util.ensemble as ensemble
import util.submit as submit
import util.const as const
import rle_loader
def apply_rle(pred_dir, rle_loader):
img_rles = {}
for i, (img_name, rle) in enumerate(rle_loader):
iter_start = time.time()
assert len(img_name) == 1
... | [
"chplushsieh@gmail.com"
] | chplushsieh@gmail.com |
3e4424a55a0ac8f36a6a0779ff5a7059b5f1c270 | a2da441808e9db76234cd50d8cae10a276cbb534 | /virtualenv/bin/pip3 | 4208998c842ed10a629c16b30febaf7ac5f62206 | [] | no_license | yakul-crossml/django_project | cad8a8f9ddb45d780cbc587cbea1e81e8766f474 | 7c8520aac6e667054e4d2443454fdb5b08920fd0 | refs/heads/master | 2023-07-25T10:59:01.759959 | 2021-09-02T05:56:24 | 2021-09-02T05:56:24 | 397,568,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/home/yakul/Desktop/django_project/virtualenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yakul@crossml.com"
] | yakul@crossml.com | |
2819548a0f234a61815765acfeb1d9764740781f | 24ea510c6f5356a8b55dfbcb5f01420130c8c67a | /src/predict.py | fda2bc1e644a8c87ad8e7c4c402c91d40fa0e2f2 | [] | no_license | maestro73/OilandGasAssetEvaluation | eee4c37400f60d1f8c41792fda5b859435f7b86e | d882ba571264864f0f4ffc9a438ef88e161bcf73 | refs/heads/master | 2021-09-08T13:45:47.087030 | 2018-03-10T01:15:01 | 2018-03-10T01:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,611 | py | from sklearn.model_selection import train_test_split,cross_val_score
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import mean_squared_error, r2_score
from catboost import CatBoostRegressor
import numpy as np
import pandas as pd
import seaborn as sns
import pickle
import matplotlib.pyplot as plt... | [
"jccarrigan@gmail.com"
] | jccarrigan@gmail.com |
23241518e94ae0d5c41c03ff56152a117f302c17 | d7ec67a5ba315103fa6a6bae6dc045f1fecf7add | /docs_master_tensorflow/keras/tf_dqn_simple_master/dqn_agent.py | d0dc2cccfa0c1fbf14d21175a9b41c3605ff96e2 | [] | no_license | munezou/PycharmProject | cc62f5e4278ced387233a50647e8197e009cc7b4 | 26126c02cfa0dc4c0db726f2f2cabb162511a5b5 | refs/heads/master | 2023-03-07T23:44:29.106624 | 2023-01-23T16:16:08 | 2023-01-23T16:16:08 | 218,804,126 | 2 | 1 | null | 2023-02-28T23:58:22 | 2019-10-31T15:57:22 | Jupyter Notebook | UTF-8 | Python | false | false | 4,247 | py | from collections import deque
import os
import numpy as np
import tensorflow as tf
class DQNAgent:
"""
Multi Layer Perceptron with Experience Replay
"""
def __init__(self, enable_actions, environment_name):
# parameters
self.name = os.path.splitext(os.path.basename(__file__))[0]
... | [
"kazumikm0119@pi5.fiberbit.net"
] | kazumikm0119@pi5.fiberbit.net |
341121855f7de7105622a140ad0326dd3ae1e54c | b139a0c76700aa6ef3c972bdbbefc862d44fe7cb | /string/aa.cpp | 1ee4ddfb04ae9adc6cc45f35b5e2a9759ff77755 | [] | no_license | sk10salman/dynamic-programming | d1b7d694f376f3972181a2887317b9f213a36d20 | 31fd22b120f785a2a1070ea0d33dc3e6eda8a235 | refs/heads/master | 2021-04-18T01:31:27.797931 | 2020-06-09T21:09:31 | 2020-06-09T21:09:31 | 249,493,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | cpp | // C++ program to find maximum dot product of two array
#include<bits/stdc++.h>
using namespace std;
// Function compute Maximum Dot Product and
// return it
long long int MaxDotProduct(int A[], int B[],
int m, int n)
{
// Create 2D Matrix that stores dot product
// dp[i+1][j+1] stores product consid... | [
"noreply@github.com"
] | sk10salman.noreply@github.com |
2245001287f01d37fdb2558b53963059c16d91d1 | 02818cb241a117f7bfda5462744b0fb8e2f69666 | /core/models.py | c3cd8c5ec3ab20863777a7fe9e6dbcea82007b43 | [] | no_license | Oswaldgerald/clients | 4127b1440da650b91149d44d286e46b83c869202 | 5ffeafe5d7562471384fc14cec7c651fa1748ac3 | refs/heads/master | 2020-03-23T08:41:08.352313 | 2018-11-16T07:25:18 | 2018-11-16T07:25:18 | 141,340,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | from django.db import models
class ID(models.Model):
number = models.CharField(max_length=50)
def __str__(self):
return self.number
class Client(models.Model):
name = models.CharField(max_length=70)
last_name = models.CharField(max_length=72)
age = models.IntegerField()
salary = mod... | [
"moswaldgerald@gmail.com"
] | moswaldgerald@gmail.com |
b352068896dbae835d20da90ab54de2d4f34fec9 | d2eb7bd335175edd844a3e6c1c633ee0dc2dbb25 | /contests_atcoder/arc017/arc017_c.py | 80b806e3389e7dfd81e012229a4a9723cc08f1d5 | [
"BSD-2-Clause"
] | permissive | stdiorion/competitive-programming | 5020a12b85f1e691ceb0cacd021606a9dc58b72c | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | refs/heads/main | 2023-03-27T01:13:42.691586 | 2021-03-08T08:05:53 | 2021-03-08T08:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from bisect import bisect_left, bisect_right
n, x = map(int, input().split())
w = [int(input()) for _ in range(n)]
pt1 = w[:16]
pt2 = w[16:]
w1 = []
for bit in range(1 << len(pt1)):
weight = 0
for i in range(len(pt1)):
if (bit >> i) & 1:
weight += pt1[i]
w1.append(weight)
if not len(... | [
"itkn1900@gmail.com"
] | itkn1900@gmail.com |
215a011898e29aea78aa8531f6aadbd936358259 | d68c9105c03bef9dce2e438b5b91c2bdd0d856e2 | /[9095] 1, 2, 3 더하기.py | 308b6ff62e407f5494c58d595b9839b3addcf2e6 | [] | no_license | newfull5/Baekjoon-Online-Judge | 2a2dd1080af234551ecab6277968fedeb170a1f4 | 00d04f6c21080e3ad7c0fb06ca311f2324a591c0 | refs/heads/master | 2023-06-29T21:05:07.539911 | 2021-07-16T09:23:46 | 2021-07-16T09:23:46 | 267,557,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | def Reculsive(n):
global answer
if n >=3:
Reculsive(n-3)
if n >=2:
Reculsive(n-2)
if n >=1:
Reculsive(n-1)
if n == 0:
answer += 1
return
for _ in range(int(input())):
answer = 0
Reculsive(int(input()))
print(answer)... | [
"noreply@github.com"
] | newfull5.noreply@github.com |
77a0588a1e9e67284d23379d6796e3d1c059dc1c | 7e1c78c1a1b486e211c2a38ac60dbda46e7f99f7 | /orders/backend/models.py | 8b0e2e3d8b8e0a0920130e5ad17f120266edb59d | [] | no_license | andyAG24/pd-diploma | 7c3dca8f326f44e3d8c5d9f554dcadf54c249ed0 | 64b10c24679fea25b617c39f37004a463e30f6d3 | refs/heads/master | 2023-01-31T00:57:04.717490 | 2020-12-09T21:32:02 | 2020-12-09T21:32:02 | 300,041,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,665 | py | from django.db import models
from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.utils.translation import ugettext
from django_rest_passwordreset.tokens import get_token_generator
S... | [
"andy.ag.24@gmail.com"
] | andy.ag.24@gmail.com |
9262d9b3881e896a97b190c2ea16eeea43d24d9c | 958c19436632b41b43c9462337d13e836935a9da | /E01_python_for_data_analysis/04_NumPy/0403_numpy_cal.py | 24af0cf6e7c79bf551a52bc51df3c822da19b676 | [] | no_license | Vincent105/ML | 4752b2a99c124e01e40e383a0177fb5d82115cb6 | fa926caabf83628b3fb7d74cee02a3e923a917f7 | refs/heads/master | 2020-12-29T18:21:50.144711 | 2020-10-12T09:56:41 | 2020-10-12T09:56:41 | 238,697,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import numpy as np
arr = np.array([[1., 2., 3.], [4., 5., 6.]])
print(arr)
print(arr * arr)
print(arr * arr - arr)
# 数组与标量的算术运算会将标量值传播到各个元素:
print(1 / arr)
print(arr * 0.5)
# 大小相同的数组之间的比较会生成布尔值数组:
arr2 = np.array([[0., 4., 1.], [7., 2., 12.]])
print(arr2)
print(arr2 > arr)
| [
"vincent1050917@gmail.com"
] | vincent1050917@gmail.com |
8244ee0f70783c9f1817748f49a3a00d505bb0fa | 5683e0be45bbd4c0eff0bc143e1fabb39e3dd2d1 | /facilities/migrations/0011_facility_approved_national_level.py | d5c4978e3bf4e2a7d4d7d154806e8dee847ad9ef | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | permissive | SteveWaweru/mfl_api | be1e6b24a039553447dc6fdc23b588c4a6756a8f | 695001fb48cb1b15661cd480831ae33fe6374532 | refs/heads/master | 2023-05-29T04:27:35.421574 | 2021-10-27T06:07:10 | 2021-10-27T06:07:10 | 205,343,934 | 0 | 5 | MIT | 2023-05-15T00:38:30 | 2019-08-30T08:54:14 | Python | UTF-8 | Python | false | false | 539 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-09-08 14:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facilities', '0010_auto_20190828_2112'),
]
operations = [
migrations.AddField... | [
"mwaura.marika@gmail.com"
] | mwaura.marika@gmail.com |
fa428df271c1a095589ea4dda94bbd27ca4f7705 | 06870667821f26b0c8c96b52321938df58fd91f6 | /parking_scrapers/scrapers/new_haven.py | 85e9236cddfb6c481a2d0bfc60ccfb3c43b84610 | [] | no_license | jmcarp/open-parking-spaces | 69244962a316fe6bd3273ba6837bfe8d0f1f4b8e | 5f855a1b25c9109f15af26e1fb3b4ecbd3ef5845 | refs/heads/master | 2023-01-24T11:43:53.641262 | 2020-11-30T19:00:46 | 2020-11-30T19:00:46 | 312,906,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import re
from typing import Iterator
import lxml.html
import requests
from base import LotSpaces, Scraper
class NewHavenScraper(Scraper):
"""Scrape New Haven html.
https://parknewhaven.com
"""
HTML_URL = "https://parknewhaven.com"
TIMEOUT = 5
SPACES_PATTERN = re.compile(r"(.*?):\s+(\d+)% \... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
144fc7f9ff84f6e9a9f9ae2caa52b32ac79f98ec | 51bcb50645153934604da620fecd5169ba80ba67 | /tiparep2/pupils_large.py | a40494d8df12dd5001733cd4dcb18c9d32131c9d | [] | no_license | newusrlll/tiparep | abfb5bfd63aa9a60a64f22bfd5d7847066568362 | bc7b245a08953363cf4bdd024af952d459a8460b | refs/heads/master | 2023-03-22T03:50:04.041038 | 2021-03-14T12:10:46 | 2021-03-14T12:10:46 | 336,764,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import time
class Pupil():
def __init__(self, f, n, p):
self.f = f
self.n = n
self.p = p
pupils = 0
otlichniki = []
s_a = 0
start_time = time.time()
with open("pupils_large_txt.txt", "r", encoding='utf-8') as file:
for line in file:
data = line.split(' ')
data_pupil =... | [
"lebochkin2@yandex.ru"
] | lebochkin2@yandex.ru |
b290f6c4c523dba303d7efb6b9edbfc26d01ce6b | 4d0bbeb8ab52f7e450aff20056f7509e12751258 | /lists/migrations/0003_list.py | da0266eb470c2bba6c9bd9b11f8ba74b47076401 | [] | no_license | chicocheco/tdd_book | f7c9246dcb4eb5327704c72f655bf6e187b28849 | 574b1082aa523c7434f50e0c4cbdf5777ddf50ef | refs/heads/master | 2022-05-02T17:44:27.217329 | 2020-03-13T18:57:22 | 2020-03-13T18:57:22 | 197,633,503 | 0 | 0 | null | 2022-04-22T22:19:12 | 2019-07-18T17:56:43 | JavaScript | UTF-8 | Python | false | false | 441 | py | # Generated by Django 2.2.3 on 2019-08-08 07:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lists', '0002_item_text'),
]
operations = [
migrations.CreateModel(
name='List',
fields=[
('id', mod... | [
"stanislav.matas@gmail.com"
] | stanislav.matas@gmail.com |
cca049b91b2745cd78349902b46db3b1dd1cdecc | d6aae799e18e907fb413b715200c7832252a87e5 | /image-generation/stylegan2-cdc/execution/train.py | 4a3272d0d68b5312fc4196f36ab69425919adf01 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"CC-BY-NC-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sony/nnabla-examples | 0d0bbd5df3028996e790bcf07248fdb0932697d1 | 41f71faa6efff7774a76bbd5af3198322a90a6ab | refs/heads/master | 2023-09-04T03:45:54.023899 | 2023-08-22T03:31:21 | 2023-08-22T03:31:21 | 109,625,584 | 308 | 108 | Apache-2.0 | 2023-08-22T03:31:23 | 2017-11-05T23:30:40 | Python | UTF-8 | Python | false | false | 15,055 | py | # Copyright 2021 Sony Corporation.
# Copyright 2021 Sony Group Corporation.
#
# 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 requi... | [
"Hua.Ding@sony.com"
] | Hua.Ding@sony.com |
a31b322b32555a927b3a63f5092900042142b843 | 27398b2a8ed409354d6a36c5e1d2089dad45b4ac | /backend/common/decapod_common/models/properties.py | 2a7dbbf75e03a2cf644b94bf0f4bf491dda45988 | [
"Apache-2.0"
] | permissive | amar266/ceph-lcm | e0d6c1f825f5ac07d2926bfbe6871e760b904340 | 6b23ffd5b581d2a1743c0d430f135261b7459e38 | refs/heads/master | 2021-04-15T04:41:55.950583 | 2018-03-23T12:51:26 | 2018-03-23T12:51:26 | 126,484,605 | 0 | 0 | null | 2018-03-23T12:50:28 | 2018-03-23T12:50:27 | null | UTF-8 | Python | false | false | 3,449 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"sarkhipov@mirantis.com"
] | sarkhipov@mirantis.com |
4bb3df61f7e8707d0f5b6dc0a372e300a836a1f0 | d5e4d88e4124ab2387bac64e7d7b76ff37793bf6 | /011/problem11.py | 072127ab96c86257506ca23cee758a4aa9743be4 | [] | no_license | grawinkel/ProjectEuler | 1ae5572eec92e4307183e8b30222ffa39ef4bbce | b470dd4219c769587769c9a70ec3bae5d3ca1166 | refs/heads/master | 2021-05-26T20:01:03.410567 | 2012-10-05T16:58:48 | 2012-10-05T16:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | # To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="meatz"
__date__ ="$01.08.2010 14:10:38$"
m = []
max = 0
maxa,maxb = 0,0
def nw(a,b):
global max,maxa,maxb
prod = int(m[a][b]) * int(m[a-1][b-1]) * int(m[a-2][b-2]) * int(m[a-3][b-3])
if (prod > max):
... | [
"matthias@grawinkel.com"
] | matthias@grawinkel.com |
02be7232b3923ceecd22b8fa265b5624213d162c | 7a3d8975148146b63154e0922f6e97ce46b2fe95 | /app/analyzers/brainless.py | b9a95b67a93bf3ebf787c473484ee31ee6212e8f | [] | no_license | mgorsk1/video-stream-analysis | 20b9e6ef50811ac5843f1de0bde22d69edf54821 | ccc99d958402fe1190901b768c8f30c3d92c2c8d | refs/heads/master | 2022-12-12T00:08:18.387080 | 2019-11-16T19:15:58 | 2019-11-16T19:15:58 | 170,911,472 | 0 | 0 | null | 2022-11-22T04:30:39 | 2019-02-15T18:38:44 | Python | UTF-8 | Python | false | false | 928 | py | from app.analyzers.base import BaseAnalyzer
from app.config import log
from app.tools import format_key_active
__all__ = ['Brainless']
class Brainless(BaseAnalyzer):
"""
Brainless class should be used when there is no grace period.
"""
def __init__(self, *args, **kwargs):
super(Brainless, se... | [
"gorskimariusz13@gmail.com"
] | gorskimariusz13@gmail.com |
f36d7b851dd1f3875bf4450554e4297e5133dd62 | 3dee7a51ab2f214f6aa69d737625e5dad73db352 | /djragon/transcode/admin.py | ddd026a0fea7017e6acb0bcbcb7c40bd8147b6f9 | [] | no_license | skyl/djragon-cms | 533e33f94ab0ea56adfd47c9003dda8f6f97b7f4 | 45be3cde23193ca66405eb6a9b3eac0a0a53dc7b | refs/heads/master | 2020-04-04T14:46:48.017588 | 2010-08-03T03:16:04 | 2010-08-03T03:16:04 | 629,046 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from transcode.models import LogResult
class LogResultAdmin(admin.ModelAdmin):
pass
admin.site.register(LogResult, LogResultAdmin)
| [
"skylar.saveland@gmail.com"
] | skylar.saveland@gmail.com |
96b272fb814a0622763c4fe523506715910ee90b | 59555ea98bedd9e8670898818474a84ac6e01461 | /fiba_inbounder/settings.py | 728124568a90d421a58c42cbdf99f67341c8cef7 | [
"MIT"
] | permissive | nypgand1/fiba-inbounder | 11a25ab45230c7dcff2b5a5d3d91655e01462061 | 6f4c3268c24a6e67f92cb918261ddeb7a320a96a | refs/heads/master | 2023-05-25T23:12:48.274436 | 2022-11-12T15:27:34 | 2022-11-12T15:27:34 | 199,791,534 | 1 | 0 | MIT | 2023-05-22T22:30:20 | 2019-07-31T06:15:03 | Python | UTF-8 | Python | false | false | 1,287 | py | # -*- coding: utf-8 -*-
import simplejson
import logging
from fiba_inbounder.shot_chart_zone import SHOT_CHART_ZONE_GEO
LOGGER_FORMAT = '%(levelname)s: %(asctime)-15s: %(message)s'
logging.basicConfig(format=LOGGER_FORMAT, level=logging.INFO)
LOGGER = logging.getLogger('FibaInbounder')
FIBA_DATA_URL_V5 = 'https://ww... | [
"nypgand1@gmail.com"
] | nypgand1@gmail.com |
ab16a287fd304c7b1b4ef1d73c9d1b094b4dd508 | 571361aa406dc135df5b47ac0fafea3e9f6713d5 | /utils.py | 4b3ebb1fd6a0ccb189e3e85e2535551a8376f26c | [] | no_license | ghsaheb/Genetic-Scheduling | 6129c99dee61f8379beff2098b96c0ff2d053d9e | 07db5cdf4a09820d921d423ffc12437b9021b910 | refs/heads/master | 2020-04-08T10:42:10.012518 | 2018-04-19T16:25:34 | 2018-04-19T16:25:34 | 159,279,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import random
from math import floor
def get_random_professor(course_index, courses_profs):
prof_num = int(floor(random.random() * len(courses_profs[course_index])))
return courses_profs[course_index][prof_num]
| [
"bornaarzi@gmail.com"
] | bornaarzi@gmail.com |
c95ca03fbc0a46c72b98adbd06c05f447d748b46 | 64d7fd332075b1eedacf6e2324b998b03aa1ac92 | /source/trigger_stackset_sm.py | 0cd3ad4e3050d16034eca8a4fd70108a98098aae | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | inderjeetrao1/aws-control-tower-customizations | 8ec674facfba3c1a33eeb00427130f8a4e69f715 | e4752bf19a1c8f0a597195982d63a1a2c2dd799a | refs/heads/master | 2021-02-16T14:09:39.808765 | 2020-01-21T17:59:06 | 2020-01-21T17:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,880 | py | ######################################################################################################################
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | [
"georgebearden@gmail.com"
] | georgebearden@gmail.com |
aec1934da3b54fcc5c4063a0d4d125cd0a1329f0 | af2beabfeca92de7204a06f38136ebeee836b14b | /shopping_cartapp/migrations/0002_auto_20201028_1404.py | 85780978e73d23f3a13d86674b4d93565345358c | [] | no_license | isthatjoke/geekshop | be163714d031c79d5c3dedff61625aeeb2e8304b | b95e6124ae4c7d312a74f4664773372fffaf68af | refs/heads/master | 2023-01-23T16:21:39.864886 | 2020-12-04T21:42:56 | 2020-12-04T21:42:56 | 317,832,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.1.2 on 2020-10-28 14:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shopping_cartapp', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='shoppingcart',
old_name='product',
... | [
"61158881+isthatjoke@users.noreply.github.com"
] | 61158881+isthatjoke@users.noreply.github.com |
eedea8ce429df0e2e5de299e797c1912dd4bd962 | 5d7e3b62244cf01c8e58e16e8ec50bed01cac43c | /matix-label cnn/test.py | b7d9099db41320c69c0052b0f13d46b91ea697d0 | [] | no_license | yuguoqi-learner/NHD-and-method-of-paper- | 9a64e6297335c2712e28aef4bbebe80ba08267d4 | 1bfb01a1ea59920650fca2eb29cbf1c9b99b1ee5 | refs/heads/main | 2023-06-04T01:24:08.795335 | 2021-07-08T03:18:01 | 2021-07-08T03:18:01 | 383,482,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,870 | py |
import os
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as models
import torchvision.transforms as transforms
import torch.utils.data as data
import torchvision
from torch.autograd import Variable
import matplotlib.pyplot as plt
# from functions import ... | [
"noreply@github.com"
] | yuguoqi-learner.noreply@github.com |
fcf3fe369d825fc8f70166e86d6154d98a1eccfa | 23bc3e2bc6b2b9e3fd19f738d4767d09bec590b5 | /CourseWork/Labs/lab3/vivek_pygame_base_template.py | e880efac680ed5ff5a5856816fdf28423d8e2bb4 | [] | no_license | vivekVells/GameDesignProgramming | 4e683114bf487d2ea4c5c1c4a2b7a3375e8be8e7 | bee0fbc4d0a8d0e4001d6c9c9b35fea6b74da1f9 | refs/heads/master | 2020-03-27T13:49:52.159394 | 2018-12-12T09:37:01 | 2018-12-12T09:37:01 | 146,630,596 | 0 | 0 | null | 2018-12-12T08:32:11 | 2018-08-29T16:49:28 | Python | UTF-8 | Python | false | false | 2,516 | py | """
Show how to use a sprite backed by a graphic.
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
Explanation video: http://youtu.be/vRB_983kUMc
"""
import pygame
# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
G... | [
"techengineervivek@gmail.com"
] | techengineervivek@gmail.com |
b27b059c477b45152d67c266b8bde14dfdbcfe93 | e122ab31559f7551e4bc4dff6dfa7f7dbbd10168 | /jaqs/__init__.py | 0be750ea380b5ec64652ff6b426589ec22e928c8 | [
"Apache-2.0"
] | permissive | WayneWan413/JAQS | ffb909d6d550451552697358735ec5dd74975b2d | e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4 | refs/heads/master | 2021-08-30T10:30:20.675837 | 2017-12-17T14:14:59 | 2017-12-17T14:14:59 | 113,726,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # encoding: utf-8
"""
JAQS
~~~~
Open source quantitative research&trading framework.
copyright: (c) 2017 quantOS-org.
license: Apache 2.0, see LICENSE for details.
"""
import os
__version__ = '0.6.6'
SOURCE_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
| [
"brillliantz@outlook.com"
] | brillliantz@outlook.com |
f1911672eeb5c5e79206ad117f84c748083bf7dc | e91e19c13377bd7fec291ae070a732a01455ad29 | /kAndr/ch_3/permutation_in_string.py | 4c3b385bc5ba0485fcd7eed6ef27e408dfa569d3 | [] | no_license | lkrych/cprogramming | a51527154a196973d2a367f03f4b7b7d29317b4e | eb85937cf3b62a65b7eb312627feb02284a1ee66 | refs/heads/master | 2021-07-09T10:38:04.136854 | 2020-09-05T19:05:52 | 2020-09-05T19:05:52 | 191,394,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,251 | py | from typing import List
def permutation(d: List, i: int, l: int, results: List) -> List[str]:
if i == l:
results.append(''.join(d))
else:
for j in range(i, l):
d[i], d[j] = d[j], d[i]
permutation(d, i+1, l, results)
d[i], d[j] = d[j], d[i]
#r = []
#test = per... | [
"leland.krych@gmail.com"
] | leland.krych@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.