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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7bd018b460bf6f1fe50a6f58d1c0d447650c1d4 | 2c5cf25dcd32f6b418bcfb4c2b8937061f393270 | /src/network.py | 2a2b8bc59269c7917b2e24173d60f1a989e460c0 | [] | no_license | ibrsrm/Fec-Generator | 0689d653f1112663b986e0e6219df826ab0c108e | 87745a004850254a6fe084a89af6aa3504bd4934 | refs/heads/master | 2020-09-26T06:59:45.407138 | 2019-12-16T19:46:13 | 2019-12-16T19:46:13 | 226,197,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | #!/usr/bin/python
import socket
import util
import threading
from time import sleep
from options import Options
class Sender (threading.Thread):
__TAG = "NETWORK:"
def __init__(self, name, finishedCallback, address, port, buffers):
threading.Thread.__init__(self)
self.__lock = threading.Lock()
... | [
"Ibrahim.Serim@airties.com"
] | Ibrahim.Serim@airties.com |
abf24deb33aa929ed64e1f57511d697e2db26a85 | e1436eb68e51dcd1becb7e0f8671b51eb4b23ec0 | /desktop/kde/applications/parley/actions.py | 4ecd82fc5604b7c01eeb26036ad05c7448cec256 | [] | no_license | SulinOS/SulinKDE | bef0ebbecafa6082ad7599f377c95573468827fb | 9984e0f40a5a011e59d439a24856bde78deea1c2 | refs/heads/master | 2020-09-16T05:34:20.333558 | 2020-06-10T08:10:53 | 2020-06-10T08:10:53 | 223,669,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import inarytools
from inary.actionsapi import kde
def setup():
kde.configure()
def build():
kde.make()
def install():
kd... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
eeadcf131b7e1e264e57d77af12db30f9879e795 | 10fe374817d2742200a381ef800ec2280bb433d2 | /Python_T2/Projects/Practice Stuff.py | 960a2d7b76a9b1b98ac66957641566b831d203c3 | [] | no_license | irvingperez11/python | 5e00cf21c686acb07e4867fb89dfbb8168758990 | 728589ccfecdb5f52ddd0cb96117b3d2a48e10d2 | refs/heads/master | 2021-04-15T12:21:21.603401 | 2016-08-02T16:34:58 | 2016-08-02T16:34:58 | 63,884,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | class Triangle (object):
number_of_sides = 3
def __init__ (self, number_of_sides, angle1, angle2, angle3):
self.number_of_sides = number_of_sides
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
def check_angles(self):
if sum(self.angle1, self.angl... | [
"irving@campinteractive.org"
] | irving@campinteractive.org |
f49db6663ec0211a03497fae9b0a7d5b4a7ae930 | e5f1befb7c7ca0072747b33086fc6569a6befd01 | /old/videos/02.py | 18f9ca234fd808ffb6c7a2703c07f80bf5cdd3a6 | [] | no_license | nepomnyashchii/TestGit | ae08d8bb1b7d2ab9389a309fd1dc9e24729b019c | c7abf4ab08ee3c2f3ea1fb09a1938bff7a3e0e5c | refs/heads/master | 2020-04-28T23:41:51.053547 | 2020-01-24T12:22:40 | 2020-01-24T12:22:40 | 175,666,093 | 0 | 1 | null | 2019-03-15T13:44:03 | 2019-03-14T17:08:58 | null | UTF-8 | Python | false | false | 472 | py | import random
from random import randint
import math
# from random import *
from math import sqrt
from math import sqrt as my_sqrt
for element in range (10):
print(random.randint(1, 10))
#random object (randint function as method and 1,10 are arguments)
num =10
print(math.sqrt(num))
print(sqrt(num))
... | [
"nepomnyashchii@gmail.com"
] | nepomnyashchii@gmail.com |
1f9a65ac787ca5726e2ee5f3e366eecd9624af55 | 3eb22fd5a85676d928cd8b3cfbd69f9c9f70429a | /torch/fx/experimental/accelerator_partitioner.py | c16ba8c097957043b65e57185fdee04c86c3bd01 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | SanBingYouYong/pytorch | b7f03e3c8dbb5e66b6a7218f7d81d893f5cfa8f6 | 469f0e42d6e2b3cd8c78b224b97d45be2dc7d0ee | refs/heads/master | 2023-05-30T20:53:59.389479 | 2021-06-16T01:18:33 | 2021-06-16T01:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,635 | py | import operator
from typing import Dict, List, Set, NamedTuple, Tuple
import torch
from torch.fx.experimental.graph_manipulation import get_size_of_all_nodes
from torch.fx.experimental.partitioner_utils import (
Partition,
Device,
PartitionerConfig,
get_partition_to_latency_mapping,
get_latency_of_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cce12cc1866e216c00ea4269d0fb797ee94f2014 | 7c8d4ccd9f3552780e78aadee240564d120260e3 | /pagerank_reducer.py | 53c70e3cf5a16d22dbacc85cc35f06604a138782 | [] | no_license | b0gdanp3trovic/pagerank_mapreduce | 8f17d16e94e7054d6db9c15c77bda543dfeced43 | 3a764041d80a4e1400a0894ea14b629044cd0beb | refs/heads/main | 2023-05-09T19:40:21.004317 | 2021-06-05T19:32:47 | 2021-06-05T19:32:47 | 355,469,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #!/usr/bin/python3
import sys
current_destination = None
current_rank = None
dest_dict = {}
for line in sys.stdin:
destination, source_info = line.split('\t')
source_info = source_info.split(' ')
source = source_info[0]
source_rank = source_info[1]
source_outdegree = source_info[2]
if(source... | [
"bogdanlmaorofl@gmail.com"
] | bogdanlmaorofl@gmail.com |
a2cddebe1b8e935a0b005b18b37a54ee33bfca24 | 15f4d65299a646fc6b3202e38a6f413247b18d44 | /problems/python/004/largest_palindrome_product.py | dc412511d9c6e94404febdc2bdc2d86eb225d724 | [] | no_license | aalvrz/project-euler | 48aa8c57dad5edecb6eadc3fadbe307dc72536a7 | fe06104bf01a3ff1970399a12048e8dea27b071a | refs/heads/master | 2021-09-28T07:59:01.645487 | 2018-11-15T16:57:05 | 2018-11-15T16:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | ### Jaime Alvarez - March 2016
"""
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99.
Find the largest palindrome made from the product of two 3-digit numbers.
"""
def isPalindrome(num):
# Determines if the number is a palindrome... | [
"jaime_andres@unitec.edu"
] | jaime_andres@unitec.edu |
1eb2c69e39eb6d6bd675881d116ed661bf5ca728 | d0f35b0665d9edc8c10c3fba0be423997a33b4c3 | /class21.py | 8794aec15c069dfedded3807d24a7cf71a77d1bc | [] | no_license | wppply/LeetCode-in-Python | 8bd1ac6fad3a7ec6d47c90ee5d5b8b6449c98274 | 90ae6c088250439dd5c851df0d36660be2e53b6a | refs/heads/master | 2020-03-18T13:57:29.684767 | 2018-10-04T22:06:11 | 2018-10-04T22:06:11 | 134,820,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,531 | py | """
p1:
remove repeat element in arr
"""
"""
p1.1:
remove repeat element in sorted arr
"""
def remove_repeat(arr):
if len(arr) < 2: return arr
write = 0 # everything before write is the output
read = 1
while read < len(arr):
if arr[read] == arr[write-1]:
pass # meet repeat elem... | [
"wppply@gmail.com"
] | wppply@gmail.com |
f48750b96160624daa9f6bcbea9eabc617cf6585 | c333189757c358edfaf705a139bf5100a77adb6a | /layer_naive.py | b4bf2f879d876985b28bcf9fd17bcf95f7fd167c | [] | no_license | infinith4/zerodeeplearning | 9f34172a1c7ccae0343f492ef38b96f32de364ba | 903ffc671f7842a049b3900d4c8ea3e398bd84fa | refs/heads/master | 2021-01-12T18:15:24.716563 | 2017-02-25T13:40:58 | 2017-02-25T13:40:58 | 71,352,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # coding: utf-8
class MulLayer:
def __init__(self):
self.x = None
self.y = None
def forward(self, x,y):
self.x = x
self.y = y
out = x*y
return out
def backward(self, dout):
dx = dout * self.y # change x to y
dy = dout * self.x # c... | [
"infinith4@gmail.com"
] | infinith4@gmail.com |
d2a5b9b9a29d86b5328ee75e928d1972d2a4925e | 3f005487c3e956cd9bfbca2defe22525c4f5e5ad | /action/mnist_softmax_regression_version1.py | 346095c382247b9cf2b3eb38ad1f5c4f59401d5d | [
"Apache-2.0"
] | permissive | hiwgy/tfdemo | f1131ef3c305907bb69e9cc4e86e59a60cecdd10 | ea404a8bfdc1ab18bc5b4be49d5bc9abcd641983 | refs/heads/master | 2020-06-19T00:06:34.254551 | 2019-07-22T11:35:22 | 2019-07-22T11:35:22 | 196,499,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py |
import tensorflow as tf
import dataset
sess = tf.InteractiveSession()
mnist_train = dataset.train("./mnist_data");
mnist_test = dataset.test("./mnist_data");
# https://www.tensorflow.org/guide/datasets
print(mnist_train.output_shapes, mnist_train.output_types)
print(mnist_test.output_shapes, mnist_test.output_types... | [
"wangguangyuan@baidu.com"
] | wangguangyuan@baidu.com |
ecf480960a333b095c84b0f2b9b8b00194fab7b6 | 623b0dea82ac378fd7921c69b1cec3a2a3670226 | /hello_DRF/router/urls.py | 9dcb978295c02bf1fa301aa348b273e02910ae57 | [] | no_license | ShahedAhmadAhadi/DjangoRestFramework001 | 3ae9d54d9b5eb6f4bd989d9fd2637782e0a619ef | f47a3262404870ab79829544a91a46df4defddd0 | refs/heads/master | 2023-06-13T02:22:41.051245 | 2021-07-06T16:59:33 | 2021-07-06T16:59:33 | 378,909,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from .views import CreateRecords
from django.conf import settings
from django.urls import path
from rest_framework import routers
app_name = 'router'
router = routers.SimpleRouter()
router.register(r'router', CreateRecords, basename='employee')
# router.register(r'template', template_view)
urlpatterns = router.urls
... | [
"shaheda.a16@gmail.com"
] | shaheda.a16@gmail.com |
2c91335477d73b65ac5d14613159c8a1e35f5fc4 | dc5d61370f4649f73d2974811eb95babf072ec38 | /xiaoye/templatetags/PhraseTag.py | 077ca4cc2c022dc385d288ae0dde83ae2ff59f58 | [] | no_license | xiaoyexu/mysite | ba1184756ddca525b438344f8dbbb80e651907ae | 47cca94be54ee4a9f39b56061d7763710ceac9af | refs/heads/master | 2020-04-06T07:02:30.508923 | 2016-09-19T04:13:30 | 2016-09-19T04:13:30 | 65,890,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # -*- coding: UTF-8 -*-
__author__ = 'xuxiaoye'
from django import template
from xiaoye.common import *
register = template.Library()
class PhraseTag(template.Node):
def __init__(self, appId, phraseId):
self.appId = appId
self.phraseId = phraseId
def render(self, context):
appId = pa... | [
"xiaoye.xu@outlook.com"
] | xiaoye.xu@outlook.com |
50f09fd89866e284ebff2f2ffdcc23f6d72bd2e4 | ca246c327df24ac2da477b83dff7759d0b51e0f8 | /example/__init__.py | fb879368bdaae4cbc4cba36df34d58c05a214b80 | [] | no_license | leadermin/dp-tornado | 2dc3a40bdabb5ed9e3fe869a58bd4a53889c5451 | d61be76994cc389987701ae596b3c2443d884c0a | refs/heads/master | 2020-12-29T00:00:49.686127 | 2016-01-04T13:28:23 | 2016-01-04T13:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # -*- coding: utf-8 -*-
import os
from dp_tornado import Bootstrap
kwargs = {
'application_path': os.path.join(os.path.dirname(os.path.realpath(__file__))),
'scheduler': [
('* * * * *', 'scheduler.foo')
]
}
bootstrap = Bootstrap()
bootstrap.run(**kwargs)
| [
"youngyongpark@gmail.com"
] | youngyongpark@gmail.com |
2fb3ccd4fca44e5a92226b3184e9435eaca3598a | 4185598eacfde6ea028c441aaa00dfa12729f6df | /main4.py | 7057624295c699ef8dca41dc086813d629695316 | [] | no_license | ErenO/ft_linear_regression | 2b785215e297be12b0103008afe7fc0bf712fc2b | 98b97901e270e68b469a11ef5a0f60be55263156 | refs/heads/master | 2021-01-21T11:36:31.738313 | 2019-01-22T00:53:40 | 2019-01-22T00:53:40 | 102,017,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | #!/usr/bin/env python
# coding: utf-8
import os
from numpy import loadtxt, zeros, ones, array, linspace, logspace, genfromtxt
from pylab import scatter, show, title, xlabel, ylabel, plot, contour
import numpy as np
# import pandas as pd
import matplotlib.pyplot as plt
# def computeCost(X, y, theta):
# inner = np... | [
"eozdek@e2r11p2.42.fr"
] | eozdek@e2r11p2.42.fr |
f662e13a92f620780fa576c53bfe5eaaf4dc40d3 | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /ros_ws/build/baxter_examples/catkin_generated/pkg.develspace.context.pc.py | ce6228515fedb8113370e7fdd69d2285856a9049 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/bill/bill_ros/ros_ws/devel/include".split(';') if "/home/bill/bill_ros/ros_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;xacro;actionlib;sensor_msgs;control_msgs;trajectory_msgs... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
14fa983cfe1477711cec5e444cd096d0faa80ee2 | a9c502de7c6f406cc8791689676b1a367e436f07 | /version/unNote_v043 added pages.py | c8f94b489eb3893738d9262abe3652db642acb52 | [] | no_license | PTomalak/unNote | d96e1c6df914f3c96b4899697619deb31a699c69 | 94682803eb44f628403b0fb6c36c0cbbd486ce81 | refs/heads/main | 2023-08-24T02:57:12.947799 | 2021-11-01T12:20:33 | 2021-11-01T12:20:33 | 408,133,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,935 | py | import os
# import json
import pygame as pg
import pygame.image
from pygame import gfxdraw
from pygame.locals import *
from os import environ
from sys import platform as _sys_platform
def platform():
if 'ANDROID_ARGUMENT' in environ:
return "android"
elif _sys_platform in ('linux', 'linux... | [
"noreply@github.com"
] | PTomalak.noreply@github.com |
69f7c25b5d8ca4cf20f4e5712a564a84a35aab49 | 168d0c347402a5804a98bb2cd2fed5c763781741 | /sagittaros-Deal-crawler-abba8dfcc339fd24812dc7a36c366044f9f8855e/dealscrape/spiders/groupon_sg.py | a40d0cd177ab7272e8aa20482bcc15560397e7c7 | [] | no_license | mtaziz/dealschrome | c1821e839f1fb382b4ee22ca8dc20260952ac0a1 | b2987329449b1055462ed3343a647ec118a96fe1 | refs/heads/master | 2021-01-21T20:52:47.960742 | 2015-09-24T08:49:11 | 2015-09-24T08:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.contrib.spiders import CrawlSpider, Rule
from dealscrape.utils import data_extractor
from dealscrape.utils import location_resolver
from dealscrape.utils import description_resolver
import time
from dealscrape.exceptions import ItemError, Item... | [
"felixsagitta@gmail.com"
] | felixsagitta@gmail.com |
7ece41992a372aa3f70f324afeb0a236582a84a8 | d15ab1f5cbc5f19a452fd0536ae3d84994002486 | /dns_tools.py | 86acc85f33bcb2f60a7161a7c4726a98eb0cbe23 | [] | no_license | Woovie/cloudflare_tools | a0113ea6023503830126a9ac3f85b4279b24be49 | 6542dbe50561d2237787999af635769aa1a33520 | refs/heads/master | 2023-01-14T00:07:25.254767 | 2020-11-14T18:32:26 | 2020-11-14T18:39:22 | 312,879,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import configparser, json, requests, re
config = configparser.ConfigParser()
config.read('config.ini')
class DnsQuery():
def __init__(self):
self.api_url = config['cloudflare']['endpoint']
self.token = config['cloudflare']['token']
pass
def verify_token(self) -> bool:
verify_e... | [
"woovie@woovie.net"
] | woovie@woovie.net |
f15f0f1514850ac6d4503704428d236fc8eb6912 | 2cb75c2df37cd0d90bf93dac463000ae5c5e585d | /tapatalk/subscription.py | 96399c4ee225530df37a51a32b163393bc72d393 | [] | no_license | svdgraaf/django-tapatalk | aa107656de1954c152be6088776851723f8b6ba5 | 077f12e92f07a4ee0edec3ee0ea111ff88f40649 | refs/heads/master | 2021-01-01T16:06:18.591499 | 2013-06-26T13:39:02 | 2013-06-26T13:39:02 | 7,270,931 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from util import *
def get_subscribed_topic(request, start_num=0, last_num=20):
topics = request.user.subscriptions.all()
data = {
'total_topic_num': len(topics),
'topics': []
}
for topic in topics:
data['topics'].append(topic.as_tapatalk())
return data
| [
"mail@svdgraaf.nl"
] | mail@svdgraaf.nl |
c6b949749b5ff617fce0a2cc8cd810d27be68fa1 | 8e9b5f2b6eed72c71480fe2d896273aeb2a0f16e | /MxOline/apps/users/models.py | bf9911608a981c6011609bc057589ca1383c1202 | [] | no_license | izhaojinlong/undergraduated_design | b83546bba76976afbbfafc16107faec8baf83e4f | 7f109ae0cea4d69bdc115b5fc88add2c7fb150c7 | refs/heads/master | 2022-12-09T21:04:50.629900 | 2019-07-09T14:18:30 | 2019-07-09T14:18:30 | 131,683,767 | 0 | 0 | null | 2022-11-22T02:39:39 | 2018-05-01T06:33:08 | Python | UTF-8 | Python | false | false | 2,378 | py | # _*_ encoding:utf-8 _*_
from __future__ import unicode_literals
from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
nick_name = models.CharField(max_length=50, verbose_name=u"昵称", default="")
... | [
"zjlcn@live.com"
] | zjlcn@live.com |
99ca246ce1a0aa18c5d7773823738e815dc59d7b | 62f9d620ba82f3f5d94c2536683212c002f73039 | /flask_app.py | c3bd0590ad404808159ba787bfabf3eb0b6bb69b | [] | no_license | Nagarajuvuliki/google | 7e6d42f9bcfb57d5e8c8db5513c65249b07abbc0 | e82c27cb5530e991506366ceec00c85088dce7e9 | refs/heads/main | 2023-08-27T22:04:38.892946 | 2021-11-04T07:26:13 | 2021-11-04T07:26:13 | 423,329,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | # https://www.youtube.com/watch?v=vISRn5qFrkM
from flask import Flask, request, jsonify, abort,render_template,url_for
import io
import json
import base64
from conn import nps_conn
import os
import logging
import numpy as np
from PIL import Image
from pathlib... | [
"noreply@github.com"
] | Nagarajuvuliki.noreply@github.com |
ce09c19948934131b89e21389fd05708d8774ff8 | 13a667a6f5758db545ea830347ff2c776433ff0a | /hotel/urls.py | 05535555d920c4874188407e5642911e051398b8 | [] | no_license | vobornikondrej/HotelDjango | b7671d940fc49372932b7abe15f5908600c1c9b6 | 319ce3b95e4b7bde1644a3554ec4e0421beb2b09 | refs/heads/master | 2021-01-16T22:30:29.240301 | 2016-07-10T09:19:32 | 2016-07-10T09:19:32 | 62,990,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.conf.urls import url
from . import views
app_name='hotel'
urlpatterns=[
url(r'^$', views.index, name='index')
] | [
"ondrej.vobornik@tcpcloud.eu"
] | ondrej.vobornik@tcpcloud.eu |
5b7b08cc64f27b668429b60c89c6dfff39a1be47 | 3e2ec14daf3e246334e175719bc38adcf15cee5a | /challenges/graphs/black_shapes.py | 711d0422815e2bd4f14aaa3777a4b3ce9f1aaf6a | [
"CC0-1.0"
] | permissive | lukasmartinelli/sharpen | a616ee981d81efb2c844c5106ce30bd97f36e034 | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | refs/heads/master | 2021-01-20T12:11:25.452306 | 2019-06-08T21:06:12 | 2019-06-08T21:06:12 | 58,558,368 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | import collections
def adjacent_black_fields(matrix, row_idx, col_idx):
adjacent = [(row_idx + 1, col_idx), (row_idx - 1, col_idx),
(row_idx, col_idx + 1), (row_idx, col_idx - 1)]
def is_within_matrix(row_idx, col_idx):
row_count = len(matrix)
col_count = len(matrix[0])
... | [
"me@lukasmartinelli.ch"
] | me@lukasmartinelli.ch |
b00affce1bafa775af687743ec956e96a48cebb5 | 948c245eeb61dc079bf86422450f34741fe47f8c | /AP1/V354/Text/q.py | 56f12ccc5b833b86c6616f8f13536441190c696f | [] | no_license | KattiBrae/APWS201718 | 1acf9928d11a35a4d6084905f593254d27ec5862 | 203bf82cda4dc9463f2efaacdfd6b8b04a5ae1ca | refs/heads/master | 2020-05-09T05:20:47.966508 | 2019-05-17T14:08:20 | 2019-05-17T14:08:20 | 180,987,198 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import numpy
import sympy
import math
#q = sympy.var('q')
#R = sympy.var('R')
#L = sympy.var('L')
#C = sympy.var('C')
R=48.1
dR=0.1
#
L=10.11e-3
dL=0.03e-3
#
C=2.098e-9
dC=0.006e-9
#
#print('q')
#q= math.sqrt(L) /(R * math.sqrt(C))
#print(q)
#
#print('dqdR')
#dqdR= q.diff(R)
#print(dqdR)
#
#print('dqdL')
#dqdL= q.dif... | [
"katharina.braegelmann@tu-dortmund.de"
] | katharina.braegelmann@tu-dortmund.de |
887d2c35f89352c9da2ee2fcc793c8313eaa2076 | 71bae512b517eca4549cca22a320eb505214f4ca | /app/main/forms.py | 590ebd95861df0d8cf40c2b006e0726efe0598b8 | [
"MIT"
] | permissive | sandrineTuyizere/Blog | 3343c71096fda4296b9614e8822f4fe3d7f7c402 | 9e130c58e9ef550ed9d1dd2badb343e1156d3162 | refs/heads/master | 2023-01-24T10:56:44.255091 | 2020-12-06T18:38:10 | 2020-12-06T18:38:10 | 319,085,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | from flask_wtf import FlaskForm
from wtforms import StringField,SelectField,TextAreaField,SubmitField
from wtforms.validators import Required
class UpdateBlogForm(FlaskForm):
title=StringField('Title', validators=[Required()])
category=SelectField('Category',choices=[('Music','Music'),('Job','Job'),('News','... | [
"sandrauyizere@gmail.com"
] | sandrauyizere@gmail.com |
005b04366f7279fbc07c16daa7f5d0b64d2de961 | b611968ae2d700928c4b16f973efc2e902a21157 | /not_django/base_controller.py | bcc7d02156b2422aa9de1567db21acbb0114700d | [] | no_license | nediola/hydroponics | d8b8a94b5735e2a9965df9c8743a3fef513fd15a | ff479b91ff679e1f35b0af1f263419f47175bbad | refs/heads/master | 2016-09-06T04:32:12.676341 | 2015-05-21T19:25:30 | 2015-05-21T19:25:30 | 34,571,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,451 | py | import RPi.GPIO as GPIO
import threading
import time
import urllib
import urllib2
import json
LOGIN = 'base1'
PASS = 'base1'
SERVER_URL = 'http://192.168.10.45:5000/base/'
GET_TASKS_URL = SERVER_URL + 'get_tasks/'
TIMER_SEC_INTERVAL = 10 # 5 minutes
PIN_SENSOR = 4
#---------Settings--------------------#
GPIO.setmode... | [
"nediola@yandex.ru"
] | nediola@yandex.ru |
73b05d21e802abdebc78e16ca74f15083963bfc9 | 69fd9d4de4caad16d95d47b2fbae0f48cdde1198 | /venv/Scripts/easy_install-script.py | 6cd1c5e1c100cc2dc868d29e9a52e98ad8ca010c | [] | no_license | seanmcerlean/Pong | 0a315da5d136a1db95454e5cf3f5b4b44b6d1fa3 | f48b2c856cdf059ab4178f208665832d8c151fcf | refs/heads/master | 2020-12-04T07:28:32.761043 | 2020-01-11T22:05:20 | 2020-01-11T22:05:20 | 231,677,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!"C:\Users\CEX Cookstown\PycharmProjects\Pong\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"seanmcerlean82@gmail.com"
] | seanmcerlean82@gmail.com |
c997505a25477db93db4c5f964cc6a9d6580f38d | 82b18029dc62e9f4ef7c81ffb81b8661cb273cff | /1047/1047.py | 0669404fb986aa517a32b3ba4edc323322e5b891 | [] | no_license | patrickDugan04/leetcode | 6f93bd5940630f47bb0108d5574ec839f0cad007 | 8536cf15af3dacd269aaa933a54be0465a1434f5 | refs/heads/master | 2022-11-16T05:31:52.583513 | 2020-07-11T19:27:46 | 2020-07-11T19:27:46 | 274,278,489 | 4 | 0 | null | 2020-07-11T19:27:48 | 2020-06-23T01:19:55 | Python | UTF-8 | Python | false | false | 457 | py | def remove(s):
last = '!'
l = []
edit = False
for i in s:
if len(s) == 0:
return "", False
if i == last:
l.pop()
edit = True
last = "!"
else:
l.append(i)
last = i
return l, edit
class Solution:
def re... | [
"patrickdugan04@gmail.com"
] | patrickdugan04@gmail.com |
bad3a971df51fc48dd7aa6aa0d5316c90a10c2c7 | 2fbffc8221bb5b0e19e1230f8a824f19d9058760 | /anime_downloader/extractors/jwplayer_extractor.py | a354d88d0d400ec94d17951ae4756fe5f9d762bb | [
"MIT"
] | permissive | MyForking/Anime-Downloader-1 | c97c390fca52c60e944ac3af3417c25bec4c4d7d | 5d8b6a1632b1711b46e2f192d083b652272db5c8 | refs/heads/master | 2021-05-21T23:29:10.232334 | 2020-03-30T12:03:29 | 2020-03-30T12:03:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | import re
from extractors.base_extractor import BaseExtractor
class JWPlayerExtractor(BaseExtractor):
def __init__(self, url, session):
super().__init__(url, session)
def extract_sources(self):
page_content = self.extract_page_content()
link_sources = [match.group(1) for match in
... | [
"oshanmen@gmail.com"
] | oshanmen@gmail.com |
738f24c8abe7aa71f9590805a7fd41c835c0d2a1 | a2051c62363a945aae15c61e2853acd9d8e48e5a | /Date.py | 0cc84d96f75656c35914c530a7360e3f828c43db | [] | no_license | hamzaHMZ/projects-StudentManager | 30a51bc953f834c354d35c6d688b7bd38cfe453e | 0717faf86962b3c1b27423039dfe9b8779827292 | refs/heads/master | 2020-09-15T12:17:37.395449 | 2019-11-22T16:21:35 | 2019-11-22T16:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,343 | py | import math
class Date:
"""
Class define a Date Class with Attributes :
- day
- mounth
- year
"""
#-------------------------------------------------------------------------------------------------------------------
# CONSTRUCTOR
def __init__(se... | [
"noreply@github.com"
] | hamzaHMZ.noreply@github.com |
1b45ce3e2345411a4d4a4c9e03fdc71ab41d64a8 | 5294cea8f1e78ed632e6afac361451890f594611 | /kungfu_demo_2.py | 70730246982b2375cdc09211ddafdac460250b91 | [] | no_license | Liu-Eric/qianbo | 51b1aa49a5ebe9baf2095810b772c3536ee0c000 | 360343942f7f92827527d405225e3cbfd9cf1507 | refs/heads/master | 2020-03-10T12:42:53.510905 | 2018-04-14T14:59:49 | 2018-04-14T14:59:49 | 129,384,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | ###kongfu demo
M_TICKER = '000776'
M_EXCHANGE = EXCHANGE.SZE
SOURCE_INDEX = SOURCE.XTP
def initialize(context):
print "running initialize"
context.add_md (source=SOURCE_INDEX)
context.add_td (source=SOURCE_INDEX)
context.subscribe (tickers=[M_TICKER], source=SOURCE_INDEX)
def on_tick(... | [
"noreply@github.com"
] | Liu-Eric.noreply@github.com |
c3a3ea7fd40e49ce5b6ab41fd1770592acaa2ca3 | 96a919dcb1873be7cfd7edb8213907c88a8360fc | /printStairs.py | bce44148be0aadfb23e8ee51dd35b8a3539c384d | [] | no_license | divyak1995/PythonFiles | 2921280571ee6f3946281144385c444aced35e3c | 4e69047f023b8c9bcf474927dfa2b4bb18746528 | refs/heads/master | 2021-04-15T08:17:11.936943 | 2019-10-20T16:33:30 | 2019-10-20T16:33:30 | 126,425,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py |
def printStairPathsUtil(ans,i,n):
if(n<0):
return
if(n==0):
ans[i]=''
print(''.join(ans))
return
ans[i]='1'
printStairPathsUtil(ans,i+1,n-1)
ans[i]='2'
printStairPathsUtil(ans,i+1,n-2)
def printStairPaths(n):
ans=['']*(n+1)
printStairPathsUtil(ans,0,n);
n=7
prin... | [
"noreply@github.com"
] | divyak1995.noreply@github.com |
83f67eb1126eb3952caf34740d621467f28863e0 | 3a19c1b17f553b6d54e5c345d550ca494c3593e1 | /td1-problem22.py | 4130c59d812ac8cfd5ae3a90bfb24b370ea9992d | [] | no_license | mines-nancy-tcss5ac-2018/td1-TomLaville | 95faf73aca9375fe7ba990043e9c371713524eaa | 4967cda4594b7706d8edcdaf99a7945ea90ad8e3 | refs/heads/master | 2020-03-31T00:16:54.328127 | 2018-10-07T19:05:42 | 2018-10-07T19:05:42 | 151,733,523 | 0 | 0 | null | null | null | null | IBM852 | Python | false | false | 876 | py | values = ["\"","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M","N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
def scoreName(nom):
s = 0
for char in nom:
s+= values.index(char)
return s
def solve():
noms = [] ##liste ... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
2d11dd526266ae00028c7873376f028e6a9f53d7 | cd017281f1aa31dabe0420a7299aef3a635bc5c3 | /NatNet_SDK_3.1/Samples/PythonClient/PythonSample.py | 3b0af69ca19df7db9a62bfe36aa815e78a706d96 | [] | no_license | snowymo/Optitrack | e8b93c5cf9b968fd0ae8c23ff0103b5368599a2d | f78d3f2e227186844cf58fb6ca20b5a5d7d2f51a | refs/heads/master | 2020-09-17T08:32:08.463091 | 2019-12-17T04:30:17 | 2019-12-17T04:30:17 | 224,054,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | # Copyright © 2018 Naturalpoint
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"snowymohehe@gmail.com"
] | snowymohehe@gmail.com |
9a1e9f13e277d1cc077d5b494efa3ec829c9a034 | 87fcf9a4fe84fd7eb416f68d7422e03d7a2ae29c | /Python/Aulas/aula4_5.py | 936472897979ec172c6f598662a3565fa1d26afa | [] | no_license | oratusxd/Estudos_IGTI | a0e0f2f1e8c82da2bb2eb8d8c8be5b11e9f0ce82 | 6e7397c5b58770d4069498fbabed40b68be26dda | refs/heads/main | 2023-08-11T01:54:25.393962 | 2021-09-15T10:55:05 | 2021-09-15T10:55:05 | 406,721,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | # Dicitionary
cod_uf = {
21: 'Maranhão',
22: 'Piauí',
23: 'Ceará',
24: 'Rio Grande do Norte',
25: 'Paraíba',
26: 'Pernambuco',
27: 'Alagoas',
28: 'Sergipe',
29: 'Bahia'
}
print(type(cod_uf))
print(cod_uf) # Os dados só são ordenados pós python 3.7- LEMBRE-SE DISSO CARAIO
print(cod_uf.values()) # Pegan... | [
"noreply@github.com"
] | oratusxd.noreply@github.com |
385d81ebf0fe1b88c410c5cc365432458c44979c | cc053c467b7e368087f768bfcbdb4a7e0080ed15 | /2_9.py | 445f0b7b0a73d635127caf94a64c7e7a8b027d64 | [] | no_license | PatrykWalach/umcs-python | 7b1ccba6f60c3f88d83eb063bfac3e52cd65dc0b | 8645575ec6d9c63646170f1a5b697ff6ab46c19a | refs/heads/main | 2023-05-31T07:02:32.127485 | 2021-06-17T08:13:35 | 2021-06-17T08:13:35 | 342,712,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import sys
KEY = 3
def encode(txt):
encoded = ''
for char in txt:
encoded += chr((ord(char) + KEY - 97) % 26 + 97)
return encoded
def decode(txt):
decoded = ""
for char in txt:
decoded += chr((ord(char) - KEY - 97) % 26 + 97)
return decoded
with open(sys.argv[1]) as r:
... | [
"patryk_walach_github@outlook.com"
] | patryk_walach_github@outlook.com |
64e20febf08eb21d8845cf26f76a8397863fb7d1 | f8c8a7adf70c77f9ea04e43c2e5945ebb7d5cfce | /infrastructure/backend/falcon/migrations/0009_auto_20191031_1237.py | bbefa37d8e61a489c0495ef132b424bbac4045fb | [] | no_license | organicmaps/autotest | e0907ec6312831efc1e46983106fc6fb72352418 | 11a584e9449cf0d2f034c3aab925e05c14d8d5e9 | refs/heads/master | 2023-01-14T05:06:35.952465 | 2020-11-23T12:49:47 | 2020-11-23T12:49:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | # Generated by Django 2.2.2 on 2019-10-31 12:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('falcon', '0008_auto_20191024_1304'),
]
operations = [
migrations.CreateModel(
name='MajorReleas... | [
"k.kravchuk@corp.mail.ru"
] | k.kravchuk@corp.mail.ru |
cfd6abc227d4076fd9776f0e0c23c00875b1af4b | c5adc42291e6df5334e4420b70c5c468726c2310 | /tests/rest/xsl_transformation/fixtures/fixtures.py | 7ae525d277ce26e46c1c9ef5d6406da217f162d4 | [
"LicenseRef-scancode-public-domain"
] | permissive | cdcs-repos/core_main_app | a1aa9136040bbec5bc031a164afa428e26a8090b | e08a289ca1cb8b7e1092650cd184ff243fee89c1 | refs/heads/master | 2020-04-22T17:29:19.126625 | 2018-12-05T14:50:32 | 2018-12-06T15:05:16 | 170,542,664 | 0 | 0 | NOASSERTION | 2019-02-13T16:43:01 | 2019-02-13T16:43:01 | null | UTF-8 | Python | false | false | 1,035 | py | """ Fixtures files for XslTransformation
"""
from core_main_app.components.xsl_transformation.models import XslTransformation
from core_main_app.utils.integration_tests.fixture_interface import FixtureInterface
class XslTransformationFixtures(FixtureInterface):
""" Xsl Transformation fixtures
"""
data_1 =... | [
"adrien.catel@nist.gov"
] | adrien.catel@nist.gov |
4ecd5bcc5ea4fe1b7a22fa465a893bde979f27a9 | 1c61d9e996f24e87ae686c2b6a2f01ef052425d1 | /commentapp/models.py | fac77b8e1a73f5660b398fc85472661da265effd | [] | no_license | joft-ware/django_web | ba3be679299fdacba7fc1c49cb5317209e895a59 | 06f750fd4a2bdced2b0d67a198ebafd5d3407637 | refs/heads/master | 2023-02-26T19:52:49.247705 | 2021-02-02T14:12:53 | 2021-02-02T14:12:53 | 325,967,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from articleapp.models import Article
class Comment(models.Model):
article = models.ForeignKey(Article, on_delete=models.SET_NULL, null=True, related_name='comment')
writer = models.ForeignKey(User, on_delete=... | [
"34998542+sky033116@users.noreply.github.com"
] | 34998542+sky033116@users.noreply.github.com |
5388aa37ce371ef5f7f6cb2f18770e3a8791d1bd | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/misc-experiments/_FIREBFIRE/grpc-SwiftPM/tools/run_tests/run_microbenchmark.py | 4b9cd4bc8e85661f9a9cfeefbcc310b227710f5d | [
"MIT",
"Apache-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 9,289 | py | #!/usr/bin/env python
# Copyright 2017 gRPC 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 applicable law o... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
3f6737c4f0d8e3700609d20ff2d4c0379d42c862 | bbfa96b66b384711ddd30add8eb35c89b58a3511 | /viewphoto/tests.py | f6e4c317b63ce44ea6890e11c7d412af2518a802 | [
"MIT"
] | permissive | BenkiKuu/djangoip1 | 3d50325843369cc5403f6f2fe5db6bb7d9eb0507 | 06749a1b754a12ccdf75fc61e1d5d0a08723c203 | refs/heads/master | 2020-03-22T23:34:22.044780 | 2018-07-23T12:21:55 | 2018-07-23T12:21:55 | 140,817,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | from django.test import TestCase
from .models import Category, Location, Image
class CategoryTestClass(TestCase):
# Set up method
def setUp(self):
self.test_category = Category(name='Simba')
self.test_category.save_category()
# Tear down method
def tearDown(self):
Category.obj... | [
"iganeleo@gmail.com"
] | iganeleo@gmail.com |
f56a31aab3627f0716bf703032bffcf508ba3875 | d4a8621af120c30ba8e40a77d0e3b6e9d1e6e7a9 | /hanabi-sv/flask-api/main.py | 89b93b326ce42c4122af73f820ca8b93016169c1 | [] | no_license | mFragaBA/hanabi-game | abcbaec7c0c870d4c892bbae7cc76a04c0f0877a | 2cb68371ba286e93f0cfcc6326f7a40298e880ab | refs/heads/main | 2023-04-19T07:56:45.375263 | 2021-05-10T00:02:42 | 2021-05-10T00:02:42 | 327,093,422 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,822 | py | import time
import uuid
from flask import Flask, render_template, request, jsonify
from flask_cors import CORS, cross_origin
from flask_socketio import SocketIO, join_room, leave_room, emit, send
from model.manager import Manager
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
app.config['CORS_HEADERS'] = '... | [
"fragamartine@gmail.com"
] | fragamartine@gmail.com |
69291f4bb7b082fcb63d8d0a0ab580ce63b63c2a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /GX3pQxvbTJApWYgRJ_22.py | ea51d20994790e177a6d6bdea78c3a0e36e6bd7b | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | """
A Kaprekar Number is a positive integer that is equal to a number formed by
first squaring, then splitting and summing its two lexicographical parts:
* If the quantity of digits of the squared number is even, the left and right parts will have the same length.
* If the quantity of digits of the squared numb... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e0936d5162d1da2069d517ff93eae88bc00260b7 | 5d501571d4a3fcd7711a030e36d61881275bdb9f | /posts/permissions.py | 49a19f8ddca830bacfc16afb1c7205de8a6323a6 | [] | no_license | pre22/BlogApi | f65978049729c1a074bdea792b2785d670bc6d30 | 0f8b42982d40704fc1ded49c67154b21de585ec4 | refs/heads/main | 2023-01-05T16:56:12.006228 | 2020-11-09T18:11:13 | 2020-11-09T18:11:13 | 304,912,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from rest_framework import permissions
class IsAuthorOrReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
# Read-only permission are allowed for any request
if request.method in permissions.SAFE_METHODS:
return True
# Write permissions are... | [
"43546663+pre22@users.noreply.github.com"
] | 43546663+pre22@users.noreply.github.com |
89584a4110f29d4bcd60bac7f3af7e4c47fe3c86 | 2f216ff5348be63a6fb27c57b5d6ce6d3f97fe97 | /csm_workbench/api/menu.py | 3d2a72e454b84790ef46cd6fc2a184c277ff07c3 | [] | no_license | iansoft/csm-workbench | 06e090924fe0e4228d56d473064700cf0c419715 | b57d785f10b415dbcc1b1dfe0a36de439e30e7fe | refs/heads/master | 2021-01-17T20:55:38.487446 | 2016-08-15T11:08:45 | 2016-08-15T11:08:45 | 64,449,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | # _*_ coding: utf-8 _*_
from django.db import connection
from manage_menu.models import Menu
from sqlhelper import dictfetchall
def init_menu(menu_config):
'''start build the menu tree'''
for m in menu_config:
menu = Menu(name=m["name"], url=m["url"], icon=m["icon"], openable=m["openable"])
menu.save()
for sub... | [
"anziloveanzi@hotmail.com"
] | anziloveanzi@hotmail.com |
7acffc09af312c4cf50348b8c11ac1c2f7a9299c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/134/7136/submittedfiles/triangulo.py | ed25ffd7bbcc72ababe8bfa8ba20892f52ef7ec7 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input('Digite o valor de a:')
b = input('Digite o valor de b:')
c = input('Digite o valor de c:')
if a>=b>=c and a<(b+c) :
print ('S')
if (a**2)==((b**2)+(c**2)):
print
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
05947191f7a5ddb2a9ff5e8e0385d1616f07bd04 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_job.py | e9a9f325635bdf8571c3b2144867f1b62d2a343b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,080 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
6b1c8b4c05b328358fdd4c9d0e9303611869d252 | 59516b0429dd5ce5184e5df116b861a29050351c | /bulk-rename-project/rprename/ui/window.py | e27bfd4c476c24c69846102ecdeafdf67d494dda | [] | no_license | Birendrakumarmahto/Hacktoberfest_2021 | 8320b61d2efa9d81354a046d920fdb9062e6e581 | fe6c5d959d5872cd4f75cb2bced99053e6398f62 | refs/heads/main | 2023-08-28T08:55:54.686980 | 2021-10-27T05:36:50 | 2021-10-27T05:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,319 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'window.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | [
"noreply@github.com"
] | Birendrakumarmahto.noreply@github.com |
42c75c056f242e7e057cfeaa7d10706ce2698b87 | 6dc2d18adccd7dd7bcf9695bcdb8c86aa7cb1eb9 | /py/jd_wskey2.py | 928862803bf4a34a6e4e957df3d052d6203abd88 | [] | no_license | livuswang/jd_job | 1c23f26ea58068590147c66929503a68deb95551 | 99894ff50af31b262b2b082fc7b6f6c4f897b6df | refs/heads/master | 2023-08-29T16:56:51.000661 | 2021-11-03T09:47:07 | 2021-11-03T09:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,413 | py | # -*- coding: utf-8 -*
'''
cron: 15 */8 * * * jd_wskey2.py
new Env('wskey转换2');
'''
import socket
import base64
import http.client
import json
import os
import sys
import logging
import time
import urllib.parse
logging.basicConfig(level=logging.INFO, format='%(message)s')
logger = logging.getLogger(__name__)
try:
... | [
"246771270@qq.com"
] | 246771270@qq.com |
568bb6f7583f9b9b17d99e929a115da96db2c90e | cb4d09c92911bc9980f1861946e0e7be52e47521 | /flujos_CNA2/phits/grafica_espectros.py | a9fac89f13b05ef9c953b0bf76fc7b5009b2de89 | [] | no_license | pbellino/Simulaciones_neutrinos | f226793831c17946f4bfd73277e47f4630b2210f | 689f34d07bc3ac7463e98e40da38d9ac39cbb527 | refs/heads/master | 2023-04-19T00:28:28.803575 | 2021-05-05T19:42:03 | 2021-05-05T19:42:03 | 260,090,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | #!/usr/bin/env python3
"""
Script para leer los resultados de cada corrida de PHITS
TODO
"""
import matplotlib.pyplot as plt
import seaborn as sns
import sys
sys.path.append('/home/pablo/CinePy/')
from modules.simulacion_modules import lee_espectro_phits_eng
sns.set()
if __name__ == '__main__':
archivo = 'cros... | [
"pbellino@gmail.com"
] | pbellino@gmail.com |
e787af13720d8fabc313f76939989fe35db824c6 | c1d04e439c230a15293d4ce41bc6c9e8a4026df8 | /programmers/더 맵게.py | b6a29aa8cde9c43cb80ae173e3fd9ec0770032e4 | [] | no_license | ieesejin/algorithm_study | fd2cccfc367ec80348f2412a8ba19c6d6a9bd65e | 8f083202818b3ca79f94f25eef221c97f9cb361b | refs/heads/main | 2023-06-07T04:33:42.920673 | 2021-06-29T06:13:52 | 2021-06-29T06:13:52 | 302,306,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # https://programmers.co.kr/learn/courses/30/lessons/42626
import heapq
def solution(scoville, K):
answer = 0
heapq.heapify(scoville) # heapq
while True:
if len(scoville) == 1 or scoville[0] >= K: # loop end condition
break
heapq.heappush(scoville, heapq.heappop(scoville) + ... | [
"ieesejin@naver.com"
] | ieesejin@naver.com |
72ea9d987b690258eda963109c66f6be43e0316e | ef300495520be13d850cb97dc5cc904677753a86 | /kadai4-1.py | 16f2fcc067696799c1218c134b226314bb2b4db8 | [] | no_license | ShinNaruse/python | 042dc0d2a8e473151c74189c48758dd18b933229 | 86b5e6d5b6cd6732b762fce54819242a3da0899f | refs/heads/master | 2020-05-15T21:22:49.996109 | 2015-06-09T06:31:48 | 2015-06-09T06:31:48 | 34,678,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 18 15:21:41 2015
@author: 12T5062G
"""
import math
try:
# see if Swampy is installed as a package
from swampy.TurtleWorld import *
except ImportError:
# otherwise see if the modules are on the PYTHONPATH
from TurtleWorld import *
def square(t, length... | [
"shin.magnet@gmail.com"
] | shin.magnet@gmail.com |
413cf825f10567f1b07c92410b7c8a1a4cd20504 | da7a7f94e06c366052277baae8470f3311c48aea | /mangadex_openapi/models/refresh_token.py | 67262d2be4816ac0b616db2d25ff47959d7105b3 | [
"MIT"
] | permissive | ongyx/mangadex-depreciated | b94c2fd7911088906ee60a431c25e648d82f7b50 | 56a244cf90d884b2589ab2466b44442409a296d7 | refs/heads/master | 2023-05-28T18:25:35.568623 | 2021-06-03T11:09:12 | 2021-06-03T11:09:12 | 367,671,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,245 | py | # coding: utf-8
"""
MangaDex API
MangaDex is an ad-free manga reader offering high-quality images! This document details our API as it is right now. It is in no way a promise to never change it, although we will endeavour to publicly notify any major change. # Authentication You can login with the `/auth/l... | [
"ongyongxin2020+github@gmail.com"
] | ongyongxin2020+github@gmail.com |
3037ffdf435b258f6ba29a033e6cd4421d3767c9 | 41ab40cc1beb75662b4c8c1427652618479d1a39 | /auth/users/views.py | 17cbb87d5624f03fade89de0c28706c0d2ad75ff | [] | no_license | foothub-archive/auth-service | aa3f9b9b63c2198183c8f1110a46bc8f68952cf3 | ce100f86853d2547f64a2f8fbf1634001571f603 | refs/heads/master | 2021-10-08T06:30:33.973641 | 2018-12-09T12:46:44 | 2018-12-09T12:46:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from django.http import Http404
from rest_framework import mixins, viewsets, response, status, decorators, permissions
from rest_framework_jwt.serializers import VerifyJSONWebTokenSerializer
from rest_framework.response import Response
from .models import User
from .serializers import UserSerializer, ConfirmEmailSeria... | [
"acci.valverde@gmail.com"
] | acci.valverde@gmail.com |
eca8c315c2d5c04d9313dad5a84d86c2fdac32b7 | b3632873decefef0f11c6251a16c1efb0f65002e | /Sky_Test.py | fd55ad88f5284f065e1e4f5aa9bc4100252cf7a0 | [] | no_license | JenniferJehan/Codility | 422cbe7532c2e11fe545c3dd656525674d5a0d4d | cc2660577634ce3292e939c5fe6f551d921a98b1 | refs/heads/master | 2023-02-18T13:27:53.317075 | 2021-01-14T15:28:43 | 2021-01-14T15:28:43 | 328,484,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | # msg_t ='b'
# for x in range(1,15000):
# msg_t += 'a'
# for x in range(1,15000):
# msg_t += 'b'
def solution1(msg):
temp = [[],[]]
switch = True
for x in msg:
if x == 'b':
switch = False
if switch == True:
temp[0].append(x)
if switch ==... | [
"noreply@github.com"
] | JenniferJehan.noreply@github.com |
e11ca1e33be1580d378d7f896cd2c0c689e25163 | 16dd3cb271756e1b2bdb737ef8e5ed0a1a0f8f9b | /comb3.py | 4793350abcb3d4d55cd2b6dbc56c3fa531308283 | [] | no_license | frog9800/astropy | c222caff661d3269c763991818d8d7682ffb06c4 | b85328304e6cf57d21072938aecdc7120499c36b | refs/heads/main | 2023-07-12T09:25:51.099265 | 2021-08-19T22:25:47 | 2021-08-19T22:25:47 | 373,980,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from pathlib import Path
import os
from glob import glob
import shutil
from astropy.nddata import CCDData
from astropy.stats import mad_std
import ccdproc as ccdp
import matplotlib.pyplot as plt
import numpy as np
Sci_path1 = Path('Cal_science1')
Sci_path2 = Path('Cal_science2')
sci1_images = ccdp.ImageFileCollectio... | [
"mont.builder@gmail.com"
] | mont.builder@gmail.com |
a56febed6885c0b35f0a30ddce4934f5b6836066 | 53396d12d606bebea71c149aed0150af7b17b6f5 | /array/medium/221-maximal-square-1.py | b3885e1f68c33ae2c1dc19434984e2ec1137c8ff | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """
dp
https://leetcode-cn.com/problems/maximal-square/solution/zui-da-zheng-fang-xing-by-leetcode-solution/
"""
from typing import List
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
if len(matrix) == 0 or len(matrix[0]) == 0:
return 0
maxSide = 0
... | [
"939401399@qq.com"
] | 939401399@qq.com |
209982e1f098eb52f03455f8eccda9e4ea4c2c90 | 9da5f5ac2bba27b4fabc16d9736bcd88d51cea73 | /manage.py | a9b7da691a39065e35c701ab42171a275175f4e2 | [] | no_license | jengrace/personal-website | c7f30437e6d904474f8bf4ffc76180aa063baf21 | 42b0a1932f6256a59d6a10787cc268bc67400596 | refs/heads/master | 2021-01-20T14:17:08.143362 | 2018-09-18T02:29:46 | 2018-09-18T02:29:46 | 90,584,659 | 1 | 0 | null | 2018-09-18T02:29:47 | 2017-05-08T03:57:22 | Python | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jengrace.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jenniferanngrace@gmail.com"
] | jenniferanngrace@gmail.com |
0bb34c6d9971caca886ebad79a06d7b20f44f3bd | 52176e8b5c67a557c6b46dccb8237f4703641496 | /086.py | cfd63a551400895eba967eb40f80998f9219a348 | [] | no_license | nzkim1234/Codeup_Python | adeca6cd11e38dddcd8ebb5c6792a5040200d6ae | a9c9e612b2cc5cd026c76e8ed3fee0274cec4017 | refs/heads/main | 2023-05-11T07:28:16.239087 | 2021-06-01T14:43:46 | 2021-06-01T14:43:46 | 372,215,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | a = int(input())
s = 0
c = 1
while True:
s += c
c += 1
if s >= a:
break
print(s)
| [
"nzkim1234@naver.com"
] | nzkim1234@naver.com |
1aa9b4da73812353b32163c00c47618900b6ec0d | 8e1e8693be65554cc5d7cf00ba253d3f4c9c5973 | /src/09_Video_Data.py | 9ba98feb1f063d096e1ead0db020f6e875a03c6e | [] | no_license | ChengBinJin/Hvass-Laboratory-Tensorflow | 72633f0c6c1573b4474dbacc5c9d5c6a1799e22d | 1df7b05bc742d19b67f96f05a1f5ef438215d7f4 | refs/heads/master | 2020-04-21T23:03:43.076990 | 2019-08-16T06:30:44 | 2019-08-16T06:30:44 | 169,933,716 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,066 | py | # Imports
import os
import time
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from matplotlib.image import imread
from datetime import timedelta
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
from sklearn.metrics import confusion_matrix
# Functions and ... | [
"sbkim0407@gmail.com"
] | sbkim0407@gmail.com |
06ab02e9ba259a23fa20f5bd9886c14512db016d | 247f0bf1ddeba4a63df5060cfff81a61e7cbea78 | /HolaWorld-vs2.py | cb98aa3274ebeae035d06db7ccc8721cd700671a | [] | no_license | RubenDarioGarcia2020/MyPortfolio | 774fff09747a84cdba212ac16d359456c3ea4afa | 98762d5bf713c0b41e7e014f0d0382244f54ccd5 | refs/heads/master | 2023-02-25T03:25:38.351813 | 2021-02-03T22:42:50 | 2021-02-03T22:42:50 | 334,003,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | # programa que saluda
print("Hola World")
| [
"rubendariogarcia@hotmail.com"
] | rubendariogarcia@hotmail.com |
c43561fd7c7e6f341fda4b3e1171e710c080560f | 492f3793f1e67219e3fbf1365e9ed50945383de5 | /compilacion_fractals/Sierpinski/Sierpinski_rcoloredStar.py | ac476b277b9aeeb9931d260de137548a3d235683 | [] | no_license | iris9112/PyConCharlasFractals | 63008d1656b11e490d69dfdb08aae3a9914fa73a | 210085d4c196572308630c423fa2c54892578b1e | refs/heads/master | 2022-01-09T20:52:14.119337 | 2019-05-22T18:58:36 | 2019-05-22T18:58:36 | 118,304,365 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import numpy as np
import matplotlib.pylab as plt
import random
def gasket(pa, pb, pc, level):
x=(random.random(),random.random(),random.random())
if level == 0:
plt.fill([pa[0], pb[0], pc[0]], [pa[1], pb[1], pc[1]], color=x,alpha=0.9)
plt.hold(True)
else:
gasket(pa, (pa + pb) / 2.... | [
"iris9112@gmail.com"
] | iris9112@gmail.com |
0880e3a123ede3bcf2211f08a1ccf3132ed4b202 | 27f7ab32a865f4ae6b62d0b2a6a890352fea0cba | /ifmo_certs/courses/x0009_02/__init__.py | c0c67542929f42b7691098b602532d6a2ddb5444 | [] | no_license | defance/edx-ifmo-mod | 38b84381814b103e5cbf07419b1e1e142bc61a70 | 1b86a85a32c06322ab429d323f2ff2be84d0a1cc | refs/heads/master | 2021-01-22T20:59:42.575809 | 2015-10-28T12:57:43 | 2015-10-28T12:57:43 | 21,855,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | __author__ = 'd.ivanyushin'
from .x0009_02 import X0009_02
| [
"defance@gmail.com"
] | defance@gmail.com |
d589934dccb939bcc3b2ab9eaf05cda48d9b649c | 5b81eeb25862473d7bef6b4730715302b4a1a2a9 | /qchem.py.2014-09-17 | ff14107eb8020e49129ea0017e43b6ac15446ee4 | [] | no_license | babyfingers/python_scripts | 72f39f1af445344433b451c6a3ddaf10678834b0 | b26d141087d6157a79085f879427705b968e4a24 | refs/heads/master | 2016-09-05T09:22:31.199689 | 2015-03-23T17:53:51 | 2015-03-23T17:53:51 | 29,411,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,449 | #!/usr/local/bin/python
#Q-Chem output file anaylsis module
import string
import os.path
import math
import time
import sys
import re
import numpy as np
import numpy.linalg as la
elementMasses = {"H":1, "C":12, "N":14, "O":16, "F":19, "Li":6, "S":32 }
geometryStart_re = re.compile("Standard Nuclear Orientation")
ge... | [
"cinnabarbarian@gmail.com"
] | cinnabarbarian@gmail.com | |
dedad2df78df530f7ef6b3776edaebe6d2267116 | 7dd7900c239cca7a68f2d07963a75fef0eed08f3 | /service/utils.py | 55b5e564ea7a868937ac15bad313c1fcf67deb40 | [] | no_license | jadeneu/dnd-5th-2-backend | 54dd9c72c8ae0ac2a28990b7b71c1cad1f11fd50 | 617fe72c112fdc8b3ae5d31b311b683b4bd7d8ba | refs/heads/main | 2023-08-15T02:35:31.169023 | 2021-09-20T12:24:52 | 2021-09-20T12:24:52 | 392,575,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | def to_camel(snake_string):
components = snake_string.split("_")
return components[0] + "".join(x.title() for x in components[1:])
# snake_case로 키가 구성된 dictionary를 camelCase로 변환
def to_camel_dict(snake_dict):
camel_dict = {}
for snake_key, value in snake_dict.items():
if snake_key == "id":
... | [
"jhiya7420@naver.com"
] | jhiya7420@naver.com |
33dc808475234978f454c5997f1ea1bd3996a31e | 05ace4491b97699333057e35f7e9225864f7130d | /dygraphsex/urls.py | 689201cc230eb577bc30387699482d5ada5e4179 | [] | no_license | scott858/dajs | b6878123748f563550fa2f5e59b1d5dcd4fdcaa5 | bc6b23d0e24be038e278490e34422d69b06d6543 | refs/heads/master | 2021-01-01T16:12:43.477340 | 2015-09-18T01:04:55 | 2015-09-18T01:04:55 | 41,645,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns(
'',
url(r'^$', views.example_app_view, name='main'),
url(r'^plot/$', views.plot_view, name='plot'),
)
| [
"scott.lee@nucleusscientific.com"
] | scott.lee@nucleusscientific.com |
8de4c818ca766df5a345ae0b90065e5d770de5b1 | bc4656f6f74911f114626538294e0e275105c703 | /tests/dat/test_dar_packet.py | b02d91483b4179221c025a2cbc331f1950d03916 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AdrianCano-01/spsdk | d8679ae58fc67c6369bceff4b31db658d9ad6bc4 | 4a31fb091f95fb035bc66241ee4e02dabb580072 | refs/heads/master | 2023-03-15T00:37:07.419191 | 2021-03-05T16:33:50 | 2021-03-05T16:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2020 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
"""Tests with Debug Authentication Packet (DAR) Packet."""
import os
import pytest
import yaml
from spsdk.dat.dar_packet import DebugAuthenticateResponse
from spsdk.dat import DebugAuthenticationChallenge a... | [
"maria.wisniewska@nxp.com"
] | maria.wisniewska@nxp.com |
08482fe6214b2752de4f244241d1bee84840b9a8 | 47243c719bc929eef1475f0f70752667b9455675 | /bungeni.main/branches/oauth/bungeni/alchemist/type_info.py | 2d6b1645d913fc2122f0e3dbcb9f1f7071449eff | [] | no_license | malangalanga/bungeni-portal | bbf72ce6d69415b11287a8796b81d4eb6520f03a | 5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d | refs/heads/master | 2021-01-19T15:31:42.943315 | 2014-11-18T09:03:00 | 2014-11-18T09:03:00 | 32,453,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,806 | py | # Bungeni Parliamentary Information System - http://www.bungeni.org/
# Copyright (C) 2010 - Africa i-Parliaments - http://www.parliaments.info/
# Licensed under GNU GPL v2 - http://www.gnu.org/licenses/gpl-2.0.txt
"""Aggregation of information about loaded domain types.
No public methods here -- all available methods... | [
"mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc"
] | mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc |
0fa3f991c3598622005e6926a494dab0686843bc | 2d612cc8a99cd3ba8eae50ee29eec8f44328f7e4 | /Higgs/test/wh/ControlEM.py | 7be5ccb6bfbba882c1131392c7add2c044b42c1b | [] | no_license | sshalhou/FinalStateAnalysis | 4046b6100e8103545cdb5ddcf26655196d324654 | 515b14dbeab0f340fc0487ec02a0643243b040b5 | refs/heads/master | 2021-01-18T05:41:09.721959 | 2012-12-03T16:51:05 | 2012-12-03T16:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,890 | py | '''
Make control plots of Z and ttbar -> emu events.
Author: Evan K. Friis, UW
'''
import EMuTree
from FinalStateAnalysis.PlotTools.MegaBase import MegaBase
import glob
import os
import FinalStateAnalysis.TagAndProbe.MuonPOGCorrections as MuonPOGCorrections
import FinalStateAnalysis.TagAndProbe.H2TauCorrections as ... | [
"sshalhou@login06.hep.wisc.edu"
] | sshalhou@login06.hep.wisc.edu |
c353b5719bfee82632873f477d46362ccca45f30 | 97ee2a5a12ee79f1515142b8c1c8e6ccc26533bc | /BERT/run_ner.py | e280037ad8a320864738667673123913457d1e08 | [] | no_license | ksemiya/NER_in_Tatar | b48aa47499c4ef07db01d1f486dcf58db4365564 | efc4cdf21375b5ae1033dc4a95cc8893cbf76739 | refs/heads/master | 2022-08-02T00:06:20.976131 | 2020-06-02T08:15:47 | 2020-06-02T08:15:47 | 255,381,910 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,402 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"ksemiya@gmail.com"
] | ksemiya@gmail.com |
0afc3b25c1ddebdc98a6af689043f6e48eb05e1c | 138cf8bd523d7edca44e8aa95814a1d379b6e8f8 | /tensorlab/TensorLayerApp/Logger.py | 80356ebc76606258ee5b58cf0f28b09e96a8f800 | [] | no_license | fangde/TensorLab | 8dd37158ae1f92312a2fb387ef9d5890f401488f | 653a6a50308dd7cde3cb0296880ffbce2e2b0ed0 | refs/heads/master | 2021-01-21T14:11:38.587490 | 2018-07-14T09:55:18 | 2018-07-14T09:55:18 | 95,427,818 | 5 | 1 | null | 2018-07-14T08:55:43 | 2017-06-26T08:57:08 | Python | UTF-8 | Python | false | false | 1,550 | py | import time
import numpy as np
from datetime import datetime
class DBLogger:
def __init__(self,db,model):
self.db=db
self.model=model
def on_train_begin(self,logs={}):
print "start"
def on_train_end(self,logs={}):
print "end"
def on_epoch_begin(s... | [
"fangde.liu@imperial.ac.uk"
] | fangde.liu@imperial.ac.uk |
b5648880feec596f19a19b38c11e90d6421b3903 | 34a8e6f0544a1ae9c41a8976db3107acfe79da03 | /docs/conf.py | 66ccd2ba33d51e22a5145dc3b2a6db6b6b241ada | [
"BSD-3-Clause"
] | permissive | SUNET/eduid-signup | d485eae686e6c502bd734178e2f777c3cf9ea819 | a4bde7c6f442fa3172d0add66239588d620f2a6d | refs/heads/master | 2023-08-29T08:38:43.343814 | 2018-11-19T13:06:59 | 2018-11-19T13:06:59 | 9,193,012 | 1 | 0 | BSD-3-Clause | 2018-03-14T12:44:02 | 2013-04-03T11:23:03 | Python | UTF-8 | Python | false | false | 7,773 | py | # -*- coding: utf-8 -*-
#
# eduID Sign Up documentation build configuration file, created by
# sphinx-quickstart on Mon May 13 19:21:39 2013.
#
# 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.
#... | [
"lorenzo.gil.sanchez@gmail.com"
] | lorenzo.gil.sanchez@gmail.com |
2f7bbb0f809eb81529c08b49d694a4feb459b02f | 71063d96a5eb84480d3ce4bb7e77d87d0e0ec172 | /coursera/five weak/More than the previous.py | 2b37efa7f3cf54461d6a78015730ca9d41999c9a | [] | no_license | KonstantinGanzew/All_project | b1726ff8d74ac681529ff67240ff827942df4aa0 | 907e8084ed0bcfc13ad2f3720ed2fe8afca210a1 | refs/heads/master | 2020-04-02T10:22:50.699863 | 2018-10-23T14:00:56 | 2018-10-23T14:00:56 | 154,336,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | a = list(map(int, input().split()))
m = None
c = 0
for i in a:
if c == 0:
m = i
c += 1
else:
if i > m:
print(i, end=' ')
m = i
| [
"kanzew@gmail.com"
] | kanzew@gmail.com |
70ba21f2461cde284f5558daadde2b7a79b1ce76 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/442.py | 0e9c48707a834d8dbb3976c1a62d17af127fe5a1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 341 | py | """
wordcount
"""
def word_count(text):
"""
Return a dictionary of words and their
word counds
:param text:
:return:
"""
words = {}
text = ' '.join(text.split())
for word in text.split(" "):
if word in words:
words[word] += 1
else:
words[word] ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d07b700b026672f3fe65d2438f6c08a22556f2df | 34474048ec5c4850623cf0fea993b43de76fada4 | /Tests/unittest/code_gen/tac_o1/local_chars.tac | e00797894280d102fd4d8b3938dc5cdb5c77ad11 | [] | no_license | imsure/C-- | 69a80e152936e31b14319ab16c2317d2cacc9165 | 9991e7135d6ebc8f6f08f46f37b82bfe353ec17f | refs/heads/master | 2021-01-13T02:04:07.295401 | 2015-05-01T01:26:07 | 2015-05-01T01:26:07 | 30,732,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | tac | main:
Enter main 16
x = 'A'
y = 'B'
z = 'C'
Param x
Call print_int 1
_tstr0 = "\n"
Param _tstr0
Call print_string 1
Param y
Call print_int 1
_tstr1 = "\n"
Param _tstr1
Call print_string 1
Param z
Call print_int 1
_tstr2 = "\n"
Param _tstr2
Call print_string 1
Return
| [
"imsure95@gmail.com"
] | imsure95@gmail.com |
1e8d16b806a47a308758f7e5980e7257ffc52afe | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC645.py | 199b710d2450fe19fc854e94ce08adbfb1a3b352 | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | class Solution(object):
def findErrorNums(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
xor = xor0 = xor1 = 0
for num in range(1, len(nums) + 1):
xor ^= num
for num in nums:
xor ^= num
rightmost_bit = xor & -xo... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
ef1d77c3ead5c963da4bda0a6758391542a24536 | 234b581de16f0eebfe3db5281d2920d50e3a3631 | /src/com/dtmilano/android/adb/dumpsys.py | efd9d4962f5cb6e26555547c6475bd84fb789c06 | [
"Apache-2.0"
] | permissive | jili0503/AndroidViewClient | 3d453884d68b508fe4d5d28f5bcea0db0cad6062 | c1c38e6fa53dc09697eadb9c1670d6bef8587ab6 | refs/heads/master | 2020-03-06T21:07:33.744022 | 2018-03-22T04:15:50 | 2018-03-22T04:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | '''
Copyright (C) 2012-2018 Diego Torres Milano
Created on Dec 1, 2012
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
9b9d8ecb3b375db4238a52198b83b9b2b29842ba | bb2cd2a95bb38b90f766bb2cb25aba22fb10d768 | /model/load.py | 47277178ff1a1ff806702d6369f931abb4825356 | [] | no_license | ankitpyc/Mnist_Demo | cd24037ecac885354da861d21d74fdc71885a854 | 2c740ec718bdeb230cac7da06c02e82536c67273 | refs/heads/master | 2021-04-15T10:11:30.184984 | 2018-03-25T12:04:21 | 2018-03-25T12:04:21 | 126,586,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | import numpy as np
import keras.models
from scipy.misc import imread, imresize,imshow
import tensorflow as tf
from keras.models import Sequential
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D,MaxPool2D
def init():
model = Sequent... | [
"ankitmishra471@gmail.com"
] | ankitmishra471@gmail.com |
ccc1c3f4e2881c6c638c974536f2f40f775bb7b0 | 0397b4acdda07037ee9fe74e9f08797c0671c4c6 | /Web/django/trydjango/urls.py | 636561a8243cb75d5fcfec8e1ae7c80e14515c5b | [] | no_license | kyh510/GitStore | 5bce489a5d23e1dc17c16b6ee5223a22502f8909 | ebc93ef86acf17036f094ea359f7b08458d8972a | refs/heads/master | 2020-09-11T12:29:15.871578 | 2019-11-16T07:53:15 | 2019-11-16T07:53:15 | 222,064,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """trydjango 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... | [
"phantom1992510@outlook.com"
] | phantom1992510@outlook.com |
dd2ea773f08db646baadd375112975c2470cc30d | 3f005770b956727a3c27a892dacd7822b9c79a3f | /subpixel.py | 195ff331e3ecd3c37b14b26dc7351b369655decb | [
"MIT"
] | permissive | SpyroRock/DenseNet | d27de53090467166d391971ae60da8d1ffd81a74 | f8da8286ea6193425c154e06749881dd16aea112 | refs/heads/master | 2023-02-06T13:45:06.711275 | 2020-12-28T11:31:43 | 2020-12-28T11:31:43 | 323,293,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | from __future__ import absolute_import
from keras import backend as K
from keras.engine import Layer
import keras.backend as K
from keras.utils.generic_utils import get_custom_objects
#from keras.utils.conv_utils import normalize_data_format
if K.backend() == 'theano':
import theano_backend as K_BACKEND
else:
... | [
"smenounou@gmail.com"
] | smenounou@gmail.com |
6aa71bf0536294c3ee96ed898cdb2a52c138d271 | 2c170db1d4ffe9b51fc02cf736b5cc2e5b7a3bbd | /BFS.py | 32956734cf85d091236dc07b5ef9d7f4a614e31d | [] | no_license | MartinSuGJ/stanford_mse235_project | c68180cad2dc0fc4aed7a27341c662289cfb9eba | 04449226d838185879c41993fa3e536dc97112a6 | refs/heads/master | 2021-01-25T08:07:16.428032 | 2017-06-08T06:55:51 | 2017-06-08T06:55:51 | 93,717,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,676 | py | # I am new new
import networkx as nx
import numpy as np
from PageRank import PageRank
from HITS import HITS
import pickle
import argparse
"""
Function
"""
## Use BFS to simulate the information diffusion
# def info_diff(ng, attr, start, topic, topic_index, time_limit):
# for node in ng.node:
# ng.node[node... | [
"guangjunsu.intopt@gmail.com"
] | guangjunsu.intopt@gmail.com |
f3d22ffcba2a8664b347054516014ca866b87ac9 | 8caab96ba141c12a37ed5f15335916467086cbba | /03-structural/example-01.py | 91c64efe3e9ca8e8db9e708886f8755620f2cc0f | [] | no_license | ademilua/design-pattern | 0b441873e680ae659ec49733236f0aab61dda8af | 369a50c68c5c950f28da8b7bf2ad3c2c7b061303 | refs/heads/master | 2023-06-12T20:03:53.188484 | 2021-07-11T05:44:50 | 2021-07-11T05:44:50 | 384,869,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | class Container:
def __init__(self, elem):
self.elements = list(range(elem))
def __repr__(self):
return f"<Container ({len(self.elements)} elem)>"
class DictAdapter:
def __init__(self, d):
self.d = d
def __repr__(self):
return f"<Container ({len(self.d)} elem)>"
con... | [
"tolulope@iamquix.com"
] | tolulope@iamquix.com |
dd1cd2922300bb40c269662abce59a85fd60352d | 7ab4b2906e6be949980450a824cbe2f50fdc7cd0 | /proj_euler_q009.py | abf83c8c3d7f82782a88415d923a95c3e584bec6 | [] | no_license | kumar-akshay324/projectEuler | 515fa71d7fc5169116165a40e86ed8c22b4719c1 | 8ec0f33853deb38aa1d1df545ba292356d8aeedb | refs/heads/master | 2021-09-04T22:34:51.464455 | 2018-01-22T19:22:14 | 2018-01-22T19:22:14 | 113,641,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a2 + b2 = c2
# For example, 32 + 42 = 9 + 16 = 25 = 52.
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
import math
flag = 0
for i in range(1,1001):
for j in range(1,1001):
if ((i... | [
"2013uee1340@mnit.ac.in"
] | 2013uee1340@mnit.ac.in |
c73da5137cb1487bda254e4a2f9894d317195295 | 941cd2577e0d6675cd403196b8412ffc31df5b3e | /tango_with_django_project/urls.py | 5c007f103a2c31204d46d83ad7a5b2d70d1fa95d | [] | no_license | paulbeka/tango_with_django_project | 706bd6435443e81e55e3cadf3c1fec83371a5edf | 144ed5e442080653d2fd9eaf7b0f0202a4972529 | refs/heads/main | 2023-03-09T11:17:40.684449 | 2021-02-12T16:09:45 | 2021-02-12T16:09:45 | 329,685,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """tango_with_django_project 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='... | [
"2517073B@student.gla.ac.uk"
] | 2517073B@student.gla.ac.uk |
b16e3e2cc0d11fee303d0c099065faad2ac767bd | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/wtforms/ext/django/templatetags/wtforms.py | 33a60e3feffb231cb81bf5a196b76d008f86ba12 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,878 | py | """
Template tags for easy WTForms access in Django templates.
"""
from __future__ import unicode_literals
import re
from django import template
from django.conf import settings
from django.template import Variable
from ....compat import iteritems
register = template.Library()
class FormFieldNode(template.Node):
... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
ef71adfbc3f8955223ff82c086481fd3efbcd86e | 5b35db6d2ac65b1a1c14de97a34643e7c18bde54 | /2-Cloud-Data-Warehouse/create_cluster.py | 1ade57c9736a9101c60b7ab830801f0880b036ba | [] | no_license | jaja-git/Data-Engineer-Nanodegree | 2270a090e01fe6e706c248ae1d1629d6a676c8ba | 50b23b97ace7effd4e21ac343b5aaea8989a0290 | refs/heads/main | 2023-03-22T13:44:31.190259 | 2021-03-11T16:12:18 | 2021-03-11T16:12:18 | 310,591,741 | 0 | 0 | null | 2021-03-11T16:12:19 | 2020-11-06T12:29:47 | Jupyter Notebook | UTF-8 | Python | false | false | 3,522 | py | import pandas as pd
import boto3
import json
import configparser
from botocore.exceptions import ClientError
config = configparser.ConfigParser()
config.read_file(open('dwh.cfg'))
KEY = config.get('AWS','KEY')
SECRET = config.get('AWS','SECRET')
DWH_CLUSTER_TYPE = config.get(... | [
"alexandre@flowkey.com"
] | alexandre@flowkey.com |
57746eaf977b4c965978bd43bb6f5770a14581cf | 2b6b961b87af8a23d8d44bfd9b54fe0005d4aec7 | /MyThoughts/asgi.py | 2623fb77c01f5f8a9169880499633735af847c65 | [] | no_license | siddharthgarewal/My-Thoughts | ca510989ad8378ea459019f142d630e31e8db2d4 | 61edc4a658c15730e6dff096933d925b616e7b7b | refs/heads/main | 2023-04-03T10:49:00.385177 | 2021-04-05T09:28:22 | 2021-04-05T09:28:22 | 353,654,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for MyThoughts project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"sidgarewal@gmail.com"
] | sidgarewal@gmail.com |
e4a79e725bd693151918bbca85a956a846898fb0 | 5a703f8727773c700ca13b69a78542bef8036c63 | /services/users/project/tests/test_user_model.py | efe9052e510198a0f44c224223312396c240959d | [] | no_license | dingran/testdriven-app | 0163c2319b14981a6e0a5dff8ef2b28395baa185 | d0f2243033aa843e059327ea263680e307a4e846 | refs/heads/master | 2023-07-21T04:56:01.914787 | 2023-05-10T17:35:17 | 2023-05-10T17:35:17 | 184,500,902 | 0 | 0 | null | 2023-07-10T23:12:09 | 2019-05-02T00:45:12 | Python | UTF-8 | Python | false | false | 1,957 | py | import unittest
from sqlalchemy.exc import IntegrityError
from project.api.models import User
from project.tests.base import BaseTestCase
from project.tests.utils import add_user
PASSWORD = 'greaterthaneight'
class TestUserModel(BaseTestCase):
def test_add_user(self):
user = add_user('justatest', 'tes... | [
"dingran.nju@gmail.com"
] | dingran.nju@gmail.com |
0f592cfca0517ddff0e6374801796d01f581dd0c | a9da9fe1c00fab99adb792677f6f44a536afdc18 | /schema_processor/Nutrition.py | b55ee08e465baaf554e8f3e3fdb6df515e0afcaf | [] | no_license | salimarizi/json-ld-generator-backend | 3a31f642c8697089092b226c6f60f23d1006b845 | d081cad3699e2c4b8dba1c7396a801a7f82b17f7 | refs/heads/master | 2023-05-02T19:28:22.842859 | 2021-05-26T22:22:44 | 2021-05-26T22:22:44 | 371,182,077 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from schema.Nutrition import NutritionSchema
from calamus.schema import INCLUDE
class nutritionLD:
def main(self, request):
return NutritionSchema.schema().load({
"name": request.form['nutrition_name'],
"calories": request.form['nutrition_calories']
}, unknown = INCLUDE).dum... | [
"salim9asmp1pdl@gmail.com"
] | salim9asmp1pdl@gmail.com |
6d306b1850726a9a38b7a78a8b1bdffe4758ef5c | b6dd7ffc68957f381ae27b9e2a324f555793f238 | /part-1-basics/ch_10/write_message.py | ac1958c6899a46aaa6a517519f733af594560396 | [] | no_license | lopezjronald/Python-Crash-Course | 0a1100a1888238053f4865f8987cbc023d159d38 | b6add3fc70b0d09b4b5dab9b06a02be2ae94b9da | refs/heads/master | 2022-12-26T21:31:37.286430 | 2020-09-30T04:12:22 | 2020-09-30T04:12:22 | 298,722,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | filename = 'guest.txt'
# with open(filename, 'w') as file_object:
# file_object.write("Guest List\n")
# with open(filename, 'a') as file_object:
# response = True
# while response:
# file_object.write(input("Please enter the name of your guest: "))
# file_object.write('\n')
# conti... | [
"lopez.j.ronald@gmail.com"
] | lopez.j.ronald@gmail.com |
95a5a9dc8ab7b85722006edd7818dc37aeb68b01 | 63c77b70169556a4e60923f892aa5bb0ca7e7405 | /apps/comments/views.py | 68e758e6450c068b6c9b6eb417d46cb89a01cf50 | [] | no_license | r-knight/message_board | bdd9a18542558254b7f6b49b99b2349a80295172 | 73bff59b9d7032861ffe3a5a6a870c0acce3303e | refs/heads/master | 2020-03-19T00:47:50.688149 | 2018-05-30T23:24:30 | 2018-05-30T23:24:30 | 135,502,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | from django.shortcuts import render, redirect, HttpResponse
from django.contrib import messages
from .models import *
from ..users.models import *
from ..games.models import *
def edit_comment(request, comment_id):
response = 'placeholder for edit_comment for comment ' + str(comment_id)
messages.error(request, "... | [
"ryan.thomas.knight@gmail.com"
] | ryan.thomas.knight@gmail.com |
bf6676dff14bccac66e8ddc3e32677a61cb78f25 | c9543adad3c2f83cfa12e8f6b0078f5d34365a66 | /scoreboard.py | e1771c36eba1b553b8f5ec3e1a7661e14fb1a4d7 | [] | no_license | broten15/alien-game | aab6a94c3da5b78220340f0d9d217076cd3556d9 | 7655847d79a3a0240aa3127475e643405932d1be | refs/heads/master | 2022-11-06T13:38:22.883938 | 2020-06-21T19:49:12 | 2020-06-21T19:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard():
"""A class to report scoring information"""
def __init__(self, screen, ai_settings, stats):
"""initializes score keeping atributes"""
self.screen = screen
self.screen_rect = screen.get_rect()... | [
"66185640+broten15@users.noreply.github.com"
] | 66185640+broten15@users.noreply.github.com |
29351f1a9584b1210c910aad960b347dc3379d69 | 05aa274adaadc847c65c4ce946d53bf108165da3 | /apps/blog/__init__.py | 035a31b6247f3d50ce2aed45c8b5df24e11dbb0e | [
"MIT"
] | permissive | lucylqe/flaskDemo | b3f508b432a1531fa0db6c4c5766ad0b153c7f50 | 6e6d20332e34904fed11d7d8a61c0c21a81d592a | refs/heads/master | 2020-07-06T11:38:03.595709 | 2019-08-27T11:23:46 | 2019-08-27T11:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from apps.libs.register_blueprint import NestableBlueprint
blueprint = bp = NestableBlueprint(cur_name=__name__,cur_file=__file__)
@bp.route('/')
def index():
return str(__name__) | [
"liqe@knowbox.cn"
] | liqe@knowbox.cn |
359b2e625580823fd10881495fa0d196cad0bc16 | 0f13f1a5061b80c927530fafd106cf04f25ed3e2 | /metadata/aggregation.py | a18c4b85a16fcd242adf5a6649045d5cda95640e | [] | no_license | ismailsunni/impact_function_registry | 832926fa6f88ccc00be48178826b4a9cc6fcb836 | f2e7c2ad9c9c8a32107c5b6816bc6e6e13a84bdd | refs/heads/master | 2021-01-12T21:00:10.544065 | 2014-10-08T02:34:41 | 2014-10-08T02:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from utilities import ugettext as tr
# Category
aggregation_definition = {
'id': 'aggregation',
'name': tr('aggregation'),
'description': tr(
'An <b>aggregation</b> layer represents '
'regions you can use to summarise the results by. For '
'example, we might summarise the affected p... | [
"tim@linfiniti.com"
] | tim@linfiniti.com |
87baa53650db2e62d3ac7b05f529fe8fc7792281 | ec8fef96af2a6b6610d298637f05bcdfe67cba2b | /long_range_compare/multicut_solvers.py | 74311cc71aac426c617f2c912f4507dab3e459ec | [] | no_license | abailoni/longRangeAgglo | 8b98aca75b17d177cb5e408460f95ff20f411aeb | 260b452e106125722ae3824755584ce7bfd5b81c | refs/heads/master | 2021-06-25T14:14:57.150233 | 2020-11-06T11:14:52 | 2020-11-06T11:14:52 | 150,707,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | import time
import numpy as np
import sys
# -------------------
# MULTICUT SOLVERS:
# -------------------
def solve_multicut(graph, edge_costs, p=None, solver_type="exact_solver",
proposal_generator_type='WS',
fusion_moves_kwargs=None,
proposal_gener_WS_kwargs=N... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
6afebcdf3bff4baa26ec1a6b1b283ab1942efc8d | 4058ea14ef48d3d7201bc518fcd6ff74d753a23b | /AnalysisCode/test/hlTriggerRate_cfg.py | ccafa6a7e4d759a680df82cb9286323b21823253 | [] | no_license | cms-ttH/ttH-LeptonPlusJets | 9be57faf0761e55c7e6a83ff8f9b60e9aebf76a0 | fa86fda33d4345a6d6a5b2881a5518514b23fcc9 | refs/heads/80x | 2020-12-24T08:46:40.519378 | 2016-12-06T08:59:53 | 2016-12-06T08:59:53 | 12,163,593 | 3 | 3 | null | 2016-12-06T08:59:53 | 2013-08-16T17:00:15 | C | UTF-8 | Python | false | false | 2,962 | py | #!/usr/bin/env python
import sys
inputFileList = 'inputFiles_HLT_Rate_MC_HLTEle27HT200_DYToEE_PU40bx25.txt'
outputFileName = 'hlt_rates_13TeV_histo.root'
n = -1
# Argument parsing
# vvv
if len(sys.argv) > 1 and sys.argv[1].endswith('.py'):
sys.argv.pop(0)
if len(sys.argv) == 2 and ':' in sys.argv[1]:
argv ... | [
"darren.michael.puigh@cern.ch"
] | darren.michael.puigh@cern.ch |
f24416e5cd491a5dd2922554934ead2722d5140c | db360392938a29694f40f0afdff79dcc1f601940 | /Count nested depth.py | 967e82e6bc1e0c9c45332f0f2fef4504f747c38c | [] | no_license | anavalo/Algorithms-and-Data-Structures | 77b84ac38221289152ac6ad930fba61ea8a98e16 | f1887fd2930350e91f3429ea310896a3a9127913 | refs/heads/master | 2020-07-11T11:24:01.918409 | 2019-10-04T14:02:21 | 2019-10-04T14:02:21 | 204,526,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | def flat(l):
res = []
for item in l:
if type(item) == list:
res.append(flat(item))
print(res)
if len(res) > 0:
return 1 + max(res)
return 1
print(flat([1,2,[3,4],5,[6,[5]],7]))
# print(flat([2]))
# print(flat([]))
# print(flat([[2]]))
# print(flat([3, 4, 5, [2, 4, [4, 5... | [
"tsournos.anastasios@gmail.com"
] | tsournos.anastasios@gmail.com |
7f91b5fa338e5d6f010bd2a91a2b4428dc2e61f6 | c3db4c42360c47471635a97568bfc9c21bc14c06 | /pdfmerge/migrations/0002_auto_20190616_1800.py | 8708c2ce97d9ded4162bf6eb11e98c10d8063689 | [
"MIT"
] | permissive | rupin/pdfmerger | 3ede9aa9f1f374eba9b1ea2c33b6920403a8f4ad | fee19523e88362d215f1a29cdab0d140f4c9385c | refs/heads/master | 2020-04-07T20:37:56.821730 | 2019-07-18T16:58:01 | 2019-07-18T16:58:01 | 158,696,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Generated by Django 2.1.3 on 2019-06-16 12:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pdfmerge', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"rupin.chheda@gmail.com"
] | rupin.chheda@gmail.com |
672a44ccb8cf352f213782f10b1bd23f6a7814e5 | c2e1b17001357f2c13f6b8287e2b6ee0956c955b | /sweetpea/metrics.py | 18f7356dec88fa61c916c2db35377da7329030b3 | [
"MIT"
] | permissive | musslick/sweetpea-py | e0c9fec35c571fbf846808cbdeec58f68c405d4c | b0d9769025022936d57d71a501c9ab5f51b4a4ef | refs/heads/master | 2023-03-21T01:50:51.045650 | 2021-03-24T19:37:18 | 2021-03-24T19:37:18 | 293,494,087 | 1 | 0 | null | 2020-09-07T10:20:12 | 2020-09-07T10:20:12 | null | UTF-8 | Python | false | false | 1,005 | py | import operator as op
from functools import reduce
from math import factorial
from typing import Dict
from sweetpea.blocks import Block
from sweetpea.constraints import ExactlyKInARow, AtMostKInARow
from sweetpea import __generate_cnf
"""
Given a block, this function will collect various metrics pertaining to the b... | [
"drautb@gmail.com"
] | drautb@gmail.com |
ec89f21b212c4db36bf60eaf58782177ae25967f | b79525c5ed329ef7a96c0ca717d3a32d7b4386b3 | /query_strategies/__init__.py | 00f4d6ae2a96be40b27554c204a1d3137d275acd | [] | no_license | prinzROSE/Class-Balanced-AL | c3a42a2fa379870954dbebc9e74a5d3a582d1a39 | 4f89a4b1c49a1b71178da4f5e2a6caa0db773443 | refs/heads/main | 2023-08-24T19:45:31.728013 | 2021-10-12T08:39:46 | 2021-10-12T08:39:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from .random_sampling import RandomSampling
from .entropy_sampling import EntropySampling
from .kcenter_greedy import KCenterGreedy
from .bayesian_active_learning_disagreement_dropout import BALDDropout | [
"djavad.z@gmail.com"
] | djavad.z@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.