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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90fb74b13024c09330c8663ca6889fdcac67595e | cd74f9b16cc5c5da2bb23e9136865c7f9c16c62a | /env/lib/python3.7/site-packages/ffprobe/ffprobe.py | ef5d1fb2d19057b7a7990cd686494bc93ec305db | [
"MIT"
] | permissive | geethika-choudary/voice-rec | 3d00e2d3791f07e3f060e10a1069b5768429729b | 7525e8ec84498b7920da3134ee2a7d8eed8b464e | refs/heads/master | 2022-12-10T18:54:21.017321 | 2019-06-20T06:45:22 | 2019-06-20T06:45:22 | 189,205,440 | 0 | 0 | MIT | 2022-12-08T05:11:03 | 2019-05-29T10:40:01 | Python | UTF-8 | Python | false | false | 5,251 | py | #!/usr/bin/python
# Filename: ffprobe.py
"""
Python wrapper for ffprobe command line tool. ffprobe must exist in the path.
"""
version='0.5'
import subprocess
import re
import sys
import os
import platform
class FFProbe:
"""
FFProbe wraps the ffprobe command and pulls the data into an object fo... | [
"drstrange.fintechinnov@gmail.com"
] | drstrange.fintechinnov@gmail.com |
59d5ea7e0dc7934fd926c89aa4185298cc0a4025 | 88612b135cf7cd2a6ce3dd0abfe7bb6fefda27c6 | /venv/Scripts/easy_install-3.7-script.py | b0874e92dad98fe25f743627ea5e554539db2f4c | [] | no_license | mikedillender/Engr100CustomProj | 6fffcece038c903fc11f406968e21366c769a33b | 94b8a8bc13ce0eb99556205a287a2770cc652e8e | refs/heads/main | 2023-01-21T14:25:04.207692 | 2020-12-03T00:07:52 | 2020-12-03T00:07:52 | 315,820,716 | 0 | 0 | null | 2020-12-02T23:37:44 | 2020-11-25T03:40:51 | Python | UTF-8 | Python | false | false | 462 | py | #!B:\Libraries\Programming\Engr100CustomProj\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"dillemic000@gmail.com"
] | dillemic000@gmail.com |
d8e36ab8e266c14995b50c51bb59ee0e78643a61 | f9f5e154deff734c2c08e903cbec1cde245cb7d8 | /networks/discriminator.py | cc67ebb3bdef665986d4b4543f2cd18df95467e7 | [] | no_license | Cold-Winter/First-Order-Motion-TensorFlow | 4452ea4dfbfcd3ced007c0c0add7c4be38d3c1b6 | 7a201ab377c18853384bbaf4722ebe81696a3a9a | refs/heads/main | 2023-05-01T16:58:25.208153 | 2021-05-21T02:00:58 | 2021-05-21T02:00:58 | 342,788,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | import tensorflow as tf
from tensorflow.keras import layers
from utils.util import keypoints_to_gaussian
from utils.blocks import DownBlock2d
from utils.blocks import DownBlock2dWoadv
from utils.blocks import Conv2DSpectralNorm
class Discriminator(tf.keras.Model):
def __init__(self):
super(Discriminator, self)... | [
"lyndon.leeseu@outlook.com"
] | lyndon.leeseu@outlook.com |
8eb1706733f9174ae3ac1d394d9e96607060f60a | d6a2700214a72906ff6d46cb33f3b5c0125586c2 | /tests/test_date_utils.py | b6bee3c2d381f42d2b29ddeecbcf83d48fa1470b | [] | no_license | povilasb/timesheet-gen | e56602e9e36fc47899cfaa794c56da08d6c1d783 | 22eb7bcbe036d2739021a21c6dcbc40792f8cf21 | refs/heads/master | 2020-03-26T16:28:45.092137 | 2019-04-20T06:30:43 | 2019-04-20T06:30:43 | 145,104,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | from hamcrest import assert_that, is_, contains
import pytest
from timesheet_gen.date_utils import Date, Week, Month
def describe_Date():
def describe_next_week():
@pytest.mark.parametrize('curr_day,next_week', [
('2018-03-01', '2018-03-05'),
('2018-03-05', '2018-03-12'),
... | [
"balciunas90@gmail.com"
] | balciunas90@gmail.com |
74e46aad7ac7b3bb567a94d06956738aec8593d3 | cf76726b0d6a1559b56b91236585d90c04abfa3a | /egenværdi.py | d8aee9b6c814a22a1b3d197e7ca52115d6ee8341 | [] | no_license | Thrun12/LAscripts | a6ab12167b4f8e954f089454d8a8d2c8d1402b0b | 81ce0f1e0d760d6c3e3a7402799fac06ace0dab4 | refs/heads/master | 2020-05-31T16:43:34.232824 | 2019-06-05T12:39:30 | 2019-06-05T12:39:30 | 190,388,182 | 0 | 0 | null | 2019-06-05T12:13:26 | 2019-06-05T12:13:26 | null | UTF-8 | Python | false | false | 1,099 | py | from sympy import *
A=Matrix([[3,-2],[1,0]])
def singleNicePrint(x):
pprint(x, use_unicode=True)
def egenvalue(m: Matrix):
"""
!!Hvis du skal finde egenværdier til en lineæroperator!!
!!fortæller def 12.25 og prop 12.26 at du kan bruge !!
!!matrixræpresentationen : v[L]v og finde egenværdier !!... | [
"lassebramer@gmail.com"
] | lassebramer@gmail.com |
6d856f492bd4e381bfaf4ac7158cb061c4a9f63b | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /Dataset/MOT/Seed/PathTrack.py | 593c78a035dd677424dfafa90338eb09be91d69b | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # https://www.trace.ethz.ch/publications/2017/pathtrack/index.html
from Dataset.Base.factory_seed import BaseSeed
from Dataset.Type.data_split import DataSplit
class PathTrack_Seed(BaseSeed):
def __init__(self, root_path: str=None, data_split: DataSplit=DataSplit.Training | DataSplit.Validation):
name = ... | [
"linliting06@live.com"
] | linliting06@live.com |
4d3594b9004760d27b1faada8e0ff655af2bf69a | 3dcc77e06e2373fc38e12af832dd0309c43ff4b9 | /models/__init__.py | 29f77e50e2e7ce91c3179c150e42ad846b6ab42e | [] | no_license | gqgonzales/daily-journal-server | 559364bec0e6245432216fab728a3cb4a88ed472 | 3cd1ca60c65f9f683f226c13d51259191209b5e3 | refs/heads/main | 2023-06-23T10:49:31.508599 | 2021-07-23T16:28:03 | 2021-07-23T16:28:03 | 388,212,989 | 0 | 0 | null | 2021-07-23T16:28:04 | 2021-07-21T18:39:03 | Python | UTF-8 | Python | false | false | 48 | py | from .mood import Mood
from .entry import Entry
| [
"gq.gonzales1@gmail.com"
] | gq.gonzales1@gmail.com |
11a9f9e8643e7ba1328b22c66b041082086d59a7 | 003a42681089d15179093123cd1e3336efdfbee6 | /restapi/migrations/0003_auto_20201003_1536.py | 344c38ae4d032d88641f935b5fada716b47066dd | [] | no_license | maryshermila/MusicApp | 9f41bb80927d1f57e2a6b9f9f25f56ea5fba0570 | 0326de9de3cfbbbf1a01322e8ac89523a6ce9248 | refs/heads/master | 2022-12-30T22:06:11.984732 | 2020-10-05T14:05:42 | 2020-10-05T14:05:42 | 301,428,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # Generated by Django 3.0.1 on 2020-10-03 15:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restapi', '0002_auto_20201003_1520'),
]
operations = [
migrations.AlterField(
model_name='songrating',
name='five_st... | [
"maryshermila@Marys-MacBook-Pro.local"
] | maryshermila@Marys-MacBook-Pro.local |
a5003d4c876e37391a79ae7a53cda77ecbc59458 | 8f4f82dfcd567ad449ec10ed9f4deebb6b523456 | /app/config/urls.py | ebedfd9005347d696beace252e2dca6226c30857 | [
"MIT"
] | permissive | nikhiljohn10/django-api-template | 65b7e7fc3f92ad3d3026249ed02fd72e6022baf2 | 097241f394570c62b9f5bd6024bccd41259cbd07 | refs/heads/main | 2022-12-29T22:00:41.468157 | 2020-10-11T20:20:19 | 2020-10-11T20:20:19 | 301,350,304 | 0 | 0 | MIT | 2020-10-11T20:20:20 | 2020-10-05T09:05:00 | Python | UTF-8 | Python | false | false | 450 | py | from django.contrib import admin
from django.urls import path, include, re_path
from django.views.generic import RedirectView
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
re_path(r'^(api/)?$', RedirectView.as_view(url='/'+settings.API_ROOT_URL)),
path(settings.API_ROOT_... | [
"nikhiljohn1010@gmail.com"
] | nikhiljohn1010@gmail.com |
2985796aeabba795cee6bc0545dc1b8dccd3bb60 | d80092f0b62c13003d71876dc8dc8373394d61a8 | /__init__.py | 3dba8e9955d3191575350a7ac853758a43fa95a3 | [] | no_license | epzt/msta | 6c7fa5f1774f97ade398822f2754e37f2c4a7a64 | 3d3381d23f68c190731342b89783f6e7c1f28329 | refs/heads/master | 2022-10-03T06:57:51.399689 | 2022-10-02T20:28:18 | 2022-10-02T20:28:18 | 164,415,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
msta
A QGIS plugin
Mutli-Sediment Trend Analysis
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
... | [
"emmanuel.poizot@lecnam.net"
] | emmanuel.poizot@lecnam.net |
569c935f894d9cb44a0048f69866a8cafa8ba176 | ecebefec65cc55b305419a689660eb8e2ea04fef | /abrtuner/web/html/receive/myscript.py | 70d57440a840a7c84a54df9209e1233c937222d6 | [] | no_license | generlist/ABRTuner | 4ab1d6d5e5201a7953d4565ca4574307a35513c3 | baea8fab155a71c185e74121a8f014e6ad889308 | refs/heads/master | 2020-05-26T01:09:29.712879 | 2018-08-03T23:40:01 | 2018-08-03T23:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from mod_python import apache
import logging
import datetime
logging.basicConfig(level=logging.INFO, format='%(asctime)-15s %(message)s', filename='/tmp/myscript.log', filemode='a+')
log = logging.getLogger('myscript')
def handler(req):
#ts = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S')
... | [
"ysnam727@gmail.com"
] | ysnam727@gmail.com |
d597b449f467b33efe4c031f322385021fc0ba50 | e8c28df0519dc50a4fa29d755d98c0ab02f44dbd | /src/models/conv_to_fc_net.py | ad22a079fb3105976b3cb9b7970be38cf728d948 | [] | no_license | jweinstein2/multiagent | ef0ef7994c8be64b935cb03039bd530ca15a29a1 | 2a796f6fd3790cd2b47b978584e23f478ccf1000 | refs/heads/master | 2022-04-17T06:11:01.010889 | 2020-04-17T16:16:08 | 2020-04-17T16:16:08 | 256,551,441 | 0 | 0 | null | 2020-04-17T16:13:40 | 2020-04-17T16:13:39 | null | UTF-8 | Python | false | false | 1,509 | py | # Model initially implemented by Eugene Vinitsky
# https://github.com/eugenevinitsky/sequential_social_dilemma_games
# https://arxiv.org/pdf/1810.08647.pdf,
# INTRINSIC SOCIAL MOTIVATION VIA CAUSAL
# INFLUENCE IN MULTI-AGENT RL
import tensorflow as tf
from ray.rllib.models.misc import normc_initializer, flatten
from... | [
""
] | |
8435336b2ee38b4e84e4eb32c876daf76087e758 | 9e12f81814b24aa54acccb80fcaf3bf688bd984a | /Sync/gd_content.py | 6f490877871e22d468c939fc1a6946b17c879d33 | [] | no_license | wangtaihong/mov | 76793050cdece48894be6433dd407cc918c0bbb3 | 8d394ca9c8c2906a585e58b85f974f68664629d3 | refs/heads/master | 2020-03-19T20:02:52.626127 | 2018-07-16T02:40:52 | 2018-07-16T02:40:52 | 136,885,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,864 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-04-25 16:59:37
# @Author : taihong (taihong.wang@androidmov.com)
# @Link :
# @Version : $Id$
import os
import re
import sys
import threading
reload(sys)
sys.setdefaultencoding('utf8')
import json
sys.path.append('../')
import config
sys.path.append('... | [
"wangtaihong8@163.com"
] | wangtaihong8@163.com |
3095707d0fd46be66dd4cba60697331cad3d4d77 | 5b57fa09b08e72ccb10de1bf341b556c00b4be42 | /Server/src/pyticas_tetres/da/incident_iris.py | 46a5025a883e4a2eedf26a6be2d1dd3019d017ac | [] | no_license | mnit-rtmc/tetres | 6f331e463f90e1608c6e47d72c232e3f6b8d5d33 | 4935d82ffe5f51284f08749b27f48491a62d9968 | refs/heads/master | 2022-10-02T02:45:13.860004 | 2021-12-08T23:14:51 | 2021-12-08T23:14:51 | 200,887,049 | 3 | 6 | null | 2022-09-16T18:07:46 | 2019-08-06T16:25:02 | Python | UTF-8 | Python | false | false | 3,784 | py | # -*- coding: utf-8 -*-
__author__ = 'Chongmyung Park (chongmyung.park@gmail.com)'
import datetime
from sqlalchemy import and_
from pyticas_tetres.da.base import DataAccessBase
from pyticas_tetres.db.iris import model, conn
from pyticas_tetres.ttypes import IrisIncidentInfo
class IrisIncidentDataAccess(object):
... | [
"beau1eth@tmsdev5.dot.state.mn.us"
] | beau1eth@tmsdev5.dot.state.mn.us |
6f6c5d6466a24fd7427a8aa6a86c1f3333c88960 | b1226816c5d3f1fc408f7d5f29b4fc331e7ae84e | /clinicals/clinicalsApp/migrations/0001_initial.py | 066ef14e1472737b95019d0a23c3e1428926b29a | [] | no_license | SachinDangayach/Learn_Django | 4d2c05a2632654807e99fed310f7bc9f43de3924 | dc273d69c73f8abb39c3aadf084c208cc9f13d8b | refs/heads/master | 2023-02-23T12:44:10.260177 | 2021-01-22T10:03:32 | 2021-01-22T10:03:32 | 325,766,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | # Generated by Django 3.1.4 on 2020-12-30 17:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Patient',
fields=[
... | [
"Sachin_Dangayach@amat.com"
] | Sachin_Dangayach@amat.com |
8168c774358cecad1c3c9c3aec878fe3b4d72778 | 3b9a242f2d7df732f5f7dc29027f73bd8773e71d | /sandboxes/ecl/statgraber/statistics/disckstats.py | 2c00f55e25279e8617b6a501411343614a9735c5 | [] | no_license | skubliy/scratches | 8d0c15b30d7f60cf7f82382148d6a18f658609b4 | 813be4487bb82e76c4e26b85f357e6d1b0910a34 | refs/heads/master | 2021-01-16T23:21:33.071813 | 2016-07-13T19:31:58 | 2016-07-13T19:31:58 | 59,788,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
# encoding: utf-8
'''
Created on Jul 1, 2015
statistics.blockio -- TODO: shortdesc
statistics.blockio TODO: is a description
It defines blockio
@author: Serguei Koubli
@copyright: Serguei Koubli. All rights reserved.
@license: TODO: license
@contact: SergueiKoubli@gmail.com
@deffield... | [
"skubliy@gmail.com"
] | skubliy@gmail.com |
7011b6072fa08d260abfd552796672a04b84dc10 | 50985af7bf314867f521d460b0b0097223b3fc3b | /src/shakespeare.py | 6f899fe503a5cc1fd78e6b852807ebb44bcb5948 | [] | no_license | Usajid/731_Assign2 | 2117f999325a8a288bd5e1d8b3edbbe99732d946 | c5afed9634b70e3966cbe0026bfdc26d0acbaebc | refs/heads/master | 2020-09-09T08:32:54.707604 | 2019-11-13T08:16:32 | 2019-11-13T08:16:32 | 221,400,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,121 | py | #!/usr/bin/env python
# coding: utf-8
# # To Be or Not To Be (EECS-731- Assignment # 02)
# ---
# In[16]:
get_ipython().run_cell_magic('time', '', '\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nimport pandas as pd\nimport numpy as np\n\n# modules for classification\nfrom sklearn.feature_extraction.text i... | [
"noreply@github.com"
] | Usajid.noreply@github.com |
efceeff605e430f707a59bce0b1a138df83b201d | 4ca9ea17cd2ea7dfb45d335efa7261657d405d87 | /avitoparse/items.py | 7fc3f3a3d0c99a21f8b34d8f2bccfc325b9d257e | [] | no_license | Nafanjia/GB_data_mining | 5f89dec8f8450ce9bc6a689060d2801b88d8fd71 | eadc2688deb38f74c3f5fdce146be9b79f789ae0 | refs/heads/master | 2020-06-20T02:26:31.131766 | 2020-02-08T18:07:22 | 2020-02-08T18:07:22 | 196,959,384 | 0 | 0 | null | 2020-02-08T18:18:51 | 2019-07-15T08:40:29 | Python | UTF-8 | Python | false | false | 1,889 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.loader.processors import MapCompose, TakeFirst
def cleaner_photo(values):
if values[:2] == '//':
return f'https:{values}'
r... | [
"noreply@github.com"
] | Nafanjia.noreply@github.com |
457e46f4a82f788befde7522705091b6415fb88b | 1003337afcc7ba24d5e89cef426f099279daa4d1 | /utests/test_model_basic.py | e7e066a05e85d4e4f9b1f6ec99131a71c7bcd6b3 | [] | no_license | Priscillesg/UdemyFlaskAppUTest | a44ac89f88e98eb93d1da4379e15c7782cedee57 | 9e51934ccda8bf45d7752022f2b26cdece00ed5e | refs/heads/master | 2023-04-13T09:06:28.484507 | 2020-06-14T19:21:27 | 2020-06-14T19:21:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | import unittest
from main.models import User
from datetime import datetime, timedelta
class TestModel1(unittest.TestCase):
email = "mymail.com.cc"
passwd = "password123"
@classmethod
def setUpClass(cls):
cls.usr = User(cls.email, cls.passwd)
@classmethod
def tearDownClass(cls):
... | [
"kss@comms.com"
] | kss@comms.com |
75565b4e4f3520375386cf6faaf8f0755753e4f6 | 362765585815165ca3625895d4a675600efdb518 | /orchestrator.py | 67e314397be339554e940e42475881ae9f5046a7 | [] | no_license | obulpathi/notifications | 00e7decd479685d10e815b9ada7b1f774862f0f9 | 131b784d5e40310cdfc98587e0ceaff4cca4cf03 | refs/heads/master | 2021-03-12T20:23:05.143662 | 2014-07-08T18:58:44 | 2014-07-08T18:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import os
import sys
from jinja2 import Environment, FileSystemLoader, meta
def render(sense, action):
env = Environment(loader=FileSystemLoader('/src/templates/sense'))
template_source = env.loader.get_source(env, sense+'.py')[0]
parsed_content = env.parse(template_source)
vars = meta.find_undeclared... | [
"obulpathi@gmail.com"
] | obulpathi@gmail.com |
cbe3fd472cfd4e3b1a36a101db19cb3b3a53d24e | 66922ca6fce9d61269c48e7fd40514bcbdc546e9 | /pset1/problem1.py | 7a9307bd73a5dd58eca4be1093d351174c168fc5 | [] | no_license | holdercp/mit-6.00.1x | 70107131e269dc27322fa723ec4029ae00cd64bc | a2800a9895a65dee56b9adea104eeec4bc37f7ae | refs/heads/master | 2020-06-11T02:40:43.428402 | 2019-07-23T23:06:52 | 2019-07-23T23:06:52 | 193,828,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
s = "azcbobobegghakl"
vowels = "aeiou"
vowelSum = 0
for vowel in vowels:
vowelSum += s.count(vowel)
print(vowelSum) | [
"chrispholder@gmail.com"
] | chrispholder@gmail.com |
3933ec1fd97d722f5292bc31f1a94483cfcf3809 | 1fdc846f4e5b7bda56e8740b859c8340d9b5141a | /sfepy/fem/region.py | 4984860518fb2a1df5196debf2fd39474ed6f272 | [
"BSD-3-Clause"
] | permissive | olivierverdier/sfepy | b824fdab7d91e137a371c277901fbb807b316b02 | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | refs/heads/master | 2021-01-18T05:39:13.127137 | 2010-10-25T13:13:18 | 2010-10-25T17:31:37 | 1,022,869 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,130 | py | from sfepy.base.base import *
_depends = re.compile( 'r\.([a-zA-Z_0-9]+)' ).findall
def get_parents(selector):
"""Given a region selector, return names of regions it is based on."""
parents = _depends(selector)
return parents
def get_dependency_graph(region_defs):
"""Return a dependency graph and a ... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
e29d1f69414faa0011a43b09160f52221f61fe38 | a88f27a67aabf0d78965ea9de37cc2d4ffa422c8 | /tools/int_to_jpn.py | 87756204fc7bd73025263f2ae0812625da83b3a2 | [] | no_license | S-LaKeith/conan | 0b067009b402ff6a464056beed23fda95dca02c3 | c0a05f1b3088a5e58fd3043666dc8bf7c3901463 | refs/heads/master | 2023-08-14T15:42:12.206273 | 2021-10-08T07:18:31 | 2021-10-08T07:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | import json
import requests
from selectolax.parser import HTMLParser
r = requests.get("https://www.detectiveconanworld.com/wiki/Anime")
doc = HTMLParser(r.text)
def ranges(s):
return sum(((list(range(*[int(j) + k for k,j in enumerate(i.split('-'))]))
if '-' in i else [int(i)]) for i in s.split(',')), [])... | [
"evauwu@riseup.net"
] | evauwu@riseup.net |
48cf5900dc9a034879b345bbe717725c202043c4 | c023ede46a2fc296c17b789a9c1633e5872209eb | /venv/upe/manage.py | cd2a1a1711d3841d6b9013ea92d737f6d4368c82 | [] | no_license | thiagosoara/upe | 059785b057afa6405041572bb08526391515d0b4 | a0f7550b07e16c1ffa960a058c9524d6e1c883c9 | refs/heads/master | 2020-06-10T18:22:30.337299 | 2019-06-25T12:39:48 | 2019-06-25T12:39:48 | 193,704,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'upe.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you ... | [
"thiagosoara@gmail.com"
] | thiagosoara@gmail.com |
6772610f7bb6e8d700abf17a81f88a0944424b97 | 2852f3e48f7efcb5f00f509d49b38ac25fd99091 | /tests.py | 14efd945973db22e6bc7cd3034a4835d8967ef84 | [] | no_license | eflagg/ClassAmass | 5ead34915c18b7ac51fcdd5d29a185bd0690ea5a | 53c02ae9d71a8736ef4633df02e1dd526e5e96bb | refs/heads/master | 2020-12-26T07:22:28.275779 | 2016-09-22T20:59:36 | 2016-09-22T20:59:36 | 65,230,407 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,208 | py | from server import app, get_language_count
import unittest
from model import db, connect_to_db, Course, example_data
from helpers import get_user_by_email, get_user_by_session, is_favorited, is_taken, is_enrolled
class FlaskTests(unittest.TestCase):
def setUp(self):
"""Set up by creating fake client."""
... | [
"eflagg5@gmail.com"
] | eflagg5@gmail.com |
88ba28f4224e81fd42e056b98539df863ec6a582 | 94205bf458481c6637f77c920648c14455740ff1 | /MayaScripts/toMaya.py | 98b51fedc28e03a81435b2a04782d964bf9d5af0 | [] | no_license | aterzis/MayaScripts | a21e2f9e792b68d386d463865886d587e9f48594 | f6fdbc621aa629cd0d5d5b57eda4a9f7140354b3 | refs/heads/master | 2020-05-22T14:31:34.145089 | 2015-02-07T11:35:23 | 2015-02-07T11:35:23 | 30,452,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | import sys, os, socket
from platform import system as myOs
def toMaya(filePath,selection):
host='localhost'
port=6001
pythonOrMel="mel"
extension=".mel"
try:
maya=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
maya.connect((host, port))
#mel or python?
... | [
"arthur@arthurterzis.net"
] | arthur@arthurterzis.net |
d600cc034a7b0f5920a0d111948dad015073c300 | bd201b85f21dd615b2d4fd2d7059ed642915e47a | /python/sample_20131208.py | 200fd4edc2b2a742c84ff364402078c18f038f15 | [] | no_license | h2sp/dev | fadc24997f2c0b6eb9d972973d64643c97ad29ee | 0d02a6bd2d5501e89499e1ae8e82ad015508de94 | refs/heads/master | 2021-01-23T05:45:26.980798 | 2014-03-22T07:22:00 | 2014-03-22T07:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #-- encoding:utf-8 --#
def main():
"""
サンプルプログラムのメイン関数
"""
n = 0
for i in range(1, 500):
if i % 3 == 0:
print("%sは3の倍数です" % i)
n = n + 1
else:
print("%sは3の倍数ではありません" % i)
print("3の倍数は、%s個あります" % n)
if __name__ == "__main__":
"""
Pyt... | [
"htwosp@gmail.com"
] | htwosp@gmail.com |
0b7d56f9ef5cd6cf1367714166ecbb3a9e351bec | e61383943eefd767f997c28579f3e22145941ebc | /application/the_eye/models.py | b9620e443c0b2fef879141388c171e38a4196407 | [] | no_license | fernandotelles/ca-code-assignment | 3ee267a1c2e6575cc264211b65c62a61340f6458 | b5a728647350d91a3225bffb3e7b15f1eacd0499 | refs/heads/main | 2023-07-17T09:35:22.627036 | 2021-09-01T00:27:22 | 2021-09-01T00:27:22 | 396,857,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django.db import models
import uuid
# Create your models here.
class Event(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
session_id = models.UUIDField()
category = models.CharField(max_length=40)
name = models.CharField(max_length=40)
data = model... | [
"fernandotalves@gmail.com"
] | fernandotalves@gmail.com |
a6ba03e0e4a8062c8b63455aa01e52a7f24e0db4 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/plotting/_core.py | 17f6b990ba84c33027e706bda6f9149466ab80d2 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,368 | py | import importlib
from pandas._config import get_option
from pandas.core.base import PandasObject
from pandas.core.dtypes.common import is_integer, is_list_like
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
from pandas.util._decorators import Appender, Substitution
def hist_series(
self,
... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
8411b98d81b21d32c6ec667cb3b0e86c6a62ef44 | ad3bcc3ebcf3d860d0a59955d19a9be27f1f9c69 | /dicttest.py | ae5198a4d318154e0e2235c2fac9d49bf0f60be2 | [] | no_license | turash104/Yelp-Recommender- | 21dae5b01ddd0ee449d38d6f08f7df6569e472a2 | a60a77410982a2481c3b0985a16b2c5105b370ae | refs/heads/master | 2021-09-04T03:15:48.302898 | 2017-12-01T21:10:37 | 2017-12-01T21:10:37 | 117,502,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | d= {}
d{} | [
"turash_mosharraf@sfu.ca"
] | turash_mosharraf@sfu.ca |
23d33841e9d67c86892cea31144d4f386b3a2320 | 7702b41273069e57d30effb1ea8a1c1e54b19dec | /website/settings.py | b897def2da3a81d09660bbaf8f8375100bad088b | [] | no_license | gurucharan511/chromatic | 84cacb7df709806b7129b64c2e1160a69f8adc4a | 38de358f3db565ae6cb47f361b8c42edf17c5915 | refs/heads/master | 2020-03-08T02:41:30.402694 | 2018-04-04T06:58:05 | 2018-04-04T06:58:05 | 125,883,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,448 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'rha7*we-io_dbhnf$k)%wum_i=-fct9+n^j+@5j9p*$z01lzj1'
# SECURITY WARNING: don't run w... | [
"gurucharan511@gmail.com"
] | gurucharan511@gmail.com |
535268bab86addff45ad4349f708df0310b4627d | d5c1f39f619e49be02238bbd9c327103ee0c6199 | /vai/plugins/commands/Time/Time.py | 4ed8dc22387aae6b3ff5563e24423513b64af622 | [] | no_license | CRY-D/vai | 520d35ef1b32de2e4058f64a73cd1b9da9b2e313 | 7e6981690209e8ccd9a6e6f64d2f2a6c7426ef3f | refs/heads/master | 2023-07-06T18:24:43.884669 | 2021-07-20T09:40:48 | 2021-07-20T09:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from vai import sdk
import time
class TimePlugin(sdk.CommandPlugin):
def name(self):
"""
To be reimplement in the plugin
"""
return "Time"
def keyword(self):
return "time"
def execute(self, command_line):
sdk.statusBar().setMessage(time.asctime(), 3000)
| [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
d42ef757a051d40d7530a7f2572b8993b596c56e | 34210f699a80638ea4cbde05bceeb52e5316de4c | /random_forest.py | fd0690e751286bd2d2f89d32fea372535f308b36 | [] | no_license | huangjundashuaige/dm_project2 | 04e9dd2053d0485e52ec9a60e90b32aed99d7a34 | 9cdfffdcb481a609dfddbc8f557cbee19175e75e | refs/heads/master | 2020-06-18T19:34:52.263836 | 2019-07-14T05:44:19 | 2019-07-14T05:44:19 | 196,421,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py |
import numpy as np
from decision_tree import Decision_tree
from mpi4py import MPI
import numpy as np
import os
from functools import reduce
import time
import json
from cache import Cache
from read_file import read_length
from read_file import read_csv
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
world_size = comm.Ge... | [
"715817451@qq.com"
] | 715817451@qq.com |
86c48de933b8b65243e5681268294ec23e4ad5e0 | 33f8752eec25d8a621a0bf920455cc1b1e209a2c | /bvspca/core/migrations/0026_auto_20180306_0943.py | c65bd86609b5849793470d97febaab15b5d4ea04 | [
"MIT"
] | permissive | nfletton/bvspca | 196d2a381a9e0cacf6ac4156ecee5c785e7d14a9 | 4f4bceb96ace010f1d4c273c44da4f0ab5ea7f6f | refs/heads/master | 2023-07-06T12:03:15.037161 | 2023-06-29T16:59:16 | 2023-06-29T16:59:16 | 98,236,678 | 16 | 3 | MIT | 2023-03-21T12:55:02 | 2017-07-24T21:31:29 | Python | UTF-8 | Python | false | false | 847 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-03-06 16:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0025_auto_20180202_1214'),
]
operations = [
migrations.AlterField(
... | [
"nigel@thebluehut.com"
] | nigel@thebluehut.com |
45aca59783a82f8aebeef1769d251a6c7c1aea2f | 1186e0f758d930960aeb5319200ca50e09ff1d35 | /build/lib/cplvm/lm.py | 5d6ea254cd9fc48a55c71f271f202ac3c7edc685 | [
"MIT"
] | permissive | ethanweinberger/cplvm | c182ee3a960f20ce2975cec5492ec5b1f434dd71 | f4bbcfc4b2e9a9cec7d01eb5f7ff3a169d6e3ff6 | refs/heads/main | 2023-06-17T15:23:15.604291 | 2021-07-07T12:04:57 | 2021-07-07T12:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,771 | py | import functools
import warnings
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import tensorflow.compat.v2 as tf
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
from tensorflow_probability import bijectors as tfb
from scipy.stats import multiv... | [
"ajones788@gmail.com"
] | ajones788@gmail.com |
feb3bf7bb5c08b5de6847d3a915373aaf785a040 | 417166ec7656af2e1ccde0359d88c046d9277ef2 | /backend.py | a23735702b8dfea1a9ff85d4c4e83d8a30be73a7 | [] | no_license | jamesalbert/erincosgrove.com | 7e4d3e0ff73cbcdb6baa9147bd9667065826d1c9 | ac9088f85e2855a4726c334c31f6aaa97c012fa0 | refs/heads/master | 2016-09-05T18:24:42.525434 | 2014-12-20T04:10:59 | 2014-12-20T04:10:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from jinja2 import Template
from ast import literal_eval
templates = {
'project': \
'''
<li class="divider"></li>
<div class="row">
<div class="col-xs-6">
<a class="fancybox" data-fancybox-type="iframe" rel="{{ title }}" href="img/{{ big_filename }}" title="{{ ti... | [
"james.albert72@gmail.com"
] | james.albert72@gmail.com |
d824974c9d32252bdf8b81863bf3632db476ff0c | 72cb836871c7853bef3f5715fb2725b2934548a0 | /DjangoUniversity/Classes/classApp/migrations/0001_initial.py | e3a6d3f06284760446ab2138604f4585b3a5e0c3 | [] | no_license | jerry-nol/Python-Projects- | bf902e4fb69e2ee2a719fe79fbbbee71261acffe | 7d17e645c18b0d5e8c0f7757233204f924d75096 | refs/heads/main | 2023-04-11T09:32:00.650858 | 2021-04-25T21:51:13 | 2021-04-25T21:51:13 | 328,837,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | # Generated by Django 3.1.7 on 2021-03-04 23:34
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='djangoClasses',
fields=[
... | [
"newyork_14@live.com"
] | newyork_14@live.com |
713f28f0d9bf19d6b7273319084e1c03d467c1f0 | 561b8e87bb0e806399bf3dd9f26e62407c45c868 | /ex31.py | ec4c824a1eeb0391f3310123f5db37a61de10eff | [] | no_license | abhijeetvhotkar/pythonBook | d1049f4dde1c5c61f53ee2ddd2010cfb4489628f | 866fad9a3bf5c3d4879019191a395d4a28e64f6f | refs/heads/master | 2021-09-10T02:49:34.168759 | 2018-03-20T19:45:07 | 2018-03-20T19:45:07 | 109,789,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | print("""You enter a dark room with two doors.
Do you go through door #1 or door #2?""")
door = input("> ")
if door == "1":
print("There's a giant bear here eating a cheese cake.")
print("What do you do?")
print("1. Take the cake")
print("2. Scream at the bear")
bear = input("> ")
if bear ==... | [
"abhijeetvhotkar@gmail.com"
] | abhijeetvhotkar@gmail.com |
accc82f441ea51a73813ec2cb7dbc086e252d603 | cf9494e7953c91d786e003bfbcd9f6ad93126c7f | /widgets_entry2.py | 4879d321a74e5d54581585dbc09c16bb798c330e | [] | no_license | utisz86/TkinterTutorial | 7fd318e631f6e1a858083c3c157fa68a60bcc85a | 32030494ac3035d442a432bf6b389b6ff7e1c537 | refs/heads/master | 2022-11-26T06:36:47.959218 | 2020-07-07T22:10:33 | 2020-07-07T22:10:33 | 277,841,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import tkinter as tk
window = tk.Tk()
# create a Label and an Entry widget
label = tk.Label(text="Name")
entry = tk.Entry()
# visible
label.pack()
entry.pack()
entry.insert(0,"mi?")
name = entry.get()
print(name)
window.mainloop() | [
"soma.kormanik@outlook.com"
] | soma.kormanik@outlook.com |
f6613b94c9e9d8ee741d57e5cd2f3e1165564490 | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/ssh_utils.py | f61e082ca4e2e06461cb227e69749734f27b9406 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 23,694 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
1252894bbc2a8443c571bc7d8c3dfc7f34290c28 | fafde4b09e56cadbe893c09ae1dfb52a745ae45a | /0x03-python-data_structures/0-print_list_integer.py | 72437fda223c519c834d47e5b084b819c6cca790 | [] | no_license | MCavigli/holbertonschool-higher_level_programming | 2120c6c3018c86215d221c6fffec1957ca1d0f48 | c3408521683f03214813839b7eed03fee083081e | refs/heads/master | 2022-07-12T20:59:12.732979 | 2022-06-17T05:21:01 | 2022-06-17T05:21:01 | 461,013,788 | 3 | 7 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #!/usr/bin/python3
def print_list_integer(my_list=[]):
for i in my_list:
print('{:d}'.format(i))
| [
"mcavigli@gmail.com"
] | mcavigli@gmail.com |
a92cf26f1a32f5310a6fd92cc58e170a078f87a2 | 7f52d0e7b886437ad8a220581ae6fe959b1c6646 | /Scrapper/WebScraping.py | 9aaea885485d2854823c0fc6ba1fc46e1e954c7b | [] | no_license | ThayseSantos/security-tools-with-python | 4d37ddcbd91ca19457b10ee64390b8bc153046be | b0317ef7b98f05e9584d4cda37d545d662cd55a2 | refs/heads/master | 2023-07-26T10:03:13.494678 | 2021-09-09T15:02:28 | 2021-09-09T15:02:28 | 402,457,362 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # PROGRAMA DE ANÁLISE - WEB SCRAPING #
from bs4 import BeautifulSoup
import requests
#Objeto site recebe o conteudo da requisicao http:
site = requests.get('https://www.climatempo.com.br/').content
#Objeto soup baixa o html do site:
soup = BeautifulSoup(site, 'html.parser')
#Transforma o html em string
print(soup.p... | [
"snts.thayse@gmail.com"
] | snts.thayse@gmail.com |
6737c706349be12bf895cf042ba1ac204f9b239a | 91e87d6aab16e5a5f98237b138a95b1d2680923e | /blog2/posts/context_processors.py | 0c7f1b8c265736587fbc4a1459e77acfc8b663db | [] | no_license | nafisaISRAIL/django_blog | 22a1554db65564771dceb084e659e1dbe75aa476 | d2a67bc94acd38044418fc0f1b3ad0026f9ce1ee | refs/heads/master | 2020-12-30T11:16:01.928567 | 2017-05-17T07:51:24 | 2017-05-17T07:51:24 | 91,547,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # -*- coding:utf-8 -*-
from blog2.posts.models import Category
def categories(request):
return {
'categories': Category.objects.all()
}
| [
"nafisa_ordo@mail.ru"
] | nafisa_ordo@mail.ru |
d5187343e32d580e0519bab53048baf32a92847f | 902497a34c892f042b15db10837f3f5676fbd0a3 | /bin/edit-spell-dict | 9036efc994e879193d0926e903fc63b9bf02882c | [] | no_license | 74th/dotfiles | 30428fd02e3335244534ed95c88cd2c5a8652361 | 3cbdc187c1c527d411bb1e947773a526f708cdbd | refs/heads/master | 2023-07-25T02:49:53.274681 | 2023-07-15T08:58:34 | 2023-07-15T08:58:34 | 41,480,184 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/usr/bin/python3
import os
import sys
import invoke
c = invoke.Context()
p = os.path.expanduser("~/ghq/github.com/74th/mycheatsheets/CodeSpellChecker/")
f = c.run(f"ls -1 {p} | peco").stdout.strip()
if not f:
sys.exit(1)
f = c.run(f"vi {p}/{f}", pty=True)
| [
"site@74th.tech"
] | site@74th.tech | |
11c869ecd5e826427cc7d523ecdbb29f056a4b97 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /tests/test_summary_ranges.py | c75bf5a290b7f94b3f204aa5c8f8d1d2a2f4a90a | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 329 | py | import pytest
from puzzles.summary_ranges import summary_ranges
@pytest.mark.parametrize(
"nums, expected",
[
([0, 1, 2, 4, 5, 7], ["0->2", "4->5", "7"]),
([0, 2, 3, 4, 6, 8, 9], ["0", "2->4", "6", "8->9"]),
],
)
def test_summary_ranges(nums, expected):
assert summary_ranges(nums) == ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
63dcf295b14fca00d7e5231a26fdd7a84c460561 | da70033169c120079ad73947d0c2723d724cf62c | /Update_Model.py | a16c9a52a865e696a8d87b491c6a10cfceee9785 | [] | no_license | Krishnachaitanya-learn/ExpressionBasedMusicPlayer | 8c7b139248031e5cca6e53f733b7e329b7ac0eb2 | e72cd9dd951b8bd2a81031dd3e4ac62a6ec638cb | refs/heads/main | 2023-09-05T21:03:16.105383 | 2021-11-08T15:24:25 | 2021-11-08T15:24:25 | 425,890,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import numpy as np
import glob
import random
import cv2
fishface = cv2.face.FisherFaceRecognizer_create()
data={}
def update(emotions):
run_recognizer(emotions)
print("Saving model...")
fishface.save("model.xml")
print("Model saved!!")
def make_sets(emotions):
training_data=[]
training_label=... | [
"krishnachaitanyayerrapatruni@gmail.com"
] | krishnachaitanyayerrapatruni@gmail.com |
0f0685f8137ae113e06f7428ee41f7d757b0a252 | 15bfc574ae99ea02f10c1f549136bd9951f399cd | /articles/views.py | f5c3eaddddb2e91b794b65638563c13318ad1b73 | [] | no_license | dimka1993kh/Dj_HW_5.3 | a2b9a197729eb26fd4e6d3b4872b754542bd8c07 | e891370b4cb740fd1bf44e19e27a17021a65f99c | refs/heads/master | 2023-04-15T01:54:24.943214 | 2021-05-03T18:44:02 | 2021-05-03T18:44:02 | 364,027,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.views.generic import ListView
from django.shortcuts import render
from .models import Article
def articles_list(request):
template_name = 'articles/news.html'
news = Article.objects.all().select_related('author', 'genre').defer('author__phone')
# news = Article.objects.all()
context = {... | [
"dimka1993kh@gmail.com"
] | dimka1993kh@gmail.com |
ee9d86b56492a9281eeb62c4a4d3d898ad8fac08 | db121846c8a25618da6fb90666c18430c2d8c97a | /src/tweets/models.py | 34c245589a25c9012faaef6e88b24f5d68f0cc02 | [] | no_license | richardhsieh18/djangoTweetme | 8d6d37ff592f3abd80da74d4c58f23207fec172e | cf0411d1df7c4ad79b36f71a3f5f96ee6518c14b | refs/heads/master | 2020-06-30T08:52:03.792566 | 2019-08-26T06:36:21 | 2019-08-26T06:36:21 | 200,784,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | py | import re
from django.conf import settings
from django.urls import reverse
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import post_save
from django.utils import timezone
from hashtags.signals import parsed_hashtags
from .validators import validate_conte... | [
"starengram@gmail.com"
] | starengram@gmail.com |
53bbaf0c1927f1dd6a655edc347f5f068614c4fe | a4681043cb56a9ab45be32a62fa9700b391f087f | /14-Statistics_with_Python/Histograms/Finding_your_Best_Bin_Size.py | ee5208c7421bb08d3d728fd281c28ccc5c4509db | [] | no_license | MarceloDL-A/Python | b16b221ae4355b6323092d069bf83d1d142b9975 | c091446ae0089f03ffbdc47b3a6901f4fa2a25fb | refs/heads/main | 2023-01-01T02:29:31.591861 | 2020-10-27T19:04:11 | 2020-10-27T19:04:11 | 301,565,957 | 0 | 0 | null | 2020-10-27T19:04:12 | 2020-10-05T23:41:30 | Python | MacCentralEurope | Python | false | false | 1,976 | py | """
HISTOGRAMS
Finding your Best Bin Size
The figure below displays the graph that you created in the last exercise:
Histogram
This histogram is helpful for our store manager. The last six hours of the day are the busiest ó from 6 pm until midnight. Does this mean the manager should staff their grocery store with the ... | [
"marcelo.delmondes.lima@usp.br"
] | marcelo.delmondes.lima@usp.br |
8f071a813eee912ed9e9bee66b9d5dc9abeab6e2 | 7ff79f2a512676abbd558ca3f21c00dab85e6175 | /tools/RecordSniffer.py | 47641cdfcf77f84967a2ab45a8d654bcc64e0ba4 | [] | no_license | ftheoleyre/exp-iotlab | 9b67b85272f3e2cf3ede29335093a039c27f8935 | 862f1cd3f4c62dbb635609a8d52eecf1e366f217 | refs/heads/master | 2020-04-06T20:29:20.419700 | 2018-06-06T08:08:51 | 2018-06-06T08:08:51 | 37,065,936 | 0 | 1 | null | 2015-06-08T12:39:00 | 2015-06-08T12:39:00 | null | UTF-8 | Python | false | false | 1,375 | py | #---------------------------------------------------------------------------
# A "recording" aggregator
#
# Cedric Adjih - Inria - 2014
#---------------------------------------------------------------------------
import sys, time, struct, select, socket, fcntl, os
nbSniffers = int(sys.argv[1])
outputFileName = sys.ar... | [
"cedric.adjih@inria.fr"
] | cedric.adjih@inria.fr |
019609165e27c097de122c42e88fd2e7d9ab2312 | ef82b0a0d5642ac0bb23a1702c75387b351d92fd | /migrations/versions/74870c5d9e87_users_and_posts.py | 5fe28ea9b34ec7795cf7d2c0c3096da2e7a933df | [] | no_license | ChristopherCampos/Buddy | 36286aa9eba99caee06c6294fcde877248fb9146 | f270608bc2cd30588771944c4e9606ae4d8d7788 | refs/heads/development | 2022-12-24T05:50:33.718552 | 2020-09-18T11:17:01 | 2020-09-18T11:17:01 | 282,841,507 | 1 | 0 | null | 2020-09-18T11:17:02 | 2020-07-27T08:42:39 | Python | UTF-8 | Python | false | false | 1,250 | py | """Users and Posts
Revision ID: 74870c5d9e87
Revises:
Create Date: 2020-07-27 10:28:40.164948
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '74870c5d9e87'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ge... | [
"chris.acampos@yahoo.com"
] | chris.acampos@yahoo.com |
571e0e5523e33785effe24788a676fe6168f8d50 | bad70ead3032b754e84b1e346f22dfe302f1780a | /real-time-crawler/Python/GetNotifierIPList.py | 03fc49aec4c63b7ac8cc34dc72173a70082ac7cf | [] | no_license | Ryouku/product-integrations | c17a3d73bf4c47dea3ee4faf6ee4564bf98560b2 | 2213a7c50f6d64ebe1580c38370a098f2ba2bf21 | refs/heads/master | 2023-07-30T06:25:59.072048 | 2021-05-05T11:59:25 | 2021-05-05T11:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import requests
from pprint import pprint
# Get response from the callback IPs endpoint.
response = requests.request(
method='GET',
url='https://data.oxylabs.io/v1/info/callbacker_ips',
auth=('user', 'pass1'),
)
# Print prettified JSON response to stdout.
pprint(response.json()) | [
"nedas@oxylabs.io"
] | nedas@oxylabs.io |
5f58ecef0b8e82fcead874e63f358470565ad618 | c5bfc4509bedafe822691bbb3eb927e1fdd6daef | /ProblemSet5/Coordinate.py | 0d75033313b8a1597c52bb185feea8efdae00559 | [] | no_license | BMariscal/MITx-6.00.1x | 046f9891dcdc9c5fabf0543a01434a1304a7db9d | 37951478f41f9f2e00bb2e1ec12ccbafb4ab8e78 | refs/heads/master | 2021-06-19T09:08:56.827010 | 2017-07-16T08:10:26 | 2017-07-16T08:10:26 | 82,771,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | """Your task is to define the following two methods for the Coordinate class:
1.Add an __eq__ method that returns True if coordinates refer to same point in
the plane (i.e., have the same x and y coordinate).
2.Define __repr__, a special method that returns a string that looks like a valid
Python ex... | [
"BriceidaMariscal@gmail.com"
] | BriceidaMariscal@gmail.com |
1fd4a407298333ce216b0add7233a98b551852d9 | db38befb50d6a8f7027e22db52d025bffdc7ce29 | /libs/networks/network_factory.py | 7d166080241d8e7b860ee10be39c8a69c9b990fc | [] | no_license | kuku-sichuan/ComparisonDetector | cf497e19e44bb2e240eab32a70fcdf1b638f98ce | a2b60d4b89541eb052e6c4d6c98d1bd71290ea72 | refs/heads/master | 2023-05-10T21:56:44.275034 | 2023-05-05T16:20:23 | 2023-05-05T16:20:23 | 228,549,154 | 33 | 12 | null | 2020-12-29T12:47:01 | 2019-12-17T06:32:46 | Jupyter Notebook | UTF-8 | Python | false | false | 3,273 | py | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import tensorflow as tf
import tensorflow.contrib.slim as slim
import sys
sys.path.insert(0, '../../')
from libs.networks.nets import resnet_v1
from libs.networks.nets import inception_resnet_v2
from libs.netw... | [
"1819918485@qq.com"
] | 1819918485@qq.com |
08f2d819aa16914cf3502f08883c8433fed8fb50 | a27163953c34e9e569966b91524c2450dbbc72c4 | /brigands/brigands/settings.py | 9a8b8aa8f1831d6687f3962afe1ad58fd183b75f | [] | no_license | Sasooli/brigandrules | 4c9f14031a533276953f7f1c30cdad37676549e1 | 8b99a43791833ec58e759e8eea3b05f1ed1c98e9 | refs/heads/main | 2023-03-22T10:37:47.076389 | 2021-03-15T16:55:44 | 2021-03-15T16:55:44 | 348,048,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | """
Django settings for brigands project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"olafdavis@googlemail.com"
] | olafdavis@googlemail.com |
2fab2bee4ac6948cf332cd44a621eb9d9886938d | d734df2a2ee329592004b612d0086e79c3415cd0 | /mysite1/migrations/migre/0005_commentaire.py | 538007dc6f5568cbe9cd07e455252d3c1abfda2a | [] | no_license | pascal0101/site_web | ed115a678b65c4e106d6aab032cbfcd4b1bdd800 | ef2239af8f4a9d0b1e31e051d8674a3a8c252571 | refs/heads/master | 2021-01-04T20:59:23.281561 | 2020-03-02T20:47:33 | 2020-03-02T20:47:33 | 240,757,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # Generated by Django 3.0.3 on 2020-02-23 20:06
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('mysite1', '0004_image_image_path'),
]
operations = [
migrations.CreateModel(
... | [
"pascaldaf2016@gmail.com"
] | pascaldaf2016@gmail.com |
d3f017952c1aa372ac9272676b274e1426c071fe | 545095004814e8a851d22ba3f906511f724f3dda | /day7_161120/HomeWork/core/classes_class.py | 01ac681c9aee339b79f24a6e3a3647ebf63177d2 | [] | no_license | wayde-P/python_study | 38ceb92bac9cee9973cfeac2934680ce82c46372 | cf2b4fca203af52be7199d82b35b206877fcae86 | refs/heads/master | 2020-07-30T20:35:22.268453 | 2017-10-31T08:20:39 | 2017-10-31T08:20:39 | 73,622,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | import sys
import os
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(basedir)
from core import operate_DB
class classes(object):
def __init__(self):
self.OPerate_DB = operate_DB.Operate("%s/db/classes.json" % basedir)
def crete_class(self, name, address, course)... | [
"w2341078@163.com"
] | w2341078@163.com |
be6f744ed74a9d985bf2d457c64dc8a20447b721 | 543e4a93fd94a1ebcadb7ba9bd8b1f3afd3a12b8 | /maza/modules/creds/cameras/sentry360/ftp_default_creds.py | 36767e634607918cc0d8f56a5cba7e413c92d652 | [
"MIT"
] | permissive | ArturSpirin/maza | e3127f07b90034f08ff294cc4afcad239bb6a6c3 | 56ae6325c08bcedd22c57b9fe11b58f1b38314ca | refs/heads/master | 2020-04-10T16:24:47.245172 | 2018-12-11T07:13:15 | 2018-12-11T07:13:15 | 161,144,181 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from maza.core.exploit import *
from maza.modules.creds.generic.ftp_default import Exploit as FTPDefault
class Exploit(FTPDefault):
__info__ = {
"name": "Sentry360 Camera Default FTP Creds",
"description": "Module performs dictionary attack against Sentry360 Camera FTP service. "
... | [
"a.spirin@hotmail.com"
] | a.spirin@hotmail.com |
20bd42bce88fd0becceadd108dcc9df42d3d9ba1 | b4f2b3b8c8a5c6015ad90facf3d4b2c031f9d1a6 | /Python1000/Study/S1L3_function_show.py | 4b6aee40e41a1379cc50c084d1cf7daa8d56722e | [] | no_license | soft9000/Python1000 | 141b0d0cf99d26ff915a28c40d27179ec9dc1490 | d63179cad6a8ac6285d972a9566da75d767e7bc8 | refs/heads/master | 2022-11-12T11:53:33.215224 | 2020-07-11T07:18:49 | 2020-07-11T07:18:49 | 268,032,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #!/usr/bin/env python3
def ShowChars(num, token):
return "\t" + (token * (num + 4))
def Show(message):
xx = len(message)
stars = ''
if xx > 5:
stars = ShowChars(xx, '$')
else:
stars = ShowChars(xx, '*')
print(stars)
print("\t* " + message + " *")
print(stars)
Show("The is a MESSAGE")
Show("Doh!... | [
"noreply@github.com"
] | soft9000.noreply@github.com |
2aa88315ba210081a02274e09c7e59726276c367 | e4bceb499098281253f01f93d5c4f11284febf2e | /wakeup.py | 71ff96919c980606a2c9ddd0ded586b253c131a3 | [] | no_license | Hemie143/gc_mysteries | d2a0a363767128bd599e079a1fab01822986d7e9 | d26cf036f20f13d9a6c314000b7531e2f21d4d5e | refs/heads/master | 2021-09-15T11:25:23.775079 | 2018-05-31T11:38:08 | 2018-05-31T11:38:08 | 125,210,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import requests
import filecmp
import os
import time
import datetime
'''
curl
-A "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
-e http://geocachewakeup.byethost7.com/?ckattempt=1
-b "__test=a7f64c693f5755629af2d2c71aa06d2a;referrer="
-o wakeup%TS%.png
-H "C... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
68b52eaab15e855c47aa44bfc318c70d8d29b2d7 | e7c136c2e0e27649b4625b730e322002d441cc8b | /backend/api/urls.py | 6559c5c85a90997ab18ec3c1b7de2973f328cc25 | [] | no_license | irakliShengelia/todoapp | 4fde0b8ddbf03bea61e7128739e0142a19ec87b3 | f354020fad979ece8e8361c985b499b1e2c77a9a | refs/heads/main | 2023-06-16T15:33:49.281252 | 2021-07-17T11:46:23 | 2021-07-17T11:46:23 | 386,881,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """api 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 vie... | [
"iraklishengelia94@gmail.com"
] | iraklishengelia94@gmail.com |
1a9508bc54330982323ca71c3ce2b6369ad02352 | 277ff420e7b65f9ea1d80995620250aede8e465a | /main/views.py | a4fa43b2b70daec552b27a7f96e6fbf13791bc12 | [] | no_license | pdfarhad/simple_company | 8bca877321430d0ef2d458a488a160554139d8cc | be08975ab25dbab010827a64d1953f2bb675523e | refs/heads/master | 2021-01-08T17:16:05.502417 | 2020-02-21T08:33:19 | 2020-02-21T08:33:19 | 242,090,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from django.shortcuts import render
from django.views.generic.edit import FormView
from main import forms
# Create your views here.
class ContactUsView(FormView):
template_name = "contact_form.html"
form_class = forms.ContactForm
success_url = "/"
def form_valid(self, form):
form.send_mail()
... | [
"farhad.alam@shohoz.com"
] | farhad.alam@shohoz.com |
797a23d8f9e8f6fb1b1ef62c61457962f3b58e28 | a6491f894d04cb00b4c5275b2e78d8edee63e20d | /menu/views.py | 5421698d7a109515cc784956bf8b9f611caa034d | [] | no_license | naofumi-npd/hybrid-api | 02e1c141edd26b8f171b7387492cc2a2d3e1b663 | 873e20da88e93820d3b504e2ae9f662ccf569796 | refs/heads/master | 2021-01-10T06:59:49.949510 | 2016-02-11T16:00:21 | 2016-02-11T16:00:21 | 51,094,228 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from menu.models import Menu
from menu.serializer import MenuSerializer
from common.json_response import JSONResponse
# Create your v... | [
"Naofumi.Ezaky@ey.com"
] | Naofumi.Ezaky@ey.com |
9552a4202c57da6683460a396c52a33330a68705 | 3906b448670dfc54f91dad58bc36ed8a4d8168b9 | /emp_project/bin/pasteurize | a80a2d596b9a2a038ccb15bf984e42a1a1e8721a | [
"MIT"
] | permissive | jayfoleyiv/ANI | 2a67c90aeec3d7a814e6463432183bef09d77283 | bda77b9f372e4a4582a33b43857823775bc88e92 | refs/heads/master | 2022-11-16T09:24:06.788732 | 2017-07-25T19:52:53 | 2017-07-25T19:52:53 | 98,344,353 | 0 | 1 | MIT | 2022-10-25T10:50:47 | 2017-07-25T19:51:50 | Python | UTF-8 | Python | false | false | 391 | #!/Users/jay/CODE/EMpy/emp_project/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'future','console_scripts','pasteurize'
__requires__ = 'future'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"jayfoleyiv@gmail.com"
] | jayfoleyiv@gmail.com | |
ad736b78161f3b5948687879008f4b2325b497af | 01a14eac64b09317b0160c521fa41290c9d575dd | /mala/targets/ldos.py | 10ef67b60975950aa81fd8874cedb44ee23c86c7 | [
"BSD-3-Clause"
] | permissive | icamps/mala | 03a1223fcf112b5a4e4162dc5292daa90d09058c | 9cc771b0cdc4178c7f66fd717684658abbb0d95c | refs/heads/master | 2023-08-23T11:20:06.526493 | 2021-07-07T11:18:35 | 2021-07-07T11:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,261 | py | """LDOS calculation class."""
from .cube_parser import read_cube
from .target_base import TargetBase
from .calculation_helpers import *
from .dos import DOS
from .density import Density
import numpy as np
import math
from ase.units import Rydberg
from mala.common.parameters import printout
class LDOS(TargetBase):
... | [
"l.fiedler@hzdr.de"
] | l.fiedler@hzdr.de |
f047b7e7e7ffeddbf2f1357674c44aee7ab8d35a | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/datasetup_20210414102701.py | 67abb47540226e9e7256dd767a367bdddaf1b16d | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pandas as pd
import cv2
import os
import glob
from pathlib import Path
def cleanTestDirs():
emotions = ['angry', 'happy', 'disgust', 'sad', 'neutral', 'surprise', 'fear']
for e in emotions:
... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
466f4bfb9d8c8f5b5ded6d2dbea4bb02c4b53898 | 213a898605bece74bbfd3e6a100d441496c78a0f | /tests/projects/dnsresolver/test_resolver.py | 1b07dd62179eaf876160e5b727fabf307a850752 | [] | no_license | palaju01/CS-430-Computer-Network | 706989d9218c99882fec033b2bff663e89e55d63 | 5ce3c1a2ae530214bdb23ff68c38bde3b7037b2e | refs/heads/master | 2023-01-31T18:02:19.791645 | 2020-10-18T18:24:21 | 2020-10-18T18:24:21 | 300,754,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,541 | py | #!/usr/bin/env python3
"""
Testing the DNS resolver
"""
import pytest
from src.projects.dnsresolver.resolver import val_to_2_bytes
from src.projects.dnsresolver.resolver import val_to_n_bytes
from src.projects.dnsresolver.resolver import bytes_to_val
from src.projects.dnsresolver.resolver import get_2_bits
from src.p... | [
"yasinovskyy@gmail.com"
] | yasinovskyy@gmail.com |
8b5ae3a5892906f54abcc4cbc3632d94af95eb3e | fe00e0291da85b7899265acb31d74f445b3b280c | /Python Collections module.py | 1dc05b463ad2e8d727048d9a02e92701db09e98b | [] | no_license | jnomellini/Udemy-Course-Workalongs | 29169c861bc0a49cda69f4da7c04ac6dcc53dbc5 | 93248d51c3907d213d75012986cbaa8a8ca970ed | refs/heads/main | 2023-02-22T05:27:29.855774 | 2021-01-29T01:31:07 | 2021-01-29T01:31:07 | 325,463,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from collections import Counter
# In[2]:
mylist = [1,1,1,1,1,2,2,2,2,3,3,3,3,3,3]
# In[3]:
Counter(mylist)
# In[4]:
mylist = ['a','a',10,10,10]
# In[5]:
Counter(mylist)
# In[6]:
Counter('aaaaaaaaaabbbbbbbbbbbdfdfdfdfsfsfsffwerioter')
# In[7]:
sen... | [
"noreply@github.com"
] | jnomellini.noreply@github.com |
f8ac091733b8dedd9a54a68c17fb0e8cfdd36957 | f5ed026c4dbecbda2fcf286464e9c760c0ff3162 | /py_try_grid_trade_workspace1/myoco/management/OcoManagement.py | ca8bf67398dec9b7c395d3a2e649f120ea963124 | [
"MIT"
] | permissive | KeithLaiKB/py_try_grid_trade | 494a96423968df8aac8506d9a1c209f141408d76 | a0fa66bc87946bb95e84fbaa818e2cefe01d1655 | refs/heads/main | 2023-05-14T04:43:36.068760 | 2021-06-09T02:33:41 | 2021-06-09T02:33:41 | 371,605,112 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,078 | py | import json
import logging
import os
from pip._vendor import requests
from mytool.MyDealFileTool import MyDealFileTool
from mytool.MyUrlTool import RequestMethod
from client.MyClient import MyClient
from mytool.MyTimeTool import MyTimeTool
class OcoManagement:
'''
[
{
"orderListId":32802... | [
"laidelivery@163.com"
] | laidelivery@163.com |
64f2a31364a570008f356a9bd2f8b10ebdc0c6f4 | ff1f859a4141f232eb90ee3f62b99a4b5bf98821 | /Exercises/ex6.py | fd0dd8b0fac6c460bc77c0ec464d25fd9c458d3d | [] | no_license | adela8888/CS995-Introduction-To-Programming-Principles | ba704c1b41a6ec111c8b320b03a9fd5226472d81 | 64efdf934a8621db5e34a90e43f5af94134d35cb | refs/heads/master | 2020-12-23T21:42:26.820623 | 2020-04-17T08:29:50 | 2020-04-17T08:29:50 | 237,283,707 | 0 | 0 | null | 2020-02-06T13:46:10 | 2020-01-30T18:59:21 | Python | UTF-8 | Python | false | false | 297 | py | """
Takes a list of number and creates a new list of odd number from the original list
"""
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
b=[]
# for every element in the list a if the remainder of %2 is 0 it adds the element to the list b
for x in a:
if x%2 == 0:
b.append(x)
print (b)
| [
"noreply@github.com"
] | adela8888.noreply@github.com |
8cdd706344dff0e13cfd77f5b6b4f98005a35c96 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /bBExn57vLEsXgHC5m_13.py | a75afd38204a17adcd9211e34c8b31be9e80d941 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
def same_line(lst):
try:
return (lst[1][1] - lst[0][1]) / (lst[1][0] - lst[0][0]) == (lst[2][1] - lst[1][1]) / (lst[2][0] - lst[1][0])
except:
return lst[0][0] == 0 and lst[1][0] == 0 and lst[2][0] == 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e2e902fe476469280d8f67738cf676ce097be6c5 | 48290f34b95013e1d25b98a73fdd8f879c4b5b7a | /login-register.py | 06cfab88082c20f8d6c6d00093327aba2e0b705b | [] | no_license | anmolrajaroraa/core-python-july | 584a3b055c39140b8c79c1158b366f8bdc4a015d | 0fada23d8d969e548dadb6b9935aff1429f13a64 | refs/heads/master | 2022-12-15T23:17:19.786059 | 2020-09-13T17:37:51 | 2020-09-13T17:37:51 | 278,815,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import csv
# comma separated values
print('''
1. Login
2. Register
''')
choice = int(input("Enter choice: "))
# if choice == 1:
# isLoginSuccessful = False
# usernameOrEmail = input("Enter username/email: ")
# password = input("Enter password: ")
# with open("users.csv") as fileStream:
# read... | [
"anmolarora1711@gmail.com"
] | anmolarora1711@gmail.com |
4d260aa5aff30896a44b2742d3400a656abe627d | 268147288158ef3ea04b93f06ea804f9669c87f0 | /MAYA/codes/python/rig/blendAttrs.py | 481c0bab585ea72a535c8e5e5d8b5a1778e6cce2 | [] | no_license | satishgoda/EHM_tools | 644713466838bed51ac713661699779338961c16 | b407bcd33c1dc7a4f1bb0d0e06e47bfba44958b0 | refs/heads/master | 2021-01-21T03:50:38.142724 | 2016-03-18T00:05:38 | 2016-03-18T00:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | # blendAttrs
# blends A and B by the amount of blender, connects them to C.
# needs four attributes.
#============================================================
import pymel.core as pm
def BlendAttrs( A=None, B=None, C=None, blender=None ):
result_bln = pm.createNode ( "blendColors", n = "_bln" )
if A==0:... | [
"hm.ehsan@yahoo.com"
] | hm.ehsan@yahoo.com |
fb0ad1f1480d6d4839f0c76a440b978b0e071368 | 7c9f28e371e8dfa9290c05a48a9d924484b4b18c | /rgn.py | 3a668bd7122d3cbb93110cc8b215dd74a2e7f72c | [] | no_license | Pavithralakshmi/corekata | 1f9d963da44a6fdcdedaf2e39452545f6cc52e9b | 06d1c7bba25681ce12e2ab93ce461228afb6b984 | refs/heads/master | 2021-04-30T01:53:37.414318 | 2018-10-11T17:58:39 | 2018-10-11T17:58:39 | 121,491,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | def sum_digits(n):
ss = 0
while n:
ss += n % 10
n //= 10
return ss
| [
"noreply@github.com"
] | Pavithralakshmi.noreply@github.com |
2e673462bf565b4ee11ba0aa01f46f705c8e9ce7 | a6b9a7adbabef7fb70bfc87d54d6fd5bb58e66a1 | /DFD/News/newswebsite/rssfeed/__init__.py | 9de8fd2ea09e5bd5a1ec112ad95664909191593f | [] | no_license | vmmrahul/2k19-projects | 14d023e2359b2bafe2eb9220f2fdf5776222bbbc | 38d70b0a47dcd9e51c02e148b7163e7f4b5b01c5 | refs/heads/main | 2023-04-17T09:03:42.032584 | 2020-11-03T12:14:35 | 2020-11-03T12:14:35 | 309,672,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | import feedparser
def trending(obj):
print(obj)
if obj == '/':
# NewsFeed = feedparser.parse("http://feeds.feedburner.com/ndtvnews-trending-news")
NewsFeed = feedparser.parse("http://feeds.feedburner.com/ndtvnews-top-stories")
elif obj == "Entertainment":
NewsFeed = feedpa... | [
"rkb9878@gmail.com"
] | rkb9878@gmail.com |
2aad27eba4451cb440bcd52ff4cd8d3b9ec12213 | 2d953ed0c670c7d2599f3fdf198e7858fd11dcc6 | /apps/users/models.py | e16e43a661a0c03fa3d2379b35b8861bc9e027ae | [] | no_license | rockingman/dailyfresh1 | 82830150b6998425b189f4eb33cee1f46dc3eea2 | 052eb0943bf358fcaec1e0210c531fa14499c2c5 | refs/heads/master | 2020-03-12T05:35:20.794597 | 2018-04-25T08:59:40 | 2018-04-25T08:59:40 | 130,466,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
# Create your models here.
from itsdangerous import TimedJSONWebSignatureSerializer
from tinymce.models import HTMLField
from dailyfresh import settings
from utils.models import BaseModel
class User(BaseModel, AbstractUser):
"""模型管理... | [
"1913307039@qq.com"
] | 1913307039@qq.com |
6c8fc766af45b543220c2ad95816ce0649da7470 | 45ab1e397b5fc69ba84c8f5dfb66c09b79bca4c6 | /Course_IV/Parallel computing/pract12/MPIMess/MPIMess.py | bd2fddbca6ce136cceff39e7631e81f3eb668d76 | [
"WTFPL"
] | permissive | GeorgiyDemo/FA | 926016727afa1ce0ee49e6ca9c9a3c60c755b35f | 9575c43fa01c261ea1ed573df9b5686b5a6f4211 | refs/heads/master | 2023-06-28T00:35:43.166167 | 2023-06-16T14:45:00 | 2023-06-16T14:45:00 | 203,040,913 | 46 | 65 | WTFPL | 2022-04-09T21:16:39 | 2019-08-18T18:19:32 | Jupyter Notebook | UTF-8 | Python | false | false | 807 | py | from mpi4py import MPI
from numpy import empty , array , int32 , float64 , dot
# определяем коммуникатор comm – группу процессов, которые участвуют в вычислениях
comm = MPI. COMM_WORLD
# rank применяется для указания номера процесса
rank = comm.Get_rank()
numprocs = comm.Get_size()
#Если номер процесса 0... | [
"16972045+GeorgiyDemo@users.noreply.github.com"
] | 16972045+GeorgiyDemo@users.noreply.github.com |
8143e360de4b47b6e9fe22c2729c72ca87b0fa10 | 414bc1c7b5a63c50e1b0f42d8d4e34aa8bdbfc25 | /lab3/datalink.py | 0069cfb075e057b5e4933f5c92f8974c0553913d | [] | no_license | EvanSimpson/ComputerNetworks | fb1f889f0295bd4189c9074bc105d26561795227 | 5d0792e15f638d1d9fa50e14eedb00ef80c7b652 | refs/heads/master | 2020-02-26T15:19:50.601207 | 2015-04-27T15:56:22 | 2015-04-27T15:56:22 | 30,338,121 | 0 | 1 | null | 2015-04-21T16:22:19 | 2015-02-05T04:44:31 | Python | UTF-8 | Python | false | false | 2,437 | py | from crc import crc
addresses = ['A', 'B', 'C', 'D']
protocols = ['NET']
class Mac():
def __init__(self, destination, source, next_protocol, payload):
'''
Takes as input strings for each value of the
'''
self.destination = destination
self.source = source
self.next_protocol = next_protocol
self.payloa... | [
"cecelia.auerswald@gmail.com"
] | cecelia.auerswald@gmail.com |
3947a664bd82ddbf704fb0ff2cce9b0bbd23f985 | c8c7cb6f2a124d70eb50fa9e8bc7dca0f28b5be9 | /main.py | 81e25e5915a9b1fe545c12dc3dd167c5e2efbb58 | [] | no_license | VincentGaoHJ/Spider-1905 | 1b97894ffa3831ffa76beb4e6773e6e75ad37e03 | f4dd575ac220210422f473256b104e68a7ca937f | refs/heads/master | 2021-05-18T12:40:33.836180 | 2020-05-17T08:31:28 | 2020-05-17T08:31:28 | 251,246,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | # -*- coding: utf-8 -*-
"""
@Time : 2020/3/31 9:58
@Author : Haojun Gao (github.com/VincentGaoHJ)
@Email : gaohj@Scishang.com hjgao@std.uestc.edu.cn
@Sketch :
"""
from scrapy.cmdline import execute
execute(['scrapy', 'crawl', 'spider_1905'])
| [
"gaohj@scishang.com"
] | gaohj@scishang.com |
17a9ee711a1a28d420636942b679622db0b202e1 | 7bc904232185163d065bae608c12f5e6d1e25ebf | /CellsWithOddValue/main.py | 367d31772075c7c8d073c2393944b12203ec7411 | [] | no_license | tuankhaitran/Pythonpractices | 6f66305313c640e6faf7369426307c97b88ea4ea | 2e5dfd44069780ca392a2dadbbc5c68c0e6bb3e7 | refs/heads/master | 2021-06-29T20:02:40.112599 | 2020-10-15T02:12:41 | 2020-10-15T02:12:41 | 168,436,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | # Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices where indices[i] = [ri, ci]. For each pair of [ri, ci] you have to increment all cells in row ri and column ci by 1.
# Return the number of cells with odd values in the matrix after applying the increment to all indice... | [
"trankhaituan112@gmail.com"
] | trankhaituan112@gmail.com |
a456e19cd9296ebd7f72cb740ff6165d5b72db52 | 1384435f0e0cf706db82d0672d5fe9e3bc0cf5a8 | /agilo/ticket/tests/workflow_test.py | 4fc84cd6f5053468c692e14cb4e4a51a6219361f | [] | no_license | djangsters/agilo | 1e85d776ab4ec2fa67a6366e72206bbad2930226 | 1059b76554363004887b2a60953957f413b80bb0 | refs/heads/master | 2016-09-05T12:16:51.476308 | 2013-12-18T21:19:09 | 2013-12-18T21:19:09 | 15,294,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,979 | py | # -*- encoding: utf-8 -*-
# Copyright 2009 Agile42 GmbH, Berlin (Germany)
# Copyright 2011 Agilo Software GmbH All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
... | [
"bastir@gmail.com"
] | bastir@gmail.com |
330a65e3a647bee90a48d3f323e928e718b549f5 | 1dc67a30f9af553243088668d51bc4e75e87d83d | /python/dazhewan/day19/打着玩/super_init.py | c76074a2ffcc59ce4d27de7f348f85e81ddb37c5 | [] | no_license | houyinhu/AID1812 | 00db45b3e8905bd069b31f2e7689f83bca3fa61f | 8eeb9f06ed9f4e742d480354ef0e336dfe8c2f17 | refs/heads/master | 2020-04-27T16:33:57.275890 | 2019-04-10T01:09:51 | 2019-04-10T01:09:51 | 174,486,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | #super_init.py
#此示例示意,用super函数显示调用基类__init__初始化方法
class Human:
def __init__(self,n,a):
self.name = n
self.age = a
print("Human的__init__方法被调用")
def infos(self):
print('姓名:',self.name)
print('年龄:',self.age)
class Student(Human):
def __init__(self,n,a,s=... | [
"ahu@163.com"
] | ahu@163.com |
65194f17de5d6bb89f0aa780e36525ec567335e6 | 2dff6957b68347c2dd5783334a8d8d53d038c9e6 | /examples/emoji_suggestions.py | cce7299f8cb2bd14b37c1dd517fa4af90e7c62ec | [
"Apache-2.0"
] | permissive | pavelhouzva/ritetag-api-python | 88760e5bacc311f6b97fa2e6bb25c3260b7c805b | e4f1555d393506fec052bc5eb7ad757645adb345 | refs/heads/master | 2022-12-10T16:04:11.184999 | 2021-05-24T14:25:48 | 2021-05-24T14:25:48 | 250,523,711 | 1 | 5 | NOASSERTION | 2021-06-02T01:18:24 | 2020-03-27T12:03:29 | Python | UTF-8 | Python | false | false | 533 | py | #!/usr/bin/env python
from ritetag import RiteTagApi, read_env_file, get_env
read_env_file('.env')
access_token = get_env('ACCESS_TOKEN')
client = RiteTagApi(access_token)
result = client.emoji_suggestion('TIL the Austrian mathematician Kurt Godel had an obsessive fear of being poisoned,'
... | [
"phouzva@gmail.com"
] | phouzva@gmail.com |
a4f0c4daed824f0ac16eaef1d5fe87e00b94e9b4 | fe07983ed99464d3f0bccf7863da2b733022c3a5 | /wk_show_password/__manifest__.py | 28e203a38b586fb4c6e473a3c6dda57a0b4d8772 | [] | no_license | pildekm/odoo13 | 2712c4ae8081936ea8ed5589332c481589199ae7 | b2d7efb671627f42a5bd6f474a59bf4dac4d3bef | refs/heads/master | 2022-07-15T21:15:33.895206 | 2020-05-18T11:21:50 | 2020-05-18T11:21:50 | 253,416,388 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | # -*- coding: utf-8 -*-
#################################################################################
# Author : Webkul Software Pvt. Ltd. (<https://webkul.com/>)
# Copyright(c): 2015-Present Webkul Software Pvt. Ltd.
# All Rights Reserved.
#
#
#
# This program is copyright property of the author mentioned abo... | [
"jurkaboy@gmail.com"
] | jurkaboy@gmail.com |
32efdaf61443fdcf9e5a0d3cb8f10ee369a7df07 | f993ecdd883695e1a5177ad8b9f635865b9394e5 | /kadai02_3.py | cfc7728443cdbd4716cad8b724c0e3e392a33b28 | [] | no_license | shimataka0509/kadai02 | 6c656a1f0090aed65ef17491c1f07c6d88cca659 | 900131359cabf510cb849be1e9a89e5dec6f7454 | refs/heads/main | 2023-02-28T23:26:54.613127 | 2021-02-03T00:51:21 | 2021-02-03T00:51:21 | 335,460,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | from collections import deque
tsoot = ["S","C","D","H"]
tcard = ["A","2","3","4","5","6","7","8","9","10","J","Q","K"]
card = int(5)
suuzi = []
soot =[]
check = [0,0]
#入力
for k in range(2):
yaku = "ハイカード"
for i in range(card):
s = input().rstrip().split(' ')
soot.append(int... | [
"noreply@github.com"
] | shimataka0509.noreply@github.com |
3a05f78c5bf798618dd5ee046587dda53a0b9a0a | daa999a39d46fd45fd88f42d85521c753214227e | /brain_games/scripts/brain_calc.py | e1382df9be050e58196c3d4325972a7de9062432 | [] | no_license | Wafflya/python_pract | 987e484e34638a72d1f2726535ef29bd435edde4 | aea77d666edcafdb6acd9ad86f044ed4b58fd31e | refs/heads/master | 2023-04-17T15:03:57.381819 | 2023-04-03T20:15:46 | 2023-04-03T20:15:46 | 244,511,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import operator
import random
from brain_games.cli import welcome_user
from brain_games.service import ask_question, check_answer
operands = {
"+": operator.add,
"-": operator.sub,
"*": operator.mul
}
def main():
name = welcome_user()
print('What is the result of the expression?')
for _ in r... | [
"vmarat95@gmail.com"
] | vmarat95@gmail.com |
d80cceffb15b6da1f32f7e511c4fb6433d8b362f | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003/W_w_M_to_C_pyr/pyr_6s/L3/step10_a.py | 33a90e07ba8ad4d1d18aa65e7efbaf7acd074ac4 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,406 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
4c06fa4aacb00b12575f01a460389429a1fd1f1e | 3e805a105601281eafba0663ec05c2e37c625587 | /tests/adminx.py | 2c99779efca63507b29d133049184bf6ed5bdbb2 | [
"Apache-2.0"
] | permissive | ni8mr/django-xadmin-extras | 158f9f6714f1cf8603cfcb9c2a84fab6bf88f751 | ac62a86867ea44aeb779fc747d9261c830534db5 | refs/heads/master | 2021-07-17T05:37:43.651468 | 2017-10-24T09:02:06 | 2017-10-24T09:02:06 | 108,101,916 | 1 | 0 | null | 2017-10-24T08:57:50 | 2017-10-24T08:57:50 | null | UTF-8 | Python | false | false | 441 | py | # coding=utf-8
import xadmin
import xadmin.views as views
import xadmin_extras.views as ext_views
from apps import TestAppConfig
from models import ModelA, ModelB
class ModelAAdmin(object):
app_config = TestAppConfig()
class TestCommView(ext_views.AppConfigViewMixin, views.CommAdminView):
pass
xadmin.... | [
"jcorderomartinez@gmail.com"
] | jcorderomartinez@gmail.com |
747ae1bb1162326667eefdda0d9f8cace83ba35b | 2d32aa71fd0826dcefa23c5fc43eb86d3828a137 | /web/views/dashboard.py | e91b89d33fcfe60b4951720945f462f53b425272 | [] | no_license | chenlikaih/Saas | f20c1aa25fa5f3d425a3e22e1627cc3cd82594e0 | 5cb6620908334281e49b9fd8827fc92861fa3c88 | refs/heads/master | 2023-05-07T02:00:05.119649 | 2021-05-26T09:55:50 | 2021-05-26T09:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | import collections
import datetime
import time
from django.http import JsonResponse
from django.db.models import Count
from web.models import *
from django.shortcuts import render
from web.models import *
def dashboard(request, project_id):
"""概揽"""
# 问题数据处理
status_dict = collections.OrderedDict() # 有序... | [
"2399745557@qq.com"
] | 2399745557@qq.com |
b9a54d4ff9b90e87a8ea95c6b793eee65193b3eb | 205a68067ff96e81faa2ae5c9dfc03b86e3c1f7d | /silverstripe/installer.py | 3c519240862c93a24cce0047eef42c2a5b79daef | [] | no_license | djdagovs/cherokee-webserver-distribution | 4e1ce2ee9a81a59cb19d735a7b190dbda436a4e2 | f30a9375c95617df048a56815702f00c90c9d080 | refs/heads/master | 2021-05-26T13:54:17.275899 | 2011-04-13T08:29:13 | 2011-04-13T08:29:13 | 109,217,535 | 1 | 0 | null | 2017-11-02T04:25:47 | 2017-11-02T04:25:47 | null | UTF-8 | Python | false | false | 10,629 | py | # -*- coding: utf-8 -*-
#
# Cherokee Distribution
#
# Authors:
# Alvaro Lopez Ortega <alvaro@alobbs.com>
#
# Copyright (C) 2011 Alvaro Lopez Ortega
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License as published by the Free... | [
"alo@cherokee-project.com"
] | alo@cherokee-project.com |
e5c8f227e63efd6b319513791323b9864ef626bc | 13a87f608e0c5cae023dbc159eb6d489375e38dd | /Nädal 1/Ülesanne 7/Kasutaja.py | 49a707a54387c64294c84c12d107186f395451e3 | [] | no_license | KristjanKuus/Oop_Alused | 60db552c074a19efa819797d67764f821ed26c0d | 7cdccff6db84a39750fd9f624c23cc90ca2da44c | refs/heads/master | 2023-03-14T09:21:15.994197 | 2021-03-02T08:06:48 | 2021-03-02T08:06:48 | 337,350,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | class Kasutaja():
def __init__(self, eesnimi, perenimi, privileeg = ""):
self.eesnimi = eesnimi
self.perenimi = perenimi
self.privileeg = privileeg
def get_privileeg(self):
return self.privileeg
def set_privileeg(self, x):
self.privileeg = x
def kirjelda_kasuta... | [
"kristjan.kuus.001@khk.ee"
] | kristjan.kuus.001@khk.ee |
0a3a0097b6cf311e49d6da4a0de4b7ef22c3ab65 | dff749b6652cc6b5ba804d491b3c981f2a9599e1 | /pytests/cbas/cbas_dcp_state.py | 03a677fa6579ceeecb3c6325aff0a53bb9c2c7d1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pavithra-mahamani/TAF | 7c6f40beee7fb14f28f7016a246c49d3e728b938 | ff854adcc6ca3e50d9dc64e7756ca690251128d3 | refs/heads/master | 2020-07-29T01:18:56.807783 | 2019-09-20T22:51:50 | 2019-09-20T22:51:50 | 209,612,844 | 0 | 0 | Apache-2.0 | 2019-09-19T17:35:20 | 2019-09-19T17:35:20 | null | UTF-8 | Python | false | false | 15,424 | py | import time
import json
from cbas.cbas_base import CBASBaseTest
from remote.remote_util import RemoteMachineShellConnection
from couchbase_helper.tuq_generators import JsonGenerator
class CBASDCPState(CBASBaseTest):
def setUp(self):
super(CBASDCPState, self).setUp()
self.log.info("Establish rem... | [
"ritesh.agarwal@couchbase.com"
] | ritesh.agarwal@couchbase.com |
cfaac444662bb42ab5e5d32032625767f43c5a97 | 0f44d80a9ba27773c4792ca77bcb94fbbdb23ad0 | /backend/replace_in_django_project/settings/local.py | 5e219464b32fad020e22101a5089147af7b823c0 | [] | no_license | bichocj/flutter-demo-server | 0a6581ec75ae08907b8892eb32082bba515e575f | ff92162cb1c0aa954a4ebf4b7bc6cd37f33b5fc0 | refs/heads/master | 2020-04-02T13:45:55.560590 | 2018-11-06T05:11:18 | 2018-11-06T05:11:18 | 154,496,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | """Local settings for development."""
from .base import * # noqa
MIDDLEWARE += [
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
# Email settings
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH = os.path.join(BASE_DIR, 'tmp', 'email')
# Application definition
INSTAL... | [
"bichocj@gmail.com"
] | bichocj@gmail.com |
a437b03ee5459f462e70f397e65233c11427933f | 53fdd993702d747f121f95f6e007804a93dc1f68 | /hello.py | c4b4d15b6c48ee8ddf3c973cab7642cda71b0552 | [] | no_license | HoangCuongMTA/HW3-HoangCuong | 476d81389559f559ca6d18ce463f8e8451145d9b | 3d32f7e8dd5adf8bc44869e7bc4bb95e2fa20b59 | refs/heads/main | 2023-07-09T20:37:01.251183 | 2021-08-06T15:03:32 | 2021-08-06T15:03:32 | 393,408,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from flask import Flask
from flask import render_template, url_for
app = Flask(__name__)
@app.route("/")
def index():
return render_template("main.html")
if __name__ == "__main__":
app.run(host="localhost", port='5000')
| [
"hoangcuongmsa@gmail.com"
] | hoangcuongmsa@gmail.com |
23df7434ab536aa03632fc11bee9095c7e4d847e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/64/usersdata/208/37039/submittedfiles/atm.py | fffc892d1e1eeab4114a3f231991c77f9faa11fd | [] | 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 | 235 | py | # -*- coding: utf-8 -*-
v=int(input('digite o valor que deseja sacar:'))
n1=v//20
n2=(v%20)//10
n3=((v%20)%10)//5
n4=(((v%20)%10)%5//2
n5=((((v%20)%10)%5)%2)//1
print('%d'%n1)
print('%d'%n2)
print('%d'%n3)
print('%d'%n4)
print('%d'%n5) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e8bb382d51faaf75eedbb9682001f8015f321704 | 4abcc0216e0fe8d63ff15918d8884bf2550046e6 | /Asssignment11/main.py | 99b66f9a22bbbd545c54023d8e8d87616625f8b9 | [] | no_license | CBelcianu/Fundamentals-of-Programming | 163a2105acb2e95137a151b1cb165953c70f979b | 7aeadba0550e7ffac076eade4187fdedfe0b2314 | refs/heads/master | 2020-05-01T03:33:44.462806 | 2019-03-23T05:24:15 | 2019-03-23T05:24:15 | 177,247,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | '''
Created on 10 ian. 2018
@author: Catalin
'''
| [
"catalin.belcianu@gmail.com"
] | catalin.belcianu@gmail.com |
4890adfba95e71254c99424f6f9296385bc6d674 | 5c81efefdf7aad6d4712077a1edf1f75b7a1d78a | /apps/documents/models.py | aea4e76f2678e6193db7b0db279263f0a069a0e3 | [] | no_license | abogdanov87/safety_work | 38fc3788dddfc775767ff612c7a379e7b0d20195 | 8e2f5a6f9267f0eb36224ca2cebe559e19341489 | refs/heads/master | 2022-05-02T08:51:06.785097 | 2020-05-25T16:00:59 | 2020-05-25T16:00:59 | 209,609,887 | 0 | 0 | null | 2022-04-22T22:36:02 | 2019-09-19T17:18:52 | Python | UTF-8 | Python | false | false | 2,677 | py | import os
from django.db import models
import uuid
from django.apps import apps
from datetime import datetime, timedelta
from django.conf import settings
from common.models import Entity
from django.core.validators import FileExtensionValidator
from django.utils.translation import gettext_lazy as _
def get_file_path... | [
"anybogdanov@sberbank.ru"
] | anybogdanov@sberbank.ru |
f137634b0821b9597b08027552f1db74ad9bc5dc | 9508ccf2802becb4d19dd049b3496cf19d5f7b15 | /tensorflow_probability/python/mcmc/internal/leapfrog_integrator_test.py | 6ff15635b716756dbc78a4c7c242e3ac27e9390a | [
"Apache-2.0"
] | permissive | etarakci-hvl/probability | e89485968e4660050424944b0ffdbbf617533fe4 | 7a0ce5e5beff91051028258dfbc7bc6cf0c4998d | refs/heads/master | 2020-11-25T20:39:53.290761 | 2019-12-18T02:13:04 | 2019-12-18T02:14:04 | 228,835,497 | 1 | 0 | Apache-2.0 | 2019-12-18T12:27:56 | 2019-12-18T12:27:56 | null | UTF-8 | Python | false | false | 3,873 | py | # Copyright 2018 The TensorFlow Probability 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0cf04666a8ddad1b55ff72f4fb0999faac77cbc0 | 51da056c52b592fb30da101d065c00df29ddff67 | /env/bin/wheel | 860a916210a12ba1b91ad82d9599a10ea1537e38 | [] | no_license | Adinai949/djangogirl | fdff6a5980dbc4c3d5ebbc3ad273fb8870405bec | 3b235807a3aaa09d17da3aad186955e33ea23045 | refs/heads/master | 2021-01-04T00:08:49.538591 | 2020-02-16T15:52:39 | 2020-02-16T15:52:39 | 240,290,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/adinai/Desktop/bootcamp/djangogirl/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"adika949@gmail.com"
] | adika949@gmail.com | |
047b96b5f23a5f677481e75436be67e963f16f40 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /scripts/mastersort/scripts_dir/p7542_run2L4.py | d95b7a8dccc8565de88643a95318f55cc9b4a0c0 | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7542', 'run2L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2727/E2727_e363504/s414724_1904_2L4_s23... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.