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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85a20a5685d762ddec4eeda36978c63036c74206 | 6a01a9287a4c23c7f11b7c5399cfb96bbe42eba8 | /python/scripts/make_id_table_with_diff_expr.py | 314e25e631430921796b32ad7d8d52c104d61aff | [
"MIT"
] | permissive | xguse/gmm-to-gff-transcripts-vs-snps | 3c25bf2752aee76174d5dab92060fe7269caf99f | 75337135ab8ff6d840af3cfccfe6404a06777a54 | refs/heads/master | 2021-01-19T01:50:33.473897 | 2016-08-02T20:31:18 | 2016-08-02T20:31:18 | 54,731,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | """Describe here what this rule accomplishes."""
import pandas as pd
import numpy as np
# Settings
edger_results_labels = snakemake.params.edger_results_labels
cufflinks_results_labels = snakemake.params.cufflinks_results_labels
# input
edger_results = snakemake.input.edger_results
cufflinks_results = snakemake.inp... | [
"wadunn83@gmail.com"
] | wadunn83@gmail.com |
1aac5178d925ba1ca51b4526bd8a401ea7bd5b41 | cfa4a826e91ae08244b5f7d1e4039f45bda3c8c5 | /main.py | 918f12774f0492c0dad4d289586617dbde44c2f6 | [] | no_license | avikrakshit/Bloogging | 32ac75709ee6a72bddb8894a5e1ae067dc617c95 | ef949ead082c2fb83ba3c29b3772b1765a6e4b0a | refs/heads/main | 2023-06-02T23:30:28.776755 | 2021-06-22T05:10:35 | 2021-06-22T05:10:35 | 378,813,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,922 | py | from flask import Flask, render_template, redirect, url_for, flash, request, session, json
import requests, json
from flask_sqlalchemy import SQLAlchemy
import sqlalchemy
from wtforms.validators import InputRequired, Email, Length
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, Boo... | [
"noreply@github.com"
] | noreply@github.com |
b59ce65b85cf6eb61a55b8b0051b39656e0ef0cf | e113983ca070653992187c49e1bc4b0f19e5a61a | /hw4/NEW_hw4_2.py | 55572354c28f906fa0053ad51704095e27e78ecd | [] | no_license | dada8704/ML | b9640e0f9327737a37abee93915567341ee64839 | d1578b61aab95da80f98bfab50826320c3562728 | refs/heads/master | 2023-04-20T03:56:37.504892 | 2020-12-28T13:40:47 | 2020-12-28T13:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | import numpy as np
#import argparse
from gaussian import *
from UTIL import *
from MNIST import *
from New_EM import *
train_label_file = "file/train-labels-idx1-ubyte"
train_image_file = "file/train-images-idx3-ubyte"
input_N = 60000
lamBda = np.ones(10)
probability = np.random.rand(28 * 28, 10)
hidden_W = np.ones... | [
"dada0423.cs05@g2.nctu.edu.tw"
] | dada0423.cs05@g2.nctu.edu.tw |
f258f81afafb2186624f0028d7416f7aca37869d | 3114430ce15c18281117459e26eea4b774e3998a | /day4/accounts/models.py | 1fd9d1bf8a13f354846f792bd07b42ea810b5486 | [
"MIT"
] | permissive | Joseamica/Easily-written-Django | c02e7333e84ca2257b7b8bfae3f6732898c5000a | 0b746638751702c453db9490fe29ef6d34e4a3bc | refs/heads/master | 2021-05-27T20:25:41.341149 | 2014-05-25T08:25:53 | 2014-05-25T08:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from django.db import models
from django.contrib.auth.models import User
import hashlib
# Create your models here.
class Account(models.Model):
user = models.OneToOneField(User)
def gravatar_url(self):
return "http://www.gravatar.com/avatar/%s?s=50" % hashlib.md5(self.user.email).hexdigest()
def ... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
538fc3e6a7b554c75a45025f802bf9fb341dae19 | d6e287bbba11be4906e599d1362c9ef89c4fb9de | /modules/utils/datasets/__init__.py | 53671ef9604559f6da0848293411281007d9f83b | [
"MIT"
] | permissive | bityangke/WSDDN.pytorch-1 | 67d52f158238f2d5b234ddefeb7f05f06bf6b123 | 9a67323c80566cacc762c68021824aa80a82c524 | refs/heads/master | 2022-11-15T00:22:44.903418 | 2020-07-06T13:43:22 | 2020-07-06T13:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | '''import all'''
from .Sampler import GroupSampler
from .VOCDataset import VOCDataset
from .Builder import buildDataloader
'''define alll'''
__all__ = ['GroupSampler', 'VOCDataset', 'buildDataloader'] | [
"1159254961@qq.com"
] | 1159254961@qq.com |
d611e87b266429bc40bdd207cf867a0748666af8 | 414015d52ccbb062397ec3d8d7fdc0b0241c35c6 | /hejasverige/kollkoll/eventsubscribers.py | 742f627aa31343bafd0009722843bfade9c8e10d | [] | no_license | Adniel/hejasverige.kollkoll | d57e2e6c8b748226e7ce137a59961049b6027b6f | c9268a3b8616e1fdcf4b3edbe3370aca5bec1ff6 | refs/heads/master | 2021-01-01T19:15:03.457302 | 2014-08-21T15:08:52 | 2014-08-21T15:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | # -*- coding: utf-8 -*-
from five import grok
from Products.PluggableAuthService.interfaces.events import IUserLoggedInEvent
from hejasverige.kollkoll.kollkoll import Kollkoll
import logging
logger = logging.getLogger(__name__)
@grok.subscribe(IUserLoggedInEvent)
def getKollkollAccount(event):
"""Creates an a... | [
"daniel.grindelid@gmail.com"
] | daniel.grindelid@gmail.com |
a6b84c2d10e63e38d26824559d3c6ed3808ab651 | a4224c0b25cdb864a62a8d05cfc5579424e57326 | /06_number_checker_v1.py | 2080df98d9ee01c820f7e474e9731bd05a850d47 | [] | no_license | ST17013/01_Temperature_Convertor | 53e951b646c59a87900e36f047f19f5dc647bd97 | 0d9bf35572c127cf4bec886c49288908731b1039 | refs/heads/master | 2022-12-10T00:57:51.925027 | 2020-09-07T00:04:58 | 2020-09-07T00:04:58 | 286,612,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #Code to check that number is valid...
def temp_check(low):
valid = False
while not valid:
try:
response = float(input("Enter a number: "))
if response < low:
print("Too Cold!")
else:
return response
except ValueError:
... | [
"69490737+ST17013@users.noreply.github.com"
] | 69490737+ST17013@users.noreply.github.com |
9c0ea2723caeb9ce706976b7c6a0f26a4b82e84a | 13febd474a8149d7036621cc1b423f61f433d5d7 | /dicoms/logging_indexer.py | 371b0b2c79f68c3c76a419745af6e37cc0296a4f | [
"BSD-3-Clause"
] | permissive | carpensa/dicom-harpooner | 6d9c4a56256b097e5039b4d88e528838e94f65db | 2d998c22c51e372fb9b5f3508c900af6f4405cd3 | refs/heads/master | 2022-12-29T17:43:08.906780 | 2020-06-27T00:45:51 | 2020-06-27T00:45:51 | 282,060,497 | 1 | 0 | BSD-3-Clause | 2020-07-23T21:37:40 | 2020-07-23T21:37:39 | null | UTF-8 | Python | false | false | 11,679 | py | import os
import pathlib
import sys
import time
import traceback
# importing django specific modules
import django
import pydicom
import pytz
from dateutil import parser as dateparser
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ImageSearcher.ImageSearcher.settings')
django.setup()
#from ImageSearcher.dicoms.mod... | [
"anthony.e.galassi@gmail.com"
] | anthony.e.galassi@gmail.com |
0a390ae66c096ec7b6e7b0aff70e9f8e2f83aec5 | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/tomsguide_fr.py | 512927ada4008f9bf18b66205719a64e70329068 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,269 | py | # -*- coding: utf8 -*-
from datetime import datetime
import re
from scrapy.http import Request, HtmlResponse
from scrapy.selector import Selector
from alascrapy.spiders.base_spiders.ala_spider import AlaSpider
from alascrapy.spiders.base_spiders.bazaarvoice_spider import BVNoSeleniumSpider
from alascrapy.lib.generic ... | [
"liangzijie1437@gmail.com"
] | liangzijie1437@gmail.com |
70d7dccba6ea9c322a07043d842c08b429beaa8b | 24b6d039268249fefdd18a8644a7dff4d6a80108 | /checks/resolve-db-numbers-2019-02-22/check_all_timeseries_fails_excluded.py | cf20c6dde48f52136875def0a8b073a2a2c5ce4d | [] | no_license | cp4cds/qcapp | d774a80145abf4eee0182d6451e0f70c40f16d1e | 636ef525514202e679af12e27729a8aaab304e7f | refs/heads/master | 2021-01-12T07:22:41.172118 | 2020-03-20T16:43:58 | 2020-03-20T16:43:58 | 76,947,327 | 0 | 0 | null | 2020-03-11T12:53:18 | 2016-12-20T10:31:19 | Python | UTF-8 | Python | false | false | 2,640 | py |
from setup_django import *
import os
import sys
import re
import settings
import subprocess
import utils
import shutil
QCD_DIR = '/alpha/c3scmip5/'
RAW_DIR = '/cmip5_raw/'
def check_timeseries_errors():
for ds in Dataset.objects.all():
# ds = Dataset.objects.filter(variable='pr', frequency='day', mode... | [
"rpetrie@jasmin-sci4.ceda.ac.uk"
] | rpetrie@jasmin-sci4.ceda.ac.uk |
c166e51af99086d7817c7710559fdd0ec02d5968 | 00fc8b7c733f332fd3d744b53e111be88bbebcb4 | /Bricks/paddle.py | 46fc1d25b409c16da23bf236cc6d50691b5f281c | [] | no_license | MartinSlaa/Retrobia | 484e47a54b928a714c5ac522a59d0176b409a626 | f4009dc0b7d33abe4f15d92fdc7ddf987b67c47a | refs/heads/master | 2023-03-30T19:19:36.631553 | 2021-04-07T10:46:05 | 2021-04-07T10:46:05 | 339,413,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | import pygame
BLACK = (0, 0, 0)
class Paddle(pygame.sprite.Sprite):
# This class represents a paddle. It derives from the "Sprite" class in Pygame.
def __init__(self, color, width, height):
# Call the parent class (Sprite) constructor
super().__init__()
# pass in the color of the car... | [
"xfriko@gmail.com"
] | xfriko@gmail.com |
a00fe24421f074387147598994b6b7f2758f044f | da8b01aae6f76ac21a971b15537e5f042ef62dca | /venv/Lib/site-packages/skyfield/positionlib.py | 31a7887cb990935ab6193f5901fa4cce57e05c43 | [] | no_license | zxm256/ScheduleBackend | b225ffc2375be42ca1f997551107aed04359b2c7 | d9e64da11d1b282c5cbd43d572e2e96ae194608b | refs/heads/master | 2023-02-27T07:42:43.004547 | 2021-01-24T13:42:15 | 2021-01-24T13:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,979 | py | # -*- coding: utf-8 -*-
"""Classes representing different kinds of astronomical position."""
from numpy import array, einsum, full, reshape, nan, nan_to_num
from . import framelib
from .constants import ANGVEL, AU_M, C, ERAD, DAY_S, RAD2DEG, tau
from .data.spice import inertial_frames
from .descriptorlib import reify
... | [
"zhaopku09@gmail.com"
] | zhaopku09@gmail.com |
f3bea3265e891f75ffc9b6338b3c362e3a8ada3a | 2129d956c1117fb8386932e01d894a36245cd6bf | /find_most_followed.py | fa4d2db08e0aec1b34c61bd46c682de75872595d | [] | no_license | lwishing/url-shortener- | 78caeb12a4dbb51fef00fce3ff3e1c1840849ad1 | 9fbdbe9abae05f3c3a78410325c0b206cf6d44d1 | refs/heads/master | 2021-01-23T08:04:29.011630 | 2012-12-04T03:33:58 | 2012-12-04T03:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | """
This script will find the most followed urls from our link shortener. The input file is the log file located at static/log.txt.
To run:
find_most_followed.py static/log.txt > most_followed_urls.txt
To sort:
Open most_followed_urls.txt in Excel, sort by second column, which is the count of redirects.
"""
from mr... | [
"ryanfbaker@ischool.berkeley.edu"
] | ryanfbaker@ischool.berkeley.edu |
71ab2907a52b111828b911817be9533720d79b95 | f48690a65601d4c8196d5f61062e77fbbc1592dc | /CH-1/06 Automatic Natural Language Understanding.py | 3bc44b5165c6cdfa30416f2fe4a59701f252d193 | [] | no_license | youth-for-you/Natural-Language-Processing-with-Python | 19f16b3b217b37a727508daae41de3d15122cbb9 | 43d974d86727780a97498618ecac0bd15d6a0bfc | refs/heads/master | 2021-09-01T10:11:48.283178 | 2017-12-26T11:47:57 | 2017-12-26T11:47:57 | 115,415,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | #自然语言的一些术语
"""
5.1 词义消歧:
对于那些一词多义的单词,想要消除歧义,就需要上下文,理解上下文的含义才能确定单词的意思。
5.2 指代消解:
eg:The thieves stole the paintings. They were subsequently sold.
指代消解指确定名词或代词指得是什么。角色标注,确定名词短语如何与动词短语相关联。
5.3 自动生成语言:
自动解决语言理解问题,如自动问答,机器翻译
""" | [
"[pf_li163@163.com]"
] | [pf_li163@163.com] |
78050cb98834dcfbf54474a64b713bf895b8194f | 5e13873543d9ab0e04a756dc081a227b02643bee | /LSTM_regression.py | 4d06d1bddcc17cc71ecf034441486c683f40e856 | [] | no_license | mrthlinh/Agile-User-Story-Point-Estimation | 5f95cb7d51a61d72c60b6732b173064426b7a132 | 0af824fd1594fa76f5566064ded8bcf2cfd57478 | refs/heads/master | 2020-04-06T21:21:34.260841 | 2018-12-05T20:56:33 | 2018-12-05T20:56:33 | 157,800,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,355 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 19 19:22:30 2018
@author: bking
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
tf.enable_eager_execution()
#from movieReviewData import movieReviewData
fr... | [
"mrthlinh@gmail.com"
] | mrthlinh@gmail.com |
d9b24565572ae2e7727fd092000ba9875a8c0be8 | d35ca5eb98533bff6da921195e91de3b3bdede57 | /detect_faces_video.py | f047b9092ddbe880ddc67ea9412f493d7a978f96 | [] | no_license | akshatjain15/Iot-Project | dc91c4ab2716a93755a9bcbe137016ecf5406094 | 0a514d43a2a9154578acfcdc8792f3922a970234 | refs/heads/master | 2020-06-02T14:52:30.891990 | 2019-07-16T09:53:52 | 2019-07-16T09:53:52 | 191,196,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | # python detect_faces_video.py --prototxt deploy.prototxt.txt --model res10_300x300_ssd_iter_140000.caffemodel
# import the necessary packages
from imutils.video import VideoStream
import numpy as np
import argparse
import imutils
import time
import cv2
import random
import os
import urllib.request as ur
# construct ... | [
"akshjain1512@gmail.com"
] | akshjain1512@gmail.com |
01de268c85690257309bbc1dc8619ec497183bda | cb7e7b48c18b1024e597f4d445307f130661e249 | /portafolio/core/migrations/0005_auto_20200805_1518.py | b79b4bd5705960978dbb785dea752d37513c5b2b | [
"Apache-2.0"
] | permissive | jhonfmg7/portafolioDjangoV2 | 2294c093070684c3f863d2433cea7d54eb88b87b | f8fe158b97a79c148b062ae0410ef2c2d5938b8f | refs/heads/main | 2022-12-25T20:44:47.500158 | 2020-10-08T14:58:25 | 2020-10-08T14:58:25 | 301,833,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # Generated by Django 3.0.5 on 2020-08-05 15:18
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('core', '0004_career_contact'),
]
operations = [
migrations.AlterModelOptions(
name='career',
... | [
"noreply@github.com"
] | noreply@github.com |
4b650a3f95def49c325ad1b3bd210643a3f114fd | 1977e882650036b98058c47cf2eae4f33d131a18 | /service/chatbot.py | c6c61852bbd72ab83f0a59b9cc244d860ce22771 | [] | no_license | 4binas/aifo-client | 7412772722da738f7c256aa0368d5b05c4b3aa8f | 50881b4987adf1999c99cc482d13f5932dd20a3d | refs/heads/main | 2023-09-03T20:31:02.132679 | 2021-10-28T14:06:14 | 2021-10-28T14:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from google.cloud import dialogflow
class Chatbot:
def __init__(self, project_id, session_id, language_code, bot_name):
self.project_id = project_id
self.session_id = session_id
self.language_code = language_code
self.bot_name = bot_name
def __detect_intent_texts__(self, text):
session_clien... | [
"abinas.kuganathan@ost.ch"
] | abinas.kuganathan@ost.ch |
a0c0f6c768be56f2ff8f41663a411ade0ac6bcf8 | 7e5f16f4fb1a6f38d4ff83f2734ac9601fddad1f | /covid/urls.py | c6806f21cc4257db0a363d271402168003a1e3a6 | [] | no_license | ashikpydev/Covid-19-Result-Checker | 82a40349d655076c756ee6064eef090c4421035c | 5ff9a086dd49b9a6867806b9ef1a42097d9824dc | refs/heads/main | 2023-03-30T21:40:08.262076 | 2021-04-08T13:34:34 | 2021-04-08T13:34:34 | 355,917,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """covid URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-based v... | [
"ashiqurrahman0506@gmail.com"
] | ashiqurrahman0506@gmail.com |
c911bd1bd284b7ad16e57eafd5e3a161a64f11bb | 931d68232aa1bb16bba4a4a598020f74ca5dab80 | /wagtailnhsukfrontend/settings/models.py | 32727c5dd4b42f6be874a2c8a6defc04313ae8db | [] | no_license | degerli/wagtail-nhsuk-frontend | ee11c864d37643c54f498172d11ac37c2c4179fa | 7429b862eb72decaa9a10a0efb6f1310504f8204 | refs/heads/master | 2020-04-23T04:02:56.342831 | 2019-02-15T13:37:53 | 2019-02-15T13:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | from django.db import models
from modelcluster.fields import ParentalKey
from modelcluster.models import ClusterableModel
from wagtail.admin.edit_handlers import (
FieldPanel,
InlinePanel,
MultiFieldPanel,
PageChooserPanel,
)
from wagtail.contrib.settings.models import BaseSetting, register_setting
from... | [
"mike@mikemonteith.com"
] | mike@mikemonteith.com |
d9455b27c4d82c62c9830d5b109c470332bd951b | 57a7d6b777600d6d45c5a818f00d49731fefd5de | /portfolio/venv/bin/chardetect | 6788e4051b39066df361221958e5659e1402baee | [] | no_license | bharismendy/portfolio_project | fe95b945ec2d1198509121afc9ccad6c794022eb | 518b6ddb2fd487a338c6284776d2ab8060cd9f9b | refs/heads/master | 2021-11-19T23:05:31.297492 | 2019-04-23T07:05:44 | 2019-04-23T07:05:44 | 154,189,446 | 0 | 0 | null | 2021-09-08T00:49:32 | 2018-10-22T17:49:43 | Python | UTF-8 | Python | false | false | 270 | #!/home/bharismendy/PycharmProjects/portfolio/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"brice.harismendy@etud.univ-angers.fr"
] | brice.harismendy@etud.univ-angers.fr | |
6d8ce22c751efd861956be268dafc8c2f00f3fbd | c0acf82a18b8e90cd38afedb02e45e53425a067e | /pyecharts/custom/overlap.py | e2cdd57622347e115a2fe03fcdc86c1ef34f05fd | [
"MIT"
] | permissive | caideyang/pyecharts | 66b61d0400ea15b25ef7fb90f7305647343eea3a | c13f2fecece566359b2c881705bf96337c42ce40 | refs/heads/master | 2021-01-22T13:48:00.474761 | 2017-08-18T07:09:53 | 2017-08-18T07:09:53 | 100,685,801 | 1 | 0 | null | 2017-08-18T07:31:13 | 2017-08-18T07:31:13 | null | UTF-8 | Python | false | false | 1,609 | py | #!/usr/bin/env python
# coding=utf-8
class Overlap(object):
def __init__(self):
self._chart = None
def add(self, chart):
"""
:param chart:
chart instance
:return:
"""
if self._chart is None:
self._chart = chart
else:
... | [
"chenjiandongx@qq.com"
] | chenjiandongx@qq.com |
4bfdcf8367c14c6fefe61c847447c9e02b91a619 | 1a59289401721f1b2fc856e57661f1eb3bd07bfd | /classification/hyperparameter_tuner.py | b1a8d63d09bb50b0dc906a4b93082d614b14f18a | [] | no_license | babakaskari/KommuneProject | 33f84e738d98f46c1d6d31709af2df89ce69d78e | 11487abd21c263720752a1ef94cd492b9acbbea3 | refs/heads/master | 2023-03-05T07:31:41.974199 | 2021-02-14T09:21:15 | 2021-02-14T09:21:15 | 328,130,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | import numpy as np
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import GridSearchCV
from tqdm import tqdm
def GridSearchCVFunc(kernel, x_train, y_train, param):
g_search = GridSearchCV(estimator=kernel,
param_grid=param,
cv... | [
"Siamak"
] | Siamak |
826f60594002015e659cc80aca283bfe601d0b98 | 0c958692bb3abf99ecbd03bd75a605b202d4da5a | /CRAB/MuNu/synch/2014ocbr24/synchThree.py | 0bc6084ab362fd99b029e74554cc6bfc9b96b5f1 | [] | no_license | tmrhombus/UWAnalysis | a9ed18a7ba8726522c8d98fbdc018c77d80c5cc5 | eb9e0794e1b847f36c660a55d3631176a39148e2 | refs/heads/master | 2021-01-23T20:46:41.578341 | 2017-05-01T08:26:57 | 2017-05-01T08:26:57 | 10,620,824 | 0 | 0 | null | 2014-10-21T11:21:16 | 2013-06-11T12:19:43 | Python | UTF-8 | Python | false | false | 4,427 | py | cut = 'C1_data_2014ocbr23_m12e10_smrGenNu_clnMu'
#cut = 'C3_tt_2014ocbr23_m12e10_smrGenNu_clnMu'
andreas_events = set([line.strip() for line in open('./comp/%s_and.txt'%(cut))])
jelenas_events = set([line.strip() for line in open('./comp/%s_jel.txt'%(cut))])
toms_events = set([line.strip() for line in open('./comp/%... | [
"tperry@cern.ch"
] | tperry@cern.ch |
52980438ee437a5977680307d4b13bd673f3b1a3 | 6d7a67be5c2aa1bcebdcfd5bec855c0172c8f01f | /convert_weight.py | 55566963e7439f9fb4e9649bdd289f5114337916 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | JWHennessey/stylegan2-pytorch-1 | 19184e1713b9bcfce6404fb6d19478f1dbcc56ec | 88852e3695d3ffd9281787690c3f8796dc1e225a | refs/heads/master | 2020-12-11T17:17:04.082956 | 2020-01-14T18:44:39 | 2020-01-14T18:44:39 | 233,909,977 | 0 | 0 | NOASSERTION | 2020-01-14T18:37:33 | 2020-01-14T18:37:32 | null | UTF-8 | Python | false | false | 6,849 | py | import argparse
import os
import sys
import pickle
import math
import torch
import numpy as np
from torchvision import utils
from model import Generator, Discriminator
def convert_modconv(vars, source_name, target_name, flip=False):
weight = vars[source_name + '/weight'].value().eval()
mod_weight = vars[sou... | [
"kim.seonghyeon@snu.ac.kr"
] | kim.seonghyeon@snu.ac.kr |
4dd92271a56fb87fccbb08a8546c583002f07258 | b5dfc657e395d12f1ea40a12a92daf423bcabcc7 | /pro1/pro1/wsgi.py | 9f0501719b5866ca4c2e5555814f95e7c4ab2736 | [] | no_license | ardy2811/webLearn | cc86d7f2c60d9009fa7bbef0625c14a51cf0b17f | 97aa18c61f023a544d613254520f7ee5b0a94c7c | refs/heads/main | 2023-05-25T07:27:57.332887 | 2021-06-04T23:44:31 | 2021-06-04T23:44:31 | 373,018,611 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for pro1 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... | [
"zs@senduo.cn"
] | zs@senduo.cn |
254e45f5a29c2e097da736ed48419948ea826c21 | 377cb0a225a80752b837d0679f95f34d8aa49afe | /Python/list.py | 5511183cbf24fecd09d23334f352af5c28c193f2 | [
"MIT"
] | permissive | nuvish04/Basic-Programming | 568eed1ac4b7829639aeed3a599142b0e0ddae8f | a7ba600f71847974af4b84d1407613a045819edd | refs/heads/main | 2023-04-16T18:02:52.103757 | 2021-04-29T15:23:29 | 2021-04-29T15:23:29 | 362,538,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | b=["India",4,5,"Hi",0.2]
print(b)
b[2]=10
print(b)
b.append("Python")
print(b)
b.insert(2,"Hello")
print(b)
b.remove(0.2)
print(b)
print("Length=",len(b))
b.append(4)
print("Count =",b.count(4))
b.reverse()
print(b)
b.pop(0)
print(b) | [
"noreply@github.com"
] | noreply@github.com |
b57aa04bb1157d20423de65671bee218d8715f6d | 730b92e439dbb013950b8bbf417cfde1bb40f8b9 | /Python/Add-Binary.py | 8b8be13ae529418ef8672901ffeb760e078c1eb4 | [] | no_license | yuede/Lintcode | fdbca5984c2860c8b532b5f4d99bce400b0b26d0 | d40b7ca1c03af7005cc78b26b877a769ca0ab723 | refs/heads/master | 2021-01-13T04:14:32.754210 | 2015-08-22T13:15:54 | 2015-08-22T13:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | class Solution:
# @param {string} a a number
# @param {string} b a number
# @return {string} the result
def addBinary(self, a, b):
# Write your code here
pa = len(a) - 1
pb = len(b) - 1
s = ""
d = 0
while pa >= 0 and pb >= 0:
cur = d + int(a[pa... | [
"jiangyi0425@gmail.com"
] | jiangyi0425@gmail.com |
f8d8a6731dc30588edc7fe302e1ec0607a2fd18f | 6e0a07de34b00ac7a9dbe8ffd569b8a30dc152d6 | /Django_/mysite/films/migrations/0001_initial.py | ba576504603e0663ceb2e658583080abd71a2503 | [] | no_license | Stianbot/INFO215 | 9fb63449eea736fe4ed2ac19cc31743efddbac79 | 98a3172d201f4a9770e96a55b009f95e9f5e925d | refs/heads/main | 2023-04-23T02:19:39.671710 | 2021-05-04T13:35:12 | 2021-05-04T13:35:12 | 331,590,861 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # Generated by Django 3.1.6 on 2021-02-02 16:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Film',
fields=[
('id', models.AutoField(aut... | [
"stian.botnevik@student.uib.no"
] | stian.botnevik@student.uib.no |
159b6bec53fe5f2e9e41e8b51080ef183804251d | f9abef69eec532e591a1503ec7c0b93912e02bcd | /NAMD/2_2nm/F19/1eV/run_step4.py | 745810c9adedfaeef4fd1781719b53eaaedcd6e7 | [] | no_license | MahsaJabbar/Project_NBRA-BL-NA-MD_SiNCs | a9c75a5614c0ce7e4dd9c3d446c98cd254ed627f | 42e8cf4c36f297028aa6b9db7bca6eb706ab4e71 | refs/heads/master | 2020-12-26T08:35:10.004518 | 2020-01-19T16:48:38 | 2020-01-19T16:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,132 | py | #***********************************************************
# * Copyright (C) 2019-2020 Brendan A. Smith and Alexey V. Akimov
# * This file is distributed under the terms of the
# * GNU General Public License as published by the
# * Free Software Foundation; either version 3 of the
# * License, or (at your option) any... | [
"bsmith24@buffalo.edu"
] | bsmith24@buffalo.edu |
53b5e3a77e56432166513d5908048beb567e31a6 | a59a3335ceb27b807e9a8eeb95932c72eac214ac | /apps/units/forms.py | 70c8fdd73cb67633e188acba24e8d89b1931819d | [
"Beerware"
] | permissive | egaillot/zython | ef2a413f90323ed9f3e6c131913548eb0e0c9142 | cf7ebcdb5265012d9e2b9c0652befe33b3bb6fe0 | refs/heads/main | 2023-03-24T02:36:33.281166 | 2022-07-05T08:42:44 | 2022-07-05T08:42:44 | 193,670,642 | 0 | 0 | NOASSERTION | 2022-09-24T12:58:40 | 2019-06-25T08:50:22 | Python | UTF-8 | Python | false | false | 1,985 | py | from django import forms
from units import settings as app_settings
from units.helpers import get_convert_to_default, get_full_unit_name, get_converted_value
class BaseUnitForm(object):
unit_fields = {}
'''
unit_fields = {
'volume': ['amount', 'batch_size'],
'weight': ['total_grain']
}... | [
"martyn.clement@gmail.com"
] | martyn.clement@gmail.com |
b807ffc86a07e7f973f259a78f26ce037459f756 | d6450042f7f3e861ff41e2facaa7bf047bbc1fdf | /regression/py/SubmitJobs.py | 2f39637f6175346bc0eb8ef9d73b4bac247ad2d8 | [] | no_license | xiaoqiangzhao/imx_proj | d7ef79929e0f71c22e0bc8685b5b6b155c7ae533 | 0d4d4aa8adc6103414f9fe8c00484d438bc24b1b | refs/heads/master | 2020-04-06T10:02:10.110692 | 2016-09-10T02:46:25 | 2016-09-10T02:46:25 | 55,764,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,222 | py | import os
import sys
import json
from termcolor import colored
info_color = {'PASS':'green','FAILED':'red','COMPILE_ERROR':'yellow','NO_ARG':'blue','MAKE_ERROR_OR_NOT_RUN':'magenta','RUNNING':'cyan'}
BASE_DIR = '/proj/imx6sll/design/workarea/b51816/JAY_HOME/my_git/repository/imx_proj/regression'
class SubmitJobs:
... | [
"b51816@lvd5754.ap.freescale.net"
] | b51816@lvd5754.ap.freescale.net |
6c12b65bc75d06218bc70fa9fbd8a4d1205ac0e8 | 55fe97ec40490683c996642462f4b6f9e790e99e | /energy_space_explore/__init__.py | 06d891cf0cee4085133e311e154c161efdf71257 | [] | no_license | spencer-loggia/ComplexAssemblyAnalysis | a2a562e28a47f3e40d647ec1e81d91c6ac2650c4 | e8bbe435f79f28bcaf713ae95d802a4bca322a1d | refs/heads/master | 2021-07-22T17:39:41.909408 | 2021-03-03T23:41:02 | 2021-03-03T23:41:02 | 244,244,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import os
import sys
from preprocess import preprocess
from network import Network
import pickle as pk
subunit_dir = sys.argv[1]
config_dir = sys.argv[2]
subunits = ''
mol_config = ''
mol_struct = {}
try:
subunits = os.listdir(subunit_dir)
except IOError:
print("Bad monomer directory", sys.stderr)
exit()... | [
"spencer.loggia98@gmail.com"
] | spencer.loggia98@gmail.com |
003d9d838b7372a3284b30915aec63707830d821 | ef20884169d10ec9ac4d1d3b77ee35245d248294 | /practice/deep-learning-from-scratch-2/np_random_choice.py | 9360dbb41512575e33d9d1d800f8a11e55fdeec2 | [] | no_license | heaven324/Deeplearning | 64016671879cdf1742eff6f374cfb640cfc708ae | a7a8d590fa13f53348f83f8c808538affbc7b3e8 | refs/heads/master | 2023-05-05T08:54:27.888155 | 2021-05-22T08:25:47 | 2021-05-22T08:25:47 | 188,010,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import numpy as np
print(np.random.choice(10)) # 5
print(np.random.choice(10)) # 9
# words에서 하나만 무작위로 샘플링
words = ['you', 'say', 'goodbye', 'I', 'hello', '.']
print(np.random.choice(words))
# 5개만 무작위로 샘플링(중복 있음)
print(np.random.choice(words, size = 5))
# 5개만 무작위로 샘플링(중복 없음)
print(np.random.choice(words, size =... | [
"wjdtjdgh2005@gmail.com"
] | wjdtjdgh2005@gmail.com |
c3142e42f11df6cedf0e2a9bd20f63f0919bc2c3 | 2fb34b829a3c5d0b2872a36367f3358335e2720e | /button.py | bb61f6cd17da09ce23ec5c19b419ddb82b44e4ea | [] | no_license | ziqiiii/python_alien_invasion | 525a8c7c2471c0449882f2abb5770f09b30626b0 | a6d4c03e1a8cd812d2362c6ef42602bb1ee02847 | refs/heads/master | 2020-03-29T08:22:24.304618 | 2018-09-28T14:26:50 | 2018-09-28T14:26:50 | 149,707,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import pygame.font
class Button():
def __init__(self,ai_setting,screen,msg):
self.screen = screen
self.screen_rect = screen.get_rect()
self.width,self.height = 200,50
self.button_color = (0,255,0)
self.text_color = (255,255,255)
self.font = pygame.font.SysFont(None,... | [
"522243591@qq.com"
] | 522243591@qq.com |
34db41a2067da5cdc11588510dae607a0a3f2ed9 | a7742c5b97690d76c3872e2ad8f7300c5afa3856 | /googleinceptionnet.py | fc868bbd08db47f5562782e8266ad284c7e927c6 | [] | no_license | LeeCheer00/TF | bb98a62197848eab3a44278ed1aea5bdf3e5fe9c | eb4f41fd70e2177938124273fb41aed99f4a0d47 | refs/heads/master | 2020-03-19T15:37:00.162198 | 2018-07-10T12:57:25 | 2018-07-10T12:57:25 | 136,678,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,708 | py | # encoding=utf-8
import time
import tensorflow as tf
import math
from datetime import datetime
slim = tf.contrib.slim
trunc_normal = lambda stddev: tf.truncated_normal_initializer(0.0, stddev)
# inception_v3_arg_scope
# L2正则的weight_decay = 0.00004
# stddev = 0.1
# batch_norm_var_collection 默认值为moving_vars
######
# bat... | [
"645513992@qq.com"
] | 645513992@qq.com |
778459e47142827e3629b6af6b3dbfc2ccc5d25e | ce990be34e8759efb96b890d9676da313fd2d9b4 | /tests/python/contrib/test_ethosu/cascader/test_plan.py | ddc40b49ac8a8de119af6b9b19d208ef745f4899 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | tmoreau89/tvm | 291c0b1beb13503e18b1e45f135aaf334660b68d | 8136173a631bf6c7274d26285349225fcf6e495f | refs/heads/master | 2022-11-23T08:36:24.853648 | 2022-11-21T07:36:57 | 2022-11-21T07:36:57 | 119,757,672 | 5 | 1 | Apache-2.0 | 2019-03-22T23:06:53 | 2018-01-31T23:41:33 | Python | UTF-8 | Python | false | false | 7,708 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
825ff37b9030c959ca4c89367e9e5f31a97cf6a8 | 79c2d6c68281a297a2541f1fc9acb67a3e96be80 | /shop/views.py | 9c19653bbd6e76f92988faac5bde211ea1987772 | [] | no_license | abhi1540/Django-Shopping_cart | b021c1f78555b870261eb16c2d00ffdf08ce314a | b317073886feac78a861bab502179956a93c784e | refs/heads/master | 2020-03-18T16:46:14.005819 | 2018-05-26T18:13:30 | 2018-05-26T18:13:30 | 134,985,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse
from .models import Product, Category
from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.contrib.auth.models import Group, User
from .forms import SignUpForm
from django.contrib.auth.forms ... | [
"abhisek1651990@gmail.com"
] | abhisek1651990@gmail.com |
2d1155d32a90b5db0505c5e7d1005e480fd33c00 | 6ac0aa077de3d234ad19eae7e65813d3b99a89af | /142_LinkedListCycleII/solution2.py | 911328dfca8a6988900503d40f8555d8d6afdbee | [] | no_license | changchingchen/leetcode | 2c85dd2c433dd3937be3f74a87534a8fccd80b38 | 481e873a0332c7939e3a24281bcea837b383af58 | refs/heads/master | 2023-01-12T02:08:44.339658 | 2020-10-25T14:33:44 | 2020-10-25T14:33:44 | 266,359,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def detectCycle(self, head: ListNode) -> ListNode:
if not head:
return None
slow = fast = head
while fast and fast.next:
... | [
"tim.changching.chen@gmail.com"
] | tim.changching.chen@gmail.com |
a2e944d171d136342803a1d014bb44c7dce372df | 68ff38f2dd0188909737b395ac227ec0e205d024 | /kthapa2/MSAprioriImplementation.py | 88cd7c703c16da55aa29ac4054f8986a419e9810 | [] | no_license | kushagraThapar/Data-Mining | 7c3992c5efe820185e5197c8098168ae92e68cf9 | 658f3fdc8c4ea91d717cb36d5504d5e1fb803960 | refs/heads/master | 2021-01-18T15:40:23.412283 | 2017-01-29T08:49:04 | 2017-01-29T08:49:04 | 68,418,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,396 | py | from collections import OrderedDict
from itertools import combinations
from kthapa2 import CustomConstants
item_support_count_map = {}
item_support_map = {}
item_frequency_map = {}
item_tailcount_map = {}
minimum_item_support_map = OrderedDict()
cannot_be_together = set()
must_have = set()
def ms_apriori_algorithm(... | [
"kthapa2@uic.edu"
] | kthapa2@uic.edu |
f3c5610d6e768e63d846e7e2e59d3e56cbe94975 | 72d4184dc2d32ce9a5c72e4aa381342cc605545a | /src/migrations/versions/2940356ebeac_.py | c1fdd8a3d7111a7898fd2c7d9f55502b7c5d065f | [] | no_license | taller2fiuba/chotuve-app-server | 7acddf1e7cd5e7c9cfecae712625cd80304a283e | ac2d389196f3176bf8e3675d113a42a70259d512 | refs/heads/master | 2023-05-02T16:10:43.991179 | 2020-07-31T00:50:17 | 2020-07-31T00:50:17 | 257,125,755 | 0 | 0 | null | 2021-05-06T20:24:18 | 2020-04-19T23:44:44 | Python | UTF-8 | Python | false | false | 996 | py | """empty message
Revision ID: 2940356ebeac
Revises: 6030eadd9681
Create Date: 2020-06-10 00:29:15.278535
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2940356ebeac'
down_revision = '6030eadd9681'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"sportelliluciano@gmail.com"
] | sportelliluciano@gmail.com |
ab55393ddc0e46a0f229ce84b50466d0ac1cb266 | 65701888f7e09716b83ddbb965a50b7c62b0f287 | /blocks/google/common_block.py | fb2ba923f68bc8aedfef5cc46a894ff664e758b9 | [] | no_license | ColinKennedy/auto_docstring | 6a4a27c16434cb6d94db435226758a09627d9252 | dbca838630faf410a277069aedbecb82cfeedae9 | refs/heads/master | 2021-04-12T12:36:31.825008 | 2018-11-05T01:49:49 | 2018-11-05T01:49:49 | 89,107,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,343 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# TODO : Just had an idea. Why not change the gross "if X.is_valid(obj): return X(obj)
# into a single classmethod? That'd look way better and potentially be
# easier to loop over
#
'''The classes and functions needed to parse the types of all astroid nodes.
... | [
"colinvfx@gmail.com"
] | colinvfx@gmail.com |
97a5797d6b970d29dbea2c4c90e09131f13ca91c | e5efada3529d94875455c4230c8dabe27fb72a89 | /apps/search/migrations/0015_advancedsearchpage_simplesearchpage.py | 74a14dceeeef2ab60fb56655bb00ed68b2a72af6 | [] | no_license | alexmon1989/uma | d8c321fb0ec9b1a9039b1c83aeaaff774f657416 | 5dea579d634eeb1c8103c21157299b33ca5590f0 | refs/heads/master | 2023-08-03T04:31:13.598577 | 2023-07-22T18:17:13 | 2023-07-22T18:17:13 | 154,835,498 | 0 | 0 | null | 2023-03-02T11:20:54 | 2018-10-26T13:02:12 | Nunjucks | UTF-8 | Python | false | false | 1,712 | py | # Generated by Django 2.1.3 on 2019-10-10 13:38
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('search', '0014_auto_20190719_1155'),
]
operations = [
migrations.CreateModel(
name='AdvancedSear... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
4b4d36b26e7d2fc8de7b4008abe4f6bf9efa866e | 036615d94d3cd048d6fd5895b398dd64e31e150b | /Support Vector Regression/Support Vector Regression.py | 78d2384623062416ed31c812c55e61f094d668f5 | [] | no_license | TaymoorAk/Machine-Learning | e5c7469ed98c31370d9ae31d01f45dc82b656fe3 | 938a152469d82bb1fbf9f19104395487606def61 | refs/heads/master | 2020-04-17T00:53:03.677399 | 2020-03-12T12:40:22 | 2020-03-12T12:40:22 | 166,066,165 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | ' SUPPORT VECTOR REGRESSION '
'Importing Libraries'
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
'Importing DATASET'
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:,1:2].values
y = dataset.iloc[:,2:3].
'Apply feature Scaling'
from sklearn.preprocessing imp... | [
"noreply@github.com"
] | noreply@github.com |
5925d8c069b068625838d2d835608430dd10d97c | ce488e674dc95e9ac7d73e63ff3ec688dba5b443 | /practice/linkedlist.py | 67a7f5992d3bf8e065815e75787bc4f05a797fc0 | [] | no_license | groovycol/week8-skills-concepts | 1016357f0814ab147a2969a3169b6885e24a931f | bbbfef361d31bafe412d41178269c1e0f1bba919 | refs/heads/master | 2020-04-02T20:05:01.693548 | 2016-05-30T03:52:00 | 2016-05-30T03:52:00 | 59,912,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # Linked list with Node/LinkedList classes
class Node(object):
"""Node in a linked list."""
def __init__(self, data):
self.data = data
self.next = None
def __repr__(self):
return "<Node %s>" % self.data
class LinkedList(object):
"""Linked List using head and tail."""
d... | [
"groovycol@gmail.com"
] | groovycol@gmail.com |
75b3291d3896b4f1adca2395879097b999ebaa0c | eeafb1890e41219cf677af5f70612d7c19ddf50f | /number_pattern.py | cf037dceab672d3108f3b2a28579f86e5749da2a | [] | no_license | lradebe/simple_programming_problems | 0c4299308da62b667b90c6d2680ff9858e07a85c | ee1f1a8d612ca425bfe61c48146f559b6f56835b | refs/heads/main | 2023-09-02T18:49:19.625649 | 2021-11-16T19:37:25 | 2021-11-16T19:37:25 | 406,937,386 | 0 | 0 | null | 2021-10-12T22:03:45 | 2021-09-15T22:07:41 | Python | UTF-8 | Python | false | false | 183 | py | def number_pattern(number):
for num in range(number):
print(str(num) * len(range(num)))
print()
if __name__ == '__main__':
number = 4
number_pattern(number)
| [
"lwaziradebe100@gmail.com"
] | lwaziradebe100@gmail.com |
daa3d653f4c374205f2e794ea68a62b84f6ddc08 | c95f76dfe8aab9c22de487daa53bfb12d2d23fd5 | /budget/migrations/0009_auto_20200927_1029.py | 9b5eff6317ee7283ca13eecba97254bcb500b20b | [] | no_license | MartaJasek/family_budget | 122b8fcf5bfe234d17e0cc136de65f45d8bf3894 | 1f3bc44bb1ec730696f89b36e483397e833ddfc2 | refs/heads/master | 2022-12-22T20:56:30.749776 | 2020-09-27T13:48:43 | 2020-09-27T13:48:43 | 298,771,615 | 0 | 0 | null | 2020-09-26T10:19:51 | 2020-09-26T08:34:29 | Python | UTF-8 | Python | false | false | 660 | py | # Generated by Django 3.1 on 2020-09-27 08:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('budget', '0008_auto_202009... | [
"marta.jasek@yahoo.com"
] | marta.jasek@yahoo.com |
73a7467e699b9b1bcb92b3230e63358c48fc8268 | fd0ef72e7fa2693ae576389773e794e0c717c7c3 | /feature_extractor/fir_filter.py | 63573dd756f4fbbe3bcd1e9d38bb220550a0230f | [] | no_license | zhangsen1802/spoken_language_classification | 06a1f6d03e6d7ce27f6108064a1e89ea2e6b4950 | b5807d7eadaa978aa5a8d893aa71e1e96b601cd9 | refs/heads/master | 2022-02-27T13:15:25.665758 | 2019-10-15T11:30:05 | 2019-10-15T11:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from scipy.signal import kaiserord, lfilter, firwin, freqz
class FIRFilter:
def __init__(self, signal, rate):
self.signal = signal
self.rate = rate
def f_filter(self, ripple=60, cutoff=5):
nyq_rate = self.rate / 2
width = 5.0 / nyq_rate
N, beta = kaiserord(ripple, wid... | [
"linhndt@viettel.com.vn"
] | linhndt@viettel.com.vn |
7659459672a025e4b61ead51cea0f2b290a37634 | 796d2e8c1b801b745e628876b20f03399b343b39 | /learning/admin.py | 4505b532c666c0cb54ee8ef0d215b472516390d7 | [] | no_license | educatecomtr/stocks | 25b675996350d8496bf163ffef2d539ebcb9c6ec | 16fa674a694981ce77be4e915440883f3d08e65e | refs/heads/master | 2021-06-25T22:18:29.239692 | 2020-12-26T13:17:14 | 2020-12-26T13:17:14 | 180,432,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.contrib import admin
from learning.models import Product
admin.site.register(Product)
| [
"info@internet.com.tr"
] | info@internet.com.tr |
622d6ebfa27243050d46b43e17fbdae195a07cdd | d4328041e05f72824e001cc300dcd48a6a0b63df | /decisionmaker/urls.py | 65f601bed8bb21cc441e2ffcd27ce20a597c69ec | [] | no_license | rkasale28/Decision-Maker | 4db06caed68ac052e2de54c81b05445de6ae2595 | 21867ff463a15c3d8438b1fbb75392b90f08d4b5 | refs/heads/master | 2022-09-15T19:23:07.122106 | 2020-05-26T06:59:59 | 2020-05-26T06:59:59 | 260,201,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | """decisionmaker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"rohitkasale28@gmail.com"
] | rohitkasale28@gmail.com |
422b432cd65d1b069db07a9ef0dd5bd2f9a6b092 | 8f3985f7e51f3e9874fc3795253d396109095f45 | /tests/test_compose.py | 813f5483c0b910091aa7cb8841e8c66f50ee0eed | [
"Apache-2.0"
] | permissive | H-Pastry/PSFDataset | 18c5b738ff6c281814dce0eb622f2361997cb5c0 | 6826d7c9c21be4a98ed9a0176806b0a1cbf8cedc | refs/heads/master | 2022-06-13T18:13:49.873214 | 2020-05-07T16:20:24 | 2020-05-07T16:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # -----------------------------------------------------------
# Test composing transformations.
#
# (C) 2020 Kevin Schlegel, Oxford, United Kingdom
# Released under Apache License, Version 2.0
# email kevinschlegel@cantab.net
# -----------------------------------------------------------
import numpy as np
from ..trans... | [
"kevinschlegel42@gmail.com"
] | kevinschlegel42@gmail.com |
eca04642b2ba94dc8c12489625c83dd3baee1cd1 | ed52713b051cf13009e829eb1ac3db033caa61bf | /learning_templates/basic_app/views.py | 8723f27914374252f748e89a1e16be3e977a1d62 | [] | no_license | zsigil/django-deployment-example | cdbfa4dfb0b283b7a30e323483145d1a93c585fc | a56b9a50b755469a1a0b9ff2ba6c61c61e026242 | refs/heads/master | 2020-03-06T22:18:00.794478 | 2018-03-28T07:36:28 | 2018-03-28T07:36:28 | 127,099,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | from django.shortcuts import render
from basic_app.forms import UserForm, UserInfoForm
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.urls import reverse
# Create your views h... | [
"chickpox@freemail.hu"
] | chickpox@freemail.hu |
782a5e2a11fe39696a75f0f5a033a5af024cc786 | f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05 | /Python/Counting_Valleys.py | db3c7a3eda8be589ae74a986fadb83c8e44b2c00 | [] | no_license | ankitniranjan/HackerrankSolutions | e27073f9837787a8af7a0157d95612028c07c974 | e110c72d3b137cf4c5cef6e91f58a17452c54c08 | refs/heads/master | 2023-03-16T19:06:17.805307 | 2021-03-09T16:28:39 | 2021-03-09T16:28:39 | 292,994,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import math
import os
import random
import re
import sys
# Complete the countingValleys function below.
def countingValleys(n, s):
level=valley=0
for i in range(n):
if(s[i]=='U'):
level+=1
if(level==0):
valley+=1
else:
level-=1
return... | [
"noreply@github.com"
] | noreply@github.com |
b7530b96cf67aaf73f9dd13b5488f34cdaa51b55 | 1cc498b1ad793506896891bde83d7e9280d33c13 | /devel/lib/python2.7/dist-packages/nodes_pkg/__init__.py | cb3ee6aa491ffc70a061700110e01b90caeb204e | [] | no_license | EduPonz/RobotProgramming | cddc2447ade83d0d591fe0f21cb0870a3364d6b6 | b0c950f98902f7fa44f21eacfa450ee2a19fe1fa | refs/heads/master | 2021-01-12T06:50:38.777523 | 2017-01-10T12:39:02 | 2017-01-10T12:39:02 | 76,843,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | /home/eduponz/RobotProgramming/devel/.private/nodes_pkg/lib/python2.7/dist-packages/nodes_pkg/__init__.py | [
"e.ponzs@gmail.com"
] | e.ponzs@gmail.com |
c4a8f635188831c0fd5ddfbb48da5189fa50438c | b263ad54ce23cff978b06ad18e32593e0b38240e | /SnapperCreate/rbCreate/drivers/manual_steering.py | f21a5c278040f8a5312026bb0e940bb2eb95f20c | [] | no_license | carlh/Create2AndSnapperArm | c695f285cc2699f2abd24aefb4e50d6f0deef6e6 | 668361b38c92de5c81fb9ed39386d5c1385df7ba | refs/heads/master | 2020-12-24T18:42:16.016998 | 2016-04-24T12:02:50 | 2016-04-24T12:02:50 | 56,465,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py | """
The MIT License (MIT)
Copyright (c) 2016 Carl Hinkle <cghinkle427@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation t... | [
"cghinkle427@gmail.com"
] | cghinkle427@gmail.com |
e15c5f1983b8fc63e4ec6da464da368d065b54d4 | 818e64f8bc6c2543a27d686c8ab8d7cb660640ec | /web/webapp/bot/forms.py | 5185e2b17573b73843947d98c0a25eb000c153d7 | [
"Unlicense"
] | permissive | technicalmini/InstagramBot | 02c73e7a1b966e41f3efb18defbdd84e0313fa38 | f7f042ee919a02e41de74bf0f91ce8ccc9ade798 | refs/heads/main | 2023-03-04T11:18:20.545614 | 2021-02-13T19:57:12 | 2021-02-13T19:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, IntegerField, SubmitField, PasswordField
from wtforms.validators import DataRequired, EqualTo
from wtforms import ValidationError
from wtforms_alchemy import QuerySelectField
from flask_login import current_user
from webapp.models imp... | [
"tobias@Lingnas-MacBook-Pro.local"
] | tobias@Lingnas-MacBook-Pro.local |
bcedf778fb4f57e2789e5c692524d1abfefe846f | af4f7d5522e362c207ddc5a06872923fdb38765a | /weixin/weimsg.py | a63216c03bd5db97005518e7d1ac668ad4e605f7 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | jixuduxing/django-ex | 288b823f7f0282675fc3f206ffd1d0a847f741fc | fab0a44045206ccb0038d372c70867d5dedbc0a8 | refs/heads/master | 2021-01-21T19:27:49.899007 | 2017-07-03T02:44:34 | 2017-07-03T02:44:34 | 92,139,106 | 0 | 0 | null | 2017-05-23T06:47:54 | 2017-05-23T06:47:54 | null | UTF-8 | Python | false | false | 3,026 | py | import hashlib
import os
import re
# basic info
re_msg_type = re.compile(r"<MsgType><!\[CDATA\[(.*?)\]\]></MsgType>")
re_msg_tuid = re.compile(r"<ToUserName><!\[CDATA\[(.*?)\]\]></ToUserName>")
re_msg_fuid = re.compile(r"<FromUserName><!\[CDATA\[(.*?)\]\]></FromUserName>")
re_msg_ctime = re.compile(r"<CreateTime>(.*?)... | [
"jixuduxing@gmail.com"
] | jixuduxing@gmail.com |
9b5f678ee01f74948e3abe78205622ca733d1def | f6d96e9505103428402ea9772fdd0b48c4dff7e9 | /tests/test_models/test_place.py | 4bd8e6e2e665353886e8de7c111a98acd68c7add | [] | no_license | KarenCampo777/AirBnB_clone | 8271a2a7f75c01ea875b9232a939f1f58f484705 | 95051e3c7c05837b89966caae55bb54eef81c95f | refs/heads/master | 2023-03-14T03:41:18.367359 | 2021-02-24T22:32:17 | 2021-02-24T22:32:17 | 276,201,869 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | #!/usr/bin/python3
"""
Test module for place module
"""
from models.place import Place
import models
import unittest
import os
import datetime
class TestPlace(unittest.TestCase):
""" Testing an Place instance """
def setUp(self):
"""
Setting up the test instance
"""
self.my_... | [
"andresbaymon@gmail.com"
] | andresbaymon@gmail.com |
d84e36d8cd9c5b11daff2b46fd9a882e9ea69bdb | 00cfe2b2c1205d005ce11a17f5cddfb9a29ebcec | /rev_str.py | 866f11246fc22344e322d0fcabb3c0d5f317785e | [] | no_license | roopkumard19/Python | 7c31238ac720ab1b224e78c3c9e29b57975719a7 | 80aef1594cdb9656e11449ec5920108ab1be2e4d | refs/heads/master | 2021-01-19T20:18:33.515637 | 2017-05-23T02:14:10 | 2017-05-23T02:14:10 | 83,746,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | def reverse(string):
if len(string) <= 1:
return string
else:
return reverse(string[1:]) + string[0]
def reverse_word(text):
text = reverse(text)
text = text.split(" ")
result = []
for item in text:
temp = reverse(item)
result.append(temp)
return result
if __name__ == '__main__':
s = raw_input("En... | [
"noreply@github.com"
] | noreply@github.com |
ac98559499064faeb61e844e8d542b2ee2952c71 | 73104abd9324736e7b038df3cb7f84fa2a8f6f42 | /toolseo/wsgi.py | f6e953bc8edc2ef7370f0d5aa0bd3906b1f70893 | [] | no_license | spsp01/tool | b32c107ed499a44301d3b7d27d42a63fbbe280e1 | df6cd3d4caf9ca60058c95a55b81104ba410a1cc | refs/heads/master | 2020-03-18T22:05:43.971295 | 2018-12-10T13:35:49 | 2018-12-10T13:35:49 | 135,324,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for toolseo 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"spsp01@o2.pl"
] | spsp01@o2.pl |
71c473a4ce644be35e7385d43b5dfc76a15ba0fa | 7699dd3267f62ea1089c7b356639924d738e8033 | /CNN.py | c3e9f4dd60be1255eec6ee339f381d8b33b0dcf9 | [] | no_license | aswinsourav/CIFAR-10-Classification-Using-Numpy | a5f06446cc4c32b5f76edfe6aa60a11a8009e6ec | fa8ab4772cf6750e819a75a90d8c8d366b18f9b0 | refs/heads/master | 2021-05-16T17:44:59.098027 | 2017-09-11T01:26:54 | 2017-09-11T01:26:54 | 103,072,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | class CNN:
def __init__(self,input_image,filter_size,stride,filter_depth,channels,pad,dropout_p):
self.input_image=input_image
self.filter_size=filter_size
self.stride=stride
self.filter_depth=filter_depth
self.channels=channels
self.pad=pad
self.dropo... | [
"noreply@github.com"
] | noreply@github.com |
33bada0a6ebc9c86ad48aa12cb5fff42acd3588a | 3b43cf4cfc666798ebe85ed1db8858034b13d45c | /tests/universal_functions_tests/power_tests/normal.py | dab58c185239f89bab51ee55c80dbe61e5d4326a | [
"Apache-2.0"
] | permissive | Pandinosaurus/legate.numpy | 5428b80a0a53ab882cd74b5dbf5fd86c7ee82199 | 896f4fd9b32db445da6cdabf7b78d523fca96936 | refs/heads/master | 2023-06-27T04:33:52.982601 | 2021-07-01T21:39:52 | 2021-07-01T21:39:52 | 358,820,941 | 0 | 0 | Apache-2.0 | 2021-08-01T02:57:57 | 2021-04-17T08:06:05 | C++ | UTF-8 | Python | false | false | 1,000 | py | # Copyright 2021 NVIDIA Corporation
#
# 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 wr... | [
"wonchanl@nvidia.com"
] | wonchanl@nvidia.com |
de7cbb78c9d77b6a8d1cf0544c40cf06f333cee2 | 1c2d329adcd6683c93125e4309bae2a60a007c9c | /lab1.py | 1a1672eea43477ac063a872033cbf10f3d157c14 | [] | no_license | Heldiggris/CG_Labs | 30e7708e2df5b911172ecdf7caa4e136b1f8f504 | bb75de40183a69dcf678300ac2e6a9d3af5ffc51 | refs/heads/master | 2020-03-29T17:49:47.720588 | 2018-11-05T22:57:02 | 2018-11-05T22:57:02 | 150,181,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,185 | py | # Построение графика функции
# Потенко Максим М8О-307Б
# Функция r = a * (1 - cos(phi))
import cv2
import numpy as np
import math
from tkinter import *
from PIL import ImageTk, Image
import os
# Отбеливание изображения
def white_img(img):
h, w, d = img.shape
for i in range(h):
for j in range(w):
... | [
"potenkog@gmail.com"
] | potenkog@gmail.com |
dc9d726c1e74ed904273b707f36a0cf9e3e067a3 | 237799f505290e899ad710667de2c097b40baa93 | /viper/input/inputTester.py | c9968cd5cdd0a9079db4110c8478d75e83221149 | [] | no_license | GaryZ700/viperEngine | 3b7312cb3089cfa6727298fefcaaff6f66346366 | 18fe9e3909da496cc561939c1ca6f2e8270ec23e | refs/heads/master | 2020-04-04T23:16:58.731007 | 2018-11-19T02:03:44 | 2018-11-19T02:03:44 | 156,353,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import msvcrt
import time
from input import input
i = input()
def test():
print("DOwn")
def test2():
print("Up")
i.addKeyBinding("UP", "whileKeyDown", [test])
i.addKeyBinding("UP", "whileKeyDown", [test2])
while(True):
#print(msvcrt.kbhit())
#if(msvcrt.kbhit()):
# msvcrt.ge... | [
"root@DESKTOP-7TOTAEN.localdomain"
] | root@DESKTOP-7TOTAEN.localdomain |
7b9478ad3395af89ea80e87c973e3abef34f94b0 | 5c9b5338659f1b5c55a87d9aab65aa1a2b6be9f1 | /article.py | eaaaa37e322e166feb82d13a33f63b4e9c69f7ad | [] | no_license | weirongsie/hulabear_downloader | 2d3b3d00815355a2319be9c386a766d31edaa11e | b97dc9cf45b65fe62e3f43d7e41185244fe54e9a | refs/heads/master | 2021-07-11T23:29:02.241653 | 2018-01-24T16:37:00 | 2018-01-24T16:37:00 | 96,695,413 | 8 | 1 | null | 2018-01-24T15:12:15 | 2017-07-09T16:04:09 | Python | UTF-8 | Python | false | false | 3,079 | py | # -*- coding: utf8 -*-
import re
import ConfigParser
class Article:
def __init__(self, index, raw_content):
self.index = index
self.title = ""
self.author = ""
self.publication_date = None
self.ip = None
self.content = ""
self.responses = []
... | [
"test@gg"
] | test@gg |
ada10adc0bef6aee3f66cc6505c04af63ade6437 | ca2818572d17285210792694ba1f07c99e11d9ad | /setup.py | 209a4bd93203208084c183cf32cece8f76ddf3bd | [
"Apache-2.0"
] | permissive | tomzhang/codesnap | cc335e8a63af70ed0121b222eb4fc2e35841b0b0 | 04e11176888243052c46a6a04a1ba63a8f80d684 | refs/heads/master | 2022-11-29T16:23:05.625385 | 2020-08-09T07:11:58 | 2020-08-09T07:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import setuptools
from distutils.core import Extension
with open("README.md") as f:
long_description = f.read()
setuptools.setup(
name="codesnap",
version="0.0.4",
author="Tian Gao",
author_email="gaogaotiantian@hotmail.com",
description="A profiling tool that can visualize python code in flam... | [
"gaogaotiantian@hotmail.com"
] | gaogaotiantian@hotmail.com |
4c236c1bace8030ea42ef74bcaaa38063e9f808c | 67acdf1918786bc59c324af58d16a4ce0b6bdef7 | /main.py | 43f3d2e671d37602c2f7a7a7cdf61c6eb65ecfc5 | [] | no_license | krigelmanj/web-caesar | d66b1ed9c0553bbbc9c42e42166d802ce486ea85 | d3949867594462b553f92f51b393ffe45081216a | refs/heads/master | 2020-05-23T07:49:38.339103 | 2017-01-30T18:31:09 | 2017-01-30T18:31:09 | 80,450,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"eng250@nyu.edu"
] | eng250@nyu.edu |
7e7837310b3043f2473a0f6f8cd0295e29153617 | 4d30f96c1a67d866eb5b8a35896a48c7edb58dac | /serdnio_zaawansowany/sekcja_2/funkcje.py | 98bfef6b4e9cd85d8398eca295c6aec38d86fc3a | [] | no_license | michaszo18/python- | d729a3b4dbc35937c45711b28d876f4ea9e3e4ca | 4d854423f3c97bf2d726c8337610e81f05e575a7 | refs/heads/master | 2021-06-18T01:50:13.453347 | 2021-02-15T20:04:21 | 2021-02-15T20:04:21 | 171,266,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | def double(x):
return 2 * x
def root(x):
return x**2
def negative(x):
return -x
def div2(x):
return x/2
number = 8
sequence = [double, root, div2, negative]
tmp_return_value = number
for step in sequence:
tmp_return_value = step(tmp_return_value)
print(tmp_return_value)
print("#" * 60)... | [
"michaszo18@gmail.com"
] | michaszo18@gmail.com |
8079705487272d96bf238f6579ecca2dadb6d815 | bbb9a19e6e57c925ca2f32e11db06178dcd503a1 | /blog-v1/blogsite/blog/views.py | 702b13845cd1be57b38d6fcff6aa163626698aec | [] | no_license | dhanushka-gayashan/django-projects | ebb2e9d6c9c5081b2aa31ac714c42c8f8a6feb34 | 75699a6185cd20b9297683ef5b504e2b4cc3d2e3 | refs/heads/master | 2022-06-29T02:30:11.252484 | 2020-05-12T05:30:59 | 2020-05-12T05:30:59 | 256,104,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.views.generic import (TemplateView, ListView, DetailView... | [
"dhanukdg.soft@gmail.com"
] | dhanukdg.soft@gmail.com |
7682d015ae7bf1c66760f66ccd69828722c28cbf | d3ea9bc41e61a441ab4e239ad8b3fefd4a586e4c | /populace_learning.py | 0f9b759f9fc2e20155b00ff1f7c7216e26757102 | [
"MIT"
] | permissive | RPGLite/analysis | 6363a4e293d331a2164d61c5a8ec058f1ecee578 | 13f683beb26d77c6f7ae7de54808b0cb5acb9eee | refs/heads/master | 2023-09-03T20:16:42.343990 | 2020-12-09T12:38:59 | 2020-12-09T12:38:59 | 253,753,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,183 | py | # William
# Generate line graphs for comparison of the average cost of moves comparing player experience and days since release.
from helper_fns import *
import numpy as np
import matplotlib.pyplot as plt
import math, pymongo
from bson import objectid
#from scipy.interpolate import make_interp_spline, BSpline
# Some... | [
"bkav93@gmail.com"
] | bkav93@gmail.com |
c4f32be09e672db78a8a8c41b2a248a37a4287d8 | af41c70b2a279d20a6f5c8aa6ea56d41894f9366 | /caravaggio_rest_api/apps.py | a5aa7ddb7ed39ddbaacf0b223e4489f0483a4074 | [
"MIT"
] | permissive | xalperte/django-caravaggio-rest-api | 7c0cd2706520b1d82d9a12d52be526c7f2fb3aa5 | 36fcdc6b77982fc7fd2462f2c8997911f14047c4 | refs/heads/master | 2020-06-20T20:18:59.357529 | 2019-03-11T16:39:41 | 2019-03-11T16:39:41 | 197,235,376 | 0 | 0 | MIT | 2020-02-29T02:06:57 | 2019-07-16T17:05:58 | Python | UTF-8 | Python | false | false | 376 | py | # -*- coding: utf-8 -*
# Copyright (c) 2018-2019 PreSeries Tech, SL
# All rights reserved.
from django.apps import AppConfig
class CaravaggioRESTAPIConfig(AppConfig):
name = 'caravaggio_rest_api'
verbose_name = "Django Caravaggio REST API"
def ready(self):
pass
# Add System checks
... | [
"javier.alperte@gmail.com"
] | javier.alperte@gmail.com |
8a4209560e01a9bb2625b02445afa69dcf3b28fc | e7ff2f9e21a94f2956b8c79f268dc6d45b41237b | /Frontend/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | b5962c025c83982c05fecf7c1819e71e4893c18a | [
"MIT"
] | permissive | vipul-07/MERN-Project | fcb4af686557b99b802404e8622905781e89bbc3 | c0bdd3b5dfc73b2657b8563d069360e11466714a | refs/heads/master | 2023-02-14T15:42:38.653627 | 2021-01-10T05:35:02 | 2021-01-10T05:35:02 | 317,460,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
8c6d81cd4db4951e024e27145336d78bfff492b4 | d583393a14c84b3e0dbf4a63a481beddb5f5a5fe | /scripts/start_guild.py | 64dc5a24aeed3a88c208b914ad4d72350b854a56 | [] | no_license | daxingyou/qingguoqingchen-erlang- | 33917edb1d0b8a2311d81c485f271f3bbedc952a | 5daa9c16847033c872e1c544eeb2d902359e4d97 | refs/heads/master | 2021-12-04T10:01:47.321589 | 2015-03-09T08:34:05 | 2015-03-09T08:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | #!/usr/bin/env python
import os
import sys
host = '127.0.0.1'
if len(sys.argv) > 1:
host = sys.argv[1]
cmdline = './start.py --dbcenter $host$ --linecenter $host$ --guild $host$ --gmcenter $host$'
cmdline = cmdline.replace('$host$',host)
print cmdline
os.system(cmdline)
| [
"yunfei_lei@126.com"
] | yunfei_lei@126.com |
f32cc09e9b5e4191dae2fb825a128f8ca6aa38c6 | 2e2a02ec8323982975ace3d249b22a42d8b97a1f | /skipper.py | 11171dc6ca97629b3d735b09f2921f679e80ed68 | [] | no_license | datagovua/os-budget-ukraine | 4e8c6d0373aead42890349befbd69bf8e8fef0a1 | 3a45f89c3872c9b9b45fb1206da445989b37b335 | refs/heads/master | 2021-01-13T02:49:03.608617 | 2016-12-22T20:59:14 | 2016-12-23T01:14:22 | 77,156,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import logging
from datapackage_pipelines.wrapper import ingest, spew
_, datapackage, resource_iterator = ingest()
def intTryParse(value):
try:
int(value)
return True
except ValueError:
return False
def process(res):
for row in res:
if intTryParse(row['1.0']):
yield row
... | [
"vanuan@gmail.com"
] | vanuan@gmail.com |
075d12cc2468772d65f234d0d7a4d9c0f0e457e7 | 0a7c900b7fb2ca321852ae475c2ed2caac030477 | /main.py | 559cf0e231904ad36b3b0d2312b025871e48499b | [] | no_license | fabiofucci98/PathFinding | dd1d7ec78aa951bcaa692a5909b3cad2425482c0 | 591a74280f092fd3bf122155cc7bc9c106535f24 | refs/heads/main | 2023-03-24T05:56:28.968213 | 2021-03-22T14:06:08 | 2021-03-22T14:06:08 | 350,362,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,398 | py | from tkinter import *
from tkinter.ttk import *
from graph import Graph
import search
import search_pruning
import heuristic
class App(Tk):
def __init__(self, parent, *args, **kwargs):
super().__init__(parent, *args, **kwargs)
# size of square side and canvas side
self.square_side = 25
... | [
"noreply@github.com"
] | noreply@github.com |
b86cb72958a9d1bc11a459aaf2d9c0061872b3f9 | da1f46a29a8736d964af372a4c6aa7f205ff67da | /01_Vulture_vs_Zealot/Perfect_Performance_test/vz_PPO_test.py | 60e827aaf48015a0ba63c886d220fb5037fe699a | [] | no_license | betastarcraft/Problem_1 | 9eb783410633a3f981a73dabd20382dae1ed5128 | 401682a6f02067333ab004ca906c0edf6927dff2 | refs/heads/master | 2020-08-30T06:26:50.293707 | 2020-05-21T10:56:57 | 2020-05-21T10:56:57 | 218,290,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,387 | py | from saida_gym.starcraft.vultureVsZealot import VultureVsZealot
## gym 환경 import VultureVsZealot
from collections import deque
import numpy as np
import random
import os
import math
import pickle
import time
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
... | [
"noreply@github.com"
] | noreply@github.com |
7b22a98ec9edab84239d505a37031161cc9b6fdc | 7dfccf846e545e178c67964998daa828d8c864e9 | /userpanel/views.py | 2f6963efee67d33e1a6105cd4ab24c52e4830755 | [] | no_license | akashpoddarr/yashvardhanretail | bca1ce1f64f8d5727c7506459088696fe52d907d | 4cc64e6c8517b4fdf94f7d2824bd00d2ed8ba840 | refs/heads/master | 2023-04-18T00:11:13.517871 | 2021-04-29T08:30:49 | 2021-04-29T08:30:49 | 349,639,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | from django.conf import settings
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib import messages
from django.http import JsonResponse, HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from django.contrib.auth.decora... | [
"poddar.akyk184@gmail.com"
] | poddar.akyk184@gmail.com |
3918f61e23c0b6d7ff36122f0d2b5f1149268f15 | ddecd36b9d2b198f7abd7018d9e47418481f1123 | /pay.py | 676a13244fff0d70b5188b78cf90bf84bb59d046 | [] | no_license | ghartong/pythonClass | 6ab694067c41418c6dbc062188522428f2298876 | 44a48c183c4b92709d87582df631e776299cb8f6 | refs/heads/master | 2020-06-28T00:53:16.593876 | 2019-08-01T18:15:10 | 2019-08-01T18:15:10 | 200,098,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | hrInput = input("Enter hours:")
rInput = input("Enter rate:")
errors = False
try:
hours = float(hrInput)
except:
print("Hours must be numeric")
errors = True
try:
rate = float(rInput)
except:
print("Rate must be numeric")
errors = True
if errors != True:
pay = hours * rate
print(pay) | [
"Glenn.Hartong@signetjewelers.com"
] | Glenn.Hartong@signetjewelers.com |
bef0ed13f2de69be65966c0dbd62c900617726fa | b9cb653a048ff4a3a50f670af653776e90e98e39 | /App.py | 9c2bc9a33a53371d3d1df6bf7158419d27cff9d4 | [] | no_license | constantiux/creditsuissecit | 36988ff03467e799a72562def6196ea537ffe1c7 | a6b743b5b7baed3af52964f670a5f1c3887544f2 | refs/heads/master | 2022-12-19T03:23:35.076967 | 2020-09-29T10:18:16 | 2020-09-29T10:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import os
import glob
import logging
import socket
from flask import Flask, request, render_template, jsonify,send_from_directory
from codeitsuisse import app
@app.route('/', methods=['GET'])
def default_route():
root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'codeitsuisse', 'views', 'problems')
... | [
"18105757+grrlic@users.noreply.github.com"
] | 18105757+grrlic@users.noreply.github.com |
28d10354490b85281a08488e292224bd29f749ea | 4c588959f0415e671b301972da2250b3304e1d73 | /medea/tests/test_mapper.py | 5960fac13e62fc0f3c13d38970fb9a591652d2d8 | [
"MIT"
] | permissive | kevinbeaty/medea | f7c4c5b083a9010307320a09bbc111e7df86e0c8 | c200be0e781299d0f9064f5cb44b90d5c01dcfb3 | refs/heads/master | 2023-09-03T20:39:55.584986 | 2014-01-04T12:20:38 | 2014-01-04T12:20:38 | 14,655,913 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,834 | py | """
MedeaMapper test
"""
from . import Person
from .. import MedeaMapper
def test_object_args_to_json():
bob = Person('Bob', 'Hope', '123 Main', '123', '1903-05-29')
mapper = MedeaMapper('first_name', 'last_name')
bob_json = {
'first_name': 'Bob',
'last_name': 'Hope'}
assert mapper.t... | [
"kevin@simplectic.com"
] | kevin@simplectic.com |
62bb60a7627578d846612bcd7722a06c13cd08ca | d4ea3d36e61fa1a3b30fe1e2a8daaad517c612d6 | /ExtractDocByID.py | c28e9ae6d0eb30f64a3275c49c647c369f5229f0 | [] | no_license | mateuss-ntnu/TopicModeling | 39a36b9c99c2d9ffeb6067df4dd5b92fea02554c | b8caf90e24fe1021d55312d08717e9260662cf93 | refs/heads/master | 2021-01-10T07:20:10.767335 | 2016-02-17T21:58:44 | 2016-02-17T21:58:44 | 49,872,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from gensim import corpora, models, similarities
pathDictionary = '/Volumes/My Passport/gensim-wiki-ensimple-20160111/dictionary.dict'
pathCorpus = '/Volumes/My Passport/gensim-wiki-ensimple-20160111/corpus.mm'
pathIndex = '/Volumes/My Passport/gensim-wiki-ensimple-20160111/index.index'
corpus = corpora.MmCorpus(pat... | [
"mateusz.siniarski@gmail.com"
] | mateusz.siniarski@gmail.com |
d1668c6c2f07163c5dfc0e6337ad4655521fb14a | e6f1bb6ee51e83b8efdaec38ec553388fce78103 | /updateBaseImage.py | e65360e9caf8220fc6d8952c6683a03a9f33009e | [
"Apache-2.0"
] | permissive | Azure-App-Service/php-template | aa1afe19e97dc147c42a909fc04a600804bda368 | 7d7706f45df8d2d1fc3239cc697319d05f2d9b08 | refs/heads/dev | 2020-05-19T17:08:37.868562 | 2020-02-25T21:18:45 | 2020-02-25T21:18:45 | 185,127,929 | 2 | 3 | Apache-2.0 | 2020-01-17T22:28:00 | 2019-05-06T05:17:13 | Python | UTF-8 | Python | false | false | 1,018 | py | import requests
import argparse
import json
import time
import threading
import sys
def getConfig(config):
f = open(config, "r")
content = json.loads(f.read(), strict=False)
f.close()
return content
def writeConfig(content, file):
f = open(file, "w+")
f.write(json.dumps(content, indent=4, so... | [
"31744877+patricklee2@users.noreply.github.com"
] | 31744877+patricklee2@users.noreply.github.com |
69fc7bd70b34d6f4379525241c0417e7f0d0b035 | 5ef1f32696a5ef5124aedf11a16e75c06d8ae997 | /user/migrations/0004_auto_20201118_2028.py | 999ffe5a69e5c1d2ce9b11f0a1d1dcabafbf7001 | [] | no_license | amusesla/14-1st-HOT-backend | f1e2863570cae34a5b877f62b930892ce08de99d | 1680ae9c8365f9af4caf24ee42b59d249cd27730 | refs/heads/main | 2023-02-17T06:33:20.703349 | 2021-01-17T10:40:00 | 2021-01-17T10:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Generated by Django 3.1.3 on 2020-11-18 11:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20201118_1924'),
]
operations = [
migrations.RemoveField(
model_name='cart',
name='order',
... | [
"amusesla@gmail.com"
] | amusesla@gmail.com |
8c60e0c394d4f8ed99349dee8cf83e79c82a2825 | 66ab57a8a9f03ac155c1d25b904c5ddf766e6c4c | /src/fetch.py | 0d71d3180a4674e861f947f6d97c3dc1e2dc6b8e | [] | no_license | rahullabs/slideshare-downloader | b2716a9074d397b0fdbe3bf43fd749f8a53c6d24 | 20086567c62f9085958343b57fe7a3d3d34d0483 | refs/heads/main | 2023-07-14T04:03:09.714024 | 2021-08-27T07:11:02 | 2021-08-27T07:11:02 | 399,691,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | import requests
from bs4 import BeautifulSoup
import src.helpers as hp
import shutil
from PIL import Image
from tqdm import tqdm
import os
class Fetch():
def __init__(self, arguments):
super(Fetch, self).__init__()
self.args = arguments
hp.imageDirectory(self.args[0])
def directory... | [
"rahul.maharjan.12114@ncit.edu.np"
] | rahul.maharjan.12114@ncit.edu.np |
b0258289543572c3d2fd2b3d83991eb4e2d9f4dc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/orchs/svcsencap.py | 83b1a538fc7c72069845b02465a56b59e320b8da | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,108 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
3157fe6fdd447bb57057687c3cf1dc6b2b15380c | 7eadcb17f2555a80b1d7a065a9f9cefbe3c127e7 | /frappe/translate.py | d3d629a6fbd8419a6d004f9b68b66dfb0ab778d2 | [
"MIT"
] | permissive | sivaranjanipalanivel/frappesample | a97f7c636d5f5869e3410a57bc3ac82d32884d0e | e37ff70ac92c16d1fb0bce5eb11dad62c9ff7564 | refs/heads/master | 2020-07-24T17:00:35.139985 | 2019-09-12T07:21:50 | 2019-09-12T07:21:50 | 207,989,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,483 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals, print_function
from six import iteritems, text_type, string_types
"""
frappe.translate
~~~~~~~~~~~~~~~~
Translation tools for frappe
"""
import frappe, os, re, codecs, jso... | [
"you@example.com"
] | you@example.com |
153121106ebc24e5c336526de3225d92751f09bb | 2efa07bd7d8864950fb2f377386d74a2ee992d3a | /project.py | c044ceba15827ad76acdba4c58a966ae8a6a9a4b | [] | no_license | Sbk3824/RestaurantWebsite | 9e318c30dd65fe46fe8adbc3aa4ccde0a4924f74 | a7930a6d487700d2d6fa54201f87eda48d16528f | refs/heads/master | 2020-03-20T19:19:48.387025 | 2018-07-06T01:52:47 | 2018-07-06T01:52:47 | 137,632,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,252 | py | from flask import Flask, render_template, request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem, User
from flask import session as login_session
import random
import string
from oauth2client.clie... | [
"shantu24@gmail.com"
] | shantu24@gmail.com |
a242b4b5f7d0a846496f0be692655f3219904e71 | cbe5c182c2783f867ac05a075d42e95963d789cb | /guizero.py | 9068b27bb0a28f701117377f7c33cbcc0346877a | [] | no_license | Amoory001/codes | 6fd4251156b0383519b6853b2e154947e96ae793 | 494e74a6aa775671eb36bbf16a6ddfee46889427 | refs/heads/main | 2023-02-28T13:17:47.764735 | 2021-02-10T11:43:54 | 2021-02-10T11:43:54 | 315,178,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from guizero import App, Text, PushButton
def say_hello():
text.value ="3D"
app = App(title="Hello world")
text = Text(app, text="Welcome to the Hello world app!")
button = PushButton(app, command=say_hello)
app.display()
| [
"noreply@github.com"
] | noreply@github.com |
80a7585e86a4e8633b65ccb5495c63da103934b7 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/216.Combination Sum III(组合总和 III).py | 4c2a30d0cd8dad2c5c465ba3a4dfdb989f691e11 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | """
<div>
<p>Find all possible combinations of <i><b>k</b></i> numbers that add up to a number <i><b>n</b></i>, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.</p>
<p><strong>Note:</strong></p>
<ul>
<li>All numbers will be positive integers.</li>
<li>The solut... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
503332bad41e324b9c15cbcf42f5ea665e02af44 | 2f64d8a5337e6e78cc0899030a09562f15d99c51 | /Even Numbers.py | a88398d961f538a42831423bba37e50a0c6757ed | [] | no_license | LolaSun/Tasks | a91d0651777714b83964e14d9ce7134682572d4f | 1a4700dad7066ac58d4d4389e7311e387c8e5d44 | refs/heads/main | 2023-01-23T23:47:33.590642 | 2020-11-23T18:18:50 | 2020-11-23T18:18:50 | 315,275,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | """
Even Numbers
Given a list of numbers, you want to take out all of the odd ones and leave just the even ones.
Task:
Evaluate each number in your list to see if it is even or odd. Then, output a new list that only contains the even numbers
from your original list.
Input Format:
A string that includes al... | [
"noreply@github.com"
] | noreply@github.com |
d6e4df85a3e6861e2639d6df9092c22691c0cf1d | 4337aab7603fc100fc2c598d17d3ef3935236f5b | /lib2to3/pgen2/driver.py | 460639649a1d479f64913ce89cae5fe7f3ce7580 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | gerrat/pythoscope | a2997008db0e3902b562f716a4c7b5084b5ba678 | 814167fc31f1983f80d606bd79e43adada5a1bef | refs/heads/master | 2021-01-01T16:29:17.560213 | 2017-07-20T15:07:05 | 2017-07-20T15:07:05 | 97,845,842 | 0 | 0 | null | 2017-07-20T14:36:06 | 2017-07-20T14:36:06 | null | UTF-8 | Python | false | false | 4,802 | py | # Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
# Modifications:
# Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Parser driver.
This provides a high-level interface to parse a file into a synta... | [
"michal@trivas.pl"
] | michal@trivas.pl |
45d708d8fae94a586b546fab161acc015f0f9afc | 43cfd0055565b5c43b18de2c13a49a9e85068a69 | /pwauth.py | 1de2ff691cb53c7811ff3f81c9afb44f8bb25af1 | [] | no_license | mydor/Giganews-Homework1 | 15fd6ecce048905a12cec213d692a72c0906223a | 2de51754b810a251665488ac7f83a6f4fd767b9e | refs/heads/master | 2021-01-22T06:37:27.481218 | 2014-02-12T15:00:13 | 2014-02-12T15:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/python
import crypt
import sys
db = {
'users': [
{
'id': 1,
'user': 'user1',
'domain_id': 1,
'password': 'testpw1',
'hpw': 'a9cXlAGYp1YTg'
},
{
'id': 2,
'user': 'user2',
'domain_id': 1,
'password': 'testpw2',
'hpw': 'E.cTWtAAuY4dg'
}
],
'domains': [
{... | [
"msmith@arch-mage.com"
] | msmith@arch-mage.com |
3cf8ee2f2d96a7b435f8fe8b59b914bc534868dc | beb17bb8e02ccf039af005adfbccafc1b14215b0 | /LIBRARY/rpi_US_2back.py | 74c42e4a58e6a1bed62bc9c3c5a29c975a3050e0 | [] | no_license | Owluska/RPi_car1.0_soft | 010ff669bc29226404b6dcbefc8d90fe10d7c79b | b4e685a3f6f13f1d61ec9462c07268c47225514d | refs/heads/main | 2023-04-18T14:18:41.419829 | 2021-05-08T10:30:06 | 2021-05-08T10:30:06 | 318,752,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 19 10:40:35 2021
@author: root
"""
from multiprocessing import Process, Manager
from LIBRARY.rpi_US import US
US1_TRIG = 22
US1_ECHO = 17
US2_TRIG = 24
US2_ECHO = 23
bl = US(trig = US1_TRIG, echo = US1_ECHO)
br = US(trig = US2_TRIG, echo = US2_EC... | [
"kagirina@gmail.com"
] | kagirina@gmail.com |
e2b3644d891b5d9f9cb8f98e5d2c1087997a4353 | 51e8665776011d86e07e91f883fb4a55f010a2e4 | /reports/views.py | 3acdf4184a9f61eda9043a4d1e9d8f14d81ce784 | [] | no_license | 61070055/Webpro-week3 | 93e85ec1f52e2a52e957f32be4d3f3afbaf6a472 | 50b2f60e8d298dc384bbfa06c420bdb230f80b00 | refs/heads/master | 2020-12-23T14:07:26.579274 | 2020-01-30T10:05:52 | 2020-01-30T10:05:52 | 237,175,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.template.context_processors import request
# Create your views here.
def dashboard(request):
return HttpResponse('This is Dashboard')
def find(request):
return HttpResponse('หน้าจอค้นหา และ export ข้อมูลการเข้าห้องเรียน ทั้ง... | [
"61070055@kmitl.ac.th"
] | 61070055@kmitl.ac.th |
cf7a63d20fda488bf419e211b7e6c556c81d199b | 0d38d7155220615b128e5045c3c5d71bacda8230 | /modules/experiment/texfig.py | 5a7467510a54d51ab8442f2b81559106f6652a92 | [
"MIT"
] | permissive | avogel88/compare-VAE-GAE | da7e23c3e3bead625df2c22e496f5b90aca3e649 | 35f5e5b007d130419c33e5751402ff89fa953465 | refs/heads/main | 2023-08-05T05:09:01.017701 | 2023-07-21T06:45:24 | 2023-07-21T06:45:24 | 313,011,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | """
Utility to generate PGF vector files from Python's Matplotlib plots to use in LaTeX documents.
Read more at https://github.com/knly/texfig
"""
import matplotlib as mpl
from math import sqrt
def pgf():
default_width = 5.78853 # in inches
default_ratio = (sqrt(5.0) - 1.0) / 2.0 # golden mean
mpl.use(... | [
"andreas.vogel88@mail.de"
] | andreas.vogel88@mail.de |
3c5320d357242e588c1913155e9894ac80e4c591 | 9339d28e15b80f63e5360070292b4c7e4d1982a1 | /one_classify/SFA/utility/envi_read.py | 4f186f27d66cdb100e92a45dbe01d39b754f4c3c | [] | no_license | Fanrongbo/change_detection_compare_method | 7bcb65f85a146eaa9da579f6b29a763959dd1176 | ee8249b55f21f4dc4c5a753956e9bf1a989e0eb5 | refs/heads/main | 2023-06-26T09:52:56.904551 | 2021-07-29T11:36:21 | 2021-07-29T11:36:21 | 390,595,751 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py |
###读取envi遥感数据
import gdal
from skimage import io
import scipy.io as sio
class ENVI_read:
def __init__(self, in_file):
self.in_file = in_file # Tiff或者ENVI文件
dataset = gdal.Open(self.in_file)
self.XSize = dataset.RasterXSize # 网格的X轴像素数量
self.YSize = dataset.RasterYSize # 网格的Y轴像素数量... | [
"noreply@github.com"
] | noreply@github.com |
fe92c22ed71c0c1f4658405f96084f2d8a16c64e | aeb76bc35ffcb1b62e0a9d354d0c3e659eeb1e8a | /crm/forms.py | 3d62ea97a5983eb1c8a614140bc275296c3a883f | [] | no_license | vk-airline/airline-crm | 9eb22221c6376fcf0c2a477fe1dd61769f73b63b | 9c05da81421dc9fafbde525c96d863d820278133 | refs/heads/main | 2023-05-02T13:42:51.770473 | 2021-05-22T16:56:23 | 2021-05-22T16:56:23 | 346,685,294 | 0 | 0 | null | 2021-04-22T09:25:58 | 2021-03-11T11:52:59 | Python | UTF-8 | Python | false | false | 3,002 | py | from django.forms import ModelForm
from crm.models import FlightPlan, Flight
from django import forms
from multiselectfield import MultiSelectFormField
class FlightPlanForm(ModelForm):
class Meta:
model = FlightPlan
fields = "__all__"
widgets = {
'planning_departure_time': form... | [
"issokov@yandex.ru"
] | issokov@yandex.ru |
070518cdd5ef09d6e867133c27cc64804dca8c70 | 619229cf49134e1859d746d69f00b76b7b583f16 | /leetcode/python/maxConsecutiveOnes.py | 4bb291fd0408584a4b6e6097f0adbf416ca82b22 | [] | no_license | rene150390/training | 427ce161cfd559876378a44ca3d17ae8877a44fb | 2e7b9fb1db2be8ccbcbbd31fa6c40108f2a447e4 | refs/heads/master | 2022-12-25T20:31:27.459971 | 2020-09-29T05:03:03 | 2020-09-29T05:03:03 | 298,703,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | class Solution(object):
def findMaxConsecutiveOnes(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
numberOnes = 0
consecutives = []
maxCon = 0
for id, x in enumerate(nums):
if x == 1:
numberOnes += 1
if ... | [
"rene.sanabria@optimissa.com"
] | rene.sanabria@optimissa.com |
b0424b8ff6d9b046b3dd740b1e3d0037d998774c | afede9b03024605e60ec6f719c27f98e6b30d942 | /scripts/calculate_optical_flow.py | 1a6d5068542baad1874ee8c092feb1fa450ac2d1 | [] | no_license | aswinvk28/dynamic-skin-segmentation | c2afd12a76570f712b235573a4f7e1908c03fd68 | 21914a1e939687fd6ef5b1a2fce1be2dcd689d7b | refs/heads/main | 2021-02-27T19:06:38.868184 | 2021-01-26T12:13:10 | 2021-01-26T12:13:10 | 245,628,750 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,116 | py | from PIL import Image
import math
import matplotlib
import numpy as np
import os
import pathlib
import random
import scenenet_pb2 as sn
import sys
import scipy.misc
import argparse
import cv2
import imageio
import json
from time import time
import argparse
def parse_args():
parser = argparse.ArgumentParser()
... | [
"aswinvk28@gmail.com"
] | aswinvk28@gmail.com |
5a64d79668de4d8bf784b385470a75c341fd60d2 | 5d135bce94f19c970949431774b0dcfe36b5c48f | /Easy/missing_number.py | d14b50f71392d9a78ee91cc481ed7e6c1b2597f0 | [] | no_license | kaswal/letecode_solution | 16e2232f23a9244662f83b6b8d26f89d99b4ee96 | 0ec4e29b8a87b0060943a749a331c9688f94c771 | refs/heads/master | 2022-06-18T06:36:05.160449 | 2020-05-12T18:46:06 | 2020-05-12T18:46:06 | 259,476,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def missing_number(arr):
min = sorted(arr)[0]
max = sorted(arr)[-1]
for num in range(min, max + 1):
if num not in arr:
return num
input = [1,1,3,4,5]
print(missing_number(input))
| [
"er.kautilya21@gmail.com"
] | er.kautilya21@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.