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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50fe6dc2ba53bceded57e2bc29077589d7d54e66 | c77aa0dafe8d4f3f47c4d17e06939f49a347b31c | /env/bin/django-admin.py | 62e177aab5954f33fcf7a537d3d52bad081b34c7 | [] | no_license | aruncognicor/VAbackendTool | a2dc3cf22483e2e955b91b61632c6f3a3dbcd716 | ff86a505bfd9e2c0c7e221a059ced16dadda5f49 | refs/heads/master | 2016-08-12T03:45:06.154833 | 2016-01-12T04:47:45 | 2016-01-12T04:47:45 | 49,475,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/home/arun/Documents/projects/backend_tool/env/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"arun@thanzi-Vostro-270s.(none)"
] | arun@thanzi-Vostro-270s.(none) |
aacf718ffaf5dc66b0a37c3bc12ef730d77e3012 | 1fd1c877b0560ce579349d794642d36ad18330d9 | /prac_08/unreliable_car_test.py | 588ea0a804fafb26c253d3daeaa0233cc61c1cdd | [] | no_license | malia-d/cp1404practicals | cbc83478fdf363175e745af8018262712b15b18f | 4367e29e5b711fa89cd055c8a57f4f8fa3568742 | refs/heads/master | 2023-05-06T00:25:29.344351 | 2021-05-30T12:17:15 | 2021-05-30T12:17:15 | 348,734,500 | 0 | 1 | null | 2021-05-30T12:17:16 | 2021-03-17T14:12:35 | Python | UTF-8 | Python | false | false | 741 | py | """
Test the Unreliable Car class by creating two cars, one with high reliability and one with low reliability. Test both
cars multiple times and print the distance each car has driven.
Unreliable Car Test. Created by Malia D'Mello, May 2021.
"""
from prac_08.unreliable_car import UnreliableCar
def main():
"""T... | [
"malia.dmello@my.jcu.edu.au"
] | malia.dmello@my.jcu.edu.au |
afdd99802f2c3e8b542e770aaf8599a418822320 | 2298c6afb9fc3877a2bf283e7e7422ac1843cabd | /python-studentmgmt/run.py | 8aebcb755642578db26ac2fe956f4df57b022a95 | [] | no_license | desrop/student-course-mgmt | 32d4e86c5a5ab3bf1531652dad9ce5b78f04cdc9 | e3213b7be5fc2f2e005219f977d4b3af3883f3b3 | refs/heads/master | 2020-04-29T12:02:57.237635 | 2019-04-07T15:52:59 | 2019-04-07T15:52:59 | 176,123,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from studentmgmt import app
if __name__ == '__main__':
app.run(debug=True) | [
"dean.desrosiers@gmail.com"
] | dean.desrosiers@gmail.com |
6c8b0d28a63bb2ea5c3b6e93e7362380b4638fbc | be34946b978f7c6dc4be5a3cf53156167a8eea77 | /sampling.py | 5cc6ca871e7e7927666f79187f2cb82f0c2f7221 | [] | no_license | ZhenxiangWang/Link-Prediction | e5ccd017f7449dd44a9b9141b0f322fde4141ab4 | c143b2b016a37f36a12ec57a0cf35a963bbba9ca | refs/heads/master | 2020-03-28T05:18:06.540314 | 2018-09-10T04:33:51 | 2018-09-10T04:33:51 | 147,767,914 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import numpy as np
print("Loading train data......")
train_data={}
with open('train.txt','r') as train:
for line in train:
neighbour_list=[int(i) for i in line.split()]
train_data[neighbour_list[0]]=set([neighbour_list[i+1] for i in range(len(neighbour_list)-1)])
def get_train_sources_and... | [
"noreply@github.com"
] | ZhenxiangWang.noreply@github.com |
d9595880395a2d6b6d84ff064f4f1997d10f39cc | 68c0fa1e3f8bcc53d352c112c559cbd2981b3dfa | /src/main/python/tasks/workers.py | babfde41be47a2af1234d75e1d2f3f3741af7895 | [] | no_license | boyunli/article-generator | d647e47536c7a17b60c2fed988980501b1f70315 | 4cf45733a4ddfd3feeb5607f398860c78314ece7 | refs/heads/master | 2020-03-08T18:41:09.764569 | 2018-07-04T09:15:05 | 2018-07-04T09:15:05 | 128,314,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # coding=utf-8
from celery import Celery
from python.sites.news.sohu import SoHu
from python.sites.news.toutiao import TouTiao
from python.sites.news.wechat import Wechat
celery_app = Celery('article', include=['python.tasks.workers'])
celery_app.config_from_object('python.tasks.celery_config')
@celery_app.task(bi... | [
"liling@meifang.com"
] | liling@meifang.com |
0c3368f28cc8a7287541310f6418e199dc6aefbd | 7bf8719d2f31702d8161329c6f1553e15643802a | /products/migrations/0001_initial.py | 2c2451f1e1e290f4a353117c47068cff81bc8243 | [] | no_license | Code-Institute-Submissions/e-commerce | d3529ac7935daf7f767a07d9de8dab33390bec6b | 2309c2b80ad785ad56024473f8e2a36b73cc4e66 | refs/heads/master | 2020-03-17T10:10:37.660519 | 2018-05-14T06:57:44 | 2018-05-14T06:57:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-20 14:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product'... | [
"cristian.burloiu@yahoo.ro"
] | cristian.burloiu@yahoo.ro |
6291822cb31b4bf8385ea3f7c22d79a5f2a4e13f | fb5b1b8dce103dea28be52f7bbd9ea84da2cec81 | /kolibri/core/discovery/api.py | 1a8389a92afb0d82f12c4c2108850fecba086a18 | [
"MIT"
] | permissive | lyw07/kolibri | d7f6f92656faa0483cd2cbdf57a3b6c54d52c2f2 | 11e0d01e2bc43850a6dfd4238e6408004449c3dc | refs/heads/develop | 2021-01-02T09:40:04.457976 | 2019-05-20T21:29:27 | 2019-05-20T21:29:27 | 99,255,547 | 1 | 0 | MIT | 2018-03-08T18:43:36 | 2017-08-03T16:53:09 | Python | UTF-8 | Python | false | false | 380 | py | from rest_framework import viewsets
from .models import NetworkLocation
from .serializers import NetworkLocationSerializer
from kolibri.core.content.permissions import CanManageContent
class NetworkLocationViewSet(viewsets.ModelViewSet):
permission_classes = (CanManageContent,)
serializer_class = NetworkLoca... | [
"jamalex@gmail.com"
] | jamalex@gmail.com |
584ba2592b9203d3fc17548082493d44770f5f55 | 18f152fd5028f92769d991291e967b39fb4fdae7 | /problem23.py | a64c9576760bc38c309c6f08c89faa4cf7e4270f | [] | no_license | ethanluckett/projecteuler | a9a7ce36fbb1118ed4b3951d7ba80d6b00622821 | 46b0348a2d94c32217cf77adb8d81f93d96c268c | refs/heads/master | 2020-05-18T20:55:29.760927 | 2019-05-08T15:23:15 | 2019-05-08T15:23:15 | 184,646,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import math
import sys
def is_abundant(n):
divisors = set([1])
for i in range(2, int(math.ceil(math.sqrt(n)))+1):
if n % i == 0 and n != i:
divisors.add(i)
divisors.add(n/i)
return sum(divisors) > n
def problem23():
# numbers which cannot be written as sum of two+ abu... | [
"ethanluckett@gmail.com"
] | ethanluckett@gmail.com |
d3b51dffc41c9928f3160d598f19f4ab7ba584b4 | 3df0309a9269ade9d1a6c70d7608880cc90ed2ab | /GT668/Samples/Python/DataStorage.py | 9a9d1b00b28c5468428c76d9df3031877036c5cf | [] | no_license | motogo/PRCCounterApp | 3e8a2f9339f4937e67673d1a7c72b3c053fafca7 | 3bcfa8166801b29de036a6d7b79f8c5b3debcf53 | refs/heads/master | 2022-12-19T16:52:39.734844 | 2020-10-22T21:30:47 | 2020-10-22T21:30:47 | 306,461,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | from GT668Driver import *
gt = GT668Driver()
gt.initialize(0)
# size of array per channel
size = 10
# read timeout
timeout = 10.0
# configure inputs
gt.set_input_prescale(GT668.Signal.GT_SIG_A, GT668.Prescale.GT_DIV_1)
gt.set_input_threshold(GT668.Signal.GT_SIG_A, GT668.ThresholdMode.GT_THR_VOLTS, 0.0)
# configur... | [
"horst.ender@softend.de"
] | horst.ender@softend.de |
0f002addf74bef460a8840967aaf1a0aba19ff6d | 47136f769b2e870242f438927cee8dabcbca94c0 | /week8/informatics/4/F.py | ac3e3e385b9712dcdb1ec40e27313b118220704f | [] | no_license | Almanova/WebDevelopment-Spring2020 | de97b5aba1f13a766e2ef183151e39db3c8bba53 | 0abdee8f25dee1a4d32da2b633903d33936b6e77 | refs/heads/master | 2023-01-11T08:20:27.232203 | 2020-04-17T01:31:01 | 2020-04-17T01:31:01 | 236,373,539 | 0 | 0 | null | 2023-01-07T16:25:00 | 2020-01-26T20:42:31 | TypeScript | UTF-8 | Python | false | false | 177 | py | n = int(input())
list = input().split()
cnt = 0
for i in range(1, n - 1):
if int(list[i - 1]) < int(list[i]) and int(list[i + 1]) < int(list[i]):
cnt += 1
print(cnt) | [
"almanovamadina@yahoo.com"
] | almanovamadina@yahoo.com |
5d2241b7297c60cb21d4db6772de0c17b076f8ef | d7bba9a2ba17831d58a34b3338f8f1e8d566d262 | /blog/migrations/0001_initial.py | 56985464e1503737df695d7509ef7569b1e4c854 | [] | no_license | harmi2009/my-first-blog | 16943a25901929faddf16a2f5dc6281f35449ae6 | bb8a29e35bee07ef0b829e9cb5c69e676d74640d | refs/heads/master | 2022-12-21T08:05:07.001697 | 2020-10-05T21:44:53 | 2020-10-05T21:44:53 | 300,715,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-10-02 18:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"harmi2009@gmail.com"
] | harmi2009@gmail.com |
8b0fa8d0528ab3c49f1ccebb016a8ebf942927bc | 6234b81db8f4edce8e33fb80602a5b334a5f7587 | /wiki/encyclopedia/views.py | cdb0591a8cf8e7cb0ae73f58b2905471895ae36e | [] | no_license | Razeen-Shaikh/cs50-web-projects | 000b3ac03e5f35cf1fc724dec3159967d1d55741 | be597e545cd3cb6d66ff3fec171f42a2ed5147ff | refs/heads/master | 2023-01-11T07:41:03.110580 | 2020-11-07T05:56:29 | 2020-11-07T05:56:29 | 305,310,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | from django.shortcuts import render, redirect
from django import forms
from . import util
from random import choice
class NewEntryForm(forms.Form):
title = forms.CharField(
label="Title",
widget=forms.TextInput(
attrs={
'class': 'ml-2 px-2'
}
)
)... | [
"razeen9796@outlook.com"
] | razeen9796@outlook.com |
3ba84876fba42a1e11f5c5082263a679fefaafe0 | bf05cde65299758a3e3579ceec78048be9cd2e2c | /__init__.py | bea9caed2f92e001565baeb13e484e89f0358f3e | [] | no_license | krislmassey/DpdkElmoConfig | 21c5d7fd4d850dd11d37941a1ffc2e201fdcdc1d | 8a0b5bdb6953544bc9b3ef23aa8b35c9dc31c82d | refs/heads/master | 2020-12-30T09:26:25.598812 | 2015-07-14T18:00:47 | 2015-07-14T18:00:47 | 39,090,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,703 | py | '''
Download test_cli Python Package
--------------------------------
The test_cli Python package can be downloaded from
:releasezip:`here <http://elmo.adtran.com/doc/api>`.
.. warning:: The test_cli does **not** support Python 3! Please use Python 2.7.
.. warning:: Currently, this package does **not** support ELMO... | [
"kristenmassey@yahoo.com"
] | kristenmassey@yahoo.com |
5c154ddbe4004a161a0f02a8e1c1ecaa29732ce9 | 17a464cf499ea9cc492a9775fa4ea8314858bf8c | /storage/migrations/0002_auto_20210226_1933.py | 2aa6b900772828cc9913bfb4a036bd1e7ca79b97 | [] | no_license | Miladrzh/graph-calc | 8feeb7ffb266ac37508c2df09af624ea8a651a4d | 4452b1d3cb7779120717d54a95744880ee68cba2 | refs/heads/master | 2023-04-18T00:09:45.619274 | 2021-04-19T18:45:42 | 2021-04-19T18:45:42 | 342,690,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # Generated by Django 2.1 on 2021-02-26 19:33
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('storage', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='generatedgraph',
... | [
"miladrzh@gmail.com"
] | miladrzh@gmail.com |
e54d5f06e5fc1b80bc598b447f5332574e03328c | 35f7970d0423dac96f1fefda6fb2246ada0bd483 | /catkin_ws/build/rotors_joy_interface/catkin_generated/pkg.installspace.context.pc.py | fe71778c0472e11f9e3595aebb9f1e531858b5eb | [] | no_license | HugoGrellier/ros_project_bebop | 7c169635fa5ffe664bdb4155bac212a0a5f7b941 | d6c8c3ada879747a7b070dc88646d4c3b86d28c5 | refs/heads/master | 2023-02-09T10:37:22.209574 | 2020-10-20T18:52:04 | 2020-10-20T18:52:04 | 306,311,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;geometry_msgs;mav_msgs;sensor_msgs;trajectory_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFI... | [
"hugo.grellier@cpe.fr"
] | hugo.grellier@cpe.fr |
2280537cfc1cb168db84141e3af868073fca59d3 | 4cc25f1df9530daf2f46648df3997099f2a1b85e | /source/aws/services/iam.py | 7775689bfafbbd074c1d57dce09a1dffef59cd80 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcripps9/aws-control-tower-customizations | ccc2cb6eb067edb2524a0a5efbafc08d484eb1db | e88025eda57adbfcab12e79fbbf12e580e9a9ccd | refs/heads/master | 2022-04-16T12:33:36.623952 | 2020-04-15T20:59:04 | 2020-04-15T20:59:04 | 256,033,675 | 0 | 0 | Apache-2.0 | 2020-04-15T20:50:40 | 2020-04-15T20:50:39 | null | UTF-8 | Python | false | false | 1,821 | py | ##############################################################################
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"). #
# Y... | [
"jleavert@amazon.com"
] | jleavert@amazon.com |
b9b0349e2f15cb79dfa7708c61f629acb8d06ad9 | 399b6f19250ea7e7abbf16020195fce9e81e0e41 | /python_Basics/abnormal/abnormal.py | b88a90c34f5efa1abb7e3353c549e81771fe2ec7 | [] | no_license | zhanghui0228/study | 87cd248a2f3e4af38bf0d2416fed0b9515f54f45 | 43351858858e087d060630f2669e30546acbaf8f | refs/heads/master | 2020-07-23T05:50:02.556812 | 2020-05-24T10:40:04 | 2020-05-24T10:40:04 | 207,463,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | #abnormal 异常处理
'''
内置的异常类:
exception 几乎所有的异常类都是从它派生而来的
AttributeError 引用属性或给它赋值失败时引发
OSError 操作系统不能执行指定的任务(如打开文件)时引发,有多个子类
IndexError 使用序列中不存在的索引时引发,为LookupError的子类
KeyError 使用映射中不存在的键时引发,为LookupError的子类
NameError 找不到名称(变量)时引发
SyntaxErro... | [
"helloworldhui@163.com"
] | helloworldhui@163.com |
0d63ef8757c6bbbe4b2869b89a3fa0c54f9021dd | 84da64c474e17a039ad22337ff111c6bf87ee0c6 | /comprehension.py | 4d01c3cb6723f76618cd075aa70f02f863069179 | [] | no_license | karibou/python_training | 525829bd6c046c82daa4a9d3828ca6652b046e11 | 9d0a9bd1d02675f5c6eff185cc5275d84a6a7ac0 | refs/heads/master | 2020-09-22T01:41:19.246336 | 2014-10-13T11:28:54 | 2014-10-13T11:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/python
l = ['toto','tata','tutu']
l2 = []
for i in l:
if 'o' in i:
l2.append(i)
print l2
l3 = [ i for i in l if 'o' in i]
print l3
| [
"louis.bouchard@ubuntu.com"
] | louis.bouchard@ubuntu.com |
94542bccbb0867623afc8de7f1953f075ba9a6c6 | 7d105a72821a0fdc19923177f7bdd65846a64af1 | /mikomiko_hk_v3.py | 496e61bd628b01ae7a0c4abdbef25788e70fcd84 | [
"MIT"
] | permissive | tiankong1999/ArcFace-Multiplex-Recognition | 5c5ab115469db3c84f914e6307dada71439a68f4 | 16a075e499a2cf7dd6ee3e0204b6309946bc9c23 | refs/heads/master | 2020-05-24T15:45:06.579777 | 2019-05-16T21:04:44 | 2019-05-16T21:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,716 | py | # coding: utf-8
import cv2
import os
import numpy as np
import time
from termcolor import colored
from helper import read_pkl_model, start_up_init, encode_image
from multiprocessing import Process, Queue
import asyncio
import socketio
import IPCamera.interface as ipc
import face_embedding
import face_detector
async d... | [
"1996scarlet@gmail.com"
] | 1996scarlet@gmail.com |
617da9ce72d24b2fca23ff0772bcfbdf9521d87f | 294e5260acb7aa0c888e6462ae0c114de95c8a18 | /morus_msgs/cfg/MavPosCtlParams.cfg | f3c0b726f2f9ababe1a452299781ddbfa9f612a3 | [] | no_license | larics/morus_uav_gazebo | c8d344ab60b847965dcf3f19fcc0fe542f16773b | 15dfc5fb36f0e646547b6e4d3cb5c1561e8f3144 | refs/heads/master | 2021-01-20T10:55:31.086516 | 2018-05-17T14:35:48 | 2018-05-17T14:35:48 | 51,870,669 | 6 | 7 | null | 2017-10-11T10:27:09 | 2016-02-16T21:13:50 | Python | UTF-8 | Python | false | false | 1,507 | cfg | #!/usr/bin/env python
PACKAGE = "mav_msgs"
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
gen.add("x_kp", double_t, 0, "X ctl PID P gain", 0.01, 0, 1000)
gen.add("x_ki", double_t, 0, "X ctl PID I gain", 0, 0, 1000)
gen.add("x_kd", double_t, 0, "X ctl PID D gain", 0, 0, 1000)
... | [
"tomislav.haus@gmail.com"
] | tomislav.haus@gmail.com |
32ee9b2d8471e963468143f7e7d5b60c5c33dd40 | 6d0436f5684a5c829247f1e15c1eab69b3b14e34 | /api/core/blacklist_helpers.py | 2ee79f60a4088329742a0d40b2e80508e45f0601 | [
"MIT"
] | permissive | reddimohan/flask-rest-api-barebones-with-authentication | 61881e83e0d16d821ec5368190c2a6133a1a260e | 6daf04355531dd8d60937cdfa54967dd01e6ff54 | refs/heads/master | 2023-04-08T02:07:30.271224 | 2023-03-02T15:00:54 | 2023-03-02T15:00:54 | 210,322,303 | 6 | 5 | null | 2023-03-21T09:31:37 | 2019-09-23T09:59:52 | Python | UTF-8 | Python | false | false | 3,126 | py | from datetime import datetime
from database import TokenBlacklist
from exceptions import TokenNotFound
from flask_jwt_extended import decode_token
from main.db import MongoDB
db = MongoDB()
def _epoch_utc_to_datetime(epoch_utc):
"""
Helper function for converting epoch timestamps (as stored in JWTs) into
... | [
"reddimohana@gmail.com"
] | reddimohana@gmail.com |
d06a16fc3cb7202fdd9058558cf45839be272a0b | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/wagtail_hooks_20201030120530.py | 0719f7961b7e5d8a34a3fef28930d93e6014a64d | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | """ Kategoria zostanie dodana w pasku bocznym u admina"""
from wagtail.contrib.modeladmin.options import ModelAdmin
import ModelAdmin, decorator
class MenuAdmin(ModelAdmin) | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
92ab4157ebd650e6d13fedc3a76a0f3f01379d4c | 813be230bf3d9aa532c23c8250e32262323e4e80 | /arpreq.py | f217512974f254a2e7cd9ed5162041e14f2475bd | [] | no_license | Odin-SG/ArpFake | b4cc7767fec04bb684ae6fb3a8d66e65a39de83f | bb6d41d0793675b2f78cd5d76a43b7b18b6a9776 | refs/heads/master | 2023-05-08T20:02:38.342511 | 2021-06-04T13:13:27 | 2021-06-04T13:13:27 | 347,054,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import socket
from struct import pack
from uuid import getnode as get_mac
def main():
dest_ip = [10, 7, 31, 99]
local_mac = [int(("%x" % get_mac())[i:i+2], 16) for i in range(0, len("%x" % get_mac()), 2)]
local_ip = [int(x) for x in socket.gethostbyname(socket.gethostname()).split('.')]
sock = socket.... | [
"gongn640@gmail.com"
] | gongn640@gmail.com |
adb9f5111e2b6fde239785e3fac1f6d150e83c22 | 6fdbdb53b6c6696199282e3f7f8b86793dd2f2c2 | /venv/lib/python3.7/site-packages/optimal/__init__.py | ed2032bb81c9a35376fb89df3764ab581227c146 | [] | no_license | juliusHin/KNR_Stock_Prediction | 5695fc95e1c430bfa281856a0e7b61e79032921c | 76580ceb891d1abd2af2fee347acb250f0c00ef8 | refs/heads/master | 2022-12-12T20:20:07.442221 | 2019-10-26T03:53:49 | 2019-10-26T03:53:49 | 173,898,473 | 2 | 0 | null | 2022-12-08T01:40:18 | 2019-03-05T07:39:47 | Python | UTF-8 | Python | false | false | 1,599 | py | ###############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2014 Justin Lovinger
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the ... | [
"juliustanuwijaya.indonesian@gmail.com"
] | juliustanuwijaya.indonesian@gmail.com |
ff0ee0e4588368b12e9f15bb47f3ded00562d6b7 | eda355ad3bd32d230c9fa55e816dbd8658afe2c7 | /khash.py | f750deaf7126247dac716725da7ba89a61417bd5 | [
"MIT"
] | permissive | forging2012/khashmir-1 | d311904706aecedfd2bb2c17d777b963e6afae2f | 6595c1ff4b8ed538dfa0633ccdf7730d6ad5bb8d | refs/heads/master | 2021-05-26T21:01:34.691621 | 2011-06-14T21:13:38 | 2011-06-14T21:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | ## Copyright 2002-2003 Andrew Loewenstern, All Rights Reserved
# see LICENSE.txt for license information
from sha import sha
import whrandom
#this is ugly, hopefully os.entropy will be in 2.4
try:
from entropy import entropy
except ImportError:
def entropy(n):
s = ''
for i in range(n):
... | [
"casey.marshall@memeo-inc.com"
] | casey.marshall@memeo-inc.com |
1004d99114b248ed344c94db0103a2832b8dcf5b | 3a4ef39655fbea6d5a59f630fd4777c8eab2a17a | /staticfiles/staticfiles/pan_kanapka/wsgi.py | 95d14b8e2a49a6d4de7764edeba712f9eb41f960 | [] | no_license | jundymek/pan-kanapka-api | 8a88c3ae8ff5be295ab4c102a2db32780f14726f | df734bef6295d3869455939382849449d589984f | refs/heads/master | 2022-12-17T06:26:42.409765 | 2020-02-12T17:11:03 | 2020-02-12T17:11:03 | 231,992,946 | 1 | 0 | null | 2022-12-08T04:26:18 | 2020-01-06T00:06:27 | JavaScript | UTF-8 | Python | false | false | 400 | py | """
WSGI config for pan_kanapka project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"jundymek@gmail.com"
] | jundymek@gmail.com |
88f092084337bcd4d9073c16381898f674a18ef3 | 81bad22641705683c68ff89f19362ba202891652 | /napari/plugins/exceptions.py | e9979de0d9e5c07e6d09e0f1592bcca062d4cf1c | [
"BSD-3-Clause"
] | permissive | sofroniewn/napari | ee2a39a1a1132910db6f2a47994671e8138edb51 | beaa98efe5cf04ba659086e7a514b2ade05277af | refs/heads/main | 2023-07-12T02:46:41.185932 | 2022-09-14T21:57:15 | 2022-09-14T21:57:15 | 154,751,137 | 2 | 3 | BSD-3-Clause | 2023-07-01T10:26:45 | 2018-10-25T23:43:01 | Python | UTF-8 | Python | false | false | 1,970 | py | from napari_plugin_engine import PluginError, standard_metadata
from ..utils.translations import trans
def format_exceptions(
plugin_name: str, as_html: bool = False, color="Neutral"
):
"""Return formatted tracebacks for all exceptions raised by plugin.
Parameters
----------
plugin_name : str
... | [
"noreply@github.com"
] | sofroniewn.noreply@github.com |
3a7a563b2888ad99f23bf322475f3a934141adf9 | ce53a777068906866cd97d211f51c986492f4e4f | /blog/views.py | f0fcb461ebcb44709629880bae642816a2c159f8 | [] | no_license | LittelOrange/my-first-blog | f1744b8174d76cfa9b28721d17f12555bc041392 | 59851fe653e3a1f2ba063a9da088ef243ec77018 | refs/heads/master | 2020-03-31T08:22:46.517470 | 2018-10-10T06:57:41 | 2018-10-10T06:57:41 | 152,054,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | from django.shortcuts import render, get_object_or_404,redirect
from .models import Post
from django.utils import timezone
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(requ... | [
"1024351971@qq.com"
] | 1024351971@qq.com |
6d9c457530aa6d98022e26c72bdaf60d244eb673 | fc0d9b3107d7afeeed8d9df733219aa77c4a0d10 | /models/pumped_hydro/ev.py | c54c9197a686d518259c6e02dae6314b793bd62f | [
"Apache-2.0"
] | permissive | switch-model/DEPRECATED-switch-hawaii-studies | 007931f8bb58480db81b8c59031e8d911a14567e | 685085c7e3734db75b6bf9744aa05024389e1bc1 | refs/heads/master | 2021-06-01T00:16:50.557334 | 2016-06-29T09:42:11 | 2016-06-29T09:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | import os
from pyomo.environ import *
from switch_mod import timescales
def define_components(m):
m.ev_gwh_annual = Param(m.LOAD_ZONES, m.PERIODS, default=0.0)
# TODO: calculate these data better and get them from a database
# total miles traveled by vehicle fleet (assuming constant at Oahu's 200... | [
"mfripp@hawaii.edu"
] | mfripp@hawaii.edu |
9ba8b9092d007d443d6e996caf75582f8692ddf8 | 61ad9e5de786b1665d0781210ab0d30d25dc23fd | /hacker-rank/algorithm/warmup_time_conversion.py | 60d63411788e45c3142bb18e389c469f57c37934 | [] | no_license | sydul-fahim-pantha/python-practice | ed63e66a7e7ea4ad6c8055c7ab73463933f4ba89 | 185d4f9acce1922f16ac9c1377965318a7c7898b | refs/heads/master | 2021-06-03T02:30:39.743659 | 2020-06-25T19:31:05 | 2020-06-25T19:31:05 | 144,102,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | #!/bin/python3
import os
import sys
def timeConversion(s):
am_pm = s[len(s) - 2: len(s)]
hh = int(s[0:2])
s = s[:len(s) - 2]
print(s)
if am_pm == 'AM' and hh == 12: s = '00' + s[2:]
elif am_pm == 'PM' and hh != 12: s = str(12 + hh) + s[2:]
print(s)
return s
if __nam... | [
"fahim.pantha@gmail.com"
] | fahim.pantha@gmail.com |
4b80f8f908a20e3b7fc3b6b9b66760d52059ec6f | 1c58faeadc7c3b3c51beb3367e3e3d88c8892362 | /SAE_resnext_legacy.py | b06b3f47aff955f266a59254301864f63f249e88 | [] | no_license | TaoKai/TSAE_resnext | a71a9c91740c7a2791f84e0774f3c31478ded967 | 51856d96f178b92aa5632e2a081c47c93959f135 | refs/heads/master | 2023-02-22T22:50:23.269091 | 2021-01-20T10:05:54 | 2021-01-20T10:05:54 | 317,475,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,686 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as models
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
class SAE_RESNEXT_ENCODER(nn.Module):
def __init__(self):
super(SAE_RESNEXT_ENCODER, self).__init__()
self.resnext50 = models... | [
"kai.tao@inveno.com"
] | kai.tao@inveno.com |
79482782fcb8b6667337beddd4268b5a30566b9b | d268e0c28cc213b65285d6a8dc5997495c672ab1 | /gcode/mandelbrot.py | 9eb6d5d987d53f78ccf7f08707832f20277ce319 | [] | no_license | theojulienne/compclub-stuff | cb716aa71ae69baab4357dc8abacc3e7228d4ed5 | 0d7a800107126adb3f13fa2be7c50bde11cee896 | refs/heads/master | 2016-09-06T15:30:29.874062 | 2010-01-08T16:42:25 | 2010-01-08T16:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import gcode
IMG_WIDTH = 1000
IMG_HEIGHT = 1000
IMG_DEPTH = 5.0
BOTTOM_LEFT = (-2, -1.0)
TOP_RIGHT = ( 0.5, 1.0)
MAX_ITERATIONS = 256
def mandelbrot(px, py):
count = 0
widthRatio = px/float(IMG_WIDTH)
heightRatio = py/float(IMG_HEIGHT)
px = BOTTOM_LEFT[0] + widthRatio * (TOP_RIGHT[0]-BOTTOM_LEFT[... | [
"goldy@goldy"
] | goldy@goldy |
5f7296a2c63f51459b3ce77f09584dbef613d994 | 76b064a76ffd23b0d0dff57d266abd6a111e9247 | /Ch04 Counting Elements/MissingIntegers.py | 819800f4b1f6de69459764150ccb264152e3f8ce | [] | no_license | startFromBottom/codility_problems | 78e0e0fcd914730e0dd8f725dde3dc96be83a255 | c8e128b5768e8140e658274e7cc8fee95c1bce9a | refs/heads/master | 2022-12-05T12:38:01.595250 | 2020-08-25T11:49:44 | 2020-08-25T11:49:44 | 289,836,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | """
problem link : https://app.codility.com/programmers/lessons/4-counting_elements/missing_integer/
result : https://app.codility.com/demo/results/trainingETTG9E-G32/
"""
def solution(A):
A = sorted(list(set(A)))
# ex) A = [98, 99, 100] -> 1
if A[0] > 1:
return 1
for i in range(1, len(A)... | [
"uhh0701@gmail.com"
] | uhh0701@gmail.com |
5e558014567ad4fa8515820433c67c0266299166 | b2b54285bcb74399578b53482bcc86df7c57add0 | /interfaces/mainWindow.py | 9cff4d5cbbc00714ee9c73ea5e67e60051fc9776 | [] | no_license | ZalmanHack/e-circuit_builder | 75ed41f2ee5cf3b46275249896d80076963dc0bb | b38156be3a4df49bf06de1ab767de7b9ee3e27e4 | refs/heads/master | 2022-03-24T09:22:14.305186 | 2019-12-22T22:50:31 | 2019-12-22T22:50:31 | 229,633,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,559 | py | import sys
import pickle
from functions.ecircuit import ECircuit
from interfaces import mainWindowUI
from interfaces.myGraphicsView import MyGraphicView
from PyQt5.Qt import *
class MainWindow(QMainWindow, mainWindowUI.Ui_MainWindow):
class SignalsForECircuit(QObject):
setTable = pyqtSignal(list)
g... | [
"dobrenko44@gmail.com"
] | dobrenko44@gmail.com |
3b19190eaa60a2fbc86aa9054c4b80341945f24f | ef14c3b4634a0bdf86a93997f3f7ddd370cf9474 | /analysis.py | 8258f09cd05213d84386493d20cce63cdde6531e | [
"MIT"
] | permissive | hacongdinh/FlapPyBird-Reinforcement-Learning | c31ac5b819ead2b59c9e236b3977fea4bf48de4d | 33948adb8a7af407c6cfd03eb2a57b327195a4fb | refs/heads/master | 2023-05-03T19:53:18.471485 | 2021-05-19T17:26:52 | 2021-05-19T17:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import json
import numpy as np
from typing import Dict, List
import matplotlib.pyplot as plt
def load_data(filename: str) -> dict:
"""load training results and compute max_score."""
with open(f"data/{filename}.json", "r") as f:
training_state = json.load(f)
max_reached = 0
training_state['max_... | [
"anthonyli358@gmail.com"
] | anthonyli358@gmail.com |
98c54c85fd55e667a6486116bfe6a05dc5331860 | 258f1de0a4f5aff1c266a6028bbfc9a51413e715 | /legislation/models.py | 630fd40a8ba4e656385493be383d00b95fc8478d | [] | no_license | katrinamariehh/dj_moneypolitics | f7605a111f1fc487b580a4572869c781f98dea5d | 35552f7e545cc1226b0deda0dc422da5ad8fee45 | refs/heads/main | 2022-02-18T07:09:57.025773 | 2017-01-13T20:39:10 | 2017-01-13T20:39:10 | 54,608,202 | 0 | 0 | null | 2022-01-21T19:20:19 | 2016-03-24T02:22:50 | Python | UTF-8 | Python | false | false | 2,394 | py | from django.db import models, DataError
import csv
# Create your models here.
class LegislatorManager(models.Manager):
def load_current_legislators(self, path):
with open(path) as f:
reader = csv.reader(f, delimiter=',')
f.readline()
for row in reader:
... | [
"katrina@Katrinas-MBP.home"
] | katrina@Katrinas-MBP.home |
bce17d2e70d1e8404ce944308c1bee408dd30116 | 6afee49388da5503cbbe96e9965bdf24517f09dd | /IBL.py | 823fe30658e9f38f0449010e28034992ed23ba94 | [] | no_license | sterlingsomers/generic-gridworld | 5df570372295eeefb0e1e3d3ca9a2ad91eef68b3 | d7181b0348e5cf36fe9f53969adcf9773983414e | refs/heads/main | 2022-02-10T15:58:33.875918 | 2021-01-11T20:05:21 | 2021-01-11T20:05:21 | 225,962,617 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,898 | py | import numpy as np
import random
# from autograd import numpy as np
# from autograd import elementwise_grad as egrad
# from autograd import grad
from sklearn.neighbors import KDTree
#TODO: instead of blending as weighted average use tensorflow for ONLY blending. So you assign a cross_entropy function
#TODO: have your d... | [
"kmitsopou@gmail.com"
] | kmitsopou@gmail.com |
7a8717cdd5a7690f45841111b5d029110b87fda7 | 22562fc3aafb40dbd2a0f26a3001e3f494c57643 | /employee_register/views.py | 0e2e40849fd34fc4e037998fcbcf2c2a57651f5b | [] | no_license | Geeky-har/Employee-Management-System | bd7e8fa695feaba12b162c2e3d59c482110c9cd0 | efd4a42c4fa28df67c6473bc3437c3c4e9799adc | refs/heads/main | 2023-03-05T15:55:40.053493 | 2021-02-15T11:59:53 | 2021-02-15T11:59:53 | 338,606,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | from django.shortcuts import render, HttpResponse, redirect
from .forms import EmployeeForm
from .models import Employee
from django.contrib import messages
# Create your views here.
def employee_form(request, id=0):
if request.method == 'GET':
if id == 0: # means new registration page is running
... | [
"harshnegi6477@gmail.com"
] | harshnegi6477@gmail.com |
28fe05503890e1d58e8f3360c2c2d65753534bd2 | 8d6ae21b78b3b40382e21198c571a7957e055be5 | /July20/Statements/factors.py | 0711fc04d9ad0d4b19c9061f222235e998ee6070 | [] | no_license | vj-reddy/PythonBatch1 | 6c1a429e0ac57ea1db7b04af18187e84cd52f2d5 | b86a5a16b1004d1e4f855a57b019704c71425bbf | refs/heads/master | 2023-03-16T06:05:48.104363 | 2020-10-16T13:55:03 | 2020-10-16T13:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | number = int(input("Enter the number: "))
index = 2
while index <= number//2:
if number%index == 0:
print(index)
index = index+1 | [
"qtdevops@gmail.com"
] | qtdevops@gmail.com |
3ddd3c7a6ea93275b1daa3b4ed761c163f77e27e | 04afedaa658c61f463d7f79cad2376d1b1652115 | /corehq/apps/hqcase/management/commands/ptop_fast_reindex_domains.py | 7d01394fe9ba4a08bc7bcffe20e54cd822dd7e93 | [] | no_license | comm-scriptek/commcare-hq | 1897c86a8cce7422018b8be9bdcae76a6403a28a | a818a704e2439f7c0d66b432d052db909a97064d | refs/heads/master | 2020-12-24T09:44:46.036215 | 2013-07-02T07:52:37 | 2013-07-02T07:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from corehq.apps.domain.models import Domain
from corehq.apps.hqcase.management.commands.ptop_fast_reindexer import PtopReindexer
from corehq.pillows.domain import DomainPillow
CHUNK_SIZE = 500
POOL_SIZE = 15
class Command(PtopReindexer):
help = "Fast reindex of domain elastic index by using the domain view and ... | [
"yedispaghetti@gmail.com"
] | yedispaghetti@gmail.com |
126d3821725ea2fb5c962f763d7c95c961fecd3b | 9660f1ac71cefdedc6764037b2810177a82435f8 | /api/urls.py | 89703d3a0e1fa189aa180c4de87453349ca77457 | [] | no_license | elinahovakimyan/hotelify-backend | 3b8d8c4aea91970c77fcf14e0f969c52a81b646e | c055bafb888923e83d958ab7d8900c2fc52559a9 | refs/heads/master | 2022-12-09T20:19:30.827806 | 2020-03-10T09:29:51 | 2020-03-10T09:29:51 | 246,209,380 | 0 | 0 | null | 2022-12-08T03:46:21 | 2020-03-10T04:38:05 | JavaScript | UTF-8 | Python | false | false | 443 | py | from django.urls import path, include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register('signup', views.SignupViewSet, basename='signup')
router.register('login', views.LoginViewSet, basename='login')
router.register('profile', views.ProfileViewSet, basename='profi... | [
"elinahovakimyan@gmail.com"
] | elinahovakimyan@gmail.com |
3e9b9b44893d5a4cc092a14ba7839da8c1f34f86 | dcc1c8e2184bcb61f40efa3d5714e721d1dcd5b4 | /questions/wsgi.py | 502f4e3ddd39b3790e3008694f77582112b1f601 | [] | no_license | yashk2810/InterviewDB | 68616bff03abe5f999af381c66f3efdcb0a01100 | 144813b5176a23a45a61ad1ee0cb93db6f21590b | refs/heads/master | 2021-01-13T03:34:01.115019 | 2016-12-25T05:18:50 | 2016-12-25T05:18:50 | 77,311,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for questions 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"ykat95@gmail.com"
] | ykat95@gmail.com |
e9bd9123e21c45297fb5c25a99af80f250bdb59d | 352b7ddc1ae628b746fb863714071286e99abb9a | /drsa/_nbdev.py | daac99fab25b9afe006d0e6c35e6f47134535916 | [
"Apache-2.0"
] | permissive | kiminh/drsa | db4cbd5f3ffafc90603f3ae73fe16e512c8f3944 | 071148fa81188dd02793ccd90c7812a3f53bbf8b | refs/heads/master | 2022-10-20T21:29:35.778880 | 2020-06-15T22:18:33 | 2020-06-15T22:18:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"assert_correct_input_shape": "00_functions.ipynb",
"assert_correct_output_shape": "00_functions.ipynb",
"survival_rate": "00_functions.ipynb",
"event_rate": "00_functions.ipynb",
... | [
"collin.prather742@gmail.com"
] | collin.prather742@gmail.com |
ec4ab8529e4b4dd8832fa8a89bc0dd1e5ae514e9 | a3120b88d457e917d647e871d5e1e26bda69b2bc | /삼성SDS기본/8979_올림픽.py | 45c900389bfefc6c2522470317ba4ac1201943d7 | [] | no_license | MMyungji/algorithm2 | 91d5c6860f38096e9ed8bfde897760da8295e4d7 | d8c4b6dd318a8ac1b25c7ff6e24f1c5181b3a3eb | refs/heads/main | 2023-08-15T22:05:43.570267 | 2021-10-22T11:12:31 | 2021-10-22T11:12:31 | 374,083,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | num, who = map(int,input().split())
medals = [list(map(int,input().split())) for _ in range(num)]
medals.sort(key=lambda x:(x[1],x[2],x[3]), reverse=True)
grade=0
scores = [medals[0][1], medals[0][2], medals[0][3]]
same_grade=0
#print(medals)
for n,g,s,b in medals:
#print(scores, grade, same_grade)
if scores ==... | [
"hallomj1@gmail.com"
] | hallomj1@gmail.com |
2b5db389de18f58a080bc46fd39a2f1c1e09f874 | ac478d935566ae1f977d5312ad8d5215088554d3 | /models.py | e331ba8641b60bb03ad283146341f25c7b4fa384 | [] | no_license | calarts/othertownsend | e2f8cab1f10e8dd04756284a31818ea4bd1f79c0 | 50641399804881b759721294a897a4d221ed7821 | refs/heads/master | 2022-12-09T20:35:08.491380 | 2019-06-23T14:55:03 | 2019-06-23T14:55:03 | 189,501,370 | 0 | 0 | null | 2022-12-08T05:11:51 | 2019-05-31T00:39:22 | Python | UTF-8 | Python | false | false | 5,664 | py | from random import choice
from datetime import time, datetime
from peewee import *
from shapely.wkt import dumps, loads
from _config import DEBUG
if DEBUG:
mydb = SqliteDatabase(':memory:')
else:
mydb = SqliteDatabase("other.db")
def gimmecurseconds():
now = datetime.now() # should be local time!
... | [
"goodwind@metro.net"
] | goodwind@metro.net |
6abbabf714d5860cf6102168545f6d8a0a791408 | f9c068e230cee2bedfe6b8ee0d1b57b291aa8faa | /test/MainNet.py | d020c1cf678a824353d385994055da18d7737c20 | [] | no_license | MaryamHamad/DI4SLF | fb8bb8b48aee40c74a2edc11cc417fdbb26d7fbd | 38afff3061d869f48af121c8e006acd86286781e | refs/heads/main | 2023-09-05T16:34:04.817648 | 2021-11-22T02:51:20 | 2021-11-22T02:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,132 | py | import torch
import matplotlib.pyplot as plt
import warnings
import numpy as np
from RefNet import FlowRefNet, ViewRefNet
from MlpNet import MlpNet
warnings.filterwarnings("ignore")
plt.ion()
# Main Network construction
class MainNet(torch.nn.Module):
def __init__(self,opt):
... | [
"noreply@github.com"
] | MaryamHamad.noreply@github.com |
e3aa0c3fafee820ac2eef394c6d8e4dea8bbd241 | 83b88fd648f034780b3f2af5730035660e9866cf | /accounts/views.py | 57bed70c4ef753a892c0fd8e5a9a0bcbd070e9d4 | [] | no_license | pukovnikkostadinovic/djangoApp | c1d7aa2997ca63e5185ad0bb00aedf1e738fd772 | 4c02c6466a7953432dc5d0ee758f5b32d75494e7 | refs/heads/master | 2020-03-19T06:26:13.374884 | 2018-06-05T12:48:52 | 2018-06-05T12:48:52 | 136,019,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def index(request):
numbers = [1,2,3,4,5]
name = 'Hasan Hasanovic'
args = {'name':name, 'numbers':numbers}
return render(request, 'accounts/home.html',args) | [
"pukovnikkostadinovic@gmail.com"
] | pukovnikkostadinovic@gmail.com |
e6af48993c7c26fd4ed95950dd100596814de47c | 05ceedee44c66ece52a9d7df9dc8ac2df536557b | /monero_glue/messages/StellarGetPublicKey.py | 0e6305747025ab95cfb7e0ed611cbf5e6901497d | [
"MIT"
] | permissive | tsusanka/monero-agent | 1e48042f7cbb77b3d3f6262c97de71da4f6beb3d | 526ca5a57714cdca3370021feda3ed5ad3e3ea1a | refs/heads/master | 2020-03-25T11:43:16.967931 | 2018-08-06T15:07:05 | 2018-08-06T15:07:05 | 143,745,130 | 1 | 0 | null | 2018-08-06T15:06:04 | 2018-08-06T15:06:03 | null | UTF-8 | Python | false | false | 614 | py | # Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import List
except ImportError:
List = None # type: ignore
class StellarGetPublicKey(p.MessageType):
MESSAGE_WIRE_TYPE = 200
FIELDS = {
1: ('address_n', p.UVarintType, p.F... | [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
0a6171fc4cb104471e8b97fb4390f74325a93efd | f25905a321a8ff8d5f75b5bc9bc05167a3a98a8b | /game.py | b5ba5b7ee4e7ff50d1a025fd2b9e19900af2a0e6 | [] | no_license | unknwn-dev/PythonStrategyGame | 3a75bc29a4a2960a1eeaac707015f022547a2acc | 9424f37dfee2d294f7a21ee85b64abb1b0a5843f | refs/heads/master | 2023-08-04T18:09:07.616560 | 2021-09-10T18:41:52 | 2021-09-10T18:41:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | from random import randint
import cell
from cell import Cell
from player import Player
from settings import Settings
from units import Units
from tkinter import *
import math
Players = [ Player('tes', "red", 99999, None),
Player("gig", "blue", 000, None),
Player("Olg", "green", 000, None)]
Ce... | [
"oleg.mulya30@gmail.com"
] | oleg.mulya30@gmail.com |
3c6a227d5f61bb7232ecf80295a3a3341a7bcd48 | b22931f39920db60c705ce18f8e3f32ca2e5aec8 | /naive_k2onnx/utils.py | 098a620c76cd39c6d5e9c4b752279a05e1a01980 | [
"Unlicense"
] | permissive | liob/naive_k2onnx | d939e9e5efcbafda119d8e2d9f302bc6f5766833 | ac03d5d4f6bf89d9a1939af8d30ffbd48efeeb6d | refs/heads/master | 2023-02-10T21:12:17.973208 | 2021-01-11T09:59:05 | 2021-01-11T09:59:05 | 284,772,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import onnx
def tf_name2canonical(tf_name):
return tf_name.rsplit(':', 1)[0]
def to_onnx_shapes(shapes):
output = []
for shape in shapes:
shape = np.array(shape) # bhw...c
shape = np.roll(shape, 1) # cbhw...
... | [
"hbwinther@metalabs.de"
] | hbwinther@metalabs.de |
a17bf64bdf3d746da913a8f85bd3814b5586680b | 2bc60297e1dd6ae3b80db049832c388361a30fef | /garmin_connect_login.py | 0e7fdb37a75c2ed6c96375cac2e40cf1c15d7b9c | [] | no_license | archester/garmin_connect_scraper | 69385cc10f21e88a0fdf1952f9b87cb0e39b0cf1 | 0fc61b415eca26f7abfcd330eda12e6bc36cb4d1 | refs/heads/master | 2020-05-24T08:15:04.475097 | 2017-03-14T22:17:19 | 2017-03-14T22:17:19 | 84,839,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | """
The MIT License (MIT)
Copyright (c) 2015 Kyle Krafka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | [
"areliga@o2.pl"
] | areliga@o2.pl |
aa6025ca3f596c50a066dfe23bd9e32f3de84ba2 | ebe422519443dbe9c4acd3c7fd527d05cf444c59 | /modular_equation.py | 117dc8a748507e9c28c073df70bd420e73642f56 | [] | no_license | SaiSudhaV/coding_platforms | 2eba22d72fdc490a65e71daca41bb3d71b5d0a7b | 44d0f80104d0ab04ef93716f058b4b567759a699 | refs/heads/master | 2023-06-19T18:05:37.876791 | 2021-07-15T18:02:19 | 2021-07-15T18:02:19 | 355,178,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # cook your dish here
def modular_equation(n, m):
res, tem = [], [1] * (n + 1)
for i in range(2, n + 1):
res.append(tem[m % i])
j = m % i
while j < n + 1:
tem[j] += 1
j += i
return sum(res)
if __name__ == "__main__":
t = int(input())
for i in range(t... | [
"saisudhavadisina@gmail.com"
] | saisudhavadisina@gmail.com |
142d006d519df3979de42375aa3d50a2ee755727 | 79f9aead4431895063d1537083a43c2f971a4b1a | /user_follow_rate/getid_from_mysql.py | 45d6398f9b06609eeccd41decf5d1362cf9cd124 | [] | no_license | mocorr/Machine_Learning | fd760a3121be38146dca045ff5cf77aeedfa91ea | 393751cc0e780f754faa7346c54da29c41a54bd6 | refs/heads/master | 2020-11-26T06:17:11.993842 | 2016-01-14T11:16:15 | 2016-01-14T11:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | #!/usr/bin/env python
#coding=utf-8
import MySQLdb
from DBsetting import *
def connect_mysql(database):
conn=MySQLdb.connect(host=MYSQL_HOST, user=MYSQL_USER, passwd=MYSQL_PASSWORD, db=database ,charset="utf8")
cursor = conn.cursor()
return conn, cursor
def fetch_userid_from_listid(cursor, list_id):
query = 's... | [
"240083998@qq.com"
] | 240083998@qq.com |
31fcfdec26c80808e1bec53fe1961534b35fc880 | 0d24036dcf8736c0392a1ee1c2f3b45633221d8a | /etc/src/genpy-bgp-oper/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_standby/default_vrf/afs/af/advertised_path_xr/advertised_path/bgp_path_bag_pb2.py | 3e00a023d4edf24ceacb989bcfb6ea9a39192b3d | [] | no_license | mspiez/telemetry_collector | c4b97c6686748fc20748898a25e9fc756d2d0b63 | 52ed12c06debfe04181f0bfea9854a66ed8bb3df | refs/heads/master | 2020-12-19T23:28:08.358956 | 2020-05-02T19:54:38 | 2020-05-02T19:54:38 | 235,883,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 177,156 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_standby/default_vrf/afs/af/advertised_path_xr/advertised_path/bgp_path_bag.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf imp... | [
"mspiez@gmail.com"
] | mspiez@gmail.com |
238624f18e184ded3178a8511c294178faf325d0 | 6ee26ef4cc5224c9410208c4399698faffbac10b | /dominions/constants_tables.py | 5859f42f367d7b98b19c4db6a94e164735729507 | [
"Apache-2.0"
] | permissive | socialloser1/dominions-tools | 60bd872f7794f0df0d9d7e6376f33b188440f1db | c04fae655db8ca2240fc6f6ea3ac65a4c8a48eb7 | refs/heads/master | 2021-05-07T09:38:54.068262 | 2017-06-13T19:47:11 | 2017-06-13T19:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,649 | py | ###############################################################################
# dominions #
#-----------------------------------------------------------------------------#
# #
... | [
"the.eric.mcdonald@gmail.com"
] | the.eric.mcdonald@gmail.com |
a96e8f00e432e1acd61b735d0a17ab0638f63465 | da94217a918b8c3717049e5079875b5e75dee8c7 | /Pwnerrank/Python Decompile/uncompyle6-2.10.1/uncompyle6/parsers/astnode.py | 9aeb3f59282925067a1fae273eea23948d36831e | [
"MIT"
] | permissive | SouthCoded/Cyber-Security | 117e343bef263ec53175370ada4dbc30130c405f | dd85c2a91aadf9d69d9ebf19ff08c5de826fc97a | refs/heads/master | 2023-06-25T14:26:42.272072 | 2021-07-13T12:30:54 | 2021-07-13T12:30:54 | 107,547,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | import sys
from uncompyle6 import PYTHON3
from uncompyle6.scanners.tok import NoneToken
from spark_parser.ast import AST as spark_AST
if PYTHON3:
intern = sys.intern
class AST(spark_AST):
def isNone(self):
"""An AST None token. We can't use regular list comparisons
because AST token offsets mi... | [
"duncan.pf2@gmail.com"
] | duncan.pf2@gmail.com |
3fe2c84bde72e2715727d3d95441bd71841b53b0 | f5a4f340da539520c60c4bce08356c6f5c171c54 | /tests/integration/reqs/test_tx.py | e8551a73473e6e6ef046ce1ffa96278212f25855 | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yyolk/xrpl-py | e3935c0a0f488793153ca29e9d71c197cf88f857 | e5bbdf458ad83e6670a4ebf3df63e17fed8b099f | refs/heads/master | 2023-07-17T03:19:29.239838 | 2021-07-03T01:24:57 | 2021-07-03T01:24:57 | 355,299,041 | 1 | 0 | ISC | 2021-04-08T05:29:43 | 2021-04-06T18:57:06 | null | UTF-8 | Python | false | false | 528 | py | from tests.integration.integration_test_case import IntegrationTestCase
from tests.integration.it_utils import test_async_and_sync
from tests.integration.reusable_values import OFFER
from xrpl.models.requests import Tx
class TestTx(IntegrationTestCase):
@test_async_and_sync(globals())
async def test_basic_fun... | [
"noreply@github.com"
] | yyolk.noreply@github.com |
2a0b3a93e513b7f33f12ced12c7f3a932ee7c77e | 7111511ef0cca1bcf84a76d49419fad504d78f6e | /test331scaping_DictWriter.py | a15348ff338735c3fd8aa09bcf4f71bffd95733e | [] | no_license | blockchain99/pythonlecture | 7800033cd62251b0eec8cf3b93f253175d9cb2e8 | 198e1b6d68db72e4a5009f988c503958ad7ab444 | refs/heads/master | 2020-12-12T14:21:53.626918 | 2020-01-15T19:02:07 | 2020-01-15T19:02:07 | 234,148,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import requests
from bs4 import BeautifulSoup
from csv import writer, DictWriter
response = requests.get("https://www.rithmschool.com/blog")
# print(response.text)
with open('test331out.text', 'w') as file:
file.write(response.text)
print("==============================================================")
#go to ab... | [
"shinebytheriver@yahoo.com"
] | shinebytheriver@yahoo.com |
8e869543ad0440d33a31eb49e8ae70c926b3def4 | 5e81643567dea09a331a5b155a9e365b30aea276 | /events/migrations/0001_initial.py | f22cb6c7a4940cb9222a3be2676c297d003271c9 | [] | no_license | vitaliyharchenko/sportcourts | 1b260bc1bdda5e904fea18f1c137d7926d52978b | 05d1306c1df5bba73bda5b7097368340fd1b6a9d | refs/heads/master | 2021-01-19T10:46:17.367784 | 2015-09-28T09:14:47 | 2015-09-28T09:14:47 | 37,144,572 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,761 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
migrations.swappable_dependency(settings.AUTH_USER_... | [
"harchenko.grape@gmail.com"
] | harchenko.grape@gmail.com |
deae57d8466c67c0588f984d9edd9a77a8bac904 | ed38a50a81aeb206e7c735971bb874eb481e2e82 | /2A_2/python/funkcje03.py | a39d5694b51d6b1c312abac8c1751b4b94a38b3a | [] | no_license | lo1cgsan/rok202021 | e70db45494d891f179c08ddf3ef1ac55de25e76f | 07af7ea54d61d03f851de675744bada9083ecdca | refs/heads/main | 2023-06-01T03:38:20.534102 | 2021-06-21T12:21:42 | 2021-06-21T12:21:42 | 347,921,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# funkcje02.py
#
def zwieksz(a):
a += 2 # powiększenie wartości o dwa, tj: a = a + 2
print(a)
def zwieksz2(b):
b[0] += 2
print(b)
def main(args):
a = int(input("Podaj liczbę: ")) # zmienna lokalna
print(a)
zwieksz(a)
print(a)
... | [
"lo1cgsan@gmail.com"
] | lo1cgsan@gmail.com |
3bcdff560e8830c41505379d37e1379df373635b | a9525859dcc421c446a0d501f2d30882fb73b707 | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/build/config.gypi | c845bb30ecb4ece68143fb356035a3fb365a63db | [
"MIT",
"Apache-2.0"
] | permissive | TwilioDevEd/video-service-node | d5c3d3cdf8a96ef5a5d714585ee0e1101e5c1390 | 5527dd2bfb16e6606855fbcc76187a8bed66f559 | refs/heads/master | 2021-11-28T15:45:37.249071 | 2019-03-13T22:55:03 | 2019-03-13T22:55:03 | 34,689,393 | 4 | 4 | NOASSERTION | 2021-09-01T21:34:45 | 2015-04-27T20:26:09 | JavaScript | UTF-8 | Python | false | false | 3,231 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"kevin.whinnery@gmail.com"
] | kevin.whinnery@gmail.com |
bc43583f980dc0e9c3943616e02cb5acb73ba03c | 2695d586778c3a19cad843f14f505f3e534f470d | /practice/Dynamic_Programming/Sticker_9465.py | cac0d3e543a6e3506d7453dc877d19c9cfa72409 | [] | no_license | kjh03160/Algorithm_Basic | efdb2473186d0aff983a8c0f961d6b86ce66b0d1 | 24842569237db95629cec38ca9ea8e459857c77e | refs/heads/master | 2023-07-14T21:34:29.074373 | 2021-09-11T10:13:00 | 2021-09-11T10:13:00 | 276,395,958 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # https://www.acmicpc.net/problem/9465
def answer(L):
DP = [[0, 0, 0] for _ in range(len(L[0]))]
DP[0] = [L[0][0], L[1][0], 0]
for i in range(1, len(L[0])):
DP[i][0] = max(DP[i - 1][1], DP[i - 1][2]) + L[0][i] # 현재 위를 선택할 때
DP[i][1] = max(DP[i - 1][0], DP[i - 1][2]) + L[1][i] # 현재 아래를... | [
"kis03160@likelion.org"
] | kis03160@likelion.org |
eb7d6a4abda13af08dead3330c0e64c29fd40e93 | b012caadf2bbfa34db5d0144accc5aeb02f26c68 | /keystone/common/sql/contract_repo/versions/029_placeholder.py | a96cd6f3625240fefa55dfdb8f0df785e3aa29f3 | [
"Apache-2.0"
] | permissive | sapcc/keystone | c66345df04af12066ec27ad93959da7b0b742fdc | 03a0a8146a78682ede9eca12a5a7fdacde2035c8 | refs/heads/stable/train-m3 | 2023-08-20T07:22:57.504438 | 2023-03-06T15:56:44 | 2023-03-06T15:56:44 | 92,154,503 | 0 | 6 | Apache-2.0 | 2023-03-24T22:13:22 | 2017-05-23T09:27:56 | Python | UTF-8 | Python | false | false | 754 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"lbragstad@gmail.com"
] | lbragstad@gmail.com |
ab75c6540bfc599e6d2614a1e00831798e9b1afe | a1234d571331681fb837664aa73725f523ff2da0 | /gym/setup.py | 24b639850692a74e8d9db75fbc73963fe55d9f6f | [
"MIT"
] | permissive | zhxx1987/openaitest | 8034661086e4c190294fd9c5a6cc7f785a9ac0b6 | 16f974815922d67754791628aaa5d32ad5439889 | refs/heads/master | 2020-03-26T22:04:16.821845 | 2018-08-23T04:34:03 | 2018-08-23T04:34:03 | 145,429,316 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | from setuptools import setup, find_packages
import sys, os.path
# Don't import gym module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'gym'))
from version import VERSION
# Environment-specific dependencies.
extras = {
'atari': ['atari_py>=0.1.1', 'Pillow', 'PyOpe... | [
"zhangshinshin@gmail.com"
] | zhangshinshin@gmail.com |
10667b823be167c063f7d2da9cc7727e91fa1da8 | 7860d9fba242d9bdcb7c06c32ee4064e4a7fa2f1 | /litex_boards/platforms/qmtech_ep4ce15_starter_kit.py | 3af64cc4ac1a000aa96a6cd0a7954f16b29cc2f6 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | litex-hub/litex-boards | ef1f200fd6d34c96621f4efa094ede874f4c34ab | b92c96b3a445fde31037f593a40fe621f85cb58c | refs/heads/master | 2023-09-03T15:09:11.198560 | 2023-08-30T15:22:11 | 2023-08-30T15:22:11 | 191,191,221 | 291 | 283 | BSD-2-Clause | 2023-09-03T20:32:58 | 2019-06-10T15:09:10 | Python | UTF-8 | Python | false | false | 5,087 | py | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2022 Franck Jullien <franck.jullien@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
from litex.build.generic_platform import *
from litex.build.altera import AlteraPlatform
from litex.build.altera.programmer import USBBlaster
# IOs --------------------------... | [
"franck.jullien@collshade.fr"
] | franck.jullien@collshade.fr |
50f1b2c6c3f6bec0a574850bc96f48c8683609c8 | cd0987589d3815de1dea8529a7705caac479e7e9 | /webkit/WebKitTools/Scripts/webkitpy/tool/steps/build.py | 10fe1a806ce51955b95b23099c0fc1bcef93962e | [] | no_license | azrul2202/WebKit-Smartphone | 0aab1ff641d74f15c0623f00c56806dbc9b59fc1 | 023d6fe819445369134dee793b69de36748e71d7 | refs/heads/master | 2021-01-15T09:24:31.288774 | 2011-07-11T11:12:44 | 2011-07-11T11:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | # Copyright (C) 2010 Google Inc. 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 retain the above copyright
# notice, this list of conditions... | [
"sdevitt@rim.com"
] | sdevitt@rim.com |
0b7b57afcf61532938b60198598d11f741b12287 | 4e35423872fe989ccb1f876486b451326d89ba9a | /gustav/export/mixd.py | fcd6cafdaf310fe78156f94ce48be2bce90802e4 | [] | no_license | j042/gustav-alpha | 54efba1c60f2aed674285580c28f5ae0d4d500ec | f738dcd66fb70df376b8a954a75a9024155a5c7a | refs/heads/main | 2023-07-21T01:25:08.725352 | 2021-08-31T09:26:10 | 2021-08-31T09:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,045 | py | import logging
import struct
import os
import numpy as np
from .utils import *
def mixd(fname, mesh, space_time):
"""
Write mixd file with given information.
Currently supports triangle, quadrilateral, tetrahedron, and hexahedron
semi-discrete mesh outputs.
Parameters
-----------
fname: ... | [
"jaewooklee042@gmail.com"
] | jaewooklee042@gmail.com |
14332c584973d8b33b49bd86857d732747b2129e | f8fed54194051791a13aab2316b719adde186d06 | /net/3d_pose_model.py | dd00d56d0b0ab569b59c17d94aed69dc8b9cb85b | [] | no_license | BulletforFreedom/pytorch_cv | cd80908db7b7cb55cb9ae63cbcb8c20f94a1df8b | 285fb72c5add2e98bb0c87ff9a5e7eaf5cf4804c | refs/heads/master | 2020-04-13T03:56:05.088056 | 2019-02-27T06:34:02 | 2019-02-27T06:34:02 | 162,946,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 16 10:59:53 2018
@author: lvsikai
Email: lyusikai@gmail.com
"""
import torch
import torch.nn as nn
class LinearBlock(nn.Module):
def __init__(self, linearsize, dropout):
super(LinearBlock, self).__init__()
self.relu = nn.ReLU... | [
"lyusikai@gmail.com"
] | lyusikai@gmail.com |
7b631e19e522191e7c94a877f0b9acf61a4e7f76 | 1e05da139b414823fcc52759da7f95ffc5965a60 | /mysite/settings.py | 8b53b2c600b816d7145769ce0461c2864e52d407 | [] | no_license | elabdesunil/django-polls | 15c30919727fa880a1d3fb1fcfd8c5e0044695a7 | 54f2d7d25ed9b4071a3fdd47b64d6fc92c69c230 | refs/heads/master | 2022-12-22T21:52:50.005901 | 2019-09-22T19:05:17 | 2019-09-22T19:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"sunilale0@gmail.com"
] | sunilale0@gmail.com |
945d0014a2407619a8a5caf94695cf35c28e0a16 | 55bdaf0f7c0642e21ed446a47d4ec7ab4a9451a9 | /tobuscando/dashboard/forms.py | fadfbdbe1815d0bb0f7a8afcab2cef5850a13fac | [] | no_license | edsonlb/tobuscando | 178863e8d27494c4b3638383360f99e03646891b | 178859b8fb0e85b932c4aaa33e5eac52a39ac831 | refs/heads/master | 2021-01-20T09:32:11.811733 | 2017-05-04T12:50:32 | 2017-05-04T12:50:32 | 90,261,543 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # coding: utf-8
from django import forms
from django.utils.translation import ugettext as _
from tobuscando.core.models import Person
from tobuscando.ads.models import Offer
class ProfileForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(ProfileForm, self).__init__(*args, **kwargs)
... | [
"oliveira.matheusde@gmail.com"
] | oliveira.matheusde@gmail.com |
f5a704200982ad9f39535af72df5277942e1c98c | 7925473a803f87f925cca98b56d3b04f5c00ef35 | /linear_regression_land.py | e937df90ed9f70abffc3a177521585ee454052b7 | [] | no_license | RakeshGourani/ZeroHunger | 3722b0307745e970aa3dcd3b7fc5feaa415bdc89 | 7d3f7c0b389d77619c4cc88276dc828d038e3b10 | refs/heads/master | 2023-09-01T21:38:29.445424 | 2019-09-28T06:53:53 | 2019-09-28T06:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
import seaborn as sns
import pickle
import os
from scipy import stats
scores = []
land_data = pd.read_csv("Land_data.csv")
def save... | [
"sampathanurag3@gmail.com"
] | sampathanurag3@gmail.com |
6ccfe46e32542e484141f4e7a516562743c5f87c | 869f3cc7c4b5c0c0b138c76cf457ebc5f7a35525 | /tests/v1/test_db_config.py | cb9f7cf6475a018ad2409c8fafa2453c000c347c | [
"MIT"
] | permissive | Curti-s/ireporter-api | dc3c1dea0373243c0035e8d5200c0a33bc106ab5 | 57b225508f58fd33c848bc480a6dd5b7a5ea5790 | refs/heads/develop | 2022-12-10T11:24:10.653374 | 2018-12-08T15:42:01 | 2018-12-08T15:42:01 | 158,517,000 | 2 | 0 | null | 2022-12-08T01:27:49 | 2018-11-21T08:41:03 | Python | UTF-8 | Python | false | false | 1,101 | py | import unittest
from app import create_app
class TestDevelopmentConfig(unittest.TestCase):
"""Test if configuration is development"""
def test_app_is_development(self):
app = create_app('development')
self.assertTrue(app.config['DEBUG'] is True)
self.assertTrue(
... | [
"matthewscurtis81@gmail.com"
] | matthewscurtis81@gmail.com |
d5beca5ed8e459e345d112583d4a63556cbbeb03 | 7dd25d238cf6fe9a9f88e8f602b661bf263c2af4 | /Nests/wf_nests.py | 6088808846dafe9630859077b5fca03a94446928 | [] | no_license | IzumovaD/WF-software-support | dc74e96a90b6c8c709858abbed447be7f540e855 | cfd4853def40f77ddfa9b09c15c3ddaca101ab81 | refs/heads/master | 2023-04-26T15:00:24.703979 | 2021-05-25T15:47:55 | 2021-05-25T15:47:55 | 356,993,050 | 0 | 0 | null | 2021-05-12T21:19:00 | 2021-04-11T22:24:42 | Python | UTF-8 | Python | false | false | 7,019 | py | import re
from collections import OrderedDict
from root_allomorphs import root_allomorphs as allomorphs
class Nest:
def __init__(self, vert):
vert = vert.replace("\n", "")
self.nest = OrderedDict([((vert, 0), [])])
self.vertex = vert
root = self.form_root()
self.ro... | [
"tannenwald@inbox.ru"
] | tannenwald@inbox.ru |
79916b4df806f4901817a88123389f923ea0c09c | cc99bef17c1ad843b6514b79254a8ab10f1fd32e | /app.py | 7e53afc69b6f34d8ea7b6b819ed985de773b0a13 | [] | no_license | TiagoAltstadt/FileSorter | 6190a808748896204e0b50335852c4c700034f51 | 141b022a6c3587ba79d75c8b88346f4ac3bd9564 | refs/heads/master | 2023-07-14T14:57:07.276455 | 2021-08-24T18:51:58 | 2021-08-24T18:51:58 | 399,572,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # Import Module
import os
from datetime import datetime
# Folder Path
path = './data'
# Change the directory
os.chdir(path)
def changeFilesName():
for count, filename in enumerate(os.listdir()):
aux = os.path.getmtime(filename)
hola = datetime.fromtimestamp(aux).strftime('%Y-%m-%d %H-%M-%S')
... | [
"tiagoaltstadt@gmail.com"
] | tiagoaltstadt@gmail.com |
5e2cf673953c7e75da73e268ab8efdf6d8b2dc7a | d9639fe9687f71d9fa3eda95762e37768a60bc09 | /cproject/comments/urls.py | fe8ec102f8d2dd42d8e4fa7e20bf3b464d744137 | [] | no_license | AntonMash/comment_tree | bde747c726498453d8a30ceca1505c6e10349456 | 43f7e3b449f8d3e5a2194c2499dfa241ed4a0a33 | refs/heads/master | 2023-02-27T20:31:35.186754 | 2021-02-09T11:41:42 | 2021-02-09T11:41:42 | 337,386,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from django.urls import path
from .views import base_view,create_comment,create_child_comment
urlpatterns =[
path('post-comments/', base_view),
path('create-comment/', create_comment, name='comment_create'),
path('create-child-comment/', create_child_comment, name = 'comment_child_create'),
] | [
"giltias@inbox.ru"
] | giltias@inbox.ru |
621c24156116cefc947d5504a6bd59729de62186 | 5d74051293a4740c597abb016870a56a58cecf5b | /modules/persons/application/controllers/v1/delete_user_api.py | 76a6e1ba2a6489b962b624f13f7d278ed3e95ec2 | [
"BSD-3-Clause"
] | permissive | eduardolujan/hexagonal_architecture_django | 98e707148745f5a36f166c0584cfba21cca473f0 | 8055927cb460bc40f3a2651c01a9d1da696177e8 | refs/heads/develop | 2023-02-21T22:46:20.614779 | 2021-01-16T02:48:37 | 2021-01-16T02:48:37 | 305,813,872 | 5 | 2 | BSD-3-Clause | 2021-01-16T18:00:26 | 2020-10-20T19:32:46 | Python | UTF-8 | Python | false | false | 2,043 | py | # -*- coding: utf-8 -*-
from modules.shared.infrastructure.log import LoggerDecorator, PyLoggerService
from modules.shared.domain.http import status as http_status
from modules.shared.domain.requests import Request
from modules.shared.domain.responses import Response
from modules.shared.domain.serializers import Seri... | [
"eduardo.lujan.p@gmail.com"
] | eduardo.lujan.p@gmail.com |
b7c682b6962704e09f1e2495f4bd5b4a6334957c | ffe193727325099bea51bed9c5be44cf0cdbb20d | /k-way_merge.py | 6fff8f7b0f2a90d3f2091053bd75755f970e6e19 | [] | no_license | ivanezeigbo/statistics | 46e58a0d3564e235d085958ce24eaffb017e6bdd | 9780955300b3fa32af0646bae27b4d72536d9478 | refs/heads/master | 2021-01-19T05:10:32.147709 | 2018-04-20T10:55:03 | 2018-04-20T10:55:03 | 65,373,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | #import pdb; pdb.set_trace()
from time import clock
import random; import math
random.seed(501)
import matplotlib.pyplot as plt
def insertion(list):
for i in range(1,len(list)):
w = i #w is for comparing
while w > 0 and list[w] < list[w-1]:
list[w], list[w-1] = l... | [
"noreply@github.com"
] | ivanezeigbo.noreply@github.com |
8da27b16ac1aedc55dd46d8dc3adb9357b99bcd0 | bb84fde639d202c4c1e6970074dc45fa5144c426 | /DZ06/6task_01.py | c9624019d48f912b13f6328c70e74417e2a0fcd0 | [] | no_license | 5kyliner/WebAcademyProject | 7cdd44f80df8936ff73df1944e097dac92fe5c51 | 0182508d64abdac0b5373b86b58f1c040459dc26 | refs/heads/master | 2020-03-19T02:10:12.524695 | 2018-07-08T20:36:31 | 2018-07-08T20:36:31 | 135,605,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # Task01
"""
1. Найти номер и значение первого положительного элемента списка.
"""
def find_first_positive(a):
for i in range(len(a)):
if a[i] > 0:
# print('Номер элемента списке:', i)
# print('Значение:', a[i])
return (i, a[i])
elif a[i] < 0:
pass
... | [
"kipperbot@gmail.com"
] | kipperbot@gmail.com |
093dd5adf5896e90311dd8632e63e6d69af42f39 | 7d7a08723a2aee4368cf94e6bbca008798432a3b | /1.5 Логические операции и операции сравнения/OperLogic&Comparison.py | 6f7cc0912f87d391c4bc1f287ee13d3a2dcce59e | [] | no_license | DmitryMedovschikov/Programming_on_Python.Bioinformatics_Institute | 3412766050916c6ed6d9395b706406169f3de67c | 4e3a80de71f8c4ef39413d34bbfef3cde19ab4dd | refs/heads/master | 2023-04-22T12:54:53.276004 | 2021-05-09T16:03:51 | 2021-05-09T16:03:51 | 360,144,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | # Расставьте скобки в выражении: a and b or not a and not b
# В соответствии с порядком вычисления выражения (приоритетом операций).
# Ответ: ((a and b) or ((not a) and (not b)))
# Выполните код в интерпретаторе Python 3:
# x = 5
# y = 10
# y > x * x or y >= 2 * x and x < y
# Постарайтесь разобраться, почему интерпре... | [
"medovschikovds@gmail.com"
] | medovschikovds@gmail.com |
f5c4f35fd2c565576bde29aca9db25fcd3e650fd | 87288a9896a7223881522a7a1c9fd0bc94a58dd4 | /picfall.py | 8bf7f3fa08e97dafbcbde6935ab8af0ff26255ee | [] | no_license | danseagrave/picfall | acdfd2d8de6283d84247a3aa3c655ae74cc258a5 | 49b088083523252d3ad156fbe68e71354bc7ba40 | refs/heads/master | 2020-06-02T05:08:05.015479 | 2015-06-27T16:00:04 | 2015-06-27T16:00:04 | 38,165,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,436 | py | import os
import re
import urllib
from urlparse import urlunparse
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp import template
from google.appengine.api import urlfetch
from django.utils import simplejson
from twitter import twitter
from httphe... | [
"dan@dipsy2"
] | dan@dipsy2 |
81d64fbe8e61f3bfd56fd9fe45446ed82ad92b0e | 3ee5f3f013cbb6ab8620c973c191ccc5e5d47aec | /nps_examples_py/setup.py | e7d39e367baae191821864d00af970b90237b4ce | [] | no_license | nps-ros2/nps-ros2-examples | 96837de908c7c76089f1eda6c10fb28c23452fdf | 557244746b370f04288a7de74b4b12991cf331e0 | refs/heads/master | 2020-05-07T20:51:12.577750 | 2019-09-10T17:43:42 | 2019-09-10T17:43:42 | 180,880,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | from setuptools import find_packages
from setuptools import setup
package_name = 'nps_examples_py'
setup(
name=package_name,
version='0.6.2',
packages=find_packages(exclude=['test']),
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
... | [
"bdallen@nps.edu"
] | bdallen@nps.edu |
cec6074f119ad36ec8c85cd99c263eaff3b26f7f | 5be5c151664b5b83c0fda1c30771251ee2eb5ead | /Test/com/ruidge/liaoxuefeng/oo/object.py | 4229160298952164bd88be7f4d29326cb2ddfab2 | [] | no_license | ruidge/TestPython | 6aef46728a9f785568418c07db1eee5ce63903f6 | 00abaa85e55ea347c51bb70751b8d57dd5864876 | refs/heads/master | 2021-10-07T10:32:34.941971 | 2021-09-29T07:26:46 | 2021-09-29T07:26:46 | 21,946,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # coding=utf-8
'''
Created on 2015年1月30日
@author: zhangrui6
'''
# py 2.2 后继承 object 的目的是使这个类成为 new style class, 没有继承 object 的为传统 classic class,
class Foo(object):
pass
class Foo1:
pass
if __name__ == "__main__":
print type(Foo), type(Foo1)
print isinstance(Foo, object)
print isins... | [
"ruidge@gmail.com"
] | ruidge@gmail.com |
e5efff36442daca1dc76753963d41d3814d762fb | ca590c3b7503ef9a1c954f046aaba48789a3b714 | /basic_app/views.py | fb7ede572b217a00df186addb60a305a6b54ea9e | [] | no_license | arpitgupta1906/django-loginform-practice | 24b357f3d40828ef566a3cdb1d3f704c3811baf4 | 899029a06a0fc669a2efda9b66fdf8c56167a637 | refs/heads/master | 2020-06-04T07:45:54.084173 | 2019-06-14T11:21:38 | 2019-06-14T11:21:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from django.shortcuts import render
from basic_app.forms import UserForm,UserProfileInfoForm
from django.contrib.auth import authenticate,login,logout
from django.http import HttpResponseRedirect,HttpResponse
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
# Creat... | [
"gupta.25@iitj.ac.in"
] | gupta.25@iitj.ac.in |
d733825c2e17c40b8f21ad9a095658449cf1a3ab | ea983836372ca1dfcefd4761292ea7123c9a9790 | /profiles/migrations/0027_auto_20201124_1435.py | 0234ac208e5fb52319061630670d3469bb1ad664 | [] | no_license | Code-Institute-Submissions/SweetHome | ca0cb12fa7893a877398ead8104efa6ac901cb55 | 0aaf7b42c111355e1d71f8f893ce84177e509cf3 | refs/heads/master | 2023-01-16T00:40:53.019417 | 2020-11-30T15:54:27 | 2020-11-30T15:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Generated by Django 3.1.2 on 2020-11-24 14:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0026_auto_20201124_0814'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='gende... | [
"francesvugts@hotmail.com"
] | francesvugts@hotmail.com |
e51540b0300e36e9583ef8b4b9f38144c1a81ec8 | 7e4fd3a8ef590bf5175031d7dadd52a060c36aaa | /logging_learn.py | 9b22765abf463cbc55e865c24106b9b4259335e6 | [] | no_license | rickyhwung/python3 | fdbc3e7021c0214b59e69603827a2482ef0811c6 | bd127419c8716737f52a9f1fd0a149107b2cf48b | refs/heads/master | 2021-06-20T11:08:04.981280 | 2019-09-02T00:23:42 | 2019-09-02T00:23:42 | 190,026,308 | 0 | 0 | null | 2021-06-10T23:35:05 | 2019-06-03T14:53:47 | JavaScript | UTF-8 | Python | false | false | 1,614 | py | import logging
import logging.handlers
import time
format_dict = {
1 : logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'),
2 : logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'),
3 : logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'),
4 :... | [
"rickyhwung@163.com"
] | rickyhwung@163.com |
c87b53e73526500ff0f09df41d71d7f7fd37e251 | 936032b889517d13f58af2e9bc60700b9f371dac | /Borsellino.Langton.py | e51019b7126c99e263225bd08820236bd9a605b9 | [] | no_license | mborsel1/LangtonAnt | 5587b2fbb37a077525d956c502d8565db9c98976 | 2a4e78c46807bcc45da2e2e3a4348b4b38d3dccf | refs/heads/master | 2021-04-26T23:39:42.883183 | 2018-03-04T22:17:18 | 2018-03-04T22:17:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 14 10:58:05 2018
@author: Michael Borsellino
"""
import matplotlib
matplotlib.use('TkAgg')
import pylab as PL
import scipy as SP
width = 100
height = 100
def init():
global time, x1, y1, config, state, lastx, lasty
time = 0
lastx, l... | [
"noreply@github.com"
] | mborsel1.noreply@github.com |
d5b778e30438fb5003e9ab8f5be37d0e342c02cc | 380712a4d3436b5997cebdaf2d6bdd5227ffef99 | /06_using_classess.py | d142dc0ceb8bdaa3387069624f66825710ea5553 | [] | no_license | rifqirosyidi/tkinter-basic | 76b80095a0063a5e184fa12a1fb9193f3ea91fb6 | 75d9ae83af4b555335b95ac177bdd361529550ed | refs/heads/master | 2020-08-30T08:52:43.162243 | 2019-11-01T13:32:50 | 2019-11-01T13:32:50 | 218,325,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from tkinter import *
class SomeClass:
def __init__(self, master):
self.frame = Frame(master)
self.frame.pack()
self.print_button = Button(self.frame, text="Print Me", command=self.print_message)
self.print_button.pack(side=LEFT)
self.close_button = Button(self.frame, te... | [
"rief.rosyidi@gmail.com"
] | rief.rosyidi@gmail.com |
650b83baea8f8fa8775490ba7da86be009c5d21d | 601c25757c20f0f399d6abbf948638f93008a897 | /to_coco_train.py | 01702e9d9c457ef271ae4bc84977b6638eb6ba94 | [] | no_license | aositeluofu/ZTE_challenge_sort_top9 | 25954fb07e6e306213ecd782c33a52374b95afe5 | 1e372c88c8628100ee61957c5f50ff07a0cae54f | refs/heads/master | 2023-01-23T01:14:00.007763 | 2020-11-22T13:42:44 | 2020-11-22T13:42:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,023 | py | import json
from os.path import join,dirname,realpath
import os
import cv2
import numpy as np
def file2array(path, delimiter=','):
recordlist = []
fp = open(path, 'r', encoding='utf-8')
content = fp.read() # content现在是一行字符串,该字符串包含文件所有内容
fp.close()
rowlist = content.splitlines... | [
"759379768@qq.com"
] | 759379768@qq.com |
3306d61cfb77c241204cf96a9bb4ef072b7ab5ed | 2b0187b6214da482fe253e0e7a5632d32f1db000 | /blog/migrations/0001_initial.py | 4b2ab9a1ba58d0c4432c3820b24950d1a224d544 | [] | no_license | KedroBoss/byexample | 910eae1f0ba2aa3031331c7c6d9a4991664f7af5 | 995dd8cf64084602a11a3c0b0071d90d6595bf73 | refs/heads/master | 2021-01-11T21:44:50.768250 | 2017-01-19T09:40:54 | 2017-01-19T09:40:54 | 78,844,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-03 11:14
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"dimmak90@gmail.com"
] | dimmak90@gmail.com |
b5a11e94c69d8671ad535398c8b61a5819cfd8cc | 45ed74f2493a9b82a28aaa8f92bc4961bdfd804f | /catkin_ws_lab_kf/build/robot_pose_ekf-master/cmake/robot_pose_ekf-genmsg-context.py | 16c05cfcd43b7f4a3a4b7f83e55e65430a87c61f | [] | no_license | fishflying3891/udacity-robotics-software-engineer | c21c66ce36f3bdee894ca0ce7571060bfc3333ce | 4a792c7d19339b3808c128ce8714f3dcc3ac64b9 | refs/heads/main | 2023-07-24T21:07:32.995069 | 2021-09-08T04:11:56 | 2021-09-08T04:11:56 | 380,644,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = ""
services_str = "/home/workspace/udacity-robotics-software-engineer/catkin_ws_lab_kf/src/robot_pose_ekf-master/srv/GetStatus.srv"
pkg_name = "robot_pose_ekf"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_pa... | [
"ethan.fei.yu@gmail.com"
] | ethan.fei.yu@gmail.com |
271d40935f16d86274c80cad2bde0c58c0bb8ccc | 953fba52bb8f05339786e108f60b05e57e3f2093 | /guia/capitulo_5/cap5_project/settings.py | 4262851f96a3f7f869550cf9eb327664e9750168 | [] | no_license | student10github/primer_repositorio_cursdba | 2759eced078f97e0960cfb9031609dc125b5f5ed | 6b007c6c0e77bc4366473e9de1b6081f9b074159 | refs/heads/main | 2023-01-04T06:26:51.299247 | 2020-10-24T17:35:05 | 2020-10-24T17:35:05 | 306,871,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | """
Django settings for cap5_project project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"student10github@gmail.com"
] | student10github@gmail.com |
8c702e90c34470a77861f3a53678d7024f517190 | 8453bad2f70c942c72888d0f089b31717916b62e | /Tries/multiStringSearch.py | 0b76aa66acc65d3cd924c92bf4c98f54e7661e0d | [] | no_license | sagnikghoshcr7/DSA-AlgoExpert-Practice_Solutions | 2dc59fc809c3e356d48ae2e0103d3e308111905d | fe05e162f6244aed4b9471612e53eb2e1c3d9356 | refs/heads/master | 2022-12-27T12:50:26.117284 | 2020-10-13T05:51:22 | 2020-10-13T05:51:22 | 282,289,863 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | """
Multi String Search
Write a function that takes in a big string and an array of small strings, all of which are smaller
in length than the big string. The function should return an array of booleans, where each boolean
represents whether the small string at that index in the array of small strings is containe... | [
"noreply@github.com"
] | sagnikghoshcr7.noreply@github.com |
16e39520ada57ae4d129e3811101334697cef212 | de3d9ba254b1e8047817fff9fec9b3762e138817 | /micro_bit/micro_bit资料收集/播放音乐粉刷匠.py | 85d1f6fb6cd5966cb7c83265861063df60a1a8c5 | [] | no_license | chenjiegd/microbit_Repository | 3343401cf4f6f9a8011fa7a2ebe0023a6a76c4e1 | 8b37e4c378712a53f20b5a68ed62e96d2c5c19d3 | refs/heads/master | 2020-04-17T17:25:43.179476 | 2019-06-06T01:24:25 | 2019-06-06T01:24:25 | 166,781,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from microbit import *
import music
display.show(Image.MUSIC_QUAVER)
tune = ["G4:2", "E4:2", "G4:2", "E4:2", "G4:2", "E4:2", "C4:4", "D4:2", "F4:2",
"E4:2", "D4:2", "G4:4", "E1:4", "G4:2", "E4:2", "G4:2", "E4:2", "G4:2",
"E4:2", "C4:4", "D4:2", "F4:2", "E4:2", "D4:2", "C4:4", "E1:4", "D4:2",
... | [
"noreply@github.com"
] | chenjiegd.noreply@github.com |
c3e3e185d6859d2945a795226ced30bc8ddb66b3 | 1ccc531e77b10fb75a31fdc441db84f6180c81b3 | /example-project/process_items.py | d106ca2d489f5338d423eeef7e97d5cf1fab35b1 | [
"MIT",
"Giftware"
] | permissive | lnlantian/Scrapy | aba7acccb9c03b2c8189229c4eb25f07eecc2389 | fedaa39e7fa8b839701a21f179cd292898a25642 | refs/heads/master | 2021-01-20T18:14:54.851395 | 2017-02-26T01:36:51 | 2017-02-26T01:36:51 | 64,541,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A script to process items from a redis queue."""
from __future__ import print_function, unicode_literals
import argparse
import json
import logging
import pprint
import sys
import time
from scrapy_redis import get_redis
logger = logging.getLogger('process_items')
def... | [
"darkrho@gmail.com"
] | darkrho@gmail.com |
3deacc17b483fd79573c192526fc20b8ae69b30f | be2a81f03e8a2dac7d356dde7a3ffdcfe3f77e00 | /providers/com/biomedcentral/migrations/0002_favicon.py | f3d7c663a9a58c872689d4481f4d3d62cbe13f76 | [
"Apache-2.0"
] | permissive | Stevenholloway/SHARE | 4193bbd3ca50765a24bf21c0cc14438175fbb678 | b9759106d12c2ff548bad22c4be8650e9f41e61e | refs/heads/develop | 2021-01-21T19:13:35.205983 | 2017-02-23T14:45:46 | 2017-02-23T14:45:46 | 63,431,390 | 0 | 0 | null | 2016-07-15T15:17:45 | 2016-07-15T15:17:44 | null | UTF-8 | Python | false | false | 463 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-02-10 14:32
from __future__ import unicode_literals
from django.db import migrations
import share.robot
class Migration(migrations.Migration):
dependencies = [
('com.biomedcentral', '0001_initial'),
('share', '0018_store_favicons'),
... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
41a53bbfa73c42d13714aa95f8a6f780a4bd9f0f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/299/66464/submittedfiles/testes.py | 83cd0f4164df46ab44cfb4ae691bbced548efa8a | [] | 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 | 197 | py | # -*- coding: utf-8 -*-
print("Nikolas Sivini Borges Galvão")
print("20")
print(11+1037)
print((9*35+160)/5)
print(3.14159*5**2*3)
print((2+5)**2)
#add
x=0
y=2
while x<100:
x=x+y
print(x)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ed7e12c276248207dcadefe405fbe058b20652dd | 258e47d8e55db0fb12437aa1e7f9860a8bef6623 | /agilex/configuracion_agilex/doctype/tipo_de_documento/tipo_de_documento_dashboard.py | 6f3e46469731e8b52ecba7c28fb32c310398f215 | [
"MIT"
] | permissive | Nirchains/agilex | 003894bed211c71004f37beb22fd96fc1df6576f | 04470873abdea5d0023a1ccadf02a932fb3e834b | refs/heads/master | 2021-06-12T11:23:48.027599 | 2021-05-28T21:48:00 | 2021-05-28T21:48:00 | 166,990,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from frappe import _
def get_data():
return {
'heatmap': False,
'heatmap_message': _('This is based on the Time Sheets created against this project'),
'fieldname': 'tipo_de_documento',
'transactions': [
{
'label': _('Ver expedientes'),
'items': ['Expediente']
}
]
} | [
"nirchains@gmail.com"
] | nirchains@gmail.com |
1b1e93bc39f957e9273260f3bc1e19ce4bea3d8c | 0bda0c021c7ca651646d15cba9a54bc82b836838 | /SSX_model_A.py | 85124f9da6930b92f748d5dd6504985f0c4fd3b1 | [] | no_license | nanders4/SSX-Files | 89666ad802adcd510788fc79fd374c65104a4bfe | 958393ffe0e0a2b7aa28a453c0374af82a9013d8 | refs/heads/master | 2020-03-25T03:00:06.397897 | 2018-08-03T15:44:54 | 2018-08-03T15:44:54 | 143,317,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,747 | py | """SSX_model_A.py
This is the *simplest* model we will consider for modelling spheromaks evolving in the SSX wind tunnel.
Major simplificiations fall in two categories
Geometry
--------
We consider a square duct using parity bases (sin/cos) in all directions.
Equations
---------
The equations themselves are those f... | [
"nanderson321@gmail.com"
] | nanderson321@gmail.com |
98adc2f86d297b8a79c2eb2c4ad0528d7e435bc9 | a056e699bb03614563dc9090c4c3bc65479fc2d9 | /buffered_normal.py | 052155b79cc21ef651f9092a14a4e1be4c1a18a0 | [
"BSD-3-Clause"
] | permissive | iandees/marblecutter | 278890faaf7a4d7b604bf2520aff8adb3c5d1b95 | 779b9c597bbd69ca3044f2c246721dc4eeeef61d | refs/heads/mapzen | 2021-01-25T04:36:13.210028 | 2017-06-15T19:35:53 | 2017-06-15T19:35:53 | 93,455,208 | 0 | 0 | null | 2017-06-05T23:13:17 | 2017-06-05T23:13:17 | null | UTF-8 | Python | false | false | 1,243 | py | # noqa
# coding=utf-8
from __future__ import division
import logging
from StringIO import StringIO
import numpy as np
from PIL import Image
from normal import render_normal
LOG = logging.getLogger(__name__)
BUFFER = 4
COLLAR = 2
CONTENT_TYPE = 'image/png'
EXT = 'png'
NAME = 'Buffered Normal'
def render(tile, (d... | [
"seth@mojodna.net"
] | seth@mojodna.net |
fd970270a1867d7e4d1426afa5d8c81c3785cf53 | cbb26b8c9722e33eaabecfee954ae668206dc431 | /mp2-code/solve.py | 51cc469b5884cd5e70686580a9a781d06f3f1eda | [] | no_license | jordanwu97/CS440-AI | dfa6063d745ec032fc812b1c50b17c82180af8b6 | 893a42b4d1b2f708d08f4518896bd8aaddcf1af3 | refs/heads/master | 2020-04-18T09:15:18.587710 | 2019-04-23T00:32:13 | 2019-04-23T00:32:13 | 167,427,817 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,827 | py | import numpy as np
import time
# modified ALGORITHM X code from https://www.cs.mcgill.ca/~aassaf9/python/algorithm_x.html
class ALGOX(object):
def __init__(self,X,Y):
self.X = ALGOX._preprocess(X, Y)
self.Y = Y
def solve(self):
return ALGOX._solve(self.X,self.Y)
def _solve(X... | [
"jordan@Jordans-MacBook-Pro.local"
] | jordan@Jordans-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.