blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db3ce4244a5fc83088d2a883f94c8f158055e015 | 9bdfb85866048c796066d670c15c017c2ffe51cf | /SentVot_constants_v01.py | 357aca52f3e5b8609dc25698313f268653d26dc1 | [] | no_license | vfp1/SentVot | ec692e366b28430c0a6cae4da33b459dc0cbdb50 | 104d79c82e9984ab0f8737627042eca6352efbb5 | refs/heads/master | 2021-01-17T08:08:34.667706 | 2016-09-26T19:46:41 | 2016-09-26T19:46:41 | 63,061,233 | 0 | 0 | null | 2016-07-11T11:44:36 | 2016-07-11T11:10:37 | null | UTF-8 | Python | false | false | 316 | py | __author__ = 'Victor'
#Attributes of the Polygons
CATEGORY_RESTORE = "ABLE_RESTORE"
CATEGORY_NOT_RESTORE = "NOT_ABLE_RESTORE"
REASONS_AGRICULTURE = "AGRICULTURE"
REASONS_HISTORIC = "HISTORIC"
REASONS_SPIRITUAL = "SPIRITUAL"
REASONS_ECOLOGY = "ECOLOGY"
REASONS_LANDSCAPE = "LANDSCAPE"
REASONS_ACCESS_WATER = "WATER" | [
"victor.fpm@gmail.com"
] | victor.fpm@gmail.com |
8a3a2a6148f9b52d4514d9d51aa42e2bcfc1e9b4 | e8893e408f9573cf190315ed2d28033b97379d15 | /WebEdu/settings.py | 27f504aff975e56c9ea066d724ff3b181a2d06ab | [] | no_license | kiscu/WebEdu | ccaaed879f70e82c3ab9a88cae037fdfdd46ad83 | ceb9af2f5c92e525c8d653ed19efb3009f19bd24 | refs/heads/master | 2021-01-23T00:07:13.069554 | 2017-03-21T12:52:44 | 2017-03-21T12:52:44 | 85,701,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | """
Django settings for WebEdu project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"vipwangkai@live.cn"
] | vipwangkai@live.cn |
8604c14e13518242390855332ca28ed452fb40a2 | c2a00676b9ccf7d258e04b2918cce945283bce4c | /occ/occ/model/network.py | 3f7b1cc184015196d613446adfcb3f19752a8cbb | [] | no_license | robwalton/occmodeler | 1147488fd40b8005adc549435ead8084e71f0619 | e535447a786508b0c04e491b417f9772ef03a415 | refs/heads/master | 2020-04-29T03:27:49.597972 | 2019-07-15T13:16:25 | 2019-07-15T13:16:25 | 175,810,584 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import networkx as nx
def check_medium_graph(medium_graph):
"""Assert that g is an nx.Graph having contiguously numbered nodes starting from 0."""
g = medium_graph
assert isinstance(g, nx.Graph)
for node in g.nodes:
if not isinstance(node, int):
raise AssertionError(f"node {node} ... | [
"rob.walton@eng.ox.ac.uk"
] | rob.walton@eng.ox.ac.uk |
1fabbb1ecb26271e12e7701d0f033dc6f126c752 | e0a9c10a9982b5200b6e1c4a5eb3782b6412a33f | /Lesson_5/task_2.py | 005ce2b626267829e6b10bca81a40a126a3079eb | [] | no_license | annaxarkhipova/geekbrains | 95ced2ff482a3c43846c0d98097cd9a2dade1806 | 16fd6ebdb330cbf9bd981d24c8a2ede661b56502 | refs/heads/master | 2023-04-02T08:55:53.203232 | 2021-04-09T07:53:34 | 2021-04-09T07:53:34 | 313,641,732 | 0 | 0 | null | 2021-04-09T07:53:35 | 2020-11-17T14:17:26 | Python | UTF-8 | Python | false | false | 2,783 | py | # Написать программу сложения и умножения двух шестнадцатеричных чисел.
# При этом каждое число представляется как коллекция, элементы которой — цифры числа.
# Например, пользователь ввёл A2 и C4F. Нужно сохранить их как [‘A’, ‘2’] и [‘C’, ‘4’, ‘F’] соответственно.
# Сумма чисел из примера: [‘C’, ‘F’, ‘1’], произведени... | [
"arkhipova-1997@yandex.ru"
] | arkhipova-1997@yandex.ru |
ff53dcc8be2c1cb0f7d85cede7a4ef31eab57271 | 4fa978136966bd0c5e9ecec2ac14427f7a9a15e5 | /run_case.py | e8bd773e7d17e338c73786ae304faf9aa0124207 | [] | no_license | xiaobaiyizhi/xlbbtest | a1b7d60bb336930388ad7c35dd6e19d9a0f2c847 | ee16c796909868a69e45dc3759f3120952acbe7c | refs/heads/master | 2021-01-10T01:55:16.659274 | 2016-03-28T10:13:47 | 2016-03-28T10:13:47 | 53,026,670 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import unittest
from base_config import PATH
import time
import os
import HTMLTestRunner
case_path = PATH+'/testcase'
result_path = PATH+'/result'
def Creatsuite(): # 创建单元测试容器
testunit = unittest.TestSuite()
test_case_file = unittest.defaultTestLoader.discover(case_path, pattern='test_*.py', top_level_di... | [
"dx5878210@gmail.com"
] | dx5878210@gmail.com |
b885dd85bab618559edd1f8e18062c598b683d33 | cbd26fb5b6ca70754a237ba36d8f7f44cbbd5b2f | /bestwest.py.py | e78ed844ce118bca2375950111debd070d27c3d1 | [] | no_license | tobbablo/iam_key_rotation | 0170af4223a61e2a52286a1136e3efde7e6525f8 | 7f88f4887643a2152620a13b1cd947e1f927f78e | refs/heads/main | 2023-04-18T02:23:15.204538 | 2021-05-07T01:57:07 | 2021-05-07T01:57:07 | 364,966,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,155 | py | import boto3
iam = boto3.client('iam')
from datetime import datetime,timezone
today = datetime.now(timezone.utc)
from botocore.exceptions import ClientError
import json
secretmanager = boto3.client('secretsmanager')
def create_key(uname):
try:
IAM_UserName=uname
response = iam.create_access_key(U... | [
"tobbablo@yahoo.com"
] | tobbablo@yahoo.com |
0fc64f2c8b1073c59eabb61199dc204db46be494 | 1a385bf9064f437f7a8b39310480c845276c3c43 | /api/campaign/serializers.py | c6184c80ce7e3d38cf468b3e9297892416a6db73 | [] | no_license | KamiYoung/middle_cobra | ed5cc567bacb87325648c67a08d3e2a220b3728a | 655426ea0d9d347709700e3b267e310472c6fb95 | refs/heads/master | 2020-03-25T01:24:17.393742 | 2018-08-04T08:27:47 | 2018-08-04T08:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from rest_framework import serializers
from app01 import models
class OccupationSerializer(serializers.ModelSerializer):
class Meta:
model = models.Occupation
fields = '__all__'
class CampaignTypeSerializer(serializers.ModelSerializer):
class Meta:
model = models.CampaignType
... | [
"y312193268@gmail.com"
] | y312193268@gmail.com |
92f49a40af9cefa1d214c56a763fcc92b2a61fff | c11a215d515e001a0e93e0d63d7ab19451edba89 | /crit_func.py | fee1bd4ba97720542a0166cfa3684bb9be315ea6 | [] | no_license | amalsankumar/sqlEngine | d146114d44ce69d68d81b180ab7f4c38496bca04 | 1e93795c490151c2bd27a29f38b931c01fd2e520 | refs/heads/master | 2021-01-18T19:14:14.801209 | 2017-08-24T19:03:04 | 2017-08-24T19:03:04 | 100,527,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,757 | py | import sys
import re
import csv
from other_func import *
oth = other_func()
FUNCS = ['distinct', 'sum', 'max', 'avg', 'min']
class process:
def __init__(self, dict):
# self.obj = objtemp
self.dict = dict
self.comm_list = []
self.clauses = []
self.conditions = []
se... | [
"amalsankumar@gmail.com"
] | amalsankumar@gmail.com |
27896eb7ef84221802c1d9bc0f0efd926d7c982a | 165d3e7e5c0a3de0710215b54e7a6abe1b2d3c47 | /arm-linux-ulibc-4.8.5/usr/bin/gdbus-codegen | 0396e084f0f91d29a5c2e11fd8a4d708bdda9a78 | [
"Apache-2.0"
] | permissive | next-generate/armv5TE-toolchain | bc3bbbfcc2e338b4e0b1905c67b34751c3023544 | 8f107ce06fdc6d7f6e56f3b1b1c9f0f13cfa6727 | refs/heads/master | 2022-01-25T10:43:58.876868 | 2019-07-14T15:11:54 | 2019-07-14T15:11:54 | 196,798,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | #!/usr/bin/python
# GDBus - GLib D-Bus Library
#
# Copyright (C) 2008-2011 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your ... | [
"jiuzhuaxiong@163.com"
] | jiuzhuaxiong@163.com | |
379642818204d5baebc8e7103b88c69cdf947053 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /S4uZaKhcDa7pJ33nu_24.py | ca56f99a3e15d892f27398e2d0cc7c9148315d09 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py |
from datetime import datetime as dt, timedelta as td
def week_after(d):
return (dt.strptime(d, '%d/%m/%Y') + td(days=7)).strftime('%d/%m/%Y')
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
822818086e711f0112fd24004e683317693a641d | 3cf090c41a43eff45bff61d89d7f68d1aea20c64 | /Spam Shop/src/giveaway.py | b7f2ed5e5c82518603042e94320114555a5a8e53 | [] | no_license | ggpigeotto/Spam-Shop | 4493dd85af3e9044aea260b4735c2fc0070ee010 | cdb4ab58c2168664bfbb13a703594d6132e38b37 | refs/heads/main | 2023-03-09T00:56:58.225020 | 2021-02-28T02:42:05 | 2021-02-28T02:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,020 | py | import discord
from discord.ext import commands
import json
import os
import asyncio
import random
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix = 's!', intents=intents)
client.remove_command('help')
@client.event
async def on_ready():
print('Bot is ... | [
"noreply@github.com"
] | noreply@github.com |
fc28baeac41627dff3871aeae768c4e62954d2aa | b7b243902150a1aa5b774523ac01d7016de13477 | /cyc/DP/stock/123.py | 116e4f9d9415a2a4c8e82fe5322822c75151375a | [] | no_license | Veraph/LeetCode_Practice | 7e97a93464911a1f33b3133043d96c88cd54016a | eafadd711f6ec1b60d78442280f1c44b6296209d | refs/heads/master | 2023-03-23T11:49:19.046474 | 2021-03-18T02:22:50 | 2021-03-18T02:22:50 | 273,317,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # 123.py -- Best time to buy and sell stock III
'''
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transactions.
Note: You may not engage in multiple transactions at the same time (i.e., you must sel... | [
"jmw3531@live.com"
] | jmw3531@live.com |
18e7360210cd16a3e843da668a818b8ca7ef26b3 | 17624b8f35717e8d4edacf122152e5a55ad5f362 | /golf_course_review/settings.py | 78030046f4802649c8a699796e687a0125f034d8 | [] | no_license | Msamson09/Golf_Course_Review | 3188fd04d6258bcc809742b977182ca40ae130ee | 6a967f73b878f7f8af444c52114b12dfda1a593c | refs/heads/main | 2023-08-06T20:41:03.362042 | 2021-09-10T13:54:41 | 2021-09-10T13:54:41 | 402,867,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | """
Django settings for golf_course_review project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
i... | [
"michaelssamson@gmail.com"
] | michaelssamson@gmail.com |
884a4c62d0c9c66cf19a0f1c27b883d4b4a9cc50 | 97982c207cc7b83cb74a115de7c81c22ab4197eb | /lists2.py | 20fa0cdd52e91b1f6e76e1126fa7be1ea317674a | [] | no_license | zach-a-g/python2 | a3be7141ef8c73f11a65a31e15bfe89eee4964c6 | 207dd971c3c41481731c7de5239afcdc5184e2de | refs/heads/main | 2023-04-18T22:30:56.187832 | 2021-05-09T02:20:56 | 2021-05-09T02:20:56 | 365,016,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | #1. Sum the Numbers
#Create a list of numbers, print their sum.
# random numbers
list_of_numbers = [123,456,789]
#positive_numbers.append[]
# print(sum(list_of_numbers))
total = 0
#for number in list_of_numbers:
# print("The number is now: " + str(number))
# total = total + number
# print("The total is now:... | [
"zachary.a.gleeson@gmail.com"
] | zachary.a.gleeson@gmail.com |
0022c55ca2cdc1c75a6e12f7baa5ab8d1803e9d4 | b06734e11421903a36de950a16fd88dc8a9867b1 | /tokenization.py | 88df10171aca8138f74501bdd106081dc7821a97 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | pengshuyuan/Bert | 4b1a2c0ccccaa697ffbb9200e87585765215ebbf | 02aa5e4f01fbc99a826f8d7bdd0a630644fffb9c | refs/heads/master | 2020-09-15T18:43:49.982067 | 2019-12-01T15:32:03 | 2019-12-01T15:32:03 | 223,530,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,306 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"pengshuyuan@163.com"
] | pengshuyuan@163.com |
3adee74c1abdf1c6e9692e1463f71afae4b29739 | d39682c0adda0f6ef1e91131e1bd4be8eaec2cd7 | /src/plot.py | e9a04f7afc9ad41c45b0317bb8c3e7193bdfc70b | [
"MIT"
] | permissive | EricaWei053/DataSentiment | 63c0b323f97eb6d66877cb023cf5aa2598330c7c | 422129307e216c69545f362c5d6854b450178f19 | refs/heads/master | 2023-02-03T11:31:28.131680 | 2020-12-20T20:33:54 | 2020-12-20T20:33:54 | 294,533,161 | 1 | 0 | MIT | 2020-12-20T20:33:55 | 2020-09-10T22:08:34 | Python | UTF-8 | Python | false | false | 12,678 | py | """
plot.py to view plots.
"""
import sys
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import dash_table as dt
import flask
import numpy as np
import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
from dash.depende... | [
"32824389+EricaWei053@users.noreply.github.com"
] | 32824389+EricaWei053@users.noreply.github.com |
a236c97b7d56fffc63a6d65db0348d70f1f6d7e3 | 3c8be8e255ff1e1db56bc9b58f91048d5b00592b | /hackathon_django/hackathon_django/wsgi.py | 0415acb8e891fff842bb1af1f1cffc1e722cd698 | [] | no_license | aplybeah/Hackathon_19 | 01e74f4a645fdbb25e1ad5cb3464aa4f99bf3532 | 10ebcd7ddcc1fa151b1948620d7d36133c103f85 | refs/heads/master | 2023-04-30T20:30:56.963981 | 2020-02-12T02:46:42 | 2020-02-12T02:46:42 | 179,840,408 | 0 | 0 | null | 2023-04-21T20:30:31 | 2019-04-06T14:02:09 | Jupyter Notebook | UTF-8 | Python | false | false | 409 | py | """
WSGI config for hackathon_django 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('DJA... | [
"l.a.plybeah@gmail.com"
] | l.a.plybeah@gmail.com |
168f0c35ff34bedb374f39dccf96153f2d189166 | fef8f43025cff430d9aea080885173d9c22b3cb6 | /etalia/library/migrations/0011_auto_20170616_0411.py | 57504ddd33b4be67c994de2dbe976ccc55c6ca32 | [] | no_license | GemmaAA1/etalia-open | 30a083141330e227ac1de9855894bfb6e476e3cc | 260ce54d2da53c943d8b82fa9d40bb0c0df918a6 | refs/heads/master | 2023-03-28T03:33:13.771987 | 2017-10-30T00:55:27 | 2017-10-30T00:55:27 | 351,120,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('library', '0010_journal_is_in_fixture'),
]
operations = [
migrations.AlterField(
model_name='paper',
... | [
"nicolas.pannetier@gmail.com"
] | nicolas.pannetier@gmail.com |
78268777ae4cb417b17fa4c2347210f3397ac250 | 16c3d3db8413f0302ce191f711e34089215505f3 | /arte/wsgi.py | 576fe9d23837432452f8d665a40d2a5c625295e6 | [] | no_license | DiegoDonoso1/PRUEBAWEB | 6f9c999d1c0da0ad111c489dfe1d4ca35bde2f10 | 6ead3b884f9dffb51a5ca076ab5321caec3ec328 | refs/heads/master | 2023-06-14T02:23:08.888621 | 2021-07-08T18:00:40 | 2021-07-08T18:00:40 | 383,976,125 | 0 | 1 | null | 2021-07-08T18:00:41 | 2021-07-08T02:14:47 | HTML | UTF-8 | Python | false | false | 385 | py | """
WSGI config for arte project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"di.donosoa@duocuc.cl"
] | di.donosoa@duocuc.cl |
10a13094ec00842c333bbee346881a77778faedb | 378b70f66304c9bdb9d196d7742c34e5a94f54f9 | /ch9ex2.py | e0aaecddc18fb6fb36f563a08ae5b59f6a91df98 | [] | no_license | suneethreddy/Python-for-Everybody | 7cd9547c7a9dd01231ed349fcbdefd818653bb33 | 4c7b22e14b08a390af250fbe8209c14f11d1dc40 | refs/heads/main | 2022-12-24T22:50:19.791676 | 2020-10-13T15:07:46 | 2020-10-13T15:07:46 | 303,708,137 | 0 | 1 | null | 2020-10-13T14:58:33 | 2020-10-13T13:13:34 | Python | UTF-8 | Python | false | false | 340 | py | fname = input('Enter a file name: ')
fhand = open(fname)
counts = dict()
for line in fhand:
words = line.split()
if len(words) < 3 or words[0] != 'From':
continue
else:
if words[2] not in counts:
counts[words[2]] = 1
else:
counts[words[2]] += ... | [
"noreply@github.com"
] | noreply@github.com |
95579f4d06d7a94755db23af503ebdac53c871ae | 9fb8fbe204b8f668fda78f8a9662944f1d527b0c | /Segmentation/SegmentedTrails/stop_rate.py | db507ef4a3f3c089482ab61837ecb691f2615e6c | [
"Apache-2.0"
] | permissive | rajanpriyadarshi/Transit-Planner | 06fb3dc8c2ed336556c6966903d05d4bb565b9b0 | 508db982b445091f72bfac1abbe66d99645504cc | refs/heads/master | 2021-01-19T12:24:53.976045 | 2017-04-12T03:56:04 | 2017-04-12T03:56:04 | 87,960,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | from __future__ import with_statement
import math
import glob
import os
i = 3
vth = 0.02
count = 0
f_line = []
l_line = []
first_line = []
lll = []
for filename in os.listdir(os.getcwd()):
for filename in glob.glob('*.txt'):
results = []
with open(filename) as inputfile:
for line in inputfile:
lll= (line.... | [
"Rajan Priyadarshi"
] | Rajan Priyadarshi |
d3213b2a4b3ee6ff87d702081d3e89e7fd529222 | 1ad3f3899a3dba1cb60388650385e7b1ca7768e4 | /search/migrations/0013_auto_20170223_1828.py | 6a0f2f95e5036d21ce35408d7de2605a60d4b648 | [] | no_license | hyzyla/timetable | cd1ae75759d30312f153f0fe91735a5d8efb47fd | e364546a86781639f200e4bc5adce80cbb1e8e1e | refs/heads/master | 2021-01-17T15:59:49.908772 | 2017-02-23T17:32:19 | 2017-02-23T17:32:19 | 82,953,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-02-23 16:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search', '0012_auto_20170223_1815'),
]
operations = [
migrations.RemoveField(
... | [
"evgen.gizila@gmail.com"
] | evgen.gizila@gmail.com |
860720aca5d1fdecf51d460aca548b35b4a83ffd | 69040d02034e406ce0745331770114c65ab41695 | /striker/scripts/generate_launch.py | f4552e9d26281ee659b3cc943af13a0b1831f093 | [] | no_license | suarezc/turtletrackandfield | 7080039d930f315eaf438cdac90f3ff997703626 | bb01e908948e5ac5628435352f42e58528a0ba08 | refs/heads/main | 2023-05-28T04:58:58.973104 | 2021-06-04T14:24:21 | 2021-06-04T14:24:21 | 366,855,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py |
template_start = """<launch>
<!-- modified from the empty world launch file -->
<arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
<arg name="x_pos" default="0.0"/>
<arg name="y_pos" default="0.0"/>
<arg name="z_pos" default="0.0"/>
<env name="GAZEBO_MODEL... | [
"alexoro@uchicago.edu"
] | alexoro@uchicago.edu |
358a17246f4b7cbe336e2c020c3e8346836a50ce | 2831c5baed48127c6f013f119f22953f4428476a | /Vanilla_Gan_Pytorch.py | afafbedf8d3291c7ee6cf081a259ed5b2557e111 | [] | no_license | husainasad/GANs | 0493f585689a279c485fe70168c3423afe9a8aca | 5567b4adb140f98f87f1a3936a8d957bd9fffe0a | refs/heads/master | 2020-06-09T17:48:51.778503 | 2019-06-28T07:32:05 | 2019-06-28T07:32:05 | 193,480,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,263 | py | from IPython import display
from utils import Logger
import torch
from torch import nn, optim
from torch.autograd.variable import Variable
from torchvision import transforms, datasets
DATA_FOLDER = './MNIST'
def mnist_data():
compose = transforms.Compose([
transforms.ToTensor(), transforms.Normalize([0.5... | [
"shusain_be16@thapar.edu"
] | shusain_be16@thapar.edu |
156756b04cbdf6811f0ff5436305d7c09339f87d | e70cb371f8642ac597f3a2266da3be205d971af5 | /X0406.py | ce95ba2dca74845f1048bbcc82f57b8c5550fd4e | [] | no_license | bgnori/X0406 | 0b5a2545832c6283c07cd065a21697cf9f52042a | ed0f7ee1f8112043a246a64c99bff8a427541b03 | refs/heads/master | 2021-01-20T05:07:38.994728 | 2015-10-06T12:28:37 | 2015-10-06T12:28:37 | 40,598,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | #!/bin/python
#-*- coding=utf-8 -*-
import re
import json
DEBUG = False
x = re.compile("(?P<IsValuationAccountCode>\()?(?P<AccountCode>\d\d\d\d)\)?,(?P<rest>.+)")
start_end = re.compile("\[(?P<start>\d\d\d\d)-(?P<end>\d\d\d\d)\]")
class IDNode(object):
def __init__(self, code, title, isvaluation, start, end, n... | [
"bgnori@gmail.com"
] | bgnori@gmail.com |
7bcd1e12a0779280db30584e69678340903a6d4d | 9392534408128a3562caca5db28518df20ab9e53 | /LDP/Direct_Encoding.py | 33566b1855adc39d7205674d1831c7a1c4729dda | [
"Apache-2.0"
] | permissive | nikosgalanis/bsc-thesis | 30332e137662e62d10cad0b480d39a5f8364156c | b5521e995f266ff1aeb9fecc220650483630dc04 | refs/heads/master | 2023-06-29T22:12:56.607551 | 2021-07-29T14:18:40 | 2021-07-29T14:18:40 | 295,409,872 | 18 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | import numpy as np
import random
import math
import numbers
class Direct_Encoding_client():
def __init__(self, e, d):
# initialization of the protocol's constants
self.e = e
self.d = d
# p and q are fixed, depending on the domain size and the epsilon value
self.p = math.exp(self.e) / (math.exp(self.e) + sel... | [
"ngalanis99@gmail.com"
] | ngalanis99@gmail.com |
f7ee387f7c79dc4fbb42c1d6b123cb829d3698e5 | 5509d3b5bbcc393684f7d2fc7fc11bb12ed1911a | /env/lib/python2.7/site-packages/pyramid_debugtoolbar-2.4.2-py2.7.egg/pyramid_debugtoolbar/panels/traceback.py | d80e51455eb29e63e6e7c926c6b4ed65eda11e19 | [] | no_license | jundong/CRManager | 99fd6c0eda084354d9237e11d07ef82124c22e1e | 4306bf4d2b29b19d4b3092aab152192f7d623a19 | refs/heads/master | 2021-01-21T04:47:26.125045 | 2016-07-29T15:07:04 | 2016-07-29T15:07:04 | 50,995,792 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | import re
from pyramid_debugtoolbar.tbtools import Traceback
from pyramid_debugtoolbar.panels import DebugPanel
from pyramid_debugtoolbar.utils import escape
from pyramid_debugtoolbar.utils import STATIC_PATH
from pyramid_debugtoolbar.utils import ROOT_ROUTE_NAME
from pyramid_debugtoolbar.utils import EXC_ROUTE_NAME
... | [
"jundong.xu@spirent.com"
] | jundong.xu@spirent.com |
c22f3e4a7b31155d6afa2f033d9ea480cfd488d3 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hjZTbJNzKiSxTtbik_22.py | 5f6c69157466d046cc2ece0ea8c5c597bfbd928b | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py |
def sort_by_string(lst, txt):
sorts = list(txt)
letters = []
for word in lst:
letters.append(word[0])
for char in sorts:
if char not in letters:
sorts.remove(char)
newlst = []
for char in sorts:
for word in lst:
if word[0] == char:
newlst.append(word)
return newlst
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
982036613e2e749e78f5d113fca143718d25414f | 3a1fea0fdd27baa6b63941f71b29eb04061678c6 | /src/ch08/rtda/heap/Method.py | eaa6ddab3eefc513c2349d4e34ad7e703e56d71d | [] | no_license | sumerzhang/JVMByPython | 56a7a896e43b7a5020559c0740ebe61d608a9f2a | 1554cf62f47a2c6eb10fe09c7216518416bb65bc | refs/heads/master | 2022-12-02T17:21:11.020486 | 2020-08-18T06:57:10 | 2020-08-18T06:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: Method.py
@time: 2019/9/16 16:55
@desc: 方法信息
"""
from ch08.classfile.MemberInfo import MemberInfo
from ch08.rtda.heap import AccessFlags
from ch08.rtda.heap.ClassMember import ClassMember
from ch08.rtda.heap.MethodDescriptorParser import MethodDescri... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
597636d8eb1d2b8d4630d00186fbf16b4a45b3b9 | 3f3b38f7e2a02998226f52990d86aa18e73cf3a4 | /src/problems/until799/Problem700NotYetSolved.py | 79f7e39f9dbec0c79467407366c8899345950ac4 | [] | no_license | JoelNiklaus/ProjectEuler | 35787920403d310d9bebc7bd40fd033792997311 | 371b5413b6aa44ac9e13c67138b4516bf8d82f62 | refs/heads/master | 2021-06-05T14:39:51.997353 | 2021-04-07T05:25:20 | 2021-04-07T05:25:20 | 85,575,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | from fractions import Fraction
import math
import operator
from functools import reduce
import timeit
factor = 1504170715041707
# factor = 15041707
# factor = 1504
mod = 4503599627370517
# mod = 45035996
# mod = 4503
def compute_term(n):
return n * factor % mod
def is_euler_coin(term, smallest_euler_coin):
... | [
"me@joelniklaus.ch"
] | me@joelniklaus.ch |
052bbaa2bf82b6a1aadd39d5f3eab18935fd0d57 | da23be751ea3ef91cc3017ccd45ec7b00a61cf03 | /PYTHON/re.py | 0c76f85a6d6bdbc5bedd453d2d06a23e31bfa817 | [] | no_license | holoyolo88/languages-study | 72c4942081080ad8c3619a84118dcfdd3ac39ffa | 5f501673ed36251e11c571a3ad20b8a85ef150f4 | refs/heads/master | 2022-12-01T13:29:07.014359 | 2019-01-01T14:34:28 | 2019-01-01T14:34:28 | 138,603,782 | 0 | 1 | null | 2022-11-27T11:20:05 | 2018-06-25T14:09:22 | Python | UTF-8 | Python | false | false | 25 | py | a=[5,4,3,2,1]
a.remove(8) | [
"ansoh4025@naver.com"
] | ansoh4025@naver.com |
b8f344219d76340a3656897cb9f8c710c100774f | 1cddeae95671d11810cf9ffe2963a81774d0adc0 | /bcs-app/backend/resources/namespace/namespace_quota.py | ebd0728ef9a95271f4718775fe92753295ce91a2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT"
] | permissive | Daryl0819/bk-bcs-saas | 57162e30bd4885dfd2bd9d12f01170127bce2228 | 7b13f84210a30a3e53b25c249bff9e81e880b4fc | refs/heads/master | 2023-06-22T10:31:18.832415 | 2021-01-22T09:58:17 | 2021-01-22T09:58:17 | 291,595,480 | 0 | 0 | null | 2020-08-31T02:33:10 | 2020-08-31T02:33:10 | null | UTF-8 | Python | false | false | 3,152 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"noreply@github.com"
] | noreply@github.com |
896cd37b75d6a90732e0f7cf6f2f1caaa6e5e557 | 2bc74414e71a280cc50085ec2e5a6499d22ae5e6 | /src/python/probdist/_DirichletDist.py | 2cb917cbd5d1ee752feb79300c7a8baecf4fe306 | [
"MIT"
] | permissive | plewis/phycas | 610c989d49dce741fc2d2ad048a9d7587eabeb74 | 9f5a4d9b2342dab907d14a46eb91f92ad80a5605 | refs/heads/master | 2020-12-25T16:48:31.870762 | 2017-07-15T14:07:37 | 2017-07-15T14:07:37 | 21,300,616 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,943 | py | from _PyDistributionBase import PyDistributionBase
from _ProbDistExt import *
class Dirichlet(DirichletDistBase, PyDistributionBase):
#---+----|----+----|----+----|----+----|----+----|----+----|----+----|
"""
Represents the multivariate Dirichlet probability distribution.
*** Not finished documenting t... | [
"paul.lewis@uconn.edu"
] | paul.lewis@uconn.edu |
11848f9d049a35df7a5146e91c0ebdff2bfe5c69 | 9b834eb6408851f1bdec1be7a871c1579145abf0 | /Lista5/zad1.py | 979391fbdc52b1986812bc89af12e40de459d64e | [] | no_license | patrxon/Python_Kurs | daf7af188bb005377276440e179c35a04492fa23 | f91e35f7dbf7fa7f0c4318a485b7e8ba637e3e96 | refs/heads/master | 2022-08-03T05:10:36.666610 | 2020-05-21T22:49:56 | 2020-05-21T22:49:56 | 265,966,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,763 | py | import numpy as np
import matplotlib.pyplot as plt
def get_data(file_name):
arr = []
with open(file_name, "r") as file_:
for line in file_:
arr.append(line.split(",")[0:3])
del (arr[0])
return arr
def extract_data(arr):
user = 0
has_rating = False
i = ... | [
"noreply@github.com"
] | noreply@github.com |
7ac7dcb06c32f6986868e11b58e7ef6aa93aea6a | 907f1fe8d0403d535fdbd05e020abd6e01f6b03d | /code_sacro/utils/n_frames_ucf101_hmdb51.py | 43c3dfa73c962f343e3da1cd78c0bf19e79a355a | [] | no_license | mikami520/Sacrocolpopexy-workflow-analysis | 95641741b08e28f79ff4da5ac290559084bccc13 | 49a88702ccac0e8b97030dab7afb3f539951fbe5 | refs/heads/master | 2023-05-09T03:56:28.119126 | 2021-06-04T02:02:21 | 2021-06-04T02:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py |
from __future__ import print_function, division
import os
import sys
import subprocess
def class_process(dir_path, class_name):
class_path = os.path.join(dir_path, class_name)
if not os.path.isdir(class_path):
return
for file_name in os.listdir(class_path):
video_dir_path = os.path.join(class_path, fil... | [
"zyt948715472@icloud.com"
] | zyt948715472@icloud.com |
db17cb695518755b27b8bb7db6478f789953c1de | 0eb7c4a4950e44ac8b4c69ddc438b926054e1d56 | /doc/RestClient/conf.py | f13aefd06fdee5b6ec7523e7c9c50394600e4d95 | [] | no_license | giffels/RestClient | 846daf3a4e9f2cef2ae70e10d2d67d0c8421f32b | 2bcb97583d8e643c65d454504222acb1ce27a933 | refs/heads/master | 2021-01-16T20:55:24.475227 | 2015-09-22T13:43:38 | 2015-09-22T13:43:38 | 5,329,802 | 0 | 0 | null | 2015-01-20T12:19:48 | 2012-08-07T15:38:48 | Python | UTF-8 | Python | false | false | 7,057 | py | # -*- coding: utf-8 -*-
#
# DBS documentation build configuration file, created by
# sphinx-quickstart on Wed Sep 14 15:45:48 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All con... | [
"giffels@gmail.com"
] | giffels@gmail.com |
2a388b9268376c2176e5cf86757f2034dc0be340 | 16d281bf799e0242ed77219af098eae958c1be59 | /src/infra/test/pet_repository_spy.py | f6bfc21a9668856106e973a59a2523aadf40cc51 | [] | no_license | yantoledo/python-backend-clean-architecture | b8c22bd28091fa284c47cc1dea91fb09c54979a9 | dbdbe03120407deb96725c49d77f6f02e294704c | refs/heads/master | 2023-06-29T21:02:58.326862 | 2021-03-28T12:09:08 | 2021-03-28T12:09:08 | 345,229,823 | 0 | 0 | null | 2021-03-28T12:09:08 | 2021-03-07T01:04:23 | Python | UTF-8 | Python | false | false | 857 | py | from typing import List
from src.domain.models import Pets
from src.domain.test import mock_pets
class PetRepositorySpy:
""" Spy to Pet Repository """
def __init__(self):
self.insert_pet_params = {}
self.select_pet_params = {}
def insert_pet(self, name: str, specie: str, age: int, user_i... | [
"yan.toledo@hotmail.com"
] | yan.toledo@hotmail.com |
ad7c7609c1e96d4c79b369d1df96761bff4e8bf2 | 94791415784ac6f46ae269fb37261c991d94b088 | /datar/base/special.py | eedfbbdafca147022817b97b6a2678f8954041eb | [
"MIT"
] | permissive | Gedevan-Aleksizde/datar | 6dc5237566d8e8c104f34d28868a2480dad20677 | a73bddd624e2467928045c3038b343cf0487f005 | refs/heads/master | 2023-07-13T18:37:22.531348 | 2021-09-03T18:42:46 | 2021-09-03T18:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,651 | py | """Special mathematical functions related to the beta and gamma functions."""
import numpy
from pipda import register_func
from ..core.types import FloatOrIter, IntOrIter, NumericOrIter, is_scalar
from ..core.contexts import Context
from ..core.utils import Array
from .bessel import _get_special_func_from_scipy
from ... | [
"noreply@github.com"
] | noreply@github.com |
d8b29b268e93858300b2f4227c32130c7184d4de | 630eb4836b02c024d5d290fd60558845e278f61e | /firmwarevolume.py | f48e4c8a70795a1d8658aeefff0b573bfd127e0d | [] | no_license | Tank2018/Uefi_python | 9dc54c652e49f785c83fb50cc91dfa25194119f9 | 87b10c8b3a28ac70be84935d7010cd1f09038d0d | refs/heads/master | 2020-03-19T09:04:54.581264 | 2018-06-06T02:29:11 | 2018-06-06T02:29:11 | 136,258,642 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | import os
import sys
import uuid
import copy
import struct
from guid import *
from ffs import *
FIRMWARE_VOLUME_GUIDS = {
"FFS1": "7a9354d9-0468-444a-81ce-0bf617d890df",
"FFS2": "8c8ce578-8a3d-4f1c-9935-896185c32dd3",
"FFS3": "5473c07a-3dcb-4dca-bd6f-1e9689e7349a",
"NVRAM_EVSA": ... | [
"“ttangkefeng@byosoft.com.cn"
] | “ttangkefeng@byosoft.com.cn |
cb5b7eebb2a8dfadaccca19077b3b99065b2e65a | c823e437ffd46aa3b1465819686ee50fd1932214 | /src/transformers/models/blip/modeling_blip.py | f00c9f9cabbbc915d057c3bd5c21749f1c19c197 | [
"Apache-2.0"
] | permissive | nateraw/transformers | f03258d62c4773732514e443d98f1684d3467bfd | 7fd902d3351b81775112cd6b526bc32cf9ba856d | refs/heads/main | 2023-03-19T00:31:55.123718 | 2023-01-20T22:16:42 | 2023-01-20T22:16:42 | 564,090,117 | 5 | 0 | Apache-2.0 | 2022-11-10T01:00:04 | 2022-11-10T01:00:03 | null | UTF-8 | Python | false | false | 61,768 | py | # coding=utf-8
# Copyright 2022 The Salesforce Team Authors and The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | [
"noreply@github.com"
] | noreply@github.com |
32079924644b4af83cbd198d09529d9925a33434 | b652aff73d820d121bc5e3558a4bf58583101f14 | /services/Solver/utils/time_scoped_run.py | 6d2e1965c638dd312d6877184426cbf212bb3d18 | [
"Apache-2.0"
] | permissive | fusion-jena/JenTab | f43c53a8077a31b6149fd8f61954ee0a28f042e6 | ece4a86b966a0c3d3e5df4f015fb0f9959cf1318 | refs/heads/main | 2023-05-11T17:41:10.117931 | 2023-04-27T12:09:08 | 2023-04-27T12:09:08 | 318,156,922 | 16 | 3 | Apache-2.0 | 2022-10-20T10:54:26 | 2020-12-03T10:31:28 | Python | UTF-8 | Python | false | false | 571 | py | from multiprocessing import Process
def time_scoped_run(func, args, kwargs, time):
"""Runs a function with time limit
:param func: The function to run
:param args: The functions args, given as tuple
:param kwargs: The functions keywords, given as dict
:param time: The time limit in seconds
:r... | [
"nora.youssef@cis.asu.edu.eg"
] | nora.youssef@cis.asu.edu.eg |
a445e95cc4f01e4afc0d251abfeddb8fe8c4aa86 | b79d7293b51359b95502d9f9fc236c72154fb408 | /readGLFSlopeprofiles.py | 4f4b2cc5f133d8843f17310fbbecc9a5e5a52d9e | [] | no_license | davidtreth/marsglaciers | 2d516e623081d01b9f5a1e48fcf6d6944ff59443 | 2a30a0c65012c66bbd34e63ac25b2849dbf7950f | refs/heads/master | 2022-11-08T07:50:41.898980 | 2020-06-25T21:16:41 | 2020-06-25T21:16:41 | 275,015,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | import csv
import os
import subprocess
import glob
import matplotlib.pyplot as plt
import numpy
dataPath = '/media/davydh/TOSHIBA EXT/ioSafeBackup/RemoteSensingPlanSci_MSc/SounessCatalog3_backup'
outPath = '/home/davydh/ioSafeBackup/RemoteSensingPlanSci_MSc/PythonScripts/MarsPythonScripts/marsglaciers/ProfilePNGs/'
gl... | [
"davidtreth@gmail.com"
] | davidtreth@gmail.com |
9431a9423d7fad2d5a4e7c1636dac7a36b374906 | 34530f74092ac04334d3d18879f3c59c3354f4f8 | /0x08-python-more_classes/7-rectangle.py | cb0c06f693a581ec33482c8da5d28feb78a75f5c | [] | no_license | MarySerna/holbertonschool-higher_level_programming | 9f37df91d7da703a31c461ca07703947ed090322 | f7ed79a660690d412b7a8298ac9c658962d07c7a | refs/heads/master | 2021-01-08T23:53:29.528920 | 2020-05-15T04:15:25 | 2020-05-15T04:15:25 | 242,180,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | #!/usr/bin/python3
"""Module to define a rectangle
Args:
width (int): width of a rectangle
height (int): height of a rectangle
"""
class Rectangle:
"""Rectangle class
"""
number_of_instances = 0
print_symbol = '#'
def __init__(self, width=0, height=0):
"""Initializes R... | [
"mary.serna.8903@gmail.com"
] | mary.serna.8903@gmail.com |
a381a3cd6266d898cee828b00d0e39eed53d2531 | 2f99bffc1e98698d9f3027914566344e34e7d5bb | /DesignPattern/src/chain.py | 9c26ab76d40692e42e663c4b5f45daaa73ca8425 | [] | no_license | Harvey1024/GitNote | 47d16a1a0264f723dd2b4a389c7c54e69c0f4c1a | d15a506df1fd1a15a465bd78d3ba3081017cefa3 | refs/heads/master | 2022-11-01T01:58:18.556582 | 2022-10-16T14:11:33 | 2022-10-16T14:11:33 | 216,038,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # Chain of responsibility
class RequestType:
def __init__(self):
self.COLLECT_TAX = None
self.DEFEND_CASTLE = None
SELF.TORTURE_PRISONER = None
def valueOf(self, name: str):
return self
def values(self):
pass
class Request:
def __init__(self):
pass
clas... | [
"hw-li@foxmail.com"
] | hw-li@foxmail.com |
d66e5bf50843298b9445b71d3ec2cca177e78de5 | 329b48089c64ebefe78d52f1c71c73bdadadd4b4 | /keras2/keras64_1_Hyperparameter.py | ad68911f67a30528708f7b0d723608067bb8b426 | [] | no_license | variablejun/keras__R | 7f854570952ed97c48715047015786d873e512cb | 9faf4814b46cda1ac0ddbf2a2f8236fa0394f144 | refs/heads/main | 2023-07-13T19:32:25.950500 | 2021-08-22T18:26:52 | 2021-08-22T18:26:52 | 398,870,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | import numpy as np
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential,Model
from tensorflow.keras.layers import Dense,Dropout,Input,Conv2D
(x_train, y_train),(x_test,y_test)= mnist.load_data()
from tensorflow.keras.utils import to_categorical
y_train = to_categorical(y_train)
... | [
"crescendo0217@gmail.com"
] | crescendo0217@gmail.com |
351e58ba378e957562588e1f7abc610b336295d3 | 01ea6503f380cd0931b59e1b7adb1379202b321e | /main.py | 01cc3d8070c9ef3be139990bca7f34740e0b0e19 | [
"MIT"
] | permissive | otis-zeny/TRRB | 073080363e61eeb2acc8e1840b95a21d69778e8b | 8a69d91dd3cbc093777c98ddd5bb8c379719a345 | refs/heads/master | 2023-05-03T15:26:25.801557 | 2021-04-07T16:21:35 | 2021-04-07T16:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from json import load
from trrb_strategies.boot_by_indicators import Boot
from trrb_core.usefull_functions import load_credentials
if __name__ == "__main__":
email, password = load_credentials("userdata.json")
by_indicators = Boot(email, password, 'PRATICE')
| [
"mikaio4321@gmail.com"
] | mikaio4321@gmail.com |
e062af02a6d9aa1ec1c9c55fb86af2fe5a07a464 | 39c87ed9d66c9cebb0fbc4dc194a80e770fa8950 | /SW-420.py | a741f8456cdf6d2506095a2f8ca12e5f4d029563 | [] | no_license | vishal6971/SW-420_vibration | 4cf28e65f4e71721ec3f2c5b21dc2662416da245 | 2b4749c5b7f88f8b73bb077b6a3d5a337705c506 | refs/heads/master | 2020-03-27T05:29:57.922038 | 2018-08-25T19:23:20 | 2018-08-25T19:23:20 | 146,025,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py |
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
#GPIO SETUP
channel = 26
GPIO.setmode(GPIO.BCM)
GPIO.setup(channel, GPIO.IN)
def callback(channel):
if GPIO.input(channel):
print "Vibration Detect!"
else:
print "Vibration Detect!"
GPIO.add_event_detect(channel, G... | [
"noreply@github.com"
] | noreply@github.com |
e26e99839d15b049c0964d042050436de5d71d74 | 0ff9b76fd92849b782c2cc6ab96313a9f77f8f93 | /src/ptcolormap.py | 13fc2b2d0b42d2f03f1ab8617969c068b0fd9a12 | [
"MIT"
] | permissive | PeterZhouSZ/quasi-unsupervised-cc | 342a591f2651c1e17545ea07c143fcdcff7597ab | f506ee6b5c3cb3b0e107ccec9c7dd555f94ad2f6 | refs/heads/master | 2022-11-27T11:55:39.909657 | 2020-08-07T07:51:50 | 2020-08-07T07:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | import torch
def apply_map(data, vmin=None, vmax=None, dim=1, cmap="plasma"):
"""Make a color image from a tensor.
- data: input data of size
- vmin: smaller value to be represented
- vmax: largest value to be represented
- dim: index of the new color dimension
- cmap: a colormap specified by... | [
"claudio.cusano@unipv.it"
] | claudio.cusano@unipv.it |
fffa9fc3b815accf4276f2bb4c6e09c6bc58c609 | dcefbb67cfdc837a5b1016ea674ead66263f0af2 | /algorithm/BOJ_9498.py | 290b709344b970e624e35aaaf96ba697a6f8a63d | [] | no_license | SeungYeopB/weekend-study | 0a5d5bdbb00a7d81f2ec7c6c5b2fc7b96d92c296 | 02651855bb91e26784611bbed34a01023f4ef307 | refs/heads/master | 2023-06-23T15:52:54.475077 | 2021-07-23T07:57:16 | 2021-07-23T07:57:16 | 382,514,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | N = int(input())
if 90<=N:
print("A")
elif 80<=N:
print("B")
elif 70<=N:
print("C")
elif 60<=N:
print("D")
else:
print("F") | [
"="
] | = |
ca549dd63250a106ec93faddd062bcb13bd2b697 | 45de13a618813455a3ea1e65c5dd31066b311cd7 | /Drake-Z/0007/0007.py | 53a1cd3a8b55ec404534cd532a1ff03ce90a7b65 | [] | permissive | luhralive/python | bbee0a3e7d0ac9845db484595362bba41923c2a4 | b74bdc4c7bc8e75aee9530c27d621a773a71ac67 | refs/heads/master | 2020-05-19T12:48:17.144882 | 2019-05-05T11:53:46 | 2019-05-05T11:53:46 | 185,023,995 | 1 | 0 | MIT | 2019-05-05T11:45:42 | 2019-05-05T11:45:41 | null | UTF-8 | Python | false | false | 1,558 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'第 0007 题:有个目录,里面是你自己写过的程序,统计一下你写过多少行代码。包括空行和注释,但是要分别列出来。'
__author__ = 'Drake-Z'
import os
import re
def count_num(a, b):
shuzi = [0, 0, 0]
path = os.path.join(a, b)
f = open(path, 'r', encoding='UTF-8').readlines()
for i in f:
if re.match(r'^#... | [
"drake.z.merlin@gmail.com"
] | drake.z.merlin@gmail.com |
52d9e68a9e9779fd139fc1b6351e313f9867021a | 92436a50cc26c8c8a216ba6d4a62e36069614234 | /classy_vision/hooks/model_complexity_hook.py | 2d950e229a73ec3d167f234b2c1f3d1cac33c6ba | [
"MIT"
] | permissive | hahaxun/ClassyVision | 9341f4e6849c858094592052f3df111c13d1a91d | b3f714ef94275b3e9753ab3f3c8256cb852b96fc | refs/heads/master | 2021-08-17T07:42:34.402613 | 2021-03-08T08:50:01 | 2021-03-08T08:50:01 | 245,940,574 | 1 | 0 | MIT | 2021-03-08T08:50:01 | 2020-03-09T04:02:59 | Python | UTF-8 | Python | false | false | 3,368 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from classy_vision.generic.profiler import (
ClassyProfilerNotImplementedError,
compute_activat... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b9c0ccc76fe4be5b94cb209e18e6863db3308620 | 745e2aa982f8976469ab86b3e9fb2ab8a5f6b4e2 | /conv2d/test.py | 4b89e4400a3e6d1bc04e53ae4d5727011848bc2c | [
"MIT"
] | permissive | agojiya/cifar10-object-classification | c4099d6d013ab3a0679cf4ca244b2fe1e9e9e4ec | 887c092a9717d41799f70945021c39739d0aac85 | refs/heads/master | 2021-01-22T07:31:40.386920 | 2017-10-23T22:28:24 | 2017-10-23T22:28:24 | 102,303,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | from os import path, makedirs
from sys import exit
from fileio import cifar10_read, tfsaverutils
from conv2d import model
import tensorflow as tf
import numpy as np
SAVE_PATH = 'X:/cifar10/model/conv2d/model-epoch'
SAVE_DIR = '/'.join(SAVE_PATH.split('/')[0:-1])
if not path.isdir(SAVE_DIR):
makedirs(SAVE_DIR)
B... | [
"30094761+agojiya@users.noreply.github.com"
] | 30094761+agojiya@users.noreply.github.com |
bf29ceb58808c1fb4bd36d7cb7ffb1df16a65ea4 | ec74270d3669e2f15362e091b308c13fa0d98008 | /02_Object_Oriented_Programming/12_Getter_and_Setter.py | ba1f6429c8145bae78729ba3417d1e48bd610d7e | [] | no_license | Kishan-Jasani/Python | b898808bc985440617d1909a89f79b2b41b28452 | aa0f8caf535c8fdebdd1670fd19033e5157d0791 | refs/heads/master | 2023-01-20T07:19:42.853556 | 2020-11-29T15:47:31 | 2020-11-29T15:47:31 | 291,467,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | #--> To have a error free way of accessing and updating private variables, we create specific methods for this.
#--> The methods which are meant to set a value to a private variable are called setter methods
#--> The methods meant to access private variable values are called getter methods
#--> The below code is an ex... | [
"kishan.jasani.19@gmail.com"
] | kishan.jasani.19@gmail.com |
f40b984eb61b3ef75296fcd0a7d260bb6141d45e | 8fdcd12cfb91b2245da8b3c65fb937b1d72dd4c5 | /tissuelab/omero/gateway_ome500_ice351/omero_ext/xmlrunner/main.py | b901b82051114a73824341dc847547251109890c | [] | no_license | VirtualPlants/tissuelab | 569a334deab0b73acc8b43f313efc3f4c4e552fd | 8c064a34b91127806848f4992d1e4767574863cf | refs/heads/master | 2021-01-11T01:32:19.830778 | 2017-05-04T09:42:53 | 2017-05-04T09:42:53 | 70,694,783 | 2 | 1 | null | 2017-01-05T14:21:50 | 2016-10-12T11:49:10 | Python | UTF-8 | Python | false | false | 1,628 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 Glencoe Software, Inc. All Rights Reserved.
# Use is subject to license terms supplied in LICENSE.txt
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | [
"guillaume.baty@inria.fr"
] | guillaume.baty@inria.fr |
52dc53db6a601acb966a8aac7d3b60cad6575373 | 1350681e887e31f8ac3dfae56aa3c7533be46510 | /Lesson 5/Class/decorator-log.py | 952280a4357b67a6f88e67fe1c59ba0d5afa7f81 | [] | no_license | MADtest/AutotestCourse | fc3776f0257afc52118d46854249aa802b6717ce | bfa1262e614fb0e863c47eeb079a494031529783 | refs/heads/master | 2021-01-10T23:16:20.909438 | 2017-01-23T08:21:00 | 2017-01-23T08:21:00 | 70,622,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
def logger(path='c:\ms\log-default.txt'):
def wrapper(func):
def replacement_function(*args, **kwargs):
import time
with open(path, 'a') as log_file:
log_file.write('Function {} called at {}!!!\n'
.format(func._... | [
"shim.coma@gmail.com"
] | shim.coma@gmail.com |
bc6bdc7623bf0398edb762f7af292dd4ee205c1c | c8a74bd905e879a2506126f0f4341c5071a3c19d | /traverser.py | 114f7eb0561c270293b09397ae519eb19833d0f5 | [] | no_license | rafalpolanski/alerter | a7b0f06b50f23be05f084db099e0fe0414cbdb71 | cb39362baf6c13a92d46f69db1cfc455d4b0b427 | refs/heads/master | 2023-03-28T02:00:43.457948 | 2021-03-18T07:36:35 | 2021-03-18T07:36:35 | 348,982,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | import auxiliaries as ax
# constants
DZIESIEC_KILO= 10000
MAX_LINES_TO_PARSE = 100*DZIESIEC_KILO
search_str ="Incorrect ETH share from GPU"
search_shares = "Eth: Incorrect shares "
error_table =[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
shares_lo... | [
"rafalpolanski@iMac-Rafal-3.local"
] | rafalpolanski@iMac-Rafal-3.local |
ab18146ae14eef84aa4d85f43c6db2d2694961c5 | 846a7668ac964632bdb6db639ab381be11c13b77 | /android/test/vts/runners/host/config_parser.py | ad1d845226dd3bcc151dc327374f772e5307f020 | [] | no_license | BPI-SINOVOIP/BPI-A64-Android8 | f2900965e96fd6f2a28ced68af668a858b15ebe1 | 744c72c133b9bf5d2e9efe0ab33e01e6e51d5743 | refs/heads/master | 2023-05-21T08:02:23.364495 | 2020-07-15T11:27:51 | 2020-07-15T11:27:51 | 143,945,191 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,589 | py | #
# Copyright (C) 2016 The Android Open Source Project
#
# 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 la... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
f2d7dc0c3be0ca06cb25649e76ffd2a6d84fb977 | abbd8e19f0cd38d78c496ffaa05c3184700d7483 | /finalproject/hots/models.py | fca8f2ca9048e7b6d683f85c7673b8ea4b40848c | [] | no_license | deadmanhunter/Database-Design-Final-Project | 14504c1d6c5242bc10a25133d2d5055f2ca1a474 | e585e270d0b8dae29f7a91e3b59819ce41d821ae | refs/heads/master | 2021-01-10T11:55:01.640552 | 2016-04-26T00:58:44 | 2016-04-26T00:58:44 | 55,917,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from django.db import models
# Create your models here.
# Universe the character is from
class Universe(models.Model):
universe_name = models.CharField(max_length=200)
def __unicode__(self):
return self.universe_name
# Playable character from the game
class Heroes(models.Model):
hero_name = mode... | [
"sasi.a@husky.neu.edu"
] | sasi.a@husky.neu.edu |
841d4a242c70d04bbdea0e3fd80e5218d8e59096 | bdfa01948ea90e324865c65b85634a9f66554c2d | /Módulo 1/EX_061.py | d7b130c74ce0282193ad1ce826d0dbf1cea8934d | [] | no_license | dev-dougie/curso_em_video-python | 4352dc93311fb2ce6618641ec45e0d813d6d6018 | c4e0af6b13897f631bb970b8e4da5ce6b905621b | refs/heads/master | 2022-11-19T05:51:53.619999 | 2020-07-23T21:46:44 | 2020-07-23T21:46:44 | 282,061,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | print('TERMOS DE UMA PA')
a1 = int(input('Digite o primeiro termo: '))
r = int(input('Digite a razão: '))
termo = a1
contador = 1
mais = 10
total = 0
while mais != 0:
total = total + mais
while contador <= total:
print('{}'.format(termo), end=" → ")
termo += r
contador += 1
print('PA... | [
"dougllasp.s@outlook.com"
] | dougllasp.s@outlook.com |
7d8253944ece7a157a85644dcf7a935161c9c4ec | a5f31d4b26009bff7463afa6367a60c374c7857d | /restapi/connectors/pushpin/__init__.py | f76aeaaaf18babbe012bec406745472d46dc8058 | [
"MIT"
] | permissive | joskid/http-api | c75ed3b6447998dd7ade07c280c8b9d216c2c91b | ad03126f8f02963ac7cd87c338f648a326cdbe18 | refs/heads/master | 2023-04-03T12:57:29.755245 | 2021-02-20T05:59:13 | 2021-02-20T05:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | from typing import Optional, Union
from gripcontrol import GripPubControl, WebSocketMessageFormat
from pubcontrol import Item
from restapi.connectors import Connector
from restapi.utilities.logs import log
class ServiceUnavailable(BaseException):
pass
class PushpinExt(Connector):
def get_connection_except... | [
"noreply@github.com"
] | noreply@github.com |
09a01b000fc157f0ca89bf1f8027bb0a49c66d90 | b90d4dff1c96df1955dd42af43f87a7f271f4d59 | /env/bin/pip3 | cda7cd0bb337c497a654ed688bfeb3da0cfbfd71 | [] | no_license | NickSugar/python-Cool-Vids-CRUD | 07a4ddacb512020a9923cad78f4408c832c9e939 | 60b1acaf27d495d3c4f9bbdd22ce34f35b1ff985 | refs/heads/master | 2021-01-20T04:40:20.846294 | 2017-04-28T14:25:18 | 2017-04-28T14:25:18 | 89,713,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/nicksugar/galvanize/unit-3/python/coolClips/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nicksugar1@outlook.com"
] | nicksugar1@outlook.com | |
40d6c5de2e55af2e3f283b90b03dbb8f265ec264 | ad80610dfc210c1157f90e574a7dfcce6b85f404 | /master/my_hopper_training/src/monoped_env.py | df2452eb8066b194c8cc5fade89007fda7989ba8 | [
"MIT"
] | permissive | kads29/Project | b92546db08f9d3a97ae2b0f7a85d6f435e16e35e | 63c116ef450b2d0e0d51931fff10e1dbc0489864 | refs/heads/main | 2023-02-09T09:48:33.683115 | 2020-12-25T17:24:39 | 2020-12-25T17:24:39 | 324,395,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,415 | py | #!/usr/bin/env python
'''
By Miguel Angel Rodriguez <duckfrost@theconstructsim.com>
Visit our website at www.theconstructsim.com
'''
import gym
import rospy
import numpy as np
import time
from gym import utils, spaces
from geometry_msgs.msg import Pose
from gym.utils import seeding
from gym.envs.registration im... | [
"noreply@github.com"
] | noreply@github.com |
6c59afc01f8f79d247c8828e95c7474ffcd0ed59 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_microsoft_elastic.py | 1b77371ed5a3ff00b9189073d035aff87c44842c | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,959 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
e5ffda09526cb19c38b7353fdeb9cc2262219842 | cd9d7256a22a122b2573b7bee2eeb88436d09c54 | /hamm.py | fad8677c5169878ed82a64c76bac4610a02d9057 | [] | no_license | brugger/rosalind | 25391120c6567457ed28e39527761145db5ada55 | 31f76b80ab707fe7524e55ddd03f971714e6c565 | refs/heads/master | 2021-01-10T12:55:30.843797 | 2015-11-10T14:29:02 | 2015-11-10T14:29:02 | 45,622,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | #!/usr/bin/python
#
#
#
#
# Kim Brugger (05 Nov 2015), contact: kim@brugger.dk
import sys
import pprint
pp = pprint.PrettyPrinter(indent=4)
dna1 = "GAGCCTACTAACGGGAT"
dna2 = "CATCGTAATGACGGCCT"
dna1 = "AGAACTCCACCCTCCCATTCTTAAGTCTCTCTTTCTGTGCATATCTCTAGGCCGCACCGATTGCCATGCCTGCGTGCGGCTGAACTGTATAATAACCTACTACCAGGTGC... | [
"kbr@brugger.dk"
] | kbr@brugger.dk |
5ef013cbb05afe1299378753183da6137be29050 | 553d21452e441a8fe3ee90d911e04962c7deed2f | /plot_archive/PlotRangeSeparate.py | 032b39b09d072eb0e3ab4936248fe08ce6bf7a89 | [] | no_license | arubenstein/general_src | 74904c5f118894bbe38cf4669f8849568ee2128f | c4a972417becea107ebddecb6656cb23a0ee2192 | refs/heads/master | 2020-12-21T18:00:57.496325 | 2019-02-18T16:43:21 | 2019-02-18T16:43:21 | 59,527,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | import os
import sys
import scipy.stats
import math
import matplotlib.pyplot as plt
from pylab import *
import numpy as np
def plot_line ( x, y, label, ax, min_range, max_range, se):
color = ax._get_lines.color_cycle.next()
ax.plot(x, y, '-o',label=label, color=color)
#ax.fill_between(x, max_range, min_ran... | [
"aliza.rubenstein@gmail.com"
] | aliza.rubenstein@gmail.com |
bf26b9baa9d4998be75e67f2884283893837f8f0 | 7ee55246b084ec2c9c8b9fd88e54397b346e809b | /RAICoreServices_PublicVersion_SmartInventory/rai_modules/rai_smartInventory/migrations/0014_remove_order_is_empty.py | eadc61f5f05ce8f4da45c741e05647e4926b17e8 | [] | no_license | tontosirikul/Inventory-Management-System | 30bff37dd2fc3f08f77bdad71c4cd49e850b385e | 7e3b2ce8064615e50f9757f1008100e9ed91c6e9 | refs/heads/master | 2023-06-08T14:21:09.447067 | 2021-06-29T06:01:30 | 2021-06-29T06:01:30 | 381,255,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # Generated by Django 2.2.3 on 2020-06-04 06:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rai_smartInventory', '0013_order_is_empty'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='is_empty',
... | [
"tonydude1999@gmail.com"
] | tonydude1999@gmail.com |
a8bb0a013a7ef36f7b7f0c8052d4e3303e4faab4 | 8a198bbd7fbfcf347edecbae19d014f32572eede | /tsp_rcnn/conv_block.py | 3108ea5dfda30dcd182d43bd45c6c494f1db58ba | [] | no_license | gabrielhuang/rethinking | 2814b1063870a3e7e4889e13cbcd7a0fe63cb129 | fd243306dafbd2eed12650c1de35cef5d859568e | refs/heads/master | 2023-05-07T18:08:00.349949 | 2021-05-19T16:36:25 | 2021-05-19T16:36:25 | 357,281,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from detectron2.utils import env
from detectron2.layers.batch_norm import NaiveSyncBatchNorm
class MyConvBlock(nn.Module):
def __init__(self, in_channels, out_channels=None, norm=True, activation=False, kernel_size=3, stride=1,sync_bn=True... | [
"gbxhuang@gmail.com"
] | gbxhuang@gmail.com |
b93d3ba69152dc60a3d2994ce7d3a15034427485 | b95ec24bf638b4804fb2ee64bd67a06f165ca406 | /main/migrations/0007_alter_curso_curso_publicado.py | 0a874c6da53a77699b28f319189a604d73f00388 | [] | no_license | Andreskcrs21/Cursos | 627577264fb619aaed4cd738ab8d31d20c92f432 | 16b8ed6f77171d3b7b8a7b37d17769df77d8c252 | refs/heads/master | 2023-06-23T09:25:13.454663 | 2021-07-23T20:35:17 | 2021-07-23T20:35:17 | 386,104,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.2.5 on 2021-07-20 23:32
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_alter_curso_curso_publicado'),
]
operations = [
migrations.AlterField(
model_name='curso',
... | [
"cacaceres@tecnologicoloja.edu.ec"
] | cacaceres@tecnologicoloja.edu.ec |
b008d18e58ce8ed671d1f4ead11699ff7adbf3c1 | 45e8c20009f809495762059da0e6b9cb7180e8e3 | /IT1/users/views.py | ae8bc2bdb153ff366f17d71bc46d22652e3ac988 | [] | no_license | Vigzm1995/SSW-695 | e85987b9b411f6d691b493a424a5f458b13b013f | 1dbce03d680458b45c0defd7f953612703cf2edf | refs/heads/master | 2020-12-31T08:47:17.658513 | 2020-04-21T14:30:51 | 2020-04-21T14:30:51 | 238,958,564 | 0 | 0 | null | 2020-02-07T15:35:00 | 2020-02-07T15:34:59 | null | UTF-8 | Python | false | false | 719 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.is_valid():
... | [
"44855777+Vigzm1995@users.noreply.github.com"
] | 44855777+Vigzm1995@users.noreply.github.com |
e190fb0bbc07ead8a51787d278c1b73daa2a5542 | 1b39ffc2d30401c0bd7a548cb2a4f3dd39b3bb16 | /exercises/exercise36.py | 092b630d24229a4f52e497a6ee3a0c7586501e3d | [
"MIT"
] | permissive | pwittchen/learn-python-the-hard-way | c1af1303cd779cf9a05854639b9971a662b7a3a8 | 00907431c74d83468b75a95e4b6551a87d4ffdad | refs/heads/master | 2020-05-21T23:04:08.041176 | 2019-05-14T10:10:46 | 2019-05-14T10:10:46 | 22,257,675 | 14 | 8 | MIT | 2018-07-03T16:09:28 | 2014-07-25T13:25:36 | Python | UTF-8 | Python | false | false | 105 | py | # Exercise 36: Designing and debugging
# No code
# Read: http://learnpythonthehardway.org/book/ex36.html
| [
"piotr@wittchen.biz.pl"
] | piotr@wittchen.biz.pl |
704baf7746e01b841b6f8d58c82c933859d5bf77 | 5a104a5438f9050492ca100bc3d728bb709b944d | /minormanagement/kantipurcollege/about_us.py | c47f969b6978daa467ad0dcb552915fbce28a4be | [] | no_license | Sanjeena1235/collegewebcrawl | 70bcd40ab488bb85d53a17826aa4b7b5d7fce0c5 | d206e790a513baea4abff6daec41d0f41490bb0d | refs/heads/master | 2020-03-26T23:48:33.771363 | 2018-08-21T13:40:01 | 2018-08-21T13:40:01 | 145,568,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | from bs4 import BeautifulSoup
from minormanagement import connectdatabase
from selenium import webdriver
conn = connectdatabase.connect()
myCursor = conn.cursor()
myCursor.execute("SELECT id,links FROM college WHERE name LIKE 'Kantipur%'")
data=myCursor.fetchone()
numbering=data[0]
linking=data[1]
driver=webdri... | [
"sanjeena34@gmail.com"
] | sanjeena34@gmail.com |
fca3ab1a894ead14dc84fdcd629eef27db3e74de | 51fa11e095301f1d722a0c6c0f2b45813027f80c | /shtest.py | b260e780096fc6d60a95f55b8bc44555c544de36 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | 0xflotus/shyaml | cb44d898585b07d57db22b941778dca880826e4b | 91d229a7090d9d4cec6a17f4bc4749f0a3442da0 | refs/heads/master | 2020-04-16T11:45:40.339685 | 2018-12-14T16:27:11 | 2018-12-14T16:27:11 | 165,550,252 | 0 | 0 | BSD-2-Clause | 2019-01-13T20:20:32 | 2019-01-13T20:20:32 | null | UTF-8 | Python | false | false | 12,513 | py | #!/usr/bin/env python
"""Shell Doctest
First naive implementation, will probably have to move this
into its own project.
Major concerns and shortcomings that prevents it to be a serious project:
- end of blocks and final "\n" are not tested correctly
- tests execution in current directory with possible consequences.... | [
"valentin.lab@kalysto.org"
] | valentin.lab@kalysto.org |
43e84b41c4b4b76c12b087f5df8190eb9572fce2 | 19a2378a7fc2aef762b0e3a70669208818feeaa9 | /tests/models/deberta_v2/test_modeling_tf_deberta_v2.py | 8b9bcc15ea2f4c75e72da91cb71317cafda0bb5c | [
"Apache-2.0"
] | permissive | pytorch-tpu/transformers | 494ee005c6d156161171f2a8e60f25603189408f | 6112b1c6442aaf7affd2b0676a1cd4eee30c45cf | refs/heads/master | 2023-09-03T19:34:30.326852 | 2023-07-19T20:57:40 | 2023-07-19T20:57:40 | 220,075,881 | 7 | 2 | Apache-2.0 | 2023-09-14T17:58:25 | 2019-11-06T19:40:45 | Python | UTF-8 | Python | false | false | 11,162 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"noreply@github.com"
] | noreply@github.com |
76d074062736db35ca7cfe7bc7da3c2d840a93e4 | bc41b9a4914d8ec831540b4b08cfbd4e92456c5d | /restaurant/migrations/0010_auto_20190329_1727.py | 83c30eefd984ba7aa1279ea49044f9d9f9cd0b6b | [] | no_license | SaltMango/Foodmachine | 0c2d340355c445808f82881877291bc32054325c | 4bc08eaa211099d2c208b9be2150d43a5042be52 | refs/heads/master | 2020-11-23T21:57:48.275046 | 2019-08-17T01:48:50 | 2019-08-17T01:48:50 | 227,838,147 | 1 | 0 | null | 2019-12-13T12:42:57 | 2019-12-13T12:42:56 | null | UTF-8 | Python | false | false | 664 | py | # Generated by Django 2.1.7 on 2019-03-29 22:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('restaurant', '0009_review_review_rating'),
]
operations = [
migrations.AlterField(
model_name='... | [
"djfox@go.olemiss.edu"
] | djfox@go.olemiss.edu |
3220b2dc109b170c4be45b93fa3bcaf41585cef9 | e222cfdad4c7c0bef7791d0b12e634de3d8770fe | /boilerplate/settings.py | a00e04cdc7e43a979d09ffff48991c9663859754 | [
"MIT"
] | permissive | chunlei85/vaccine_alert | 3e4ddc42c32dbf531a89f371378de3a67a1e2388 | 223732ec30d6bbb513445fe02af53b73bcbe76f5 | refs/heads/master | 2023-04-19T07:44:33.885727 | 2021-05-02T16:29:43 | 2021-05-02T16:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | '''
Django settings for care project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
'''
import os
from... | [
"rupesh.mangal@innovaccer.com"
] | rupesh.mangal@innovaccer.com |
c8fd0a207c30ba36f2d72f3fd370a6435ba625bc | ab6cd06c2669d91ca38ddfa53aa0cdf24ca13490 | /day1/helloworld.py | 28ef03d35322905b6fe517d1135498da832fbc58 | [] | no_license | danjialan/danjawwi-test-2 | 20fae7d61bf3287871a4b5c676e4d3ba5d452346 | 3147e4565c2630febf8be44531feb25e25994b37 | refs/heads/master | 2020-07-30T21:47:59.248415 | 2016-12-25T08:43:57 | 2016-12-25T08:43:57 | 73,618,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | '''
dict = {"a" : "apple", "b" : "banana", "g" : "grape", "o" : "orange"}
for k in dict:
print ("dict[%s] =" %k,dict[k])
for k in dict:
print ("dict[$k] =",dict[k])
dict = {"a" : ("apple",), "bo" : {"b" : "banana", "o" : "orange"}, "g" : ["grape","grapefruit"]}
print(dict['a'])
print(dict['a'][0])
print(dict... | [
"1007672393@qq.com"
] | 1007672393@qq.com |
9b7bbcece100ed41298687ceaf110a854d4c4f80 | 7fd1406b7e94d4b82a158ce5be87b5ae821e16b6 | /pro2_4.py | cbe3b853a1fd6e8842058c68d0e80ca7dfa7022e | [] | no_license | THABUULAGANATHAN/guvi-programs | c1c4d314c7ce43d6c3996fdac85616248c69e4fd | fb004f6916776ca9fbe07b8d507f9725cc55248f | refs/heads/master | 2022-01-15T09:08:32.904234 | 2019-07-19T06:45:04 | 2019-07-19T06:45:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | pi,qi=map(int,input().split())
l=list(map(int,input().split()))
for i in range(qi):
r,s=map(int,input().split())
t1 = l[r-1:s]
u1 = t1[0]
for i in range(1,len(t1)):
u1 = u1 ^ t1[i]
print(u1)
| [
"noreply@github.com"
] | noreply@github.com |
eadea3f23f0fe70ffccb18d4f57ccd81d186c300 | 09aeb3dbd7c139e9c8949f052ecfbb9fed02d494 | /app.py | 376a5a0269bc9c94e9d08da088d1bbb3bc5fc71d | [] | no_license | Rajinder73k/cst-flask-docker | 51bb9403292c209302f02f7e7d445b5389d9c421 | c20b1bd5cf092655d51e93cffffc2e527854fcbf | refs/heads/master | 2023-06-01T23:51:03.037104 | 2021-06-19T14:03:22 | 2021-06-19T14:03:22 | 378,230,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'CST Docker Rajinder'
@app.route('/about')
def hello_world():
return 'About Rajinder'
@app.route('/create')
def hello_world():
return 'Create Rajinder'
if __name__== '__main__':
app.run(host="0.0.0.0",debug=True... | [
"jasmeetsaini801@gmail.com"
] | jasmeetsaini801@gmail.com |
2cc0733f2196b0a8334fb40b1b6e7aacbfff0f16 | d3b7f59eaf04d04657cfb9593bd3db624864b00a | /wallet/urls.py | dcf5c00356ba10ab78937cda8c135cd0c51395b3 | [] | no_license | Olajumoke/ynl | f29bd5811c3d6c7822bd44604bc77aa7916133f1 | 5e53f65e559cdfad83689e2e01382f1bfed52ed3 | refs/heads/master | 2020-03-07T05:45:12.930772 | 2017-09-21T10:16:16 | 2017-09-21T10:16:16 | 127,304,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
import views
urlpatterns = [
url(r'^wallet/details/$',views.view_wallet, name="wallet"),
url(r'^wallet/topup/$',views.main, name="main"),
url(r'^verify/payment/$',views.verify_payment, name="verify_payment"),
... | [
"olajumoke.ca@gmail.com"
] | olajumoke.ca@gmail.com |
37209063a6faf50dc0953890b4f53c74121d2d14 | 6a4e592d65e7ae5d351619e774cbc07cc62d1c5e | /ShippingApiMonitor_com_API.py | 5fb88df2a8db316fb67358168153590bd9b1468c | [] | no_license | Jackuna/PythonXample | f12ab8e674c88cd22b14935822ded4fb1ed182ea | 91e5a3fff46d18ff14a102d8577860a8112d5cf0 | refs/heads/master | 2021-08-15T06:18:00.771589 | 2021-08-03T15:46:02 | 2021-08-03T15:46:02 | 162,540,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | # ---------------------------------------------------------------------------------------------------------------------------- #
# ShippingApiMonitor_com_API : An example of Python webscraping for https://www.shippingapimonitor.com/ using Beautiful Soap
#
# This script takes input messages to encrypt and then using th... | [
"noreply@github.com"
] | noreply@github.com |
cd533e654a5289b4ca2478060df6e727bb15148a | 15a613edc6f7bc5576b6d44cf36a7f1e7dff039d | /experimental_code/integratedAltAz/inertialToRotationalFrame.py | b3cb30628060ec1bbe40777cd42c78f5cde93ca6 | [
"MIT"
] | permissive | rex-mcall/EST_Internship_2021 | 52d0433ff4e1b796493c410217702f6571a8e8e2 | e2281925c0410e10cf779f8da37d2cf0b58c893a | refs/heads/master | 2023-09-04T05:40:04.999390 | 2021-10-02T22:19:48 | 2021-10-02T22:19:48 | 385,706,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | from tletools import TLE
import matplotlib.pyplot as plt
import numpy as np
import math
from math import *
import sys
import datetime as dt
import tleData as tled
gravParam = 3.986004418 * (10 ** 14)
pi = math.pi
toRad = pi / 180
toDeg = 180 / pi
# helper function to grab the julian date from the TLE
def epochToJuli... | [
"rexmcall@gmail.com"
] | rexmcall@gmail.com |
8ac9b394cfff692ec020ae611dd981806c7d65b6 | a4840a5bd013e6eaf02fd212e3e5f2a14cdef0d8 | /optimization/func_arg_dict.py | eab63d29c3981f90b309ff3ac97a70c3323b2566 | [] | no_license | abiraja2004/IntSys-Sentiment-Summary | 8de4956848ef67fe2dd694d7b744de6391e4b376 | 42e8ec189814ea79f8a198ad5b08d1c69cdca462 | refs/heads/master | 2020-05-27T16:42:25.766868 | 2019-05-07T03:39:50 | 2019-05-07T03:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | from functools import partial
class FuncArgDict:
def __init__(self, func, *hyper_args):
self.__f = func
self.__hyper_args = hyper_args
def __hyper_arg_extend(self, args):
new_args = []
for arg in args:
new_args.append(arg)
for hyper_arg in self.__hyper_arg... | [
"pgh36@cornell.edu"
] | pgh36@cornell.edu |
22c25fcd4a4b28a620ffa2b4e113101855ffd0ec | f36255f00ee6e267285b184570e81b4adf56a19c | /google_translator_simplified/translator_simplified.py | b1bd2a2c3c6619d354bb0c0fdfba41cdc251660c | [] | no_license | ksproska/google_translator_simplified | 12fdfef99898f7d93afa448bda66ff229f622228 | 5e2c3ffd8e402bddfe3a55007e8bfd35408e43f6 | refs/heads/master | 2023-08-19T17:10:31.559763 | 2021-10-31T16:45:45 | 2021-10-31T16:45:45 | 423,106,996 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,853 | py | import json
import unittest
from .translator_complex import GoogleTranslator
from . import translator_constant as t_const
class Translator:
""""
Class for translating texts and detecting language (based on Google Translator).
"""
TRANSLATOR = GoogleTranslator()
DICTIONARY_ABBREVIATION = t_cons... | [
"kamila.sproska@gmail.com"
] | kamila.sproska@gmail.com |
5ca662cfd326bbfc872365527afa925f6d62a32a | 003dd45d19b5a6fd4a04deeefa63756462dbe09d | /pymoo/core/decomposition.py | c44fc0098edfa8eabc65e6dfd473ec6d63021804 | [
"Apache-2.0"
] | permissive | Flytortoise/pymoo | 51d32793e843977bd8fda0226bb6add1c356e21d | c6426a721d95c932ae6dbb610e09b6c1b0e13594 | refs/heads/master | 2023-09-03T20:54:13.284192 | 2021-11-09T13:23:15 | 2021-11-09T13:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import numpy as np
from pymoo.util.misc import at_least_2d_array, to_1d_array_if_possible
class Decomposition:
def __init__(self, eps=0.0, _type="auto", **kwargs) -> None:
super().__init__()
self.eps = eps
self._type = _type
self.ideal_point, self.utopian_point, self.nadir_point ... | [
"blankjul@egr.msu.edu"
] | blankjul@egr.msu.edu |
0fdf182a4370934adc1147bafd158b0273de46a8 | 2714a320b67e90d6fa0a20eda375f2d1f01530b7 | /neighborrow/core.py | 85f3a20c2c868b5debce7b1219445d69305d17c7 | [] | no_license | julekb/neighborrow-backend | 0dd07d4021e8932815f4461d833b2d3e1f2e4fe3 | 74d09c2b71a9cee946cbec3a3a904929e097adef | refs/heads/master | 2022-10-17T12:59:54.412743 | 2020-04-14T08:23:23 | 2020-04-14T08:23:23 | 239,032,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import datetime as dt
from . import db
class TimestampMixin:
created = db.Column(db.DateTime, nullable=False, default=dt.datetime.utcnow, server_default=str(dt.datetime.utcnow()))
modified = db.Column(db.DateTime, onupdate=dt.datetime.utcnow)
class NModel(db.Model):
__abstract__ = True
def save_to... | [
"julek.baranski@gmail.com"
] | julek.baranski@gmail.com |
6c3f9d70184f0438b809d97c04670091d4e0c35d | f2ebfdd34550efd999287f0ef5d630ddbdaeb39a | /Desktop/КБТУ/Web/week8/codingbat/logic-1/alarm_clock.py | b5fe6e762d0c67bd944c4468df70367286fefd82 | [] | no_license | YevgeniyaKim/Web | 0151da66f22ccf404addc91f795599e057246292 | 41eef042071e51ae29738c6337d5752e02a2f8f5 | refs/heads/master | 2020-12-24T02:25:48.209928 | 2020-04-26T19:07:03 | 2020-04-26T19:07:03 | 237,346,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def alarm_clock(day, vacation):
weekday_alarm = "7:00"
weekend_alarm = "10:00"
if vacation:
weekday_alarm = "10:00"
weekend_alarm = "off"
if 0 < day < 6:
return weekday_alarm
else:
return weekend_alarm
| [
"ekim27220@gmail.com"
] | ekim27220@gmail.com |
68a2167685ae60ce911b587b6ab3149b8047f242 | b7d0df7e26e9689b03d3836fff2b6e8dd6633b29 | /venv/bin/wheel | 4cc2b8fe6247e2f40b6e5b5624a229c8ed49ca20 | [] | no_license | rgshrey/drdrerde | a94f5f74644536899d83d23bb4badadd8f8a839c | fc3cea96c6ab85f4cbab815c8e27340c07ffd468 | refs/heads/master | 2021-07-05T17:02:05.600647 | 2017-09-28T03:54:04 | 2017-09-28T03:54:04 | 103,487,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/ryan/drdrerde/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rgshrey@gmail.com"
] | rgshrey@gmail.com | |
f57dd03af4d39d142befc5c6fbf0cdfd9b74d9fb | 274935506ea5e2a7a42477cec00fa5c142c76db3 | /users/migrations/0003_auto_20201226_1725.py | 74fa75d87775ddc81e74eb4b206baf7e6ff52cfe | [] | no_license | shashankgehlot/SocialImage-App | cb57009786ad04e482deff75ffaa7c4991c43743 | 7b1aba98e1637fd4fab527a5a81e7ce349475f54 | refs/heads/main | 2023-04-21T06:10:10.634856 | 2021-05-22T14:22:03 | 2021-05-22T14:22:03 | 324,791,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.4 on 2020-12-26 17:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20201226_1638'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='image',
... | [
"shashankgehlot070@gmail.com"
] | shashankgehlot070@gmail.com |
591d133fa8f335b622536655d79fb2f50b08e2d7 | d52b11bd06b1d7aa8fe120a32b98cce9a1c27279 | /NeuralNetworks/predict_reluModel3_MNISTsubset.py | 869a054411848d0bbeee717aafd9e28480381498 | [] | no_license | diksha16017/MLForBeginners | 5afd24b8f34b89860c37acec4ae91ff895716230 | 7c4724ee282d08a1a6673b1e919d9c139a213cf3 | refs/heads/master | 2020-03-15T19:25:10.706034 | 2018-05-05T19:19:37 | 2018-05-05T19:19:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | import numpy as np
import math
import operator
from sklearn.externals import joblib
import h5py
import idx2numpy
# Load the test data
def read_h5(filename):
with h5py.File(filename, 'r') as hf:
X = hf['X'][:]
Y = hf['Y'][:]
return X, Y
# Load test data
X, y = read_h5('dataset_partA.h5')
print "----y: ", y
de... | [
"jhambneha30@gmail.com"
] | jhambneha30@gmail.com |
3924df6ace86ad70ee5a5be9db799e968c78f09d | c816a52774f3a7661c86f245da41c814de4857bc | /ovotools/pytorch/modules/__init__.py | f381a46bea71cca22ecc662ae6d584f04ee75169 | [] | no_license | IlyaOvodov/OvoTools | 028c71cd0a250ff78244050ca1ab8337b6eca7ec | 75b53916b0f6bf4df0e9b405301f34b6b7b4c0a8 | refs/heads/master | 2023-05-25T08:22:24.790441 | 2021-08-11T15:11:42 | 2021-08-11T15:11:42 | 169,708,047 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from .dann import ReverseLayerF, DANN_module, Dann_Head, DannEncDecNet | [
"b@ovdv.ru"
] | b@ovdv.ru |
4ebb33bdd57d08f884578d4fe40250bdf44afe04 | 042d2a2353cb91a2949cfd6af1b4826ae44d6f89 | /days/07-09-data-structures/code/states_test.py | 51ca7f9efe6042709fc2cbb3d48d89e170e0f663 | [
"MIT"
] | permissive | Rachel-Hill/100daysofcode-with-python-course | a730ac8fb061a192bb4a1bb9134bf096af5c8940 | 71330c54ecfb1e51852760c5f2847f8035643702 | refs/heads/master | 2020-04-08T19:46:38.099222 | 2018-12-30T17:52:28 | 2018-12-30T17:52:28 | 159,670,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | from states import (get_every_nth_state,
get_state_abbrev,
get_longest_state,
combine_state_names_and_abbreviations,
states,
us_state_abbrev,
NOT_FOUND)
def test_get_every_nth_state():
expected ... | [
"rachhess@gmail.com"
] | rachhess@gmail.com |
7652fbced6dfcdf51f9a6f4258bf1fc47c90aef5 | 553bf523a9295e6096b1773b4aef8887f393f263 | /main_site/migrations/0016_commune_last_mod_date.py | e5ccaa03beedb5f2647b60e0ff34a20c99449374 | [] | no_license | mateuszkiebala/www | 2249968fc824fd87da39999bbcf57be15e3f9db5 | 8ad939bd44744c4db25fe46d1f612eb6a8e7ba6c | refs/heads/master | 2021-03-16T07:41:46.354773 | 2018-02-19T13:17:17 | 2018-02-19T13:17:17 | 121,973,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-06-04 16:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_site', '0015_auto_20160407_1751'),
]
operations = [
migrations.AddField... | [
"mateuszkiebala@gmail.com"
] | mateuszkiebala@gmail.com |
59d110199d283263e46a0ab5ad27dcf608f58f0d | 3c6b1a62c48f138af3bad9186f41cf005d222518 | /Portfolio/urls.py | f3b4a51e85d0375a8eceafcaaf61d61f3a3fa41a | [] | no_license | krish11031998-pythonwhisperer/Portfolio | 6c2b6dc688ae5ed348e5b10dba5c1aaddc2c36a9 | 04456348d138fefcbe3483235a071a62e6032207 | refs/heads/master | 2020-12-26T21:11:36.118114 | 2020-03-15T17:07:54 | 2020-03-15T17:07:54 | 237,644,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """Portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"kv1g15@soton.ac.uk"
] | kv1g15@soton.ac.uk |
68c4272b1b6a5b7dfe19673d782a8d550074e532 | 976630f76da138daed99f9a50eba46c66af99bc1 | /5.3 Agglomerative.py | 0a293fc7e3c96223813c2049e82c04b490e0dc3c | [] | no_license | gao1054494062/Python_SKLearn | c7acde3a488a8cf4ddfcb200a378542f4d7a03d8 | ecf1f04d5da039342cbb3c9eebaae0b08992eeb3 | refs/heads/master | 2021-05-04T21:57:35.822656 | 2018-02-02T14:20:54 | 2018-02-02T14:20:54 | 119,990,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets
from sklearn.datasets.samples_generator import make_blobs
from sklearn.metrics import adjusted_rand_score
from sklearn import cluster
from sklearn import mixture
def create__datas(centers,num=1000,std=0.7):
X1, y1=datasets.mak... | [
"noreply@github.com"
] | noreply@github.com |
dda989c5ddf4601eb9af755446131b6ba4d3e885 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/audio/ESPnet2_for_PyTorch/espnet2/enh/separator/conformer_separator.py | dbc1251d99d8976e54f34dfd9c5ec546f8c6cdef | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,643 | py | from collections import OrderedDict
from distutils.version import LooseVersion
from typing import List
from typing import Tuple
from typing import Union
import torch
from torch_complex.tensor import ComplexTensor
from espnet.nets.pytorch_backend.conformer.encoder import (
Encoder as ConformerEncoder, # noqa: H30... | [
"ningzhenjiang@huawei.com"
] | ningzhenjiang@huawei.com |
1f478b2e2b5233d68a08a0885aced7900338d469 | af8c2f79c2d2ca6082536e2f80da6f299a770f4f | /detection/faster_rcnn/config.py | 8ddb9d78cd9840c79f66ba9ac466bb8de5a1353c | [] | no_license | LSQI15/The-Simpsons-Characters-Recognition-and-Detection | e8a90cb5e84aa25560a73f9297867292b1718604 | 0092dc53de005d440c6c9dad05d3bad8c5e6a75b | refs/heads/master | 2022-12-02T13:54:37.038140 | 2020-08-21T22:48:23 | 2020-08-21T22:48:23 | 273,020,470 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | from keras import backend as K
class Config:
def __init__(self):
self.verbose = True
# setting for data augmentation
self.use_horizontal_flips = True
self.use_vertical_flips = True
self.rot_90 = True
# Number of ROIs per iteration. Higher means more memory use.
self.num_rois = 32
# Output path f... | [
"noreply@github.com"
] | noreply@github.com |
ed90140acd386d80f09ea1eff3f9ffde004107d4 | 683699f52fc48d5a2a698cfc90f646a002757d8c | /flaskr/controllers.py | fab32cb2dd77a630ceb4c636bef0b224bfbe1c6b | [] | no_license | calvin-connaghan/castingplusplus | 7540109569d1a71dccd8fc07d633899af8198ad3 | 71e89b35c98266948af64210720578d1933eaeaf | refs/heads/master | 2022-11-23T00:45:38.911410 | 2020-07-28T16:27:30 | 2020-07-28T16:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,343 | py | import sys
from dateutil.parser import parse
from werkzeug.exceptions import HTTPException
from flask import request, jsonify, abort, render_template
from .models import (Actor, Movie, Role, Booking,
rollback, close_session, add_all)
from .auth import AuthError, requires_auth_dummy
from .auth impor... | [
"cleverpiggy1@mac.com"
] | cleverpiggy1@mac.com |
7451c76f2aaa67e39cfca280e39ce44c0c871877 | 27381f38b713258645855716593a9e309c43337e | /mechanics/hallway_plate_assembly.py | 0138693b254035f06a4cdb76b2cd0e5774ac69b4 | [
"Apache-2.0"
] | permissive | iorodeo/hallway_arenas | 828859f66a0f6966fde24c95fc32db7d1c4fea51 | 02d87d7890aea4f09fc244792aecaf6cb24357b2 | refs/heads/master | 2022-05-22T06:01:38.534312 | 2020-04-21T19:50:58 | 2020-04-21T19:50:58 | 256,603,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | """
Creates assembly of top and bottom plates for hallway arena
"""
from py2scad import *
from assembly import Assembly
from hallway_top_plate import Hallway_Top_Plate
from hallway_bottom_plate import Hallway_Bottom_Plate
class Hallway_Plate_Assembly(Assembly):
def make(self):
# Create components
... | [
"will@iorodeo.com"
] | will@iorodeo.com |
c72352f8363b0aae097bdefc405f89248a33dd46 | 0bae07d2e34f80d63844a26587fd3dd0c451f091 | /sessions/09-text-3-sentiment/09_sentiment.py | 26637ba40f3b0576a893c60bf99b56ec391e760f | [] | no_license | Amberineee/ba820-spring2021 | 736e2e17780c4064d3b086a5bb708d9230b5f5d0 | e3b8cd2bd1cbfe1e74dbef1eb57362df6f6a2879 | refs/heads/main | 2023-03-22T21:07:47.319352 | 2021-03-10T20:19:59 | 2021-03-10T20:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,931 | py | ##############################################################################
## Foundations in Text Analytics - Sentiment Analysis
##
## Learning goals:
## - reinforce text as a datasource
## - python packages for handling our corpus for these specific tasks
## - Sentim... | [
"btibert3@gmail.com"
] | btibert3@gmail.com |
c4fa64856d534f6545d254c3517269ae16052ed7 | 59ac708c51ed9dcec540a5b085db10848b607c70 | /drl-youbot-openrave/scripts/.svn/text-base/wingdemoobstacleenv.py.svn-base | c465f6c0680643caccb6c18dd3853a16168cd357 | [] | no_license | aespielberg/3DoodlerController | 3310082ac3cdec1dcf4b25ca7f6e1b497edcc172 | 0a4ab851dc7c1706744486ea37f2e702e4dbde91 | refs/heads/master | 2021-01-17T11:15:53.554365 | 2016-05-01T16:03:26 | 2016-05-01T16:03:26 | 34,172,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,546 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from tsr import GraspTSR,LookAtTSR
from Assembly import Assembly
envfile = 'environments/wingdemo_obstacle.env.xml'
assembly = Assembly(object_names=['wingskin','fastener','camera'],
object_relative_poses={
... | [
"stefie10@csail.mit.edu"
] | stefie10@csail.mit.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.