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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dad4360db0dbf7aab1cdcc42647bc8853831028d | 83b938483ed42ede91d46392599161a2f0a01cb0 | /apps/users/migrations/0001_initial.py | 8d4ad134e2a9c814f4a31aef6225ce41f8e9ce8d | [] | no_license | fshFSH1387/mxshop | 65fa0eb41f6ac673bbdd4fadc986c5668b040f96 | e04b8bc0cff6422d7e8e2b39c2a2436c69b51bfe | refs/heads/master | 2020-03-25T19:35:05.981787 | 2018-08-09T02:53:43 | 2018-08-09T02:53:43 | 144,090,040 | 2 | 1 | null | 2018-08-09T02:53:44 | 2018-08-09T02:14:46 | null | UTF-8 | Python | false | false | 4,037 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-07-24 02:48
from __future__ import unicode_literals
import datetime
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
in... | [
"1907144407@qq.com"
] | 1907144407@qq.com |
93926aae0bfed5953da6df5e99392bf9ce52c8ca | c06f40b11119c9005df5ab9e1353897604a7ca23 | /chartsdb/students/views.py | 0bf6c23b04d150a11d2dc637b7cc0c047c701321 | [] | no_license | Drew81/Abc-Data | d98320299a5d127ce139732278a45fe771ed1124 | b13db677439f446461a32550ec5296d1e1030188 | refs/heads/master | 2021-05-15T21:45:53.685029 | 2019-07-12T15:48:00 | 2019-07-12T15:48:00 | 106,577,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,620 | py | from django.views import generic
from .models import Student, Detail, Score
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.core.urlresolvers import reverse_lazy
from django.views.generic import TemplateView
#Restframworks
from rest_framework.response import Response
from rest_fram... | [
"winterz@Drews-iMac.home"
] | winterz@Drews-iMac.home |
b95fd459a30460bf9d8bc15c82f847b32064b38c | 0523da031e1478eabb453afb08c89d8789f78007 | /bazy/baza.py | be6359a0eeb81591c1edc204f5b93d500bbdc7fb | [] | no_license | miiszka/kody | 980501925bcfa32b0a08f59df6213f8e39b74c3a | 309d8adf6cf1e8dc534fdbe82ceb8eab041111f8 | refs/heads/master | 2021-01-25T17:05:23.986413 | 2019-02-11T12:01:45 | 2019-02-11T12:01:45 | 102,843,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# baza.py
import csv
import sqlite3
def czytaj_dane(plik, separator=","):
dane = [] # pusta lista na rekordy
with open(plik, 'r', newline='', encoding='utf-8') as plikcsv:
tresc = csv.reader(plikcsv, delimiter=separator)
for rekord in tresc:
... | [
"emeryt555@tlen.pl"
] | emeryt555@tlen.pl |
223c76129aa724394fe8bc8c04f4979601d194fe | e8d589e95dc16c386f6af2ab09da2742123a5e0e | /selenium_test/cahealth_parameterized.py | a13277d8033063e59f434aa1f1dea9e498ab9f9f | [] | no_license | moyosoreS/selenium_crossbrowsertests | ccab8664489d34e76a6d79950969f00d0a36523a | 11a1c9f25e0eb6c6c4770985cdad6a6cf10f5527 | refs/heads/master | 2020-09-27T00:09:14.949495 | 2016-08-24T12:48:00 | 2016-08-24T12:48:00 | 66,463,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | import sys
__author__ = 'Desmond'
# Please visit http://selenium-python.readthedocs.org/en/latest/index.html for detailed installation and instructions
import unittest
import csv
from selenium import webdriver
class SeleniumCBT(unittest.TestCase):
def setUp(self):
caps = {}
caps['name'] = 'Sel... | [
"sogaolumoyo@gmail.com"
] | sogaolumoyo@gmail.com |
02791ea231590cbd94794e774adb135d03ae64fb | 97ad16e12ff2425a0d78b68a254eb93438b07688 | /countBST using arr elements as head.py | b779ff7a5b78a8ddb84013abb7a19e0291d685e1 | [] | no_license | poojithayadavalli/Trees | 54a3878646c255793c28ec4de0632ef03bbf5982 | c3fd45860b85a57ffac2c5d903ba3d2aadde3630 | refs/heads/master | 2022-11-27T20:51:54.934823 | 2020-08-09T11:51:54 | 2020-08-09T11:51:54 | 282,373,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | """
Rohan is learning about Binary search Trees.He went through a task as follows:
Given an array arr[] of N integers. The task is to count the number of Binary Search Tree can be made using each node of element in arr[] as a root node.
Input:
Firstline contains size of array N
Next line contains elements of array
... | [
"noreply@github.com"
] | poojithayadavalli.noreply@github.com |
de377639fae6e41409818847cd35e0f14be66353 | 8de519715db979f128ff44464a84b6d75cba48d8 | /login_samply.py | 9aa374892819506e4d89d9e023a792d25298949c | [] | no_license | Yukig-github/resarch | af146eed7a70b19b507e61ae075833caf9d486bf | 88f031a8a45eb20bf3d30eba37f4adf9eb219d2e | refs/heads/main | 2023-06-13T08:30:42.886220 | 2021-07-12T14:57:54 | 2021-07-12T14:57:54 | 376,378,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin
# Setting the user name and password
USER = "1095287"
PASS = "h110622"
# Start a settion
session = requests.session()
# Loggin
login_info = {
"uid":USER,
"pw":PASS,
"_csrf":"f28e34c1-6ad6-462c-b518-86cf4c23d298",
"password... | [
"noreply@github.com"
] | Yukig-github.noreply@github.com |
9ed3302317bb7901f6b3244ef26fc1ecb990a599 | 5b9f9b4ea1494943e6f7f842df55909599ed1304 | /python/onshape_client/oas/models/bt_shaded_render_document_response.py | 7f8e89af07f0ac165d25afbbf29e6536706ff134 | [] | no_license | jenniferyoung02/onshape-clients | f50534f033428027515b7fc0b801b1caab4d0aec | 8ee31a17d7af32f105b851e45f69fd4a3006e1ba | refs/heads/master | 2020-09-07T06:44:37.682545 | 2019-10-08T18:52:06 | 2019-10-08T18:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,884 | py | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
The version of the OpenAPI document: 1.104
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class BTShade... | [
"ekeller@onshape.com"
] | ekeller@onshape.com |
a5cabc5a80802e5542d44f22fc4f861683ba8459 | beb32d495a68bb4ba47ef8aeea2f5afd6acdc244 | /infosec-lab1/lab1-2/ClientA.py | e45c0a5317aed31ecac298c7f3628a8a910786b6 | [] | no_license | Hatuw/infosec2018 | b0378cd5460371add65a25195d244a8afbcf8908 | a48cc2b2fe6958d4f3a064c41ca1a487d62ab798 | refs/heads/master | 2020-04-11T01:12:39.126216 | 2018-04-27T08:31:50 | 2018-04-27T08:31:50 | 124,316,665 | 0 | 2 | null | 2018-04-15T14:30:50 | 2018-03-08T01:10:51 | Python | UTF-8 | Python | false | false | 1,605 | py | # -*- coding: utf-8 -*-
import re
import rsa
import socket
from ServerC import *
class ClientA:
def __init__(self, name='client_a', ip='127.0.0.1', port=6666, **kwargs):
assert re.match(r"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"
,... | [
"jiaxi_wu@ieee.org"
] | jiaxi_wu@ieee.org |
6cb49efe8e184a53097740ca49c6d05bb5dc2a54 | 87165e7526a5466a91f779dbf7e4b8d008ca73df | /api_serve/app/celery/tasks.py | 6ca9ef29c81a18f9105fd63bec217f7fd658adb6 | [] | no_license | gocode2016/wx_web_api | d2f5ca3970c165c168d187df03680412f8a388b6 | bf039fbe3b29e47e9aa2db47c57cc043eb0c2f47 | refs/heads/master | 2020-05-03T05:18:55.276899 | 2019-01-12T03:13:53 | 2019-01-12T03:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : classmate Lin.
# @Email : 406728295@qq.com
# @File : tasks.py
# @Time : 18-10-8 下午2:42
'''
异步任务
'''
from __future__ import absolute_import, unicode_literals
from app.celery.celery import cel_app
@cel_app.task
def say_hi():
print('hello world')
| [
"ly@lydeMacBook-Air.local"
] | ly@lydeMacBook-Air.local |
3e976a9ea0c5437ca957b93d5cff70c8791ca51c | 8bff5bbfa082602a05d96fc53ea52c3b77a0e89c | /store/views/checkout.py | aa4394cecda9cfdda4436c4abff7e1edfcd495b2 | [] | no_license | Patelrahul4884/Eshop | 98d3956c6213dbb621e08a6e5aef2c593a4abda4 | 29ced3870ab4279986c13787013335b0eca8fb33 | refs/heads/master | 2022-12-25T05:49:07.115490 | 2020-10-02T12:34:46 | 2020-10-02T12:34:46 | 288,974,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from django.shortcuts import render, redirect
from django.contrib.auth.hashers import check_password
from django.views import View
from store.models.customer import Customer
from store.models.product import Product
from store.models.order import Order
class Checkout(View):
def post(self,request):
address=r... | [
"patelr4142@gmail.com"
] | patelr4142@gmail.com |
fccaa06125ae9df91685965edf6b3ae0f129d512 | b06f4dc6b1703f7e05026f2f3ff87ab776105b18 | /google/cloud/logging_v2/services/config_service_v2/transports/base.py | d52c97635c4cf13e0b3e6f98c0890c5f01146f10 | [
"Apache-2.0"
] | permissive | anilit99/python-logging | 040eeb4eed7abe92757b285a1047db09242e89c9 | 9307ad72cb5a6d524ed79613a05858dbf88cc156 | refs/heads/master | 2023-06-01T04:49:38.975408 | 2021-06-17T10:52:15 | 2021-06-17T10:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,708 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | anilit99.noreply@github.com |
c00202055a9f383b7755f979c3d1ba3c997f004e | 0e9bb8a5f0be4be19ee3c00af6f5532218bc288e | /maching_learning/task3/alexandra_vesloguzova.py | e6ca6dbdcb1c03c3d7cfe7a16c9f8f78cc892ba8 | [] | no_license | avesloguzova/spbau_homework | 82abbb02735af68a5ae5e8580746beacb3d13592 | 6e143c3da0cb1f8a8f6915db1f9135143f9cf5a8 | refs/heads/master | 2021-01-23T06:40:16.648288 | 2015-08-11T19:51:31 | 2015-08-11T19:51:31 | 27,387,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,973 | py | __author__ = 'av'
import numpy
def read_fasta(path):
records = list()
labels = list()
current_long_string = ""
current_id = ""
with open(path, 'r') as f:
for line in f:
if is_id(line):
if current_long_string != "":
records.append(current_long... | [
"sashickk@gmail.com"
] | sashickk@gmail.com |
bec1f0dc5f69ea8d65450c0d1ff74d595382e6b6 | 0986dc02b1c288bfad0ec0e69c1e4e44bf3bb5cd | /contas/urls.py | f5e07715e32c5d206b4894c78ade120de43fc2b7 | [] | no_license | hugodias360/projeto_TecWeb | 97a6f1f9071931e3e409f23fbcbf2bd125e45cde | 5dd3b0e9ee7a8e6d374e4955278625ab1d031fdf | refs/heads/master | 2022-11-04T14:04:22.539497 | 2018-05-17T23:31:59 | 2018-05-17T23:31:59 | 125,785,931 | 0 | 1 | null | 2022-10-19T04:41:43 | 2018-03-19T01:36:44 | Python | UTF-8 | Python | false | false | 1,111 | py | from django.conf.urls import url
from . import views
urlpatterns= [
#URLS PROFESSOR
url(r'^professor/$', views.indexProfessor , name='index'),
# url(r'^professor/create/$', views.createProfessor, name='create'),
url(r'^professor/edit/(?P<id>\d+)$', views.editProfessor, name='edit'),
url(r'^professo... | [
"hugodias360@gmail.com"
] | hugodias360@gmail.com |
262e1d9f54429dd7118716daf6cfbc910a323686 | 4fb9150b08a128571ed4a84897c8c95afb76ccb6 | /healthy/migrations/0002_labdetail.py | e6624ae565d211b7af58232ca3a06dfcfe941dd7 | [] | no_license | eduarde/ChunkyMonkeys | 815feb7f3e6e2085babb61d12f2255ea2cb46ada | 34f30e6aaeef6af15aa12e6d599f55d67c6fb7d7 | refs/heads/master | 2021-07-09T21:30:49.084584 | 2016-12-05T10:42:04 | 2016-12-05T10:42:04 | 58,738,867 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-14 11:38
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):
dependencies = [
migrations.swappable_depende... | [
"eduard.erja@gmail.com"
] | eduard.erja@gmail.com |
c4a1000943aabf39b68ff2e45e00ea41562ca42f | 626fdb9df49fc36fff5018a489e6089b0986ebd8 | /05/amusement_park.py | 2871dca198081b63ada57329b96ab2e876707d60 | [] | no_license | ypan1988/python_work | 7bbf9ee2badb981bd2b309f39e07d49d761002c0 | 464f86f8e9348f4c604928d7db63c75e83aefd10 | refs/heads/main | 2023-03-27T11:12:28.934378 | 2021-03-28T22:00:28 | 2021-03-28T22:00:28 | 352,447,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | age = 12
if age < 4:
print("Your admission cost is $0.")
elif age < 18:
print("Your admission cost is $25.")
else:
print("Your admission cost is $40.")
age = 12
if age < 4:
price = 0
elif age < 18:
price = 25
else:
price = 40
print(f"Your admission cost is ${price}.")
age = 12
if age < 4:
... | [
"ypan1988@gmail.com"
] | ypan1988@gmail.com |
357248cb94353f91c0ae97139073ed46440fcdc8 | c5cb5ef8bc136a40ef79628daf06c6cc1f7e44ac | /compare_mcx_printing.py | 777a96051fbbe0b2b82776195f855360ea60fb6d | [] | no_license | metasyn/mcx-comparison | 6e7b3164d9cc2452be0b111425c0b84e19783f58 | 5e3d3988c0c0e97d870af177cb7eabd3551b930a | refs/heads/master | 2020-06-04T01:43:13.415252 | 2014-03-04T19:33:37 | 2014-03-04T19:33:37 | 20,038,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | # mcx setting equivalence test
# ajohnson - 2014 - 2 11
from __future__ import division
import sys
# use ard to send a unix command: mcxquery -computerOnly
# to all the computers that you want to compare mcx values for
# export the command results as a text file, that will be the input
infile = open(sys.argv[1], 'r'... | [
"alexx.johnson@gmail.com"
] | alexx.johnson@gmail.com |
60610a10abba973f1b0d8914810087bda779787e | c5585b95f42757064b64a535e45983b88e7cc7cb | /hw1/es1-2.py | 44d52b5f6d2c6debc3b83a159c5cce37c875c218 | [] | no_license | giuliom95/ScientificViz_SS2018 | e94dd19b58ffb9a2f94f8bf369a74aaac91f1031 | 0e3545363d51ce31cf760a25f9f3d1118783a63c | refs/heads/master | 2020-03-11T14:06:54.445542 | 2018-04-26T11:01:31 | 2018-04-26T11:01:31 | 130,044,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import numpy as np
from mpl_toolkits.mplot3d import axes3d
import matplotlib as mpl
import matplotlib.pyplot as plt
DATA_RES = 200
VIZ_RES = 400
BASE_PLANE = -5
COLOR_MAP = mpl.cm.coolwarm
if __name__=='__main__':
domain = np.linspace(-1,1,DATA_RES)**3
domain_size = len(domain)
#colormap = mpl.colors... | [
"giuliomartella1995@gmail.com"
] | giuliomartella1995@gmail.com |
eb53a990da835beaca9e9cc878481161831bfb1f | 1bb2a9150de01c618163bbb8f872bdce6f14df4f | /BaekJoon/2981_검문.py | acbbec8e742ffdac47cb7a67e0dc300dcd8ab895 | [] | no_license | whyj107/Algorithm | a1c9a49a12a067366bd0f93abf9fa35ebd62102e | aca83908cee49ba638bef906087ab3559b36b146 | refs/heads/master | 2023-04-14T12:59:52.761752 | 2021-05-01T03:53:31 | 2021-05-01T03:53:31 | 240,014,212 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # 문제
# 검문
# https://www.acmicpc.net/problem/2981
# 풀이
from sys import stdin
N = int(stdin.readline())
M = [int(stdin.readline()) for i in range(N)]
M.sort()
tmp = M[-1] - M[0]
y = []
for i in range(2, int(tmp**0.5)+1):
if tmp % i == 0:
y.append(i)
if tmp//i not in y: y.append(tmp/... | [
"noreply@github.com"
] | whyj107.noreply@github.com |
373377356e344a5f785375da56c4540432697303 | 49b861ac5ca3adfe8861a10839b18d9448eb8020 | /python/chop.py | 6f74fd49fb24d4987b5f98bb39819310de26f8b4 | [
"BSD-2-Clause"
] | permissive | symisc/pixlab | deee8dcd8b4816c135ad666340e4023dbcefbb66 | b4ffb1d6b8ff2204ac0db51842ada921478ed66c | refs/heads/master | 2023-08-04T19:39:44.813119 | 2023-07-31T03:51:16 | 2023-07-31T03:51:16 | 85,357,712 | 107 | 34 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import requests
import json
# Removes a region of an image and collapses the image to occupy the removed portion.
# https://pixlab.io/#/cmd?id=chop for more info.
req = requests.get('https://api.pixlab.io/chop',params={'img':'http://www.allaboutbirds.org/guide/PHOTO/LARGE/blue_jay_8.jpg','height':20,'x':45,'y':72,'key'... | [
"noreply@github.com"
] | symisc.noreply@github.com |
439ae386234b53e7520364ad483113a36b46d116 | 362f8eeb4dad793eb488f4e80acb65ace793c6e8 | /test/sorry_jpg.py | 29e738548f5e6dc88f7561bb43d957ddeb9366a8 | [] | no_license | louxinye/lxybot_v2 | ab3613fab060b9d8d805482a9705fbdaab776cd9 | 8ac3ce319491d81e2ec5dda54c778e317fd56719 | refs/heads/master | 2021-04-15T07:59:17.103282 | 2018-12-03T03:01:29 | 2018-12-03T03:01:29 | 126,855,317 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # -*- coding: utf-8 -*-
# 开发中........
from urllib import parse,request
import requests
import json
headers = {
'Accept' : '*/*',
'Accept-Language' : 'zh-CN,zh;q=0.8',
'Cache-Control': 'max-age=0',
'Upgrade-Insecure-Requests' : '1',
'content-type': 'text/plain;charset=UTF-8',
'User-Agent': 'Mozi... | [
"1061566571@qq.com"
] | 1061566571@qq.com |
2ce9a1b049459c79da30b6a1c77b1b59475eaa01 | 2f260fa01c744d93aacfe592b62b1cee08b469de | /sphinx/tello/source/_static/code/python/control-program/tello.py | 5b7390453ddf2deefede00ae55943829785944fd | [
"CC-BY-4.0"
] | permissive | oneoffcoder/books | 2c1b9b5c97d3eaaf47bafcb1af884b1adcc23bba | 35c69915a2a54f62c2c3a542045719cf5540f6ba | refs/heads/master | 2023-06-25T16:00:10.926072 | 2023-06-20T03:40:09 | 2023-06-20T03:40:09 | 216,915,443 | 50 | 3 | null | 2023-03-07T01:27:50 | 2019-10-22T21:46:03 | Jupyter Notebook | UTF-8 | Python | false | false | 8,757 | py | import socket
import threading
import time
class Tello(object):
"""
Wrapper class to interact with the Tello drone.
"""
def __init__(self, local_ip, local_port, imperial=False,
command_timeout=.3,
tello_ip='192.168.10.1',
tello_port=8889):
"... | [
"vangjee@gmail.com"
] | vangjee@gmail.com |
937ad49bfc2d7aa2201b9927a626479eaea90261 | 8f352a174c6a2ef7787668bf0b9f0a2c5b5668d4 | /app.py | 2fc6a1f7635f2efb7e2ff47aed0351b8cd884649 | [] | no_license | DavidLGoldberg/github-user-stats | be82e75528ca15be484db6775aaae25276d4c3cf | ceed274504f65b2842eabb021ddd58fd4049e9f5 | refs/heads/master | 2020-05-30T23:54:54.623558 | 2012-12-21T12:47:21 | 2012-12-21T12:47:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from hero_tmpl import create_app
if __name__ == "__main__":
#TODO: make configurable string
print "Starting Server."
app = create_app()
import os
# Bind to PORT if defined, otherwise default to 5000.
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
print "App Im... | [
"davidlgoldberg@gmail.com"
] | davidlgoldberg@gmail.com |
43170fa8f7fc5a3560607c4b21a1cb123096b586 | f6c1a4593859ad75000e726414f25fbf02766143 | /setup.py | 7edb29cfc794fbf5f917801018c219ab2e44a25c | [] | no_license | jbeezley/metadata_extractor | b753ce6f9e55e5bc92f16b5decfbab5b992ac621 | 1401127bf572119353e3c504278ff7436e077c9e | refs/heads/master | 2020-03-20T00:57:52.713434 | 2018-06-12T13:49:54 | 2018-06-12T13:49:54 | 137,062,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013 Kitware Inc.
#
# Licensed under the Apache License, Version 2.0 ( the "License" );
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"jonathan.beezley@kitware.com"
] | jonathan.beezley@kitware.com |
88e94952e8652a14ab593a057fe5cd8e5c67fecc | d9298c3f4634a3523b7a2f5f1e5c7e7c8d9f0272 | /Xpresso_kipoi/model.py | 5ee6928c9d23d1daa7c262fea5512d858b01a1bd | [] | no_license | Hoeze/Xpresso_kipoi | 105127185fbf0d4cbbded073298963cb880395f9 | 252c76b6d71bad2ebde34ce7a1035c3f38fed6aa | refs/heads/main | 2023-01-04T01:04:26.418662 | 2020-10-20T20:33:06 | 2020-10-20T20:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | from kipoi.model import BaseModel
from keras.models import load_model
from keras.layers import Layer
from keras import backend as K
import tensorflow as tf
import numpy as np
class Xpresso(BaseModel):
def __init__(self, weights):
self.nuc_dict = {'A':[1 ,0 ,0 ,0 ],'C':[0 ,1 ,0 ,0 ],'G':[0 ,0 ,1 ,0 ... | [
"vagar@sci-pvm-vagar.calicolabs.local"
] | vagar@sci-pvm-vagar.calicolabs.local |
8ebd15e0eeac0255627e3a4bca3146244f8e6cb3 | 425c28656cceb9f4098f86f4e53d810beb7e1f89 | /Store/migrations/0007_remove_orders_user_profile.py | 665699cc56e8e72fa67f5850761e248eb85a171b | [] | no_license | Arpan555/KGN_BAZAR | 4a06c564828125cce6e32faff1984fbdaab43149 | b7e84ceea4b17de0f62566ca9f3d2d96948a09ec | refs/heads/main | 2023-08-15T07:33:42.886654 | 2021-10-06T16:09:46 | 2021-10-06T16:09:46 | 414,282,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # Generated by Django 3.1.1 on 2020-09-30 04:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Store', '0006_orders_email'),
]
operations = [
migrations.RemoveField(
model_name='orders',
name='user_profile... | [
"arpanpatidar65@gmail.com"
] | arpanpatidar65@gmail.com |
91abc10c50eaf8da3dbf150d0f254a8c6b7a3fc2 | 30c6d52e9d285b358d62f24e971ca20b180ed2ee | /tests/tc2.py | 2a7e618f00bd0831c1dcdcebb0c7d57a96c34c70 | [
"MIT"
] | permissive | rxse/python-demoshop | c4c3e79f5f67e697bf221e241dc0e7978a0c9586 | b7b8c2ef59a63350433c9d50b4730c7344cbbcc6 | refs/heads/master | 2020-08-01T15:42:55.537210 | 2020-03-30T07:25:50 | 2020-03-30T07:25:50 | 211,036,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Ranorex Webtestit Test File
from utils.base_test import BaseTest
from pageobjects.items_overview_po import ItemsOverviewPo
class Tc2(BaseTest):
def test_fast_checkout(self):
driver = self.get_driver()
# Open the page
overview = ItemsOverviewPo(driver).open(
"https://demosho... | [
"smatijas@Sasas-MacBook-Pro.local"
] | smatijas@Sasas-MacBook-Pro.local |
c56a3f8d77a5d05be57428bbda596c5e31709503 | 241724e83f5c12ed9d7dd3b825dfe4e2b1b0f777 | /examples/boundary_conditions.py | a73111c7860a10c82ddfefc46005d3f0954a7718 | [
"MIT"
] | permissive | xuanxu/py-pde | d8be358ab76d4060b14afc74bc7d836591c6188e | de33d938aea8680eff872ae1b64569895662a248 | refs/heads/master | 2021-03-09T21:37:13.920717 | 2020-03-10T12:18:03 | 2020-03-10T12:18:03 | 246,382,909 | 0 | 0 | MIT | 2020-03-10T18:54:22 | 2020-03-10T18:54:22 | null | UTF-8 | Python | false | false | 521 | py | #!/usr/bin/env python3
from pde import UnitGrid, ScalarField, DiffusionPDE
grid = UnitGrid([16, 16], periodic=[False, True]) # generate grid
state = ScalarField.random_uniform(grid, 0.2, 0.3) # generate initial condition
# set boundary conditions `bc` for all axes
bc_x_left = {'type': 'derivative', 'value': 0.1} ... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
98d22f1272cf3b173a633a6aa4f96343b8ca83c7 | 1683cd92471c08a6e6fb4a2913a78ba2658d1fc8 | /tests/abell2218_high_red_huber.py | cff3fc8793439591c84261f8971c84abe91ff249 | [
"CECILL-B",
"LicenseRef-scancode-cecill-b-en"
] | permissive | pombredanne/csh | 04ed74007d3725782871ef7a4fb52ba6b4a0a45c | 6e36fea6ccb9fdd6e79f92d9fd1840f98f4c9805 | refs/heads/master | 2021-01-01T00:06:15.637419 | 2011-07-18T15:28:04 | 2011-07-18T15:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | import os
import csh
import lo
# define data set
datadir = os.getenv('CSH_DATA')
#filenames = [datadir + '/1342184598_red_PreparedFrames.fits[5954:67614]',
# datadir + '/1342184599_red_PreparedFrames.fits[5954:67615]']
filenames = [datadir + '/1342184598_red_PreparedFrames.fits',
datadir + '/1... | [
"nbarbey@sapherschel4.extra.cea.fr"
] | nbarbey@sapherschel4.extra.cea.fr |
a2bf0550e08af94a953a64917f25bba007a88e24 | ffc5ba59967913b6210c50319cd8fa7a1dc5772c | /genkeras_stack.py | 71c3f27c83017a8df62b6461822f715097be73f1 | [] | no_license | hoihui/allstate | 62c8f39ae3326cea0a7efbda37ce5b960de7bf5a | add457a1b4d6e734653f39810acfe886bc5afe83 | refs/heads/master | 2021-05-11T19:40:31.319064 | 2018-01-17T20:15:23 | 2018-01-17T20:15:23 | 117,885,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,742 | py | from data import *
thislevel=load_save_4
base= 'nn4'
import os,time,argparse,random,sys
parser = argparse.ArgumentParser()
parser.add_argument('-gpu', type=int, default=0)
parser.add_argument('-acq', type=str, default=random.choice(['poi']))
parser.add_argument("--verbose", action="store_true")
parser.add_a... | [
"hyhui@sun.phys.vt.edu"
] | hyhui@sun.phys.vt.edu |
af7e89df385ab20dc1f91bac730a8ca9b629cf3f | 1316cd6763e784811c769c1de577235c921af0de | /Apps/qscan/pyth2p7/scanner.py | fe77520db52aa55bf64dc1ebb7679cf1b63d600f | [] | no_license | VELA-CLARA-software/Software | a6fb6b848584e5893fd6939a447d23134ce636cc | 2e2a88ac0b2b03a495c868d2e11e6481e05097c3 | refs/heads/master | 2023-02-05T07:40:58.260798 | 2023-01-27T09:39:09 | 2023-01-27T09:39:09 | 69,860,536 | 7 | 3 | null | 2021-04-07T14:17:07 | 2016-10-03T10:20:46 | Mathematica | UTF-8 | Python | false | false | 9,766 | py | from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import pyqtSignal
from PyQt4.QtCore import pyqtSlot
import sys,os
#import view
import numpy as np
sys.path.append("\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\stage\\")
#sys.path.append("\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\stage\\Python3_x64\\")
#sys.... | [
"duncan.scott@stfc.ac.uk"
] | duncan.scott@stfc.ac.uk |
056c947683ddb8f5d4853e367c173f5af567bb82 | 1818bd3151bb1a04e669918d3d59579709136df3 | /coconut/setup.py | f7ada82ff62f9ca23719096c54a1cb078fadb0a2 | [
"Apache-2.0"
] | permissive | MatthewBrien/PythonCorpus | 3db489cf1f0e8245d2c284af7439f7d69e623a87 | 526c1f78cdf17f9151552bcbfef5582cf8655446 | refs/heads/master | 2021-04-27T10:34:45.880859 | 2016-07-02T02:17:48 | 2016-07-02T02:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,787 | py | #!/usr/bin/env python
#-----------------------------------------------------------------------------------------------------------------------
# INFO:
#-----------------------------------------------------------------------------------------------------------------------
"""
Author: Evan Hubinger
License: Apache 2.0
... | [
"luke.inkster@hotmail.com"
] | luke.inkster@hotmail.com |
8a6a7e50e68280271d06ba16a0a7c6fcd77c4f9e | 6950eb30f8fa3b62ab11abe8ee1f70609f486fbc | /shell/pbomb.py | 960b06d8ea17fc351cd93c45bcaadb2c65010a62 | [
"MIT"
] | permissive | pbl64k/icfpc2016 | ca347139f06323f1de9ca7f559a2d432e7ef283f | 57edac99b0f21f48e14dfdb4742783ba8abb2da1 | refs/heads/master | 2021-01-19T03:22:15.738647 | 2016-08-08T19:35:34 | 2016-08-08T19:35:34 | 65,162,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/env python
import sys
import os
import time
import simplejson as json
blob = json.loads(sys.stdin.read())
for prob in blob['problems']:
print 'Problem', str(prob['problem_id'])
os.system('.cabal-sandbox/bin/icfpc2016-zhmppxm ' + ' <probs/' + str(prob['problem_id']) + '-' + prob['problem_spec_hash'... | [
"pbl64k@gmail.com"
] | pbl64k@gmail.com |
184b7da7cb5866239070d75f25a4f648b2c21ba3 | d83a3ee1084311df70626fb2ce0be483f5631472 | /histVarPng.py | 3386cfd4a875f26af378b42735047ac756a1b6cf | [
"MIT"
] | permissive | AineNicD/pands-project | 1ea0e758dbcbab0f72958712672d12da36878294 | 55f7dbab4f106f4776be4e0248c941a4246e64ac | refs/heads/master | 2021-04-19T03:03:12.837525 | 2020-04-30T22:50:45 | 2020-04-30T22:50:45 | 249,573,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | #Saves a historgram of each variable to png files
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
#read data
data = pd.read_csv("irisDataSet.csv")
#names of variables
names = ['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species']
# sepe... | [
"noreply@github.com"
] | AineNicD.noreply@github.com |
c9eb862aeb4359055031d9ae873ff6ea6800bbe0 | eeca249274299a5acc495126eeda237c7317d40a | /THE/yt_lib_opt/try.py | 4ec3a2e3972fb2a41de14c49422fec5b7a46e6b4 | [] | no_license | nickmillr/yt-ontogenesis | ab44891b115b32d87c758ae8552715603c316a14 | 8fa9795f1e8861e3a809a6237851697512576cd8 | refs/heads/master | 2016-09-06T09:09:44.008411 | 2014-11-12T20:41:11 | 2014-11-12T20:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import yt
from yt.units import *
from yt.mods import *
import load_dataset as ld
import nearest_halo as nh
import star as s
code='enzo'
z=1.0
halo=54
ds = ld.load_data(code, z)
sphere_center=nh._center_of_mass(code,z,halo)
radius=nh._radius(code,z,halo)
sp = ds.sphere(sphere_center, (int(radius), "kpc"))
dd = sp.quant... | [
"nam002@marietta.edu"
] | nam002@marietta.edu |
eed790ecc6634099cbae4eed0343224ecf168876 | bcba30701c3b09995e4bfcfdd7cdcafd81635187 | /mp.py | df6f8b68fe8e93d84c09569a8cd5f621c93f8d42 | [] | no_license | guotechfin/istock | f7376f04c74097afcb96a925a6823036b037c9f7 | 3eae7a58cf36c69a1e410d3647841f1e14c81cc6 | refs/heads/master | 2021-01-13T13:57:21.598684 | 2016-08-15T08:17:36 | 2016-08-15T08:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/env python
#coding=utf-8
from multiprocessing import Pool
from time import sleep
from ga1 import *
def main():
pool = Pool(processes=20) # set the processes max number 3
sc = sc_get()
for i in sc:
result = pool.apply_async(get_result, i)
pool.close()
pool.join()
if result... | [
"noreply@github.com"
] | guotechfin.noreply@github.com |
9de55bb18ec1a43da35cc70b126f10dac1654751 | 60d47d279a007adbef10f3f808c6497f6c4a328d | /views.py | 86c08d4dc42eba82f6d51b520c0691367a306f72 | [] | no_license | tmaszkiewicz/app | 97ca1a13f4c9128d4c2ca8413d617de08db4881b | f4adbed1aad6cbdb949f949f308268ff67580f86 | refs/heads/main | 2023-08-23T15:46:57.598122 | 2021-11-05T14:15:11 | 2021-11-05T14:15:11 | 424,933,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request, *arg, **kwargs):
url = 'app/home.html'
context = {
}
tekst = "dasdasd"
context['tekst']=tekst
#return HttpResponse("LoveMonika")
return render(request,url,context)
| [
"t.maszkiewicz@gmail.com"
] | t.maszkiewicz@gmail.com |
b7f1a23ed37c6438acc3ebc50d0a908d8e2e6287 | 67dd57d1a529a05405f201ce0d0d04829d9f3e2f | /Practica2/ejercicio2.py | e54ccae5469b177d631aac7f552e53f7ff1b2470 | [] | no_license | chema969/IMD | 72b7fe82cec54181e3670bc5827b36bdd656a8f8 | 742ddcb7fdbbea4da602b96c20188d87ea96f340 | refs/heads/master | 2020-08-01T05:27:30.153815 | 2019-12-21T15:40:57 | 2019-12-21T15:40:57 | 210,880,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
fig, axs = plt.subplots(ncols=2,sharex=True)
nombre_fichero="basesDeDatos/diabetes.csv"
data = pd.read_csv(nombre_fichero)
data.groupby("class").plas.hist(alpha=0.4, ax=axs[1])
axs[1].set_title('Histograma sin normalizar')
data.groupby("class").p... | [
"chema969@hotmail.com"
] | chema969@hotmail.com |
e9658d417076aadb516ad617c0dd66220ee1e14e | e394eb85637bb2683aee3cfa1004b2a6e22ffeea | /Zy/learn/drawTogether.py | 239c9aecd43fbd9d655973e909f3241385285949 | [] | no_license | icyeyes1999/DataScience | d55d08ca808ccc315d6548f388cef142b1e454d8 | 2c10a720663d7ee31d72677cfc93e44ae43c72bf | refs/heads/master | 2022-11-24T04:53:45.485883 | 2020-07-28T15:47:19 | 2020-07-28T15:47:19 | 281,598,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import numpy as np
import matplotlib.pyplot as plt
import json
#折线图
# 一共20天 6.20-7.5 有些天掉出榜单
with open("test_data.json", "r", encoding='UTF-8') as f:
temp = json.loads(f.read())
index_1 = 1
for i in temp.keys():
x = []
y = []
print(i)
print(temp[i])
if(len(temp[i])<10... | [
"181250188@nju.edu.cn"
] | 181250188@nju.edu.cn |
6daa5e177776fee9980d7e78a7104777855e9d2e | e3c72896c9379425cc06e8ff1c1b35a0b755169b | /Analysis/plot.py | 8c05c90d3cfeaaf9b72b3590b54e96f95cb686c9 | [] | no_license | geracobo/PyPiano | ced350558c40d202be3a85c0a111cebb6c109b20 | e5e840738eef11751fd3e536ce5a4d37945ecedf | refs/heads/master | 2020-05-06T12:19:09.257066 | 2014-01-05T18:55:01 | 2014-01-05T18:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/env python
# coding=utf-8
from matplotlib import pyplot
import numpy as np
import csv
samplerate = 44100
period = 1/float(samplerate)
f = open('sample-data.csv')
y = np.empty((1))
time = np.empty((1))
at = float(0)
for row in f:
data = row
y=np.append(y,float(data))
time=np.append(time, at)
at = at+... | [
"gera.cobo@gmail.com"
] | gera.cobo@gmail.com |
1804e27f2aaf570252b3379d08e9789ad92856ba | f0e53d4eb9517db4a62070590c7a3256f3bd7743 | /neutron/tests/functional/agent/linux/test_ovsdb_monitor.py | 93bc06fe3665ccf9bfc4785fd4ea9ea2bff8a8b9 | [
"Apache-2.0"
] | permissive | lookmee/neutron | 064e58aef246dd95edd391bb07ee34acf97019e6 | 313fdd16140e9a42eb0f21d4a45406ae1c7adf25 | refs/heads/master | 2020-12-31T01:36:18.938921 | 2013-11-16T04:07:51 | 2013-11-16T04:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,042 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | [
"marun@redhat.com"
] | marun@redhat.com |
9144392619c0c79d7fa7143d83361431229e5a74 | f8f0263b9febfa4eeccabe920290abd8afbd54c7 | /app/functions/customer_happiness.py | 2cd7cc2d7c260cf173c5bfbc17f652a4052874f8 | [] | no_license | kiamatt/helios-zoho-api | 8a2949e802f2a5cda4f62f6d31b5fc41112a2709 | 7c24882d7a2fd123440ae347f5aa23310fecbb4d | refs/heads/master | 2022-12-05T22:55:22.151738 | 2020-08-21T11:26:32 | 2020-08-21T11:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from .utils import zoho_auth
import os
import boto3
import json
from datetime import datetime
BUCKET = os.environ['BUCKET']
def main(event, context):
s3 = boto3.client('s3')
department_id = 'allDepartment'
params = f'?department={department_id}'
base_path = 'customerHappiness'
path = f'{base_path}... | [
"matthewmartinez1003@gmail.com"
] | matthewmartinez1003@gmail.com |
8a9ae51e7fb7f3ad1ad2245e5036b15a9fa4ec17 | 293b290895e97465460905b492901c434b3c6dcf | /crime_stats.py | d1648992693ae8c12e654e5e9be67a92e4e98177 | [] | no_license | srujanbelde/EnvisionChicago-DataAnalytics | 0b5acb68d02c4df6bd36946b7a1da1c0e5d8433b | 461077d1308a210d79af05015b55b244879ccd41 | refs/heads/master | 2020-03-11T11:19:31.268867 | 2018-04-17T21:23:16 | 2018-04-17T21:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import pandas as pd
import re
from difflib import SequenceMatcher
import datetime
crimes_file_path = "Crimes_Census_Final_output.csv"
census_ages = "age_groups.csv"
def integrate_ages_crimes():
crimes_census = pd.read_csv(crimes_file_path, nrows=50000000)
crimes_census.columns = [c.replace(' ', '_') for c in... | [
"teja.bhargav@gmail.com"
] | teja.bhargav@gmail.com |
7613b87d4f7bb041d44a46de933c8c6fcf6b6ca7 | 7c27302ec89cda9b14a4dc5b2c3b41824e694dd6 | /class2.py | d57b5a73e4bb6d2e85672af5b483edb9ed154948 | [
"MIT"
] | permissive | ranjithvbr/test | 583580a8d35ecae64a118c4ab3ae58d28835dc75 | 37cb7a876c402fc68e4624071924b2851ab7b1c4 | refs/heads/master | 2020-03-23T03:24:30.013593 | 2018-10-11T12:49:22 | 2018-10-11T12:49:22 | 141,028,651 | 2 | 1 | MIT | 2018-10-11T12:49:23 | 2018-07-15T13:15:10 | Python | UTF-8 | Python | false | false | 642 | py | class Employee:
'Common base class for all employees'
empCount = 0
def __init__(num,name, salary):
num.new = name
num.new2 = salary
Employee.empCount =Employee.empCount+ 1
def display(num):
print "Total Employee %d" % Employee.empCount
def displayEmployee(num):
... | [
"ranjithvbr@gmail.com"
] | ranjithvbr@gmail.com |
aaed72c4c34418066429eb2c96fbe9b95606cdb3 | de358ba57518d65393c810da20c53e1c41494bff | /LRUcache.py | 49f000a37b16c4cd24efb3415b3888324acb43b6 | [] | no_license | avirupdandapat/ALGOPROJECT | 43eef94b13e38452cdc6a506b17b6fee581a07e1 | 55b60a0c6e51cae900e243505f6a4557ad4d7069 | refs/heads/master | 2022-12-29T13:02:54.655976 | 2020-10-18T12:23:57 | 2020-10-18T12:23:57 | 305,095,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from collections import deque
class LRUCache:
# @param capacity, an integer
def __init__(self, capacity):
self.capacity = capacity
self.dic = {}
self.q = deque()
# @return an integer
def get(self, key):
if key in self.dic:
self.q.remove(key)
se... | [
"avirup.dandapat@mindtree.com"
] | avirup.dandapat@mindtree.com |
9e30e808b8df340558eca315c2ab6554d53b3622 | 9be6b593f7740dbcbcbf56765b4ba55bc65d3e55 | /notebooks/import_scripts/import_interrogator_fits.py | 755927330cc042e0b202e4c38343a74e87e984fb | [
"MIT"
] | permissive | camipacifici/art_sedfitting | a78b06a36ed277139c581049b7720d9bfa7e3fc1 | 32d23a2bef5a1e0499e8ce225019478d94b28521 | refs/heads/main | 2023-04-13T21:36:07.409163 | 2022-12-04T03:31:41 | 2022-12-04T03:31:41 | 440,978,868 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,515 | py |
import numpy as np
from import_catalogs import get_cat
cat_small_ids, cat_z1_ids, cat_z3_ids = get_cat()
vb = False
# ID
#BPASS_log10M*_16 BPASS_log10M*_50 BPASS_log10M*_84
#BPASS_SFR10_16 BPASS_SFR10_50 BPASS_SFR10_84
#BPASS_SFR100_16 BPASS_SFR100_50 BPASS_SFR100_84
#BPASS_A_V_16 BPASS_A_V_50 BPASS_A_V_84
#PEGASE_l... | [
"cpacifici@stsci.edu"
] | cpacifici@stsci.edu |
7a6c2a7dc5a319d417e4d9d4710514d22f3313ff | 48548fa087bb3b8f69fdf2b5d4af5d3703ea755c | /Django_new/apprenti/python/developcom/listes.py | 7047e8f7258b1d2c32c8eb42b3f16a13dbe914ca | [] | no_license | BKIBONZI/DJANGO | 168a69190e0b26796d33b50abc7f4e6b45a64693 | c34d6dcd243e31226bb99da6bf260601f98966fc | refs/heads/master | 2020-09-06T14:25:22.837546 | 2019-11-08T11:15:41 | 2019-11-08T11:15:41 | 220,450,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | numbers = [1,2,3,4,5]
if __name__ == '__main__' :
# afficher la liste à l'écran
print(numbers)
# afficher à l'écran le type dela lits
print(type(numbers))
# afficher l'element de la liste en position 0
print(numbers[3])
| [
"bkibonzi@e1r1p14.42.fr"
] | bkibonzi@e1r1p14.42.fr |
d2d20572d982ee26e2f12321d0b30cbe73a1f96d | 1dd687bdb3bb964383c3f4dde7e9eae8a09be5f5 | /pyleecan/Functions/Optimization/evaluate.py | 0a1af3f9cf3e0b559605e9893c1c9f85951875f6 | [
"Apache-2.0"
] | permissive | Kelos-Zhu/pyleecan | 4daa2c8738cfe8a721ac2bdf883c59a1b52d8570 | 368f8379688e31a6c26d2c1cd426f21dfbceff2a | refs/heads/master | 2022-11-18T14:30:29.787005 | 2020-07-09T16:55:02 | 2020-07-09T16:55:02 | 278,112,321 | 0 | 0 | Apache-2.0 | 2020-07-08T14:31:39 | 2020-07-08T14:31:38 | null | UTF-8 | Python | false | false | 2,398 | py | # -*- coding: utf-8 -*-
from logging import WARNING
import traceback
import sys
if sys.version_info > (3, 0):
from io import StringIO
else:
from StringIO import StringIO
from os import stat, remove
from datetime import datetime
def evaluate(solver, indiv):
"""Evaluate the individual according to the sol... | [
"cedric.marinel@eomys.com"
] | cedric.marinel@eomys.com |
92abc9246fc22cd7a32206f48ca38cf04e952ccb | a19431dd88abad381368c547648038089e817b4c | /venv/Scripts/django-admin.py | 39555b4993d519d25f778d659814b24dd7381d00 | [] | no_license | allimpossible/my-first-blog | 6d3a41d7d2350f21b28699eca8cecf36a1f96cfc | 63b684cd7723766c1fa607c3d9561fa2cbe873d0 | refs/heads/master | 2020-04-13T17:35:53.678133 | 2018-12-28T01:31:57 | 2018-12-28T01:31:57 | 163,351,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!C:\Users\shadow\PycharmProjects\WebTest\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"zhuangbidafa@gmail.com"
] | zhuangbidafa@gmail.com |
a8753bfe34916e7be2706d5e78dbd5c973275542 | d9652ac6f107747da9f57b47d054dc6862d98119 | /XiAnalyzer/XiMassPt/python/ximasspt_cfi.py | 81f8be50247f77e04001bb73f1df10db21520fc7 | [] | no_license | BenjaminTran/XI_CMSSW5_3_20 | 306f9ae51c5505a6ae2a4488142d78da4d13fcec | cfdc4fb6810a7ad9fc2a1fdac8e52c2f3199ae30 | refs/heads/master | 2021-01-21T10:59:54.595125 | 2017-05-18T16:34:39 | 2017-05-18T16:34:39 | 91,715,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import FWCore.ParameterSet.Config as cms
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltHM = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltHM.HLTPaths = [
'HLT_PAPixelTracks_Multiplicity100_v*',
'HLT_PAPixelTracks_Multiplicity130_v*',
'HLT_PAPixelTracks_... | [
"blt1@192.168.1.10"
] | blt1@192.168.1.10 |
4d1dc1f084686e22f9f832a79dae3c1d0d56dc01 | 43fe6a9d6875f7524204177a3a68229059133789 | /social/account/multiforms.py | 844065a4370c0da415a5df2b271ab382d43f2db9 | [
"MIT"
] | permissive | MiKueen/Social-Network | a011836805ad45228b0031ed1883526b0af02920 | 0b872860f08c3ec6f48a53160128af28787737c7 | refs/heads/master | 2023-04-17T15:33:13.212550 | 2019-07-13T04:40:54 | 2019-07-13T04:40:54 | 196,678,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | from django.views.generic.base import ContextMixin, TemplateResponseMixin
from django.views.generic.edit import ProcessFormView
from django.http import HttpResponseForbidden
class MultiFormMixin(ContextMixin):
form_classes = {}
prefixes = {}
success_urls = {}
initial = {}
prefix = None
s... | [
"keshvi2298@gmail.com"
] | keshvi2298@gmail.com |
fb833a786a0d20f87937019f8e9caa12a42bd37f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02859/s282657113.py | e434f658756ad3e7e51c07a4f92cf7ee39d78ef2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | N = int(input())
print(int(N**2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6453b2b087efd59f3078f1b53708a18af9747775 | 055cc43b5eda7bbf4a077fbec7307f40c37cddfa | /Part 3 - Classification/Section 17 - Kernel SVM/kernel_svm.py | 85b8e690d2084c37fb24edb6f5895fd9f81c5b95 | [] | no_license | sinamahbobi/Machine-Learning-A-Z-Assignments | 2548244cef99a78c25ed7ba6a9ab3fb915395761 | e9ba69580e436cdaba819d20b2d53a5a83c325e8 | refs/heads/master | 2021-01-16T12:30:13.775359 | 2020-02-25T23:29:10 | 2020-02-25T23:29:10 | 243,122,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | # Classification template
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test se... | [
"noreply@github.com"
] | sinamahbobi.noreply@github.com |
da45f7852916d35f50bd49f037a7b3edd42a3e21 | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/amazon_uk_reviews.py | 15695e7d86cb23644a4dfb659ed43372c84943c0 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | __author__ = 'leonardo'
from alascrapy.spiders.base_spiders.amazon import AmazonReviewsSpider
class AmazonUkReviewsSpider(AmazonReviewsSpider):
name = 'amazon_uk_reviews'
start_url_format = "https://www.amazon.co.uk/product-reviews/%s/ref=cm_cr_dp_see_all_btm?ie=UTF8&showViewpoints=1&sortBy=recent"
date_f... | [
"liangzijie1437@gmail.com"
] | liangzijie1437@gmail.com |
56be1372165e22f35b3d54e6e743bf28d328e0c1 | bb80ce104e916d54d2af020b8a38f6a92bfe9931 | /home/migrations/0001_initial.py | f0030a0816dc9d6da4765f6d47264233312e389c | [] | no_license | louis-Fs/Django | e16f0f058df92e02f73ae36ca61061faed3b86bc | 424cdc3d18d5f9f5c7cf2b38c615bbc9ca9ced15 | refs/heads/main | 2023-02-20T09:17:12.578596 | 2021-01-21T04:19:29 | 2021-01-21T04:19:29 | 331,511,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # Generated by Django 2.2.7 on 2019-12-01 05:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='stuinfo',
fields=[
('id', models.AutoField(... | [
"344735074@qq.com"
] | 344735074@qq.com |
008c0cfc5535c8ef65db4e64a7fb8f83c307aed7 | 971b74f845ea064e3880580c5fb8e4a5eb35035a | /nlex/lib/abc/structure.py | f058bbcc6e68f1815b1897b184b26f237ebb67e6 | [] | no_license | a710128/nlex | 44cad95ef198ed19275246cefaa0e21cda8a63ec | b9a96d862669b977df43979c234c8edfcb7f2a15 | refs/heads/main | 2022-12-27T00:14:22.961008 | 2020-10-12T08:13:44 | 2020-10-12T08:13:44 | 300,345,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from typing import Union, Tuple
class Structure(object):
def __init__(self):
pass
def set_slot(self, slot : 'Slot') -> None:
pass
def is_slot(self, slot : 'Slot') -> bool:
return False
def get_value(self) -> Tuple[int, int]:
return (0, 0)
def last(self) -> Uni... | [
"qbjooo@qq.com"
] | qbjooo@qq.com |
e1e3882e61c86c5880e027985494b00f1b8b756e | dc6ebd10d352915600a3297606f5c4b9dc558704 | /Eshop/urls.py | 53b3b00e059bb407fe8aed956c74a49b3e4338f3 | [] | no_license | NishaNegi1/Eshop | c0bdd82cb9ee556727c1a247776fa473eb84e4b2 | 12dcef76c0697b3344e0ed53a28b43df4ffb892c | refs/heads/main | 2023-03-27T07:22:44.473628 | 2021-03-31T07:19:35 | 2021-03-31T07:19:35 | 353,261,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | """Eshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"nishabun99@gmail.com"
] | nishabun99@gmail.com |
b64db5675c6a12447a0a4f82922098e73c823b62 | 28b513332b7162dbd79f82a28132582401ff28f9 | /9.Manus & SubMenus.py | d86b751ed588b5f51494bfafdf684409b5874ba2 | [] | no_license | ProtikAcharjay/GUI_Tkinter | e19a9931907ab9bfaeff6f93a4dae5276848cb3b | 6a54062db27ae85a4f2518cb4d1b4d0f9615f3e5 | refs/heads/main | 2023-05-12T21:30:02.511847 | 2021-06-01T16:00:05 | 2021-06-01T16:00:05 | 372,886,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from tkinter import *
root=Tk()
root.geometry("800x500")
root.title("Manus In Tkinter")
#function
def function1():
print("New file created")
def function2():
print("Opening a file")
def function3():
print("File saved")
def function4():
print("File Coppied")
def function5():
print("File... | [
"noreply@github.com"
] | ProtikAcharjay.noreply@github.com |
fd975001732ca43e6a45cbcefd0a09a0cf1fd7fa | a37963de31a67c214680d80d9ee3ce4611d28587 | /mrl/modules/model.py | 8f93b82dcc75932df0c875e7910016d0b4a2814d | [
"MIT"
] | permissive | jingweiz/mrl | c4c614877760953b246125688e7df96f9081fc4e | c94ab1685aea85b0d328199adefca543227875af | refs/heads/master | 2022-11-12T01:36:05.354935 | 2020-07-10T23:32:38 | 2020-07-10T23:32:38 | 279,804,300 | 0 | 1 | MIT | 2020-07-15T07:56:50 | 2020-07-15T07:56:49 | null | UTF-8 | Python | false | false | 1,448 | py | import mrl
import torch
from typing import Callable
import os
import pickle
import dill
class PytorchModel(mrl.Module):
"""
Generic wrapper for a pytorch nn.Module (e.g., the actorcritic network).
These live outside of the learning algorithm modules so that they can easily be
shared by different modules (e.g.... | [
"silviu.pitis@gmail.com"
] | silviu.pitis@gmail.com |
87e38073f5de8a642caa8473876b6c85d6fbf76d | 2306161b6c6504bc3c7b9c1c167f2cf9f655a5f6 | /test/functional/p2p_pos_fakestake.py | 960e824e4620406c572aaec798103b1ecd895242 | [
"MIT"
] | permissive | Zoras2/OPCoinX | 294081748b308b84a4890da286484c003cfebf60 | d93b9f6a7f09d48ea661814a94211a9c9fc98309 | refs/heads/master | 2021-07-21T23:20:33.699815 | 2020-09-14T00:41:24 | 2020-09-14T00:41:24 | 167,402,324 | 1 | 0 | MIT | 2019-01-24T16:48:12 | 2019-01-24T16:48:12 | null | UTF-8 | Python | false | false | 2,282 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The OPCX developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Covers the scenario of a PoS block where the coinstake input prevout is already spent.
'''
from time import sleep... | [
"knashanas@gmail.com"
] | knashanas@gmail.com |
838f055b240dabb83ff3fb5ea75fbdd224a7ed9f | 510c17f54e8898d9dfff590caa3cbd05417c356f | /signer-independent-pytorch/bck-24-01-19/main_vae_celebA.py | 0716b58f5ad300cee1591e3f46d535cc6fd46c69 | [] | no_license | pmmf/DeSIRe | c65172ce4a0b9d4aaf6317a04c1f33f69d849501 | c4a68246c9e436481a61879328ff28b70dbb3b11 | refs/heads/master | 2022-04-08T18:57:37.099211 | 2020-03-05T11:03:55 | 2020-03-05T11:03:55 | 168,131,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,640 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from torch.utils.data import Dataset
import h5py
import numpy as np
from glob import glob
import os
from skimage import io
from PIL import Image
import matplotlib.pyplot as plt
from skimage import io
from torchsummary import summary
... | [
"noreply@github.com"
] | pmmf.noreply@github.com |
f75aad247ab631750bcc8185827295fbc9a08fb3 | 527bdfc1d0e49009d69dd611e74273b8846c4f0e | /rithviks_solutions/2017/Prob9/main.py | 372b4a0964eba150e4c8fe5de46a4fbeabdcfd66 | [] | no_license | RithvikKasarla/2019-Infinite-Loop-Practice | 3e0ddfae5c017de62ff2fd7b8522e062167c2f4a | c54808e89cbd2a18225100dde6914b3305400d91 | refs/heads/master | 2020-04-25T01:17:20.313357 | 2020-03-23T01:39:26 | 2020-03-23T01:39:26 | 172,404,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | def encoder(key, line):
key = list(key)
l = len(key)
li = list(line)
line = ""
keyplace = 0
for ch in range(len(li)):
if li[ch] == " ":
line += " "
else:
c= ord( key[keyplace%l].lower() ) - 96
if (ord(li[ch].lower()) + c-1) > 122:
... | [
"arnavborborah11@gmail.com"
] | arnavborborah11@gmail.com |
1c594c122b75ef4ea73e6f9f6b91493174b4fe64 | b6a79ae5312dd1a69b043aeb5466bc3b6bffa6aa | /fp/test_closure_change.py | f8df7a48ec3f5e121603ac85a298e69ab248386d | [] | no_license | vchub/daily-python | 5f54aedf77aba34ddc48ca06f9133990c2e82b0a | 7d7740f4db4f8500c84eff353420c61242321f2e | refs/heads/master | 2022-12-12T08:35:27.416071 | 2020-08-25T18:26:06 | 2020-08-25T18:26:06 | 290,292,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | def f():
x = 1
i = 0
while i < x:
yield i
i += 1
def test():
f.x = 5
ff = f
ff.x = 5
g = ff()
# g.x = 2
res = list(x for x in g)
assert len(res) == 1
| [
"vlad.chub@gmail.com"
] | vlad.chub@gmail.com |
1d6f34aff2427b5cf195571a5cbfda9bbdd1d18c | 46e657af193e8e1c1045b100787c4ed3126ca98b | /src/old/jnntools.py | 3a00ca97f0ffb06e1fa54fd4c6db9cae9c6eb4da | [] | no_license | sinancemy/jamnet | 77487bf73f1cfce6edc0d7294bfcd35fd01e3762 | 045289b39dd4f647131885159ba99ad0e96d978b | refs/heads/master | 2023-03-21T03:06:41.789908 | 2021-02-23T18:06:36 | 2021-02-23T18:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,227 | py | import torch
import mido.midifiles.tracks as mitracks
from mido import MidiFile, MidiTrack, Message, MetaMessage
import copy
import numpy as np
# OLD VERSION OF midi2roll.py. Converts to and from a "note array" format instead of tensors.
# Not deleting in case I find a use for this.
''' MIDI <-> JNN converter f... | [
"sinancem_yucel@hotmail.com"
] | sinancem_yucel@hotmail.com |
fa51b64316f34902e418a7a004e81edb92be9c88 | 67f7c53d80faac734a96ef95bfe8f8a3927c1c33 | /Cherry Pie.py | 4dbfffdb4f6927d98cd50c187cff3efd43d23b9c | [] | no_license | Lpadilla2018/Transfer-Photos | ad21f9a00ed64542c49260687afeffcab1a6a77a | f8d23b014a882a6e81734aa6e755c7914d4f14b4 | refs/heads/master | 2020-04-10T01:50:56.397430 | 2018-12-06T20:22:00 | 2018-12-06T20:22:00 | 160,727,333 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # Cherry Pie.py
# 11/30/2018
# Developed by Louie Padilla
"""
Loop through main folder directory. For each file in a folder rename file to folderName_snapshot_#.jpg
"""
# Import modules
import os
from shutil import move
###############################################################################... | [
"noreply@github.com"
] | Lpadilla2018.noreply@github.com |
75218de7038fa55db27ff99920b6fc6874ece6a1 | d28d8388e4afb5fb2e98ff65feb89c9611a2bc9a | /python/python_env/bin/flask | 8dcdcc335787e74fc1fed0adcd6b7266d3bd994a | [] | no_license | baldpixels/DataLith | f5c4b384d856126167b7b20ef4ebb89e7ed6cc4a | d50052b1165d2162d0b12626d0972e50e9dc6030 | refs/heads/master | 2020-03-12T17:40:33.992806 | 2018-04-25T18:17:13 | 2018-04-25T18:17:13 | 130,742,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/Users/Mammoth/github/scraper/spring2018-cp-group-436839-437632/python/python_env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"baldpixels@gmail.com"
] | baldpixels@gmail.com | |
0c3976214f8e28555d2e3ff9dd37ab37dd2c712b | 251e4de91841fc42959e89211d3501ce24c4435e | /eventdriven/adapter/base.py | 253f683289151bfeaaceae339ac6fba3956f10e6 | [
"Apache-2.0"
] | permissive | ZSAIm/EventDriven | df1251c4e9f3f382600159d6626a6c959670c438 | 92bed2b3cde9249724f9cc25f3d19470abda5b9b | refs/heads/master | 2020-12-07T17:04:32.511933 | 2020-02-20T07:51:18 | 2020-02-20T07:51:18 | 232,758,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | # -*- coding: UTF-8 -*-
from abc import ABC
class AbstractAdapter(ABC):
def __setup__(self, parent, name, **options):
""" 安装适配器过程中调用该方法进行初始化。 """
self._parent = parent
self._instance_name = name
self._options = options
def __name__(self):
""" 返回适配器实例名称。 """
re... | [
"zzsaim@163.com"
] | zzsaim@163.com |
e6fb7f33e217a344b1fb817bb005bc2c3ba1cee9 | 58618ee13a29bb51a27a2e60c2585f9cb1d8c274 | /app.py | 5e3cb9b9b823985834a4190189886e20fe22c7ab | [] | no_license | abhisharma5/Python_chatbot | 54f4e526a7d8b24804831901d2469731f3d52c6d | 19e3805ecbeb26592b4fbb795d62ae4de215a9b2 | refs/heads/master | 2022-10-08T18:54:50.884320 | 2020-06-08T04:53:50 | 2020-06-08T04:53:50 | 270,530,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
app = Flask(__name__)
#create chatbot
englishBot = ChatBot("Chatterbot", storage_adapter="chatterbot.storage.SQLStorageAdapter")
trainer = ChatterBotCorpusTrainer(englishBot)
t... | [
"noreply@github.com"
] | abhisharma5.noreply@github.com |
714e19179bf6cdebe2c8704dd95faf550aad8b20 | 0282ec8733105cbb22af9c1c38aec5d240abeb32 | /experiments/gluon_rnns/setup.py | 2fc1a1ee3ca5e5c6b70a4ca86244e405f4bdefbd | [
"Apache-2.0"
] | permissive | uwsampl/relay-bench | d247f6f3cbc344d1d176c255a2fe7662e2d5ed8d | 527166e4ca13a2c7a513f9c66584b7ac9201436e | refs/heads/master | 2022-06-19T08:54:20.276771 | 2021-10-25T23:24:17 | 2021-10-25T23:24:17 | 137,016,402 | 8 | 4 | Apache-2.0 | 2022-05-24T17:06:13 | 2018-06-12T04:20:45 | Python | UTF-8 | Python | false | false | 498 | py | from common import invoke_main, render_exception, write_status
from mxnet_util import export_mxnet_model
def main(config_dir, setup_dir):
try:
export_mxnet_model('rnn', setup_dir)
export_mxnet_model('gru', setup_dir)
export_mxnet_model('lstm', setup_dir)
write_status(setup_dir, True... | [
"sslyu@cs.washington.edu"
] | sslyu@cs.washington.edu |
75ced30ac4e6c4e6bead4ec4daa4862cb8bf164e | 414493d42cb86fad7e00d1b3ea1eb7a4bc018557 | /logger/ztest/FileWriterTest.py | 1e458f014efe7da8313f3fc3e533c2a8322c184c | [] | no_license | aman0302/trade-log | 3f24230b000da8ac1efe2a76fc51ed9a43896017 | ad90d75dce69ea740f21c612df975a9fca141e2f | refs/heads/master | 2021-01-19T21:33:54.094140 | 2018-09-23T23:23:34 | 2018-09-23T23:23:34 | 88,665,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from logger.action.FileWriter import FileWriter
from logger.models.SmallcaseModel import smallcase_model
def test_file_insert():
sm = smallcase_model(name='TEST_SM', index='107.45', investment='10000.00', value='1007989.00', pnl='-10.6%',
actual_pnl='-1982.78', bought_on='20 APril', times... | [
"aman.gupta@flipkart.com"
] | aman.gupta@flipkart.com |
e947e0a17fdf220132f2f1568544ca47d5787acc | 05fe775032bb3a08c1752421dbb52a8c52a96c85 | /반복문/range.py | c83060123dc106808df5458dcb5857d907fe4c92 | [] | no_license | nexiom1221/Phyton-Practice | 58843d507d87a9ac99b20dbf8ca215e5ba25fb64 | aeff0942a26b990c7891ac11b58f45e40f024b11 | refs/heads/master | 2022-12-07T08:59:26.916976 | 2020-09-07T13:14:55 | 2020-09-07T13:14:55 | 270,298,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | n = 10
a = range(0, int(n/2))
print(list(a))
for i in range(5):
print(str(i+1) + "= 반복 변수")
array = [273, 32, 103, 57, 52]
for i in range(len(array)):
print("{} 번쨰 반복 {}".format(i+1, array[i]))
for i in range(4, 0-1 , -1):
print(i)
print()
for i in reversed(range(5)):
print(i)
i =0
while i< 10:
... | [
"superdizmon1@gmail.com"
] | superdizmon1@gmail.com |
7075b62d95d63c0abfdebcac5772e9ce9fff30f4 | 02b460257be33634a5e204c12a22d396c49ec1e8 | /ch1/ex1_6.py | e506176ded89c2a72f238158685c3fe6189a0731 | [] | no_license | wxhheian/ptcb | c5250362d5ab0903498e52c5a5d9cbdccc37853f | ae95fb18853f94246b4b1e84371e3f140677c8e8 | refs/heads/master | 2020-07-02T08:28:16.867948 | 2019-08-09T18:49:50 | 2019-08-09T18:49:50 | 201,473,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | ##实现一个键对应多个值的字典
#####实现方法一:将多个值放到不同的容器中
# d = {
# 'a':[1,2,3],
# 'b':[4,5]
# }
# e = {
# 'a':{1,2,3},
# 'b':{4,5}
# }
from collections import defaultdict
d = defaultdict(list)
d['a'].append(1)
d['b'].append(2)
d['b'].append(4)
e = defaultdict(set)
e['a'].add(1)
e['a'].add(2)
e['b'].add(4)
############... | [
"365194143@qq.com"
] | 365194143@qq.com |
6992cf72d105b6ef54bff25adcb8ea24a189c840 | 14c63f5847aafbcf69796ccdab1656f0e5897711 | /Trump_Clinton_Classifer/CNN.py | 12d5ec080091b030ad8d0c83c3edb27074dfdee5 | [
"MIT"
] | permissive | lilyzhi1/fake_news_during_election | f12a7a06568077856e71d6147027cd13b6629dff | 59609f498444a6b37727afa096f2adcaf0ed4ce8 | refs/heads/master | 2020-04-29T18:36:26.499995 | 2019-03-18T15:51:54 | 2019-03-18T15:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,276 | py | # 向量化(vectorize)
import sys
from my_weapon import *
from gensim.models import Word2Vec
import word2vecReader
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import autograd, optim
import logging
# logging.basicConfig(filename="log/train-11302018.log", format="%(levelname)s - %(asctime)s -... | [
"zkzhou_91@163.com"
] | zkzhou_91@163.com |
93161c94b7e980743a53d94aa3a20ea99bd7324b | 261e6eff44097d9dbe217f061cb4c8ab13f02e37 | /vce_health_care/wsgi.py | 1fc8e9c2f1d592cc6d8b36a8730f887877d3e246 | [
"MIT"
] | permissive | 1919kiran/healthcare-portal | e83b84b8d47886c8210cf0529674eef9a7202fcc | 547d734762b6698adf8f5a7a45418e8553ca9397 | refs/heads/master | 2022-12-11T08:26:36.743965 | 2019-04-28T19:15:00 | 2019-04-28T19:15:00 | 180,219,725 | 0 | 0 | MIT | 2022-12-08T04:57:43 | 2019-04-08T19:34:36 | Python | UTF-8 | Python | false | false | 407 | py | """
WSGI config for vce_health_care 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('DJAN... | [
"iam191911918114@gmail.com"
] | iam191911918114@gmail.com |
e96e099b25cfb3fc367f85f23be963095437e653 | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/quest/q5523e.py | 65c50af387328753c10ae50e98802bd1ea180dff | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 105 | py | # Tot's reward lv 60
sm.completeQuest(5523)
# Lv. 60 Equipment box
sm.giveItem(2433958, 1)
sm.dispose()
| [
"tim.blokk@gmail.com"
] | tim.blokk@gmail.com |
73788b1d6880269678f000717a68971f4e3f0f80 | 0084e99ca9fcc792ddca9d489f7d55f023199b36 | /backend_receitas/ll_env/Scripts/django-admin.py | aee7e9a3ea3acd2dcef6d3a9c75342ae0eed5e56 | [
"Apache-2.0"
] | permissive | gugact/backend_web | 5fd84dd5edefd76541c27f213b0887589286e75f | 32b72ec460c1b6bae63bfd391c87b0c4bf644821 | refs/heads/master | 2021-08-23T01:16:20.789714 | 2017-12-02T03:09:21 | 2017-12-02T03:09:21 | 112,808,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #!c:\users\gustavo\desktop\backend_receitas\ll_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"gustavo.tremiliosi.usp@gmail.com"
] | gustavo.tremiliosi.usp@gmail.com |
a70448d44e33562edc9126a4b7054b947ed0c41d | 6f1eabcb1b6cb1aaad4e882f2195b4e6d8bdad92 | /backend/habdb/migrations/0006_auto_20190619_1508.py | ff2807be8ca59a5728fdae3919e7084689db57c5 | [] | no_license | pulidongz/hab-hub | 705f47078ad9c5f92d02fbe1cd15cd594f03f06b | 0a75a7cbec6b1afcc16b6549d2c98a9f924d7ebe | refs/heads/master | 2023-01-23T00:04:39.859890 | 2020-02-05T09:14:02 | 2020-02-05T09:14:02 | 236,428,933 | 1 | 0 | null | 2023-01-06T06:26:52 | 2020-01-27T06:00:35 | CSS | UTF-8 | Python | false | false | 446 | py | # Generated by Django 2.2.2 on 2019-06-19 07:08
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('habdb', '0005_station_location'),
]
operations = [
migrations.AlterField(
model_name='station... | [
"paogravoso@gmail.com"
] | paogravoso@gmail.com |
5b722af7a1935ec56d65f9a898b93a8698f4d229 | e472f5209789cd50cc9129683c4918d63e3ddb41 | /ANALYSIS_SCRIPTS/heepElastics_Analysis/hms_heep_summary/hms_electrons/dW_variations.py | 27e94f9c7809a718568f3ed46dd58176cc8d6fc8 | [] | no_license | Yero1990/DEUTERON_ANALYSIS | a8447557de109302ca19e360c8e5d0f1280b0dd6 | c0f107ec907a47a0f83b2175222ac7c48d199af2 | refs/heads/master | 2023-08-06T12:18:37.639062 | 2021-09-14T18:01:11 | 2021-09-14T18:01:11 | 160,069,441 | 1 | 1 | null | 2019-11-14T15:20:44 | 2018-12-02T16:57:42 | C | UTF-8 | Python | false | false | 4,422 | py | #Code to determine the variations in E, E' theta_e from the variations
#measured in W_simc - W_data
import LT.box as B
import numpy as np
from numpy import ndarray
f = B.get_file('hms_heep_summary_FINAL.data')
#Define masses
Mp = 0.938272 #proton mass GeV
me = 0.00051099 #electron mass GeV
#converion factor from d... | [
"jones@jlab.org"
] | jones@jlab.org |
220bc39fefb86914c598be64d3011ebb9cdcf34d | 4f67b9d8b7f4b5cb38a8abbe543ab858b6b8fb43 | /tests/components/test_counter.py | 8dc04f0e76ab7b910d7cc8309ff0c8884d579b85 | [
"Apache-2.0"
] | permissive | FedericoAsi/home-assistant | fc5b78b162d71a1eccb122bd3dd4e9e3f842b4c2 | 45609f13262111ddd6a7f865c8e3e290444110fd | refs/heads/dev | 2023-03-10T15:17:46.326157 | 2021-02-11T22:09:33 | 2021-02-11T22:09:33 | 106,481,706 | 1 | 0 | NOASSERTION | 2021-02-11T22:09:34 | 2017-10-10T23:23:18 | Python | UTF-8 | Python | false | false | 5,848 | py | """The tests for the counter component."""
# pylint: disable=protected-access
import asyncio
import unittest
import logging
from homeassistant.core import CoreState, State
from homeassistant.setup import setup_component, async_setup_component
from homeassistant.components.counter import (
DOMAIN, decrement, increm... | [
"pascal.vizeli@syshack.ch"
] | pascal.vizeli@syshack.ch |
630f9556a0812fab978009d4e1ed1064a8794300 | 9824860061cc00b51c7065229bf5ae30f6ea2589 | /qlpdb/qlpdb/tdse/migrations/0002_remove_tdse_test.py | d0b865fb01f487f41f1d90eeee8058a63e5bc0fd | [] | no_license | ScorpXOY/quantum_linear_programming | 0a8c5d2b4e845a559c6fc3fffd83e8e0a2340aed | 66690b10c3c379a91a73db3e0b8b02a2b8c0de11 | refs/heads/master | 2023-03-24T05:58:53.306000 | 2021-02-04T15:22:27 | 2021-02-04T15:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # Generated by Django 3.0.3 on 2020-04-22 08:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tdse', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='tdse',
name='test',
),
]
| [
"pyo0220@gmail.com"
] | pyo0220@gmail.com |
ec909014a75777f9c98e33e6bfc8a8965ec22fec | 4448001f31d1f7a56915c620d7a8a12a137b29a2 | /PySpedNFSe/pysped_nfse/rj/xmldsig-core-schema_v01.py | 631217de4b952bfb536cc2c467ca6018907958bf | [] | no_license | DITIntl/lets-keep-open | c7d639a0de9f1fc4778864e74a304ef6facf7506 | 61a6b5b9500b4d4da1799099995176b594a27fb7 | refs/heads/master | 2021-09-07T20:32:46.587547 | 2018-02-28T16:37:56 | 2018-02-28T16:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168,964 | py | # -*- coding: utf-8 -*-
# © 2016 Danimar Ribeiro, Trustcode
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import sys
import getopt
import re as re_
import base64
import datetime as datetime_
etree_ = None
Verbose_import_ = False
(
XMLParser_import_none, XMLParser_import_lxml,
XMLParser_... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
df8b92276a90d6247ec6faad10bd8438265fa168 | 968ea030e3439a2ec46fd8424363c9f49f88d3f3 | /accounts/migrations/0001_initial.py | aef742fbeca32d580f166ea286df0f40ff7fb018 | [] | no_license | busoff/projectime | 63f7d68dc49a7aba5b5ea4f091f3ec1665f21810 | db9f10d6fcf65bd50383df00210bc224238ee952 | refs/heads/master | 2021-06-11T04:24:00.388820 | 2020-02-29T04:50:09 | 2020-02-29T04:50:09 | 152,294,463 | 0 | 0 | null | 2021-06-10T21:02:41 | 2018-10-09T17:40:16 | JavaScript | UTF-8 | Python | false | false | 754 | py | # Generated by Django 2.1.2 on 2018-12-08 15:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"busoff@qq.com"
] | busoff@qq.com |
7466229e21a1f6ba95a9a8ae72f30c4c238f16fe | 9ecf6cfdc15b704b44688c533c5c6e9eccc5c0ab | /randomise-selected-objects-color.py | 181f6e92a57894fc3a910c380826c7c07f9afaf0 | [] | no_license | Bordilovskii/cinema4d-scripts | 96b1eab6aa442ef6ead105d22e0bab352d8563c9 | 811be702a64c8b0c97dedbbf95723ce0af06a7fa | refs/heads/master | 2020-03-27T06:37:25.692966 | 2018-07-04T09:30:18 | 2018-07-04T09:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import c4d
import random as rand
def main():
doc.StartUndo()
objs = doc.GetActiveObjects(0)
if len(objs) == 0:return
for obj in objs:
doc.AddUndo(c4d.UNDOTYPE_CHANGE,obj)
obj[c4d.ID_BASEOBJECT_USECOLOR] = 2
r = rand.random()
g = rand.random()
b = rand.r... | [
"rautio.arttu@gmail.com"
] | rautio.arttu@gmail.com |
c822f6ed07953bee56d648fff611aea04680c407 | 366b2ff9cd498808438bf7c48f697c05b361d02c | /models.py | 0606075241f9749a7ff176655dadf12a115be600 | [] | no_license | c-bata/AngularJS-Bottle-TodoApp | 1aef6b09fd85fabaa63898ab3fb9a2d586216b93 | 8f03820b7949b0c28477970c58f25ccd1856b2a9 | refs/heads/master | 2021-03-12T22:40:32.000758 | 2015-11-04T11:14:47 | 2015-11-04T11:14:47 | 38,732,944 | 2 | 0 | null | 2015-11-04T11:11:39 | 2015-07-08T05:02:47 | Python | UTF-8 | Python | false | false | 1,225 | py | from datetime import datetime
from sqlalchemy import (
Column, Integer, Unicode, UnicodeText, Boolean, DateTime,
create_engine
)
from sqlalchemy.ext import declarative
from bottle.ext import sqlalchemy
Base = declarative.declarative_base()
engine = create_engine('sqlite:///:memory:', echo=True)
plugin = sq... | [
"contact@c-bata.link"
] | contact@c-bata.link |
c13cea7b42eb939807a49f33b9a9432879a0693b | e8dfe0ebcb618ae9ed70072ab28399db572a6890 | /corp/admin.py | 136f7c2cc71b8a8330a34c7a984c163ca029e334 | [] | no_license | wowioboy/popgalaxy | 3ace319b6abdd9201c8003fbeb8525e969e14a6b | a08a76b013672f1481d337277098809548fbaeb2 | refs/heads/master | 2021-01-01T06:51:03.721738 | 2011-04-11T22:55:07 | 2011-04-11T22:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from django.contrib import admin
from corp.models import *
class CorporateAdmin(admin.ModelAdmin):
list_display = ('section',)
search_fields = ['section', 'details_markdown']
list_filter = ('section',)
admin.site.register(Corporate, CorporateAdmin) | [
"lleach@wowio.com"
] | lleach@wowio.com |
06d81819ec245e77cec949f12a8b70ffb0617810 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /scraping/get_html_title.py | 9f5573db2266ed5c6d715cae3af9936cb85faae6 | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 603 | py | from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
def get_title(url):
try:
html = urlopen(url)
except HTTPError as e:
print(e)
return None
try:
bsoup = BeautifulSoup(html.read())
title = bsoup.body.h1
except Attr... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
7e3d468ebf175be3859c7098b04ede6d18e42156 | 14edb8c2733f0e356fe77f7721b99a9a9c06d4ac | /Домашняя работа/Урок 2/Задание 2.2.py | 2f32d1890bf929adc765c51ec3b5032e85345c5c | [] | no_license | SavaGeekbrains/Python-1 | 40ef76bf16f0f46bbe597ebd023f69113bd627e9 | 850373bd9252e76bc54c6179da1eb10faf5ffec3 | refs/heads/master | 2022-04-25T08:55:19.850289 | 2020-04-30T11:00:19 | 2020-04-30T11:00:19 | 255,343,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
el_count = int(input("Введите количество элементов списка "))
my_list = []
i = 0
el = 0
while i < el_count:
my_list.append(input("Введите следующее значение списка "))
i += 1
for elem in range(int(len(my_list)/2)):
my_list[el], my_list[el + 1] = my_list [el + 1], my_list[el]
el += 2
print(my_l... | [
"Savchenko@live.ru"
] | Savchenko@live.ru |
7cf927c28e9287422cc2e956a310a8886499d318 | 7296426621849f7f0fec593cd6977bca140a0c9b | /manage.py | 2de5da7787dc5f9fc4208210ed86256af63acd84 | [
"MIT"
] | permissive | aaira-a/batcher | cf31ae9fa289b4114692dadc288b157137e81161 | 3e22f017b23bc22d0bec6eced4c94ee56e3b36f9 | refs/heads/master | 2022-12-22T20:08:30.915731 | 2015-06-09T07:27:04 | 2015-06-09T07:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "batcher.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"azam.alias@iproperty.com"
] | azam.alias@iproperty.com |
c3dbd510be0238b80ddc6e66505d342b901e56c1 | 4a3b42ef1d5708979e64b1cebccd4a9335c1b62b | /find_fruit.py | 954d167c9b47a75c15d5b7c3f5fa48fb8d5c075d | [] | no_license | grnbeltwarrior/Find-Fruit | 34cd2297253052ee905f7e16e3f5894855174aed | ccc3e2ccac9df11219e5cd19c73d78857654abbf | refs/heads/master | 2020-03-21T15:53:55.321515 | 2018-06-26T17:22:20 | 2018-06-26T17:22:20 | 138,739,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/python
# reworked into python from rvrsh3ll's Find-Fruit.ps1
# https://github.com/rvrsh3ll/Misc-Powershell-Scripts/blob/master/Find-Fruit.ps1
import sys
import socket
import getopt
import threading
import subprocess
import requests
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings... | [
"gabrielthompson@gabrielthompson.com"
] | gabrielthompson@gabrielthompson.com |
4d761b6be55161e94f2b66c2946332253be62fd8 | 027dbcdb37ba1c09d06bfc623eaa9134d41a664a | /models/spring.py | 0b8371ce23d1b7577b2598b9c562725ab0742fb4 | [] | no_license | sjkywalker/physical-modeling-with-python | ccada128c4a3aaf6c02b2d0789059dbd73b78307 | 8e00897263d17381e159373bf9762d9274a028e5 | refs/heads/master | 2020-06-02T14:08:26.469431 | 2019-06-16T06:37:45 | 2019-06-16T06:37:45 | 191,181,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
# args = mass, spring coeff., drag coeff.
def spring(state, t, m, k, b):
disp, vel = state
state_deriv = [vel, -(k/m) * disp - (b/m) * vel]
return state_deriv
# coefficients
m = 2.0
k = 100.0
b = 5.0 # critical damp near... | [
"sjkskywalker@korea.ac.kr"
] | sjkskywalker@korea.ac.kr |
142624fbd5f9548c22e3fac769ecbe3ca4657863 | a960259bafb95fca6aed244fd4698a6dd6669cf8 | /BooAPI/.ipynb_checkpoints/check_db-checkpoint.py | 97bb5c6aa62b3c71db59f9b2a00cb280e81fde13 | [] | no_license | BenAndrew310/Booboo-api | b6f523e48e5a1bc4a1e004252f050b047330972d | afcec8587b471de2d56d47d72bb85a0819fb6b3c | refs/heads/master | 2022-12-11T12:09:20.981651 | 2020-08-14T08:28:15 | 2020-08-14T08:28:15 | 287,349,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | from API import db
from API.models import User, Device, UserKey
from API.DeviceManager import Device_Manager
from datetime import datetime
if __name__=="__main__":
# dev = Device_Manager()
# db.create_all()
# d=datetime.utcnow()
# dev.create_device(name="Lamp desk",value="true",value_type="boolean",date... | [
"andreben2442@gmail.com"
] | andreben2442@gmail.com |
ed0a2f5de08d232d41756e5f40d97c76a6470ee6 | 5e72dc0cb60585e39b955bed5fe72066797f85b3 | /fastreid/layers/context_block.py | 7b1098a8663e48c4affead9bef504acf3e50e2ef | [
"Apache-2.0"
] | permissive | lhf12278/ISM-ReID | 0ba10205664367890c40d55ad1d48380f44655b7 | e87ae2dedee4f19199400281960fd71453f6d9dc | refs/heads/main | 2023-03-26T19:29:11.843753 | 2021-03-26T02:39:32 | 2021-03-26T02:39:32 | 360,726,193 | 2 | 0 | Apache-2.0 | 2021-04-23T01:17:41 | 2021-04-23T01:17:40 | null | UTF-8 | Python | false | false | 4,244 | py | # copy from https://github.com/xvjiarui/GCNet/blob/master/mmdet/ops/gcb/context_block.py
import torch
from torch import nn
__all__ = ['ContextBlock']
def last_zero_init(m):
if isinstance(m, nn.Sequential):
nn.init.constant_(m[-1].weight, val=0)
if hasattr(m[-1], 'bias') and m[-1].bias is not Non... | [
"784509877@qq.com"
] | 784509877@qq.com |
ee8ba4bcc3a9abb8c2eb5568f10db0cb9fc8d7fa | 2892731203f7b59faa8f5182b756c0b3575e796f | /cma/__init__.py | 158fa33dcec09b9cd3383b61ea91ae290e7e8990 | [] | no_license | assimilation/assimilation-official | 1024b92badcbaf6b7c42f01f52e71c926a4b65f8 | 9ac993317c6501cb1e1cf09025f43dbe1d015035 | refs/heads/rel_2_dev | 2023-05-10T20:12:33.935123 | 2022-12-08T16:21:22 | 2022-12-08T16:21:22 | 42,373,046 | 52 | 17 | null | 2023-08-16T12:43:49 | 2015-09-12T21:04:36 | Python | UTF-8 | Python | false | false | 121 | py | """Module docstring ;-) """
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
print("PATH=%s" % __path__)
| [
"alanr@unix.sh"
] | alanr@unix.sh |
24cdb1982f2fe439f8411d943177ebf9d46ba73e | 8d6ec0275afe856834bf10643e3b4b2cbcb318f4 | /03-online-shop/myshop/shop/views.py | 93982ce741c0abec344a2ff2ddd5db46f5ee1ff2 | [] | no_license | markronquillo/django-by-example | be35fbbc483440a11c440733931c146d56816c97 | fa749e5077f64ac68f11c7b529e13ac097cb5bd0 | refs/heads/master | 2021-01-11T14:38:40.854636 | 2017-02-24T03:09:58 | 2017-02-24T03:09:58 | 80,184,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from django.shortcuts import render, get_object_or_404
from .models import Category, Product
from cart.forms import CartAddProductForm
def product_list(request, category_slug=None):
category = None
categories = Category.objects.all()
products = Product.objects.filter(available=True)
if category_slug:
category... | [
"markronquillo23@gmail.com"
] | markronquillo23@gmail.com |
86366bbc3631c073f9792a83537f1104e2a53fc9 | a684efb1b22a57a2f15c793960dd1ac7a7d1138d | /model.py | 223d1bb01534555c13affa26fab019b9fae2448d | [] | no_license | gagz21/MnistDigit-Recognition | ca74d7089a0e5ffa2bb90667fc0d852905fc4f02 | 09d767a6bdf9b33c8e7494a42737bc172231dd96 | refs/heads/master | 2020-03-28T09:59:09.647904 | 2019-03-06T01:32:48 | 2019-03-06T01:32:48 | 148,073,893 | 1 | 0 | null | 2018-09-09T23:17:52 | 2018-09-09T23:17:52 | null | UTF-8 | Python | false | false | 3,778 | py | import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D, Activation
from keras.layers.normalization import BatchNormalization
from keras import backend as K
import numpy as np
from keras.models import model_from_json
import cv2
#load json and create model
de... | [
"gentlemanana1@gmail.com"
] | gentlemanana1@gmail.com |
fc3d08b64398f20a86a22df3a3d1580e139e6d72 | 00f449b83b0501cd8c7fd49c80ab42e527a6429a | /day1.py | ede0449c75dc97560c35d7e8c368e1db0b22af76 | [] | no_license | aidaploco/AdventOfCode2019 | 620a576366b6f7e61aae4957416094cfd6bd2080 | cc20fad41380cd3e50f7d7cbee33185313b638ba | refs/heads/master | 2022-10-24T23:28:47.302321 | 2020-03-06T10:22:36 | 2020-03-06T10:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | def compute_sum(array):
sum_ = 0
for _, mass in enumerate(array):
fuel = mass
while fuel > 8:
fuel = int(fuel / 3) - 2
sum_ += fuel
return sum_
array = [114106,
87170,
133060,
70662,
134140,
125874,
50081,
133117,
100409,
95098,
70251,
134043,
87501,
85034,
110678,
80615,
64647,
88555,
106387,
143755,
10... | [
"aidaploco.ap@gmail.com"
] | aidaploco.ap@gmail.com |
c2160201ce7a18aba463609e124b2e6cc946adbc | 0cc544eb7ac81c9f78081ab3da6f5ce0ad9eabaa | /lab/11. sliding_window.py | ea8c2f14cfbc099ac2b6b9d6a9e1a0305bf6556c | [] | no_license | BGPark/Vehicle_Detection | ff2ad89e43b2979cdee978b148f6f9b7ee1038b3 | fe2dc4d8ef21190d48b49fa1fd122a869001e584 | refs/heads/master | 2021-01-19T15:23:38.887678 | 2017-08-22T12:51:32 | 2017-08-22T12:51:32 | 100,857,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pickle
from utils import *
# image = mpimg.imread('cutouts/bbox-example-image.jpg')
image = mpimg.imread('project_video[00 00 21].bmp')
params = {}
window_list = None
x_start_stop = [16, None]... | [
"emsshi@gmail.com"
] | emsshi@gmail.com |
f73e10702eac780562bb92aa6e041b70ea6d6e0c | 7f0c5a5632eae66a8774b85cecd7d8b109b2d574 | /prometeo/mem/ast_analyzer.py | 7afa08b4d8066ab73b06c47800dd27bfbee7eb6f | [] | no_license | tmmsartor/prometeo | 5580f57776e04a3c41b842c921550dad320c503a | 0274956bf42c2494c2efaa917fd91ccce9c19917 | refs/heads/master | 2022-06-29T13:18:03.439266 | 2020-05-04T12:22:36 | 2020-05-04T12:22:36 | 261,490,240 | 0 | 0 | null | 2020-05-05T14:10:11 | 2020-05-05T14:10:10 | null | UTF-8 | Python | false | false | 10,315 | py | import ast
from collections import defaultdict
from ..cgen.node_util import ExplicitNodeVisitor
import astpretty as ap
from ..cgen.op_util import get_op_symbol, get_op_precedence, Precedence
import json
from collections import Iterable
from copy import deepcopy
pmt_functions = {\
'global@pmat': [], \
'global@p... | [
"andrea.zanelli@imtek.uni-freiburg.de"
] | andrea.zanelli@imtek.uni-freiburg.de |
ba899437a9b90245a23302d2657f8bbc45f04620 | 753e37262b066ce25d1459abc9726f23143d7ec1 | /NashEquilibria/cyclic-4-3/inputFile.py | 5728662be385b86e6c69b1214184a2ef85bedb89 | [] | no_license | JoseMath/multiregeneration | bc7f93499e1bf6d1d65e025fa97fc7936a300fcb | 57ace40595941678491d82f96d2d71a784284a3e | refs/heads/master | 2021-07-12T00:24:50.815887 | 2020-08-11T18:00:51 | 2020-08-11T18:00:51 | 191,240,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | degrees = [[2, 1, 0, 1], [2, 1, 0, 1], [2, 1, 0, 1], [1, 2, 1, 0], [1, 2, 1, 0], [1, 2, 1, 0], [0, 1, 2, 1], [0, 1, 2, 1], [0, 1, 2, 1], [1, 0, 1, 2], [1, 0, 1, 2], [1, 0, 1, 2]]
logTolerance = -10
explorationOrder="depthFirst"
algebraicTorusVariableGroups = [0,1,2,3]
| [
"jose.israel.rodriguez.math@gmail.com"
] | jose.israel.rodriguez.math@gmail.com |
c0d854e6bc7618d1b2b42bf913ae0b6e583c8c5f | 2c555fafc092ab76fbad5a9d4dff9ed74c668d88 | /Activities/lab2/4_launchvmapi.py | 65e8151a132a1d7f284720e16e699fbb9bde212e | [] | no_license | jcooklin/OpenStackWorkshop | 3aa69ebdbe90a3c02bc308571e7688e492b87f78 | d5d9b85194c1d68c1744bebd2c5643b13b8b0663 | refs/heads/master | 2021-01-10T19:02:38.106183 | 2012-09-12T22:30:01 | 2012-09-12T22:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # coding: utf-8
# ---------------ACTIVITY1- create a Nova client object
ip = 'http://' + raw_input("Enter your ip: " )
url = ip + ':5000/v2.0'
user = raw_input("Enter Username: ")
pwd = raw_input("Enter Password: ")
tenant = raw_input("Enter Tenant name: ")
from novaclient.v1_1 import client
nc = client.Client(... | [
"root@ubuntux64.(none)"
] | root@ubuntux64.(none) |
1f024929c0afb2db426b198c70664fa3b2feef25 | 614ef75a554c7d3ebec416f7f93b496738e5ed38 | /ask_app/models.py | e4c9031cd19b45f3c8619f786672ba0af842b798 | [] | no_license | IVyazmin/ask_vyazmin | 12807b574451bdcc96512293df89995edc5e571d | 00e83d482d702359aec01f59406b36093d185970 | refs/heads/master | 2021-01-22T03:23:18.209069 | 2017-02-17T20:17:07 | 2017-02-17T20:17:07 | 81,121,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | # _*_ coding: utf-8 _*_
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User, UserManager
from django.shortcuts import get_list_or_404
from django.shortcuts import get_object_or_404
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__... | [
"ilja.vyazmin@mail.ru"
] | ilja.vyazmin@mail.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.