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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92ec87d6a1f183a10a48e5bb65076fbca52c2d3c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Lazymux/routersploit/tests/creds/routers/netcore/test_ssh_default_creds.py | 2d81b6e62845318c12ca1f5a515d18860390ca6d | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:029aa8eb5f4144f599d8be14416b93b3a2e19b768949e76237a74d16a341aaf0
size 634
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
40c8a568840e98756271052d3afc5478c2d79a7a | 60ce73bf2f86940438e5b7fecaaccad086888dc5 | /working_scrapers/Kentucky_webster.py | 2d6934d0d038a745b9f7a44e4ecd3d1673ff539b | [] | no_license | matthewgomies/jailcrawl | 22baf5f0e6dc66fec1b1b362c26c8cd2469dcb0d | 9a9ca7e1328ae549860ebeea9b149a785f152f39 | refs/heads/master | 2023-02-16T06:39:42.107493 | 2021-01-15T16:37:57 | 2021-01-15T16:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | #!/usr/bin/python
'''
This is an template script
'''
from urllib.request import urlopen, Request
import pandas as pd
import os
import time
import numpy as np
from datetime import datetime
import datetime as dt
import sys
from io import StringIO
from joblib import Parallel, delayed
import requests
from jailscrape.comm... | [
"matthewgomies@Matthews-MacBook-Pro.local"
] | matthewgomies@Matthews-MacBook-Pro.local |
5e0a48a78d29fa70226790d056b03e46cf7c081f | 15a89fb4a0348548d1cf26fbeb6c9539f08a1b90 | /djangoProjectClass/urls.py | a3e0739e37baaf920cc707ce1f38749510203333 | [] | no_license | achieveIdeal/- | 909b2449a688222ccbb950fe6792fc57d1d8f9e5 | 14316e211e5970aefb9288365451739839aba941 | refs/heads/master | 2023-06-21T19:01:29.876932 | 2020-02-22T03:30:09 | 2020-02-22T03:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | """djangoProjectClass URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"1025359701@qq.com"
] | 1025359701@qq.com |
dce5be17a451ddc26aad8e316d8e004a0b0a1d17 | 9fa53f379296905fdd925cc41062d5984df78a4e | /NFC_Appli/Appli/apps.py | 634ed3e3e21acf38ad504b7e936af0b393f7b415 | [] | no_license | mhaegelin/NFC_Application | 4586ae7454f6f1a36261f8cf74926b7af7ffd246 | e19a1ded7e45a5d363df921589308c45d8115577 | refs/heads/master | 2020-05-29T08:49:05.516628 | 2017-05-09T00:58:46 | 2017-05-09T00:58:46 | 69,779,916 | 0 | 0 | null | 2017-03-01T20:48:53 | 2016-10-02T05:02:21 | CSS | UTF-8 | Python | false | false | 126 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class AppliConfig(AppConfig):
name = 'Appli'
| [
"marc.haegelin@etu.unistra.fr"
] | marc.haegelin@etu.unistra.fr |
100299acc986220e1cd0fc83f4d9fbed814b3a63 | 40ad67e10f9c4ae5037f7532cd9d8185130f9af5 | /src/sem.py | 10481c1a980bf0d2567c2190544b30c7b4201523 | [] | no_license | ozanarkancan/sem-playground | 46228f2872eadd0a2606d8797575f6aaa2d889f7 | 28c9994241db7929a57b21b0257f5369ea2de792 | refs/heads/master | 2020-04-29T17:12:53.752183 | 2019-04-18T12:10:18 | 2019-04-18T12:10:18 | 176,290,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,239 | py | import pandas as pd
import numpy as np
import featuretools as ft
import seaborn as sns; sns.set()
from matplotlib import pyplot
from importlib import import_module
import json
import sys
import copy
class SEM:
"""
Singleton SEM class. It's an adapter to use the R lavaan package for `Structural Equation Modelin... | [
"can.ozanarkan@gmail.com"
] | can.ozanarkan@gmail.com |
922539ebe02f2df53fc16aea241cff2fb0df5b23 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /i4lib/i4vec_sorted_unique.py | eea4deabcf5c5276323c987e360cb3e95fd03a39 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #! /usr/bin/env python
#
def i4vec_sorted_unique ( n, a ):
#*****************************************************************************80
#
## I4VEC_SORTED_UNIQUE finds the unique elements in a sorted I4VEC.
#
# Licensing:
#
# This code is distributed under the GNU LGPL license.
#
# Modified:
#
# 29 Februar... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
b1fed28302d371939bb570116ada8911b9211f70 | a2b7182b1895fb57e565c2108e0a38f00720a530 | /src/seater/settings.py | 9c562708e11354216641e2c893b7271719d04db1 | [] | no_license | FinnBerkers/seater | e0db011ad168170f985e2f3ec4166d1ea309b576 | 038f88f73c613d28b2ccbb38965846482d16713a | refs/heads/master | 2020-04-20T07:33:47.435188 | 2019-02-05T06:39:52 | 2019-02-05T06:39:52 | 168,714,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for seater project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"abbyberkers@gmail.com"
] | abbyberkers@gmail.com |
0eff68c0ed120ae45b2d167efb8fceee61a5e053 | fee1d2c0b4768d8dea84e249fbf112aaa7d88134 | /twitter_watcher/schema.py | 2aa824d46cc335614a0d73c88f77a28ee3486c7a | [
"MIT"
] | permissive | aoqfonseca/twitter_watcher | 342be3241f7f780fd6d571b678c0a2f4b1aa5f16 | e8511dbd1a793347324dbc3c57b09ed6998895fa | refs/heads/master | 2016-09-03T07:30:07.470597 | 2015-10-01T22:08:10 | 2015-10-01T22:08:10 | 23,263,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # -*- coding: utf-8 -*-
import logging
from jsonschema import validate
from jsonschema.exceptions import ValidationError
listener_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"usernames": {"type": "array", "items": {"type": "string"}},
... | [
"aoqfonseca@gmail.com"
] | aoqfonseca@gmail.com |
5c1932c5b04df401d654fd0cae4eda47feed05a2 | 8e6b9c6397652c8286cfca48ae0c801c0238104c | /10-SupplyCorrelation/5-threeCitiesCorrelationHeatMap-P2.py | b57b7342a53a4b7fccbdbb01e0412fbbced0a8ab | [] | no_license | rmsstudydata/graphScripts | 12cca1218efebb11a38348e07697aa8a03000e92 | 9949e3530ee959a7aea1ba16d2b1b43090d11ab2 | refs/heads/main | 2023-07-26T16:55:03.906032 | 2021-09-09T06:27:59 | 2021-09-09T06:27:59 | 404,596,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,330 | py | import sys
sys.path.insert(1, 'RawData')
import correlationData
import cityNames
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
#shot for days
weekdays =['M','T','W','R','F','S','U']
experimentCities = cityNames.CityFullName
cityServiceEconomyCategory = cityNames.cityServiceEconom... | [
"noreply@github.com"
] | noreply@github.com |
5e6318d354d03ab551153d6ba70d740e217fa774 | 468e82b3f0b38f1cdd877f7e6672e0a84f18c785 | /decor.py | 1349589953f0a7aee0f7ada641d14ba9a954d7aa | [] | no_license | fadilmuh22/python_basic | 5aa6ed5b451cdf830f1742ecfabed1c3439d19bd | c379246f93848aecd0752638ef3880b2e7b6f5c5 | refs/heads/master | 2022-12-16T23:02:39.435796 | 2020-09-17T11:02:30 | 2020-09-17T11:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | def decor(func):
def wrap():
print("==============")
func()
print("==============")
return wrap
@decor
def printText():
print("Hello wordl")
printText()
| [
"fadilmuh2002@gmail.com"
] | fadilmuh2002@gmail.com |
860e6749f1682227cfd3244e270e6cf8f3f89c92 | 08a55420980b95ba20b14912e30795e9746f1e63 | /myUDPnodes_o.py | f9958a21c526f9dd5dbc729ba49c0757f1ae2af0 | [] | no_license | oscarportoles/oscillators | d277d9b6a6550d665a704fc8d1582a980f1c0ae7 | 37b7b3c8ce5330d563939efbc76dd09880186e06 | refs/heads/master | 2020-03-23T10:24:38.521726 | 2018-09-06T12:50:41 | 2018-09-06T12:50:41 | 141,441,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,094 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 1 15:24:15 2018
@author: oscar
"""
import numpy as np
import scipy.io as sio
from numba import jit, prange
import scipy.signal as sg
from scipy.stats import pearsonr
#from numba import float64, int64, complex128, prange
class KAOnodes():
def ... | [
"p277634@turing10.housing.rug.nl"
] | p277634@turing10.housing.rug.nl |
c3a9bf35fcf02de02cd66736032958425b712c9a | 76e67e4b0b5759accfde4d4bf37ec54a332b292c | /sql2excel/bin/sql2excel_py2.py | 7ef8f28f97f10ffeb3d9add07ca4bb092a11d171 | [] | no_license | stefaniexyy/minitool | 0d395338d45ac6f5a06b5ffa78742307f947936a | 689e4258457b1948e0b44a3f8ec362e061cf60ad | refs/heads/master | 2021-11-29T12:24:52.694802 | 2021-11-25T08:17:55 | 2021-11-25T08:17:55 | 245,830,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,538 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#coding=utf-8
"""
输入一个sql文件,转换为excel文件
sql文件放在../input下 sql文件格式要是utf-8的
生成的excel放在../output下
在../bin下执行 python sql2excel.py xxx.sql(直接文件名 不需要路径)
V1.0.2_20181220
"""
import sys
import re
from collections import OrderedDict
from openpyxl import Workbook
from o... | [
"stefaniexyy@hotmail.com"
] | stefaniexyy@hotmail.com |
baecff144d1201bb46f3ea8a6c1100558b773a48 | 971a8ea6e9ce409ed0c455ecbe20786e0f9b95cc | /apps/organizations/migrations/0003_teacher_user.py | 0bad889b3e9ae55930e0166e743dfcb851e029b3 | [] | no_license | hongcongjin/MxOnline | 724cfba6782e0d30c8ae6a1fb6f93ee28380bea4 | 8e2d3018293b1fdf980899ab45ffe600dbcc89bb | refs/heads/master | 2022-12-01T12:48:27.136227 | 2020-08-16T02:58:09 | 2020-08-16T02:58:09 | 287,855,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Generated by Django 2.2 on 2020-04-17 17:51
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),
('organizations',... | [
"1605376101@qq.com"
] | 1605376101@qq.com |
827e8cc5f49718946538d832c5f3d61d6eebdca7 | 568345ee64e3e283a916af372a40b34b595d6ff3 | /utils/lldb-dotest/lldb-dotest.in | cc6ea350654a205aae889195f9e92b114c284d36 | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | enterstudio/swift-lldb | b16fb3f067da3933af0fb1024630f7066b38a7ef | af85d636d230da2460f91938b1ff734b0fb64b42 | refs/heads/stable | 2020-04-27T01:43:35.935989 | 2019-03-05T01:43:09 | 2019-03-05T01:43:09 | 173,973,645 | 2 | 0 | Apache-2.0 | 2019-03-05T15:37:31 | 2019-03-05T15:37:26 | null | UTF-8 | Python | false | false | 453 | in | #!/usr/bin/env python
import os
import subprocess
import sys
dotest_path = '@LLDB_SOURCE_DIR@/test/dotest.py'
dotest_args_str = '@LLDB_DOTEST_ARGS@'
if __name__ == '__main__':
wrapper_args = sys.argv[1:]
dotest_args = dotest_args_str.split(';')
# Build dotest.py command.
cmd = [dotest_path, '-q']
... | [
"jonas@devlieghere.com"
] | jonas@devlieghere.com |
ad10934a59e725774c6d2fb2e45840eb0379946f | 9919439783a3d9ec7a4435e50e0225ea1d6f2b69 | /manage | 87e7fe63bfcd2a83db73800733b609a1a3835c72 | [] | no_license | newcontext-oss/django-rest-json-api | 19c2e5210c59d02eee88afb3061761f02f4037d6 | 107ef896397d93715d9f3eed34fcb6f14d5893b9 | refs/heads/master | 2021-01-15T20:27:51.771682 | 2017-10-02T18:41:28 | 2017-10-02T18:41:28 | 99,850,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_rest_json_api_example.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other rea... | [
"me@rpatterson.net"
] | me@rpatterson.net | |
79594c86d9745d89651d77d8de06b7df155088ae | a118f2fe67b4f18a70e4b215f9c307cce6ef4e7c | /prac03/sam.py | f26ec3f7756d3cad7fdf1901a5a3764711efd400 | [] | no_license | jacekrad/biol3014 | 1e25c10c60dd9a38e351dc9bf6883bb86a2107fd | 4608b7cef99b14074757e223e274702d6e2cf40e | refs/heads/master | 2016-09-07T18:41:01.469731 | 2014-09-25T03:08:06 | 2014-09-25T03:08:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,170 | py | from collections import Counter
from collections import defaultdict
import matplotlib.pyplot as plt
import numpy as np
import itertools
import operator
import math
import re
from scipy import stats
"""This python module reads in sam files from RNA-seq experiment and processes them and RNA-seq data"""
def sam_read... | [
"jacekrad@gmail.com"
] | jacekrad@gmail.com |
018a1eadb1c4a531df6f87247178e171f1e98fd4 | 72d613f133774831c8d2e9db37cf8fc56f5ae427 | /probability.py | 2999a685d45f2c0dbd6af976c359f368a76b8ce9 | [] | no_license | RossMaybee/DataScienceFromScratch | 6385c383ac851418cfd46ea53ce45b68b6f62a06 | 3601024e8e96b2b4abf9f469b2aa8885c426cc56 | refs/heads/master | 2021-01-13T13:45:53.946535 | 2016-12-13T12:32:26 | 2016-12-13T12:32:26 | 76,356,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 04 10:25:57 2016
@author: Joel Grus
"""
from __future__ import division
from collections import Counter
import math, random
def random_kid():
return random.choice(["boy", "girl"])
def uniform_pdf(x):
return 1 if x >= 0 and x < 1 else 0
def uniform_cdf(x):
... | [
"ross.maybee@outlook.com"
] | ross.maybee@outlook.com |
3404540bf40f289a8dcb9c28563ed8303f18b8c6 | 03c8e453a81761ca7b924459cf7c7df8f5b30986 | /old Projects/Automated tank movement/main_map-based.py | 22fe64bd88069c42ef24e8a793ddcc923d08c985 | [] | no_license | Pashun4ik/Automate_WoTBlitz | c2c7781506a9dd3c534319e63fcde2736ae129ee | 7cb1c5c4820a5d85064ffa63fa1623fc56955fd1 | refs/heads/master | 2023-06-30T15:04:24.661862 | 2021-08-10T06:31:46 | 2021-08-10T06:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,903 | py | """
TODO: 1. Track player
TODO: 2. Define mini-map contours
TODO: 3. Make player avoid mini-map contours
TODO: 4. Make player be able of fully autonomous navigation
Data for detecting map shape:
0, 179, 0, 60, 70, 140
"""
import numpy as np
import cv2
from mss import mss
from PIL import Image
import... | [
"duncanrledesma_drl@yahoo.com.ph"
] | duncanrledesma_drl@yahoo.com.ph |
a8f4b702dd72c2e135d35e5357f7191e69ffd2a9 | 91a5bcd2c776b551ef3f6c40c61dae4d81d7e347 | /pick-a-number.py | 73b7ee227659e7f73d719e2bcbc9e1f8cfcfdda3 | [] | no_license | nickstellato/pick-a-number-game | 31c97b2cc4642a273acfb23680e0ab4d23ba056b | 978576af3dc2f12b0dd082a0f23990f2fa4bac25 | refs/heads/master | 2021-01-20T08:48:49.628414 | 2015-03-15T00:31:34 | 2015-03-15T00:31:34 | 32,238,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | #Players get 5 chances
#They have to guess a random number
#It has to be a whole number from 1 to 10
#If they guess wrong, tell them whether the chosen number is higher or lower than their guess
#Tell them how many guesses they've made
import random
rand_num = random.randint(1, 10)
guessed_nums = []
allowed_guesses =... | [
"nick@nickstellato.com"
] | nick@nickstellato.com |
a93ec77494af1405eec2e4807036d13cb21449f5 | a88e486c3be855554e8c9998766869a19a4e0635 | /coursera/knapsack/greedy.py | 9fcfd92a3a800c1f6cb2b685445bf70c2456db4b | [] | no_license | DXV-HUST-SoICT/Combinatorial-Optimization | 03559786a36f66f10742e3a0c520a3369e96a065 | 67c326635bb4245e3dd9819ea9704c37bb9635d3 | refs/heads/master | 2021-03-17T12:59:51.141027 | 2020-06-09T17:42:41 | 2020-06-09T17:42:41 | 246,992,799 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | def greedy_by_avarage_value(items, taken, capacity):
def key(item):
return item.value / item.weight
items.sort(key=key, reverse=True)
value = 0
weight = 0
for i in range(len(items)):
item = items[i]
if weight + item.weight <= capacity:
value += item.weight
... | [
"vuong.1998@gmail.com"
] | vuong.1998@gmail.com |
a3630155bfb12586d6d5d487b85f5e367673b7a3 | 26b527a454fb89391f740ea771968507df16f72e | /train.py | 378f608e58fdd179db8eaff462f279f975b00011 | [] | no_license | Kumar-Tarun/facial-expression-recognition | bf39086277530895aa9d0b6a6e7d2451a48c7ea8 | 3f5edff46da13833bff129690450c0c2274e6d19 | refs/heads/master | 2020-04-05T17:24:37.324642 | 2019-06-02T18:16:25 | 2019-06-02T18:16:25 | 157,059,316 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | import pandas as pd
import numpy as np
from keras.callbacks import *
from keras.models import *
from keras.layers import *
from keras.optimizers import *
from keras import utils
from keras import regularizers
from keras.utils import to_categorical
from prepare import get_data, plot
data = get_data()
train_x = data["t... | [
"kumar1998.tarun@gmail.com"
] | kumar1998.tarun@gmail.com |
119144199ba7db53e9b434887d27610fcad9b8f5 | 0f563f5202cd0331e09884489cb61321fff12b6b | /pybo/views/answer_views.py | 83f2d494ad97962d9b7599cf8e806994b58f0b36 | [] | no_license | fmoni1306/pybo | ad0f8f335f7476cea09d2a7ba03fc65dedc18bf3 | 7726fc11bfb8799e5a221f71e852257eaae41a2c | refs/heads/master | 2023-03-31T05:46:52.480275 | 2021-04-01T02:13:05 | 2021-04-01T02:13:05 | 352,557,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, get_object_or_404, redirect, resolve_url
from django.utils import timezone
from ..forms import AnswerForm
from ..models import Question, Answer
@login_required(login_url='common:login')
... | [
"yoon@itaeyun-ui-MacBookPro.local"
] | yoon@itaeyun-ui-MacBookPro.local |
67c54ba7029a0295516d989b4ec4c3912c6b450e | a33a444768e44e03079daf11cf80dda483ca32f8 | /src/fuse.py | dcfaeeceaffdee157e56f70c4adf5c71d53bcad0 | [
"MIT"
] | permissive | berjc/fuse | 6f1be4600b7eb41343d75dd0831a594cfdcb1cb2 | 3335434d477d3d5c2b5cfcc3bf60180cf40411c4 | refs/heads/master | 2021-01-01T04:05:53.919151 | 2016-05-11T03:03:50 | 2016-05-11T03:03:50 | 58,423,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | """
'fuse.py' drives concept queries and novel relation discovery.
USAGE: python3 fuse.py
"""
from settings import LANGUAGE
from operator import itemgetter
from warnings import filterwarnings
from wordfreq import word_frequency as known_freq
from utils import get_word_freqs, get_concept_page, get_connection... | [
"berjc@mit.edu"
] | berjc@mit.edu |
0a26c1cda5fed23e78e41221fca74d55a0da585f | 1524720d6480ad0a51b6fd8ff709587455bf4c5d | /tums/trunk/source/plugins/DHCP.py | 7af3eb81f2a7ce65771d5d72723a41f35579e175 | [] | no_license | calston/tums | 2bd6d3cac5232d2ccb7e9becfc649e302a310eab | b93e3e957ff1da5b020075574942913c8822d12a | refs/heads/master | 2020-07-12T03:46:43.639800 | 2018-05-12T10:54:54 | 2018-05-12T10:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,247 | py | import config, os
from Core import Utils
class Plugin(object):
parameterHook = "--dhcp"
parameterDescription = "Reconfigure DHCP"
parameterArgs = ""
autoRun = True
configFiles = [
"/etc/dhcp/dhcpd.conf"
]
def reloadServices(self):
if config.General.get('services', {}).get(... | [
"junwin@gmail.com"
] | junwin@gmail.com |
58b9eb67220d329cc549906689668d16d515a846 | 5cdd35762235cd34979f77681c076c5698831065 | /Assignment3MountainCar/Tilecoder.py | 60b21a8c586eeed686c79ed94868856ee0cbdb06 | [
"MIT"
] | permissive | 0x4849/cmput366 | 5428ee866992d3a9f60bd0c2dfbce4b6d353c6dd | ed1def624f568057aeb38c4950cc43ed9dd5a855 | refs/heads/master | 2016-09-01T16:47:26.461980 | 2016-01-19T22:29:18 | 2016-01-19T22:29:18 | 49,986,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #-------------------------------
# MountainCar Lab - Programming Assignment 3
# Author: Brad Harrison
# Date: November 28th 2014
#-------------------------------
numTilings = 4
tilesPerTiling = 9*9
gridLevel = 8
numTiles = numTilings*tilesPerTiling
def tilecode(position,velocity,array):
position = pos... | [
"bpharris@ualberta.ca"
] | bpharris@ualberta.ca |
8b5f684137e160e59019baf6f735f6163237deca | a5cd88d80d2c6af43528153199c86eacbea22f55 | /python/6. ZigZag Conversion.py | 0abd9a6710ede1f67bc46287f90980513a291fd5 | [] | no_license | qingmm/leetcode | c23a674a9051227b26288105482f99ce128abb00 | ae2ac905cb6ad216e554332388f1ec37e45ed0df | refs/heads/master | 2020-03-11T15:14:55.444601 | 2018-09-23T13:58:22 | 2018-09-23T13:58:22 | 130,078,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | # my stupid solution
class Solution(object):
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
rows = []
outputS = ''
i = 0
if numRows == 1:
return s
while i < len(s):
if i % (num... | [
"noreply@github.com"
] | noreply@github.com |
7051bdbccf8cda3f9c8e25860428b8223d18cf8c | a64f4878f6d96fcb2e76e2d1823d1cfa104c3a64 | /MoCap_Solver/MoCapSolver.py | 888e91aabdab18b8fd7a016ca21d71d18e3ed37e | [] | no_license | qiufeng1994/MoCap-Solver | 759268a089909ac9764fb00c70f1070ed86159fd | bc69553f90896ee6ab06cbec8ed3def96c42dea1 | refs/heads/main | 2023-08-16T08:07:51.588244 | 2021-10-12T07:34:36 | 2021-10-12T07:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,681 | py | import numpy as np
class MoCapSolver():
def __init__(self):
return
def extract_encoder_data(self):
############# Extract the data for training Template Skeleton Encoder ######################
from MoCap_Solver.extract.generate_ts_dataset import generate_ts_dataset
generate_ts_d... | [
"wangyupan@corp.netease.com"
] | wangyupan@corp.netease.com |
1484312678a0f92557872eb3547648cbb5148849 | 1e76ae22907c53f4b5813e5d152ae3e3bf933265 | /som/som_v0.py | 425022cbf8a3610e4a59b83a85b8241541f13e4c | [
"Apache-2.0"
] | permissive | alecuba16/python_pytorch_keras_models | 2ab2c6ce536693ffe3fc947f5b3c2db8c80f7284 | 0784476661b30ee7dfb70ec708bf1a3a1b7f2650 | refs/heads/main | 2023-08-17T15:57:03.389791 | 2021-09-10T10:39:10 | 2021-09-10T10:39:10 | 405,043,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,091 | py |
from joblib import Parallel, delayed
from minisom import MiniSom
import gzip
def parallel_win(x, sw,xy,input_len,y):
som = MiniSom(x=xy, y=xy, input_len=input_len, sigma=1.0, learning_rate=0.5)
som.weights = sw
w = som.winner(x)
return [w[0], w[1],y]
if __name__ == '__main__':
from sklearn.prepro... | [
"alecuba16@gmail.com"
] | alecuba16@gmail.com |
55f5ff5ccaa8667fb3da4c3c0f50fc51fea27117 | 5e821b4ab7106b9a8cb2c537e63b6e337a3d1e8f | /Source/fonAPI.py | a27d901caa6a627f2a656e5d922f7bb1bd310559 | [] | no_license | stijnvgeene/Tellic | a47a3c6ac6c3534f0998af6e94ed830cfdd13043 | 1242051601bdb040d622efa9816e217c7fa1bbe7 | refs/heads/master | 2021-05-11T10:56:40.652739 | 2018-01-19T11:09:35 | 2018-01-19T11:09:35 | 118,116,255 | 0 | 0 | null | 2018-01-19T11:16:15 | 2018-01-19T11:16:13 | null | UTF-8 | Python | false | false | 2,031 | py | import sys
import json
import requests
class FonApi:
__ApiUrl = 'https://fonoapi.freshpixl.com/v1/'
def __init__(self, apikey, url=None):
self.__ApiUrl = FonApi.__ApiUrl
if url is not None:
self.__ApiUrl = url
self.__ApiKey = apikey
def getdevice(self, device, posi... | [
"rienk.koenders@student.uva.nl"
] | rienk.koenders@student.uva.nl |
a7cc5a5f8037762aa7ed625f5c58fafd664c62af | a32f80ba617dbd79b0189aadd330bf4bbd0bdb43 | /scripts/TEINEI_10.py | 5f36d7766a3526317687c2dc27d5e489e9c77bde | [] | no_license | ykskks/SIGNATE-Student-Cup-2019 | 9388e918306cbb5d9aeac4eaa91fe5ffa63cb93f | a8784eb627584491f7848582334f922906d93bd8 | refs/heads/master | 2020-08-01T14:24:20.568088 | 2019-10-12T07:46:39 | 2019-10-12T07:46:39 | 211,021,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,695 | py | import os
import sys
import re
import logging
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import japanize_matplotlib
import category_encoders as ce
from sklearn.model_selection import KFold, StratifiedKFold
from sklearn.metrics import mean_squared_error
import lightgbm... | [
"fkt.kohei@gmail.com"
] | fkt.kohei@gmail.com |
37994c9b0b49fd9f56f2174926977f585dd9894c | 5abce8e544924617d8c2247b141f56eefdc86ce7 | /negative_sampling_layer.py | 7296c9e6c8c0ee5bfd0d79b3e2437bceed1ef7ca | [] | no_license | skyiwalker/deep-learning-scratch-study | 2c2fad6cd341367ae7cf9bfe49b49b999d7f4d0b | 1fe9bb6074662adf8662b4270a0a5c02da78dca8 | refs/heads/master | 2022-11-27T15:38:11.084346 | 2020-08-03T04:19:47 | 2020-08-03T04:19:47 | 270,489,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py |
from common.np import * # import numpy as np
from common.layers import Embedding, SigmoidWithLoss
import collections
class EmbeddingDot:
def __init__(self, W):
self.embed = Embedding(W)
self.params = self.embed.params
self.grads = self.embed.grads
self.cache = None
def forwa... | [
"sark@supersark.com"
] | sark@supersark.com |
104f2d7717da34b6833512af2ff1103f899065d8 | 3b86d84feea3d49b469eb395fc8fdb962b9bbf32 | /flatbuffers/ButtonOptions.py | ede2dd6776f2256096218380b67af7a9268d5abb | [] | no_license | clouddreamfly/pycsb2csd | a29b70d54c250f7da4b352b693e503e5e2b2fff9 | 5a55389a5e86f57bbbb1bc921da5ecbfb04f29a8 | refs/heads/main | 2023-07-16T17:57:11.320029 | 2021-09-09T16:39:07 | 2021-09-09T16:39:07 | 404,762,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,116 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: flatbuffers
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ButtonOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encod... | [
"dreamfly6789@gmail.com"
] | dreamfly6789@gmail.com |
551e27ca7c7e51d5b34f97c66a7388a2202e94fb | 88d43fc4cea1bf3eab771c2cba00088756820c1c | /gNet/tensor_ops.py | 4c194b4bef6f34722cb16f212cd9b7bd0c88dc52 | [
"MIT"
] | permissive | MGokcayK/gNet | a8cba046490425be9bf73343a6dbb5a829d7a086 | 19f3d4e555ae37a6bcda7e52f08eddad06914cee | refs/heads/master | 2023-04-02T09:07:56.398463 | 2021-03-16T14:51:36 | 2021-03-16T14:51:36 | 278,351,066 | 4 | 0 | MIT | 2020-10-12T21:20:00 | 2020-07-09T11:53:37 | Python | UTF-8 | Python | false | false | 26,139 | py | """
Tensor operations implementations.
Author : @MGokcayK github.com/MGokcayK
Create : 24 / 03 / 2020
Update : 21 / 09 / 2020
Fixing broadcasting of tensor_sum and return original exp ops.
"""
import warnings
import numpy as np
from gNet import tensor as T
def add(t1: 'Tensor', t2:'Te... | [
"mgokcaykdev@gmail.com"
] | mgokcaykdev@gmail.com |
de495f8070a7258d450001eb321fe83c21087cd2 | df601ac0a0dd618c75241ca050468cab5f580d3a | /kgb/calls.py | 77111f43f0829d696bd0c66e7999af9890c67e7f | [] | no_license | mitchhentges/kgb | ff90d7e6c66417ba147ab3e32518d9e4facba256 | 4c7f4361a8050e5426cb23e4a84ee64df25a6c12 | refs/heads/master | 2022-12-12T14:50:18.838424 | 2020-09-04T06:57:34 | 2020-09-04T06:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | py | """Call tracking and checks for spiess."""
from __future__ import unicode_literals
from kgb.pycompat import iteritems, text_type
from kgb.signature import FunctionSig
class SpyCall(object):
"""Records arguments made to a spied function call.
SpyCalls are created and stored by a FunctionSpy every time it is... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
37cdca3da56a803ff2ad67148d32cba6a13e8090 | d1f099141bab3ce19b866add1f5fadb7af965057 | /meetingbookingproject/meetingbookingapplication/views.py | 5cc6663c388c3b645272c7b0b236c0e76dfa4a1d | [] | no_license | pavanamanikanta654/meeting | be8672ab42b5d16df35e79789471868ac1152c09 | d0b0fc9892904744ab6331864c3e5e165628a785 | refs/heads/master | 2020-08-06T21:24:21.913420 | 2019-10-06T14:00:35 | 2019-10-06T14:00:35 | 213,159,868 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | from django.shortcuts import render
from .models import meeting, staff, booking
from .forms import meetingform, staffform, bookingform
from django.http.response import HttpResponse
# def input(request):
# return render(request,'templates\meeting.html')
def meetingview(request):
if request.method == 'POST':
... | [
"56213630+pavanamanikanta654@users.noreply.github.com"
] | 56213630+pavanamanikanta654@users.noreply.github.com |
6ce30b59102b80170b2bc697900a96b94a331972 | 1cf9d213176feb23b1dfb5827deb1f7932785913 | /speed.py | 053b61d23317a9c1f3960cbe538f2102420ebeff | [] | no_license | ZvonimirKucis/ets2-rl | bf480593de426a30d6840dd880c1c42b4016da79 | b7289b5b962b0b4d79b53a41fe0113fbb504e542 | refs/heads/master | 2022-04-12T07:19:43.533124 | 2020-03-02T12:56:59 | 2020-03-02T12:56:59 | 184,093,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from lib import telemetryParser
import time
while True:
print(telemetryParser.get_speed())
print(int(telemetryParser.get_speed()))
time.sleep(2) | [
"zvonimirkucis@gmail.com"
] | zvonimirkucis@gmail.com |
b71a6f92579e6a8ed6cc97408c37307213d5073c | f6fc57e6baab4fa892064ca3a027d1417acad3bc | /flask/bin/pip2.7 | 5a17c86b5e27e150678ab15124efb290f9b714b4 | [] | no_license | klampotang/SoyLikes | d23b22c95e81b7d75cc3f09f8169da4ad92308e0 | 702209f974282478838d967df043c92e20e9cafa | refs/heads/master | 2021-01-10T08:28:50.075559 | 2015-11-16T09:25:00 | 2015-11-16T09:25:00 | 46,183,147 | 6 | 4 | null | 2015-11-15T07:36:47 | 2015-11-14T16:56:48 | Python | UTF-8 | Python | false | false | 250 | 7 | #!/Users/williamwang1/Desktop/HACKSC/microblog/flask/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"williamwang1@Williams-MacBook-Pro.local"
] | williamwang1@Williams-MacBook-Pro.local |
2d2a4f93a18a0a46095a78f12088d9c902bb99a9 | 4ffe483f8297aa3fee8254ce569c3d260f156524 | /code/test-suite/EstheRustConvertor/expected/fonc_1.py | c3fe040331489ac2eff1226dab9b8cd8028becdf | [
"MIT"
] | permissive | SamiBelaidi/LOG3210 | 5dd7fbfc4cd709c9c46a2b4dc250cb565650293c | 03b3952af125be98fe32eefb2338767020033f51 | refs/heads/master | 2023-04-16T05:58:20.147795 | 2021-04-25T20:54:29 | 2021-04-25T20:54:29 | 334,222,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | def exemple2(name):
a = "test1"
| [
"sami.belaidi98@gmail.com"
] | sami.belaidi98@gmail.com |
034ac87ab3d44c8c5221b639dd2987db0f489445 | 4302fd10583ccff63ff5693bd2ae5903323cb769 | /curate/migrations/0033_auto_20190224_0315.py | 9e514c889504231d27382afd8b779b6510c0517c | [
"MIT"
] | permissive | ScienceCommons/curate_science | 1faf742c8de1e9c9180e4d8ec6a7457ad95bb705 | 4e4072e8c000df0d2e80637016f8f0e667f4df54 | refs/heads/master | 2022-02-12T19:56:51.730534 | 2022-01-25T16:44:54 | 2022-01-25T16:44:54 | 149,122,317 | 14 | 7 | MIT | 2021-03-23T17:27:05 | 2018-09-17T12:32:25 | HTML | UTF-8 | Python | false | false | 1,466 | py | # Generated by Django 2.1.7 on 2019-02-24 03:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('curate', '0032_auto_20190224_0231'),
]
operations = [
migrations.AddField(
model_name='keyfigure',
name='height',
... | [
"alex.kyllo@gmail.com"
] | alex.kyllo@gmail.com |
51172c47e95619b54240ed1a6ba7b687f13755bb | af430762e66279e7d8607a67ab6a88489e70c56f | /accounts/forms.py | 090c4cce694ba792857b705ec2be7d52d9221140 | [] | no_license | AminKipkeev2dot0/LetsEAT | 08718cfff6bc0a4bc9c8ebdf20c104e793973a3f | 66e2815fa3fdbe6844c82b09be578d198e2d78f5 | refs/heads/master | 2023-06-21T06:39:07.288824 | 2021-07-19T12:00:29 | 2021-07-19T12:00:29 | 377,118,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from django import forms
class LoginForm(forms.Form):
email = forms.EmailField(widget=forms.EmailInput(attrs={'placeholder': 'Ваш Email',
'class': 'form_user_email'}), label='')
password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholde... | [
"by.zarmius@gmail.com"
] | by.zarmius@gmail.com |
0b09c7a3cdc98c1291873272134f11e69de4b86e | d5ed5ca41b2e166e614924fe49ebbc305796bc86 | /app/nbio/django/appengine.py | eb0451d6aed53150bd3d98873eb4f00a62282da3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | nbio/sarahpalin | a78695c62081cb1f92faa4d17938ce9cccbf1360 | bc28b5ebd5b25a346a4790eced9078bde5902633 | refs/heads/master | 2023-08-24T13:27:19.765428 | 2009-02-10T01:23:06 | 2009-02-10T01:23:06 | 125,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | __license__ = "Apache 2.0"
__copyright__ = "Copyright 2008 nb.io"
__author__ = "Randy Reddig - ydnar@nb.io"
import logging
from django.conf import settings
from django.http import HttpResponseForbidden
from google.appengine.api import users
class AuthMiddleware:
def process_request(self, request):
"""
... | [
"cameron.walters@gmail.com"
] | cameron.walters@gmail.com |
3d1adc70cd541480ba5036a9efa4b5fee148a93d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /YcqAY72nZNPtvofuJ_8.py | b8e97a2438ad8150983e02cf9849e462c2089ed7 | [] | 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 | 415 | py |
def quad_sequence(lst):
#find pattern
difference = [lst[len(lst)-2] - lst[len(lst)-3], lst[len(lst)-1] - lst[len(lst)-2]]
difference_of_difference = difference[1] - difference[0]
#workout
last_num = lst[len(lst)-1]
last_diff = difference[1]
next_nums = []
for _ in range(len(lst)):
last_diff+=differ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
10d6056bcffbec01aca145e3d20e8418b0e2b20d | 5686d1a31b87a47a4774270c00cd141c221cf065 | /axonius_api_client/tests/tests_api/tests_openapi/test_openapi.py | 2339b9648ea31df42d3fa650a36bd3edf33f0b9e | [
"MIT"
] | permissive | Axonius/axonius_api_client | e7eec0845eee9e1b314446121551c584655c2631 | be49566e590834df1b46494c8588651fa029b8c5 | refs/heads/master | 2023-08-19T04:43:13.717989 | 2023-08-10T18:49:40 | 2023-08-10T18:49:40 | 194,601,817 | 17 | 22 | MIT | 2023-08-30T18:45:15 | 2019-07-01T04:52:21 | Python | UTF-8 | Python | false | false | 810 | py | # -*- coding: utf-8 -*-
"""Test suite."""
import pytest
def validate_openapi_spec(data):
assert isinstance(data, str) and data
split = data.splitlines()
searches = ["openapi", "info", "components", "paths"]
for search in searches:
check = f"{search}:"
found = any([x.startswith(f"{che... | [
"nathan.mcbride@axonius.com"
] | nathan.mcbride@axonius.com |
ee51ce7392ad202a8cc2d9132f30de2e63386db0 | 4e196fea7323fbd4d5a19e5d1593e50e97d2d314 | /cap11-xkcd.py | 78d676f58c31277b4082ab789dfae443b4223872 | [] | no_license | dostoievskiab/AutomateBoringStuff | b7f5cf69d9a19275e101fbb6dd6bddee2414327c | e91cc2807ee911ff532a35156b5224f3c35fba5e | refs/heads/master | 2021-08-19T23:50:34.825193 | 2017-11-27T18:21:08 | 2017-11-27T18:21:08 | 105,579,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import requests, os, bs4
#My internet connection is slow, so i changed the code to get the title instead of the image
url = 'http://xkcd.com'
number = ''
while not url.endswith('#'):
res = requests.get(url)
res.raise_for_status()
soup = bs4.BeautifulSoup(res.text, 'html.parser')
selectedText = soup.sele... | [
"umaster@dost-mac.local"
] | umaster@dost-mac.local |
46f088c66d64354d6e4a7ddddc6951a6a16cb979 | 7e4ee5b457ac9c85b64661eeedba0ba51b211c68 | /entities/background.py | 043381b99de005498e7cbc63c0fda1b10cbdf342 | [] | no_license | iCodeIN/Maze-Game | 180ae7dfb2ffc7b8f2868e450b186b41f3ab510a | 9956bf10f12326307eccff668cbc9cc615c0fee9 | refs/heads/master | 2022-12-03T04:00:12.270692 | 2020-08-26T23:43:45 | 2020-08-26T23:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import pygame
import os
import sys
from easy_sdl.tools import *
from easy_sdl.sprite import Sprite
from easy_sdl.sprite import keyUp, keyDown
class Background(Sprite):
def __init__(self):
super().__init__(0, 0, image=path("background.png")) | [
"noreply@github.com"
] | noreply@github.com |
d59aaea52583e6a20a8bae86ba53ef71554cb62d | 64f39ad662546e1f92df4dd2bf7b5ac2f748d39d | /octavia_f5/common/constants.py | 0e1768c388d52b598ce6766ffe5f6d26eec24a41 | [
"Apache-2.0"
] | permissive | zongzw/python-as3 | 2b5026bec3a2e1bba24d4fae7fc90b7f1f58523a | de51773fb2877f4a0988cc655cf4624a3129fd65 | refs/heads/master | 2022-11-24T07:58:04.738669 | 2020-07-28T01:12:25 | 2020-07-28T01:12:25 | 283,049,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,640 | py | # Copyright 2018 SAP SE
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | [
"a.zong@f5.com"
] | a.zong@f5.com |
2a7ac994a5a17a223c396b72a287abc041a395f5 | d1cb0b1372a037668e2a186511c1432e51e69519 | /python/corso/tipiDati/liste.py | 21e9d6dfbe1268b43675f3cc694cdf95264d7a18 | [] | no_license | marcosciarra/web | e36b96a0d246f20a446c01f3cf58d2a678525bc4 | 71983981876cd3ae257eeaeb30f9a45dc339a66b | refs/heads/master | 2020-03-20T20:05:59.448607 | 2020-01-14T13:28:27 | 2020-01-14T13:28:27 | 137,670,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | myList=[10,20,30]
len(myList) #restituisce il conto degli elementi
myList.insert(2,50) #inserisce il valore 50 alla posizione 2
myList.append(50) #inserisce in coda il valore 50 alla lista
del myList[1] #elimino il secondo elemento della lista
20 in myList ... | [
"marco.sciarra@clicksrl.eu"
] | marco.sciarra@clicksrl.eu |
f4ff36227659d9e416a3d838c7642c67ae5268cd | 0879b6d4284852941aef3d74beb7ef936e707fb9 | /src/train.py | de8c6b1ebf33a4836a09b6230365cf9d03d92583 | [] | no_license | zhuhongweiyi/vgg-1 | 55eb5271046856e30a077ab2bf75cc26c665e530 | a1114bd4b61bac9dd8a0361d64457efb55080f3d | refs/heads/master | 2021-01-22T13:23:48.816204 | 2017-05-05T02:20:20 | 2017-05-05T02:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | """Train model."""
import vgg
import config
import read_data
import os
from datetime import datetime
import tensorflow as tf
def main():
"""Main operations."""
t_config = config.Config()
with tf.Graph().as_default():
reader = read_data.ImageReader('./data/JPEGImages/',
... | [
"498973030@qq.com"
] | 498973030@qq.com |
7cc346854704e5bab4d466d21c2b93f7dfb24ab8 | 42c899e3111a9601a91a933e4483bea1a24a4cf9 | /venv/Scripts/pip-script.py | 7591e8beed1f77b4938141e022c6d0e9274c685b | [] | no_license | bbiaisb/Towards_Image_Detection | 5258bd253f182b47e38c36bdab0fa7a6482a9468 | f5e19000e0488afcf762404823018d53cbc6e0fb | refs/heads/master | 2020-09-11T05:31:44.867830 | 2019-12-16T15:50:29 | 2019-12-16T15:50:29 | 221,955,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!C:\Users\andri\PycharmProjects\Towards_Image_Detection\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"57802989+Dadaaeisen@users.noreply.github.com"
] | 57802989+Dadaaeisen@users.noreply.github.com |
f6982901beca41a044b52253ed8a059643077e34 | 28034caa4f93a7e8b395601c709c7d4e1ab029ba | /od_model/models/common.py | 6048b396160e96a35be76ed27338932853737a5a | [] | no_license | Amart85/BrainWheel | 1490f62cb78e5a0a9d173bb22f89ebbbca32172a | 727e220cab352aa74212ab58964a05299a70337e | refs/heads/master | 2023-06-18T04:11:02.347910 | 2021-05-11T21:09:15 | 2021-05-11T21:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,793 | py | # This file contains modules common to various models
import math
import numpy as np
import requests
import torch
import torch.nn as nn
from PIL import Image, ImageDraw
try:
from utils.datasets import letterbox
from utils.general import non_max_suppression, make_divisible, scale_coords, xyxy2xywh
from utils.plots... | [
"noreply@github.com"
] | noreply@github.com |
2593c43b575d06c67805bf668e9a1a413c3698a1 | ece881d079eb05c2531a99c7b655b8c9c3144329 | /pycls/datasets/data.py | ebe4f236c9d261fa0912c8ac8edca1d26266ff51 | [
"MIT"
] | permissive | tibetgao/deep-active-learning-pytorch | f7b2bf018410d87ccc4ac52478f8d3085622fb60 | 637fd507235632903bcf84ed841ff524d847b94e | refs/heads/main | 2023-08-12T05:04:47.878405 | 2021-09-14T21:22:39 | 2021-09-14T21:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,535 | py | # This file is modified from a code implementation shared with me by Prateek Munjal et al., authors of the paper https://arxiv.org/abs/2002.09564
# GitHub: https://github.com/PrateekMunjal
# ----------------------------------------------------------
import random
import torch
import torchvision
import numpy as ... | [
"akshaychandra111@gmail.com"
] | akshaychandra111@gmail.com |
131d88c9477590c4f4bf61eb89d2e6f7856d5fd0 | 27b0aab7b86cc3864364f5dd16c08c53d6689eba | /sgld_nrg/__init__.py | 7f6b1dbd4f24fe5663ccac253b50fff7187f381a | [
"MIT"
] | permissive | Sycor4x/sgld-nrg | b4620d21b3e83662c18397b813d29137a1670c43 | 9eb56008453d89dcddb5f08d967081ba23cd84bd | refs/heads/main | 2023-08-29T03:09:54.952998 | 2021-10-15T19:41:03 | 2021-10-15T19:41:03 | 404,198,177 | 0 | 1 | MIT | 2021-09-23T03:28:13 | 2021-09-08T03:27:10 | Python | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: David J. Elkind
# Creation date: 2021-09-11 (year-month-day)
| [
"djelkind@gmail.com"
] | djelkind@gmail.com |
8106e754bf96fd0f094304a3ce696783ac0b13af | d9be32e9351185e26890a130888cb4e6c775a2a1 | /run.py | 1e5172d13dbae8f647e6e7859b9ac8d5b7fa9c92 | [] | no_license | ManonVioleau/FlaskApp_WalletOverview | 77b3948904742f342fc27fcc103e7a96c1ed7cd4 | 52a944652db5fae593fcd04be6edbef7cc66ce1f | refs/heads/master | 2023-07-06T14:53:44.593424 | 2021-07-29T17:16:16 | 2021-07-29T17:16:16 | 390,789,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #! C:\Users\manon\Documents\Web_Dev\Binance\20210526_Test\env python
import app1
from app1 import app
if __name__ == "__main__":
app.run(debug=True) | [
"manonvioleau34@outlook.fr"
] | manonvioleau34@outlook.fr |
4b5934ae9912a993be614881c98ed17458db8322 | 60eb8d9b5e2e26b4805f76e009612b19575e1971 | /app/home/views.py | c885976ff5a7c2fa34d5224c5695672a1c623c95 | [] | no_license | raphanus/movie_project | ecf490d4499fc7d0e6476c28d1e4651e33dea884 | 6c3b02b7d3560641e8c0a5cf4a6564c2d9460e85 | refs/heads/master | 2020-03-15T05:12:36.840227 | 2018-05-03T11:36:34 | 2018-05-03T11:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,755 | py | # coding:utf-8
from . import home
from flask import render_template, redirect, url_for, flash, session, request, Response
from app.home.forms import RegistForm, LoginForm, UserdetailForm, PwdForm, CommentForm
from app.models import User, Userlog, Preview, Tag, Movie, Comment, Moviecol
from werkzeug.security import gene... | [
"1010475688@qq.com"
] | 1010475688@qq.com |
f589f9162c85741a8ecf4c45ada324535f4a2746 | 5ef0b16f225e60752368cd8823ec554bce80367d | /project1/create_tables.py | dca686f98c07f3d6c8e0a8d9fc25ab9751ed82a7 | [] | no_license | DanielBBZ/UdacityDataEngineering | 10aa25c6c8e2c69e1f405135dbac1749e146f6f6 | fc0cd5ecb78cc2055f04ca003d9bbc6131e21db0 | refs/heads/main | 2023-03-12T22:51:40.457494 | 2021-03-04T03:52:35 | 2021-03-04T03:52:35 | 332,959,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | import psycopg2
from sql_queries import create_table_queries, drop_table_queries
def create_database():
"""
- Creates and connects to the sparkifydb
- Returns the connection and cursor to sparkifydb
"""
# connect to default database
conn = psycopg2.connect("host=127.0.0.1 dbname=studentdb... | [
"noreply@github.com"
] | noreply@github.com |
607305eb9ef2fd61303cc596202bf4aa4c68067d | 8def641e9c0f828834383a8d6fd6050836cc06e5 | /macpy/FXVolDerive.py | 3be62b08ea11f41dd948458913b59a71af8806ff | [] | no_license | sbtong/LilRepo | 93cb83e16e89c241c3efbf42983792d31139deaa | 4f4c5a9d2578a76080a8a6d4ea69426b07df1f85 | refs/heads/master | 2021-03-19T07:38:48.727898 | 2017-06-19T22:46:54 | 2017-06-19T22:46:54 | 94,366,409 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,627 | py | import pandas as pd
import numpy as np
import macpy.utils.database as db
import macpy.dateflow as df
import unittest
import datetime as dt
import string
import getpass
import bond as bond
from optparse import OptionParser
from scipy.stats import norm
from scipy.optimize import brentq, fsolve
import logging
from utils i... | [
"ly333@cornell.edu"
] | ly333@cornell.edu |
be7cb7a27ef0adb63d4f545aa0e65179798a183f | 832852c679816673f708860929a36a20ca8d3e32 | /Configurations/VBS/2016Optimization/DifferentialConfiguration/VBSDifferentialPt1_3GenBin/plot.py | 65923b13e594316da95b1114cf19ed0576291dc9 | [] | no_license | UniMiBAnalyses/PlotsConfigurations | c4ec7376e2757b838930dfb2615e1dc99a64e542 | 578fe518cfc608169d3418bcb63a8342d3a24390 | refs/heads/master | 2023-08-31T17:57:45.396325 | 2022-09-01T10:13:14 | 2022-09-01T10:13:14 | 172,092,793 | 0 | 13 | null | 2023-04-27T10:26:52 | 2019-02-22T15:52:44 | Python | UTF-8 | Python | false | false | 8,149 | py |
# plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots (merge different sample during plot).
# If not defined, normal plots is used
#
Red=632; Violet=880; Green=416; Orange=800; Yellow=400; Azure=860
signal=0; blind=1
groupPlot['ChargeMisId'] = {
'nameHR' : "ChMisId",... | [
"alessandrofendillo@gmail.com"
] | alessandrofendillo@gmail.com |
cfbbccfbb28499d825414a4c03770d71a0783f86 | 0ad5abffdd15bca072ab8db068aab7e1bc6df167 | /NanoGardener/python/modules/LeptonMaker.py | c081cb86e230635a3145a1ee358104a8582dccfd | [] | no_license | pfackeldey/LatinoAnalysis | bf603af9c370b079c3d92e3ed49a5d7d05b87379 | 484a48ec6bfdb7edb06897be984eecfd1aae62fd | refs/heads/master | 2020-03-14T22:42:22.226962 | 2018-04-27T16:02:56 | 2018-04-27T16:02:56 | 131,827,114 | 0 | 0 | null | 2018-05-02T09:16:59 | 2018-05-02T09:16:59 | null | UTF-8 | Python | false | false | 8,092 | py | import ROOT
import os
import re
ROOT.PyConfig.IgnoreCommandLineOptions = True
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module
from LatinoAnalysis.NanoGardener.data.LeptonMaker_cfg import List_newVar, Lep_var
from LatinoAnalysis.NanoGardener.data.common_cfg import Type_dict
#from Latino... | [
"senne.vanputte@student.uantwerpen.be"
] | senne.vanputte@student.uantwerpen.be |
eaaf216be821853937268b4966d0219606e5dc83 | 86f026df0f9c5734ffd7266e08e45a5c8f855359 | /dataapp/migrations/0001_initial.py | e1531da8975c84cddbfa3ea68c7c488015ea2500 | [] | no_license | stam007/api_shop | 38e23795a305f31d1bf1260cf6c4f118c99c9c92 | 443c2a2f9b6f204a2b194b1c6dd61b8b29d23c1c | refs/heads/master | 2020-06-16T03:39:38.137973 | 2019-07-05T21:37:03 | 2019-07-05T21:37:03 | 195,469,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py |
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=Fa... | [
"you@example.com"
] | you@example.com |
b3e95973c6a69542b95f65abad2fce86b9661a1d | b40a4f302dbfec6b71c4b14350b7fd98a47f4319 | /Menu.py | 5eefb4ab7d5efa3c0082ed93a54a6868eddf06be | [] | no_license | Babsia/ej8-2021 | 93e7fa14d61377cd2510b2152ce0078fd426c515 | 09bd15bb535cbc92c7908d3bcc6fe86bbc3e7a77 | refs/heads/main | 2023-04-12T19:29:10.151449 | 2021-04-27T15:25:29 | 2021-04-27T15:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | from manejadorconjuntos import manejador
class menuu:
__switcher=None
__M=None
def __init__(self):
self.__switcher = {
'a':self.opcion1,
'b':self.opcion2,
'c':self.opcion3,
'd':self.salir,
}
self.__M=manejador()
... | [
"noreply@github.com"
] | noreply@github.com |
601659886587188883f736f881bddea0c12f8be8 | 9a3bca16101f6688e353f74586370dd0ce97cc28 | /hw2_200mhz/runmf | 7bc3321a3813340af3cb6c5fdc33c61f0c283692 | [] | no_license | Asfagus/300Mhz | a66d06fc366ff68f2c7f0d47547ae89329e834ff | e654c52c04f252fba3f7640b4f8e40724e186854 | refs/heads/main | 2023-01-14T07:10:40.773289 | 2020-11-19T01:31:45 | 2020-11-19T01:31:45 | 314,091,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,099 | #!/usr/bin/python3
import sys
import time
import os
import subprocess
import socket
import argparse
from datetime import date
success="With pride, you passed the test"
###############################
# copies a file if needed #
###############################
def copyifneeded(localfile,remotefile):
if(os.p... | [
"asfagus@gmail.com"
] | asfagus@gmail.com | |
75ccc33eabebffd38f8073ba96f8156bde50066c | ad921d190cba89b9ad3d169941727cfb497192e2 | /static_root/model_3d/asgi.py | e245fb55a9b882a91918f49b5795d2f0683352ab | [] | no_license | Rahmet97/3d-models.uz | c8f955d7e0af8ca6ff00f147bd5ef6c9133226e4 | 17fb9545475a416607c18e00388f8605ad623f5f | refs/heads/master | 2023-07-07T19:11:04.621195 | 2021-07-29T10:49:38 | 2021-07-29T10:49:38 | 361,868,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for model_3d project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"ruslanovrahmet@gmail.com"
] | ruslanovrahmet@gmail.com |
595d87247e2461ae9ffc07c514269c1026c31b6b | d499057c555f2c9217cdfa5052207b67ea54b5cc | /server.py | d28eb56439d3b0a8e280d4903de84f66fd06cc9b | [
"Apache-2.0"
] | permissive | defnngj/movie-website | 6fe1fcc2571c75dd7f423137833eb46c4ac7db1d | d1ffaf209b4c689cd5180b8a8bb1866ad6d0f0e8 | refs/heads/main | 2023-08-11T10:37:38.783093 | 2021-09-27T14:39:56 | 2021-09-27T14:39:56 | 410,204,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import os
import sqlite3
from flask import g
from flask import Flask
from flask import render_template
app = Flask(__name__)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATABASE = os.path.join(BASE_DIR, "dev.db")
def connect_db():
return sqlite3.connect(DATABASE)
def get_db():
db = getattr(g, '... | [
"defnngj@gmail.com"
] | defnngj@gmail.com |
9e863dde12b15744f27376c223e743904ad7dccc | 4a94207528c5123bb4d5673c1a8b604c7dd10f7a | /MODULES/string-functions.py | f1079d1c1bdb5b92b1a698f0ee47bc4927037241 | [] | no_license | Elite-Force/Python-Playground | aa9ebe880a243b786f4222f8ce5412efa7513719 | 460f5412aa84827102827b6d014b10f1d41069e0 | refs/heads/master | 2022-02-26T15:34:46.798511 | 2019-11-04T01:06:18 | 2019-11-04T01:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | print("""
STRING MANIPULATION
print_items_in_a_list(list_1)
print_items_in_range(x,y)
abbrevName(name)
print_string(a)
decor()
""")
def decor():
a = "================================================================"
return a
def print_string(a):
"""
:param a: str.
:r... | [
"53560106+IfeOlulesi@users.noreply.github.com"
] | 53560106+IfeOlulesi@users.noreply.github.com |
1c1580900ab1dcfb8210ed4df0265547e3875743 | 89b42aa5caf583003e9adea929d57f241b97b6c0 | /model/process.py | 27bc13d12fa642e1c4ee202e2e56ad178e0a0dc8 | [] | no_license | Vision-CAIR/feelings | 740327de387d966ba14fbd20da4b54f8ef4e9c2a | e3441e7826de86aaf3ec3fcdd03aa1e9bc937ffb | refs/heads/master | 2022-04-20T02:20:31.554365 | 2020-04-22T18:20:16 | 2020-04-22T18:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | import pandas as pd
import numpy as np
import re, string
import numpy as np
#https://stackoverflow.com/questions/54028199/are-for-loops-in-pandas-really-bad-when-should-i-care
#https://stackoverflow.com/questions/11350770/select-by-partial-string-from-a-pandas-dataframe
#https://stackoverflow.com/questions/3041320/r... | [
"ishangupta@Ishans-MacBook-Pro.local"
] | ishangupta@Ishans-MacBook-Pro.local |
975ec0752443a90fd3164f9c1292d0b0f8361a1f | ff5ceb21cec47f423aabef1ed033e3f474505976 | /searchAgents.py | ae2c088631fcd00d8df9e49ec85ff9c6044a0eac | [] | no_license | taylordelehanty/Pacman | b2392e6b85afc496071fdcd70e5ccefa2627903e | 62e059af0fbe3d29c810a04d5d5ecac3b94e2e36 | refs/heads/master | 2021-05-09T16:25:20.779745 | 2018-01-30T19:23:29 | 2018-01-30T19:23:29 | 119,116,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,383 | py | # searchAgents.py
# ---------------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein ... | [
"tdelehanty1993@gmail.com"
] | tdelehanty1993@gmail.com |
2875165806e8a280633e5e89253504697ec9885b | 1f143b4992c7849819ee634569870ed280086df8 | /software/realsense_examples/pyglet_pointcloud_viewer.py | b6b0541a4b719b10c005012148aa36c8921492f8 | [
"MIT",
"Apache-2.0"
] | permissive | CASE-Association/FolkraceCar | 31a134cf2f026090db064254c08362429cc5a45c | 6d927182751383a4be2336db8f693d2fb422c757 | refs/heads/master | 2023-03-27T01:45:43.885905 | 2020-04-24T15:19:16 | 2020-04-24T15:19:16 | 241,513,790 | 1 | 0 | Apache-2.0 | 2021-03-31T20:12:07 | 2020-02-19T02:23:38 | Python | UTF-8 | Python | false | false | 14,871 | py | # License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved.
"""
OpenGL Pointcloud viewer with http://pyglet.org
Usage:
------
Mouse:
Drag with left button to rotate around pivot (thick small axes),
with right button to translate and the wheel to ... | [
"stefanlarsson95@gmail.com"
] | stefanlarsson95@gmail.com |
74cf46e17501124ce9afbae42961cff70f574673 | 9998bfe8fd406498bd8db0ca993195245d26ca61 | /layers-geonode-tools/rename_distinct.py | 1de57db4b8a7dff086ea8c6b743d938228e8a098 | [] | no_license | phil-lidar2-parmap/agricultural-lulc | 89a194219c7a8690f899cca549c9464a5e4d58e9 | 4ee0fbfc777c472be68a994cd586ddf05c7a7bfe | refs/heads/master | 2020-05-25T09:06:04.683045 | 2017-11-24T06:43:08 | 2017-11-24T06:43:08 | 84,929,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | __version__ = "0.4.1"
import os
import sys
import csv
import time
import shutil
import argparse
import logging
import arcpy
# Parse arguments
parser = argparse.ArgumentParser(description='Renaming distinct LULC shapefiles')
parser.add_argument('-i','--input_directory')
parser.add_argument('-o','--output_directory')
a... | [
"jalaurente@dream.upd.edu.ph"
] | jalaurente@dream.upd.edu.ph |
74da5a87b5ec42b3916f337f6510325ceb0175cc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_223/ch147_2020_04_12_20_47_12_558411.py | 48a99e9557a4ecf4ea235c6fb2d47c61fe37004e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | def mais_frequente(l1):
dic={}
for e in l1:
if e in dic:
dic[e]+=1
else:
dic[e]=1
ocorrencias = [0]
for n in dic.values():
if n>ocorrencias[0]:
del ocorrencias[0]
ocorrencias.append(n)
palavra = []
for i in dic.items... | [
"you@example.com"
] | you@example.com |
4921b8e173da1fd1520557376db5b7c93a1765e8 | 67230d2def8991c38a857833190e8104c7ddbe4d | /exp7.1.py | fb3436d77d0c012eab3c9e73338d50f01a6518a9 | [] | no_license | yasirbaig28/Python-Matplotlib | 48f49d12324c6524b1e75b3a2d98cbe5144c5446 | e0eb00e675cac01449880a7e5e746ba8219aa8b7 | refs/heads/main | 2023-08-01T04:54:37.324580 | 2021-09-14T12:22:52 | 2021-09-14T12:22:52 | 406,353,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #Mutiple Graphs with Dark background
from matplotlib import pyplot as plt
from matplotlib import style
style.use('dark_background')
x1=[1,2,3,4,5]
y1=[5,10,15,20,45]
x2=[1,3,5,7,9]
y2=[2,4,6,8,10]
plt.plot(x1,y1,c='b',label="x1 vs y1")
plt.plot(x2,y2,c='r',label="x2 vs y2")
plt.title("Multi... | [
"noreply@github.com"
] | noreply@github.com |
7b6c0ff886fe71c0f3914aa74bd96d2500d5ae56 | 3b3176795e42fc1d1c8dc33e9fa583bb4db58abe | /scripts/yah3c_core.py | b5606a046b7b5b462f31a8709cff02760177bb9b | [] | no_license | Lhfcws/YaH3C-mini-osx | 6c0c62b5dc1c4e7f4b509130d8e98f690e11eb9f | 7c7b2535f67a7811ae811900878074413e803c8b | refs/heads/master | 2021-01-23T06:26:37.012891 | 2017-04-19T04:30:52 | 2017-04-19T04:30:52 | 23,430,447 | 2 | 1 | null | 2014-08-31T15:40:34 | 2014-08-28T14:14:30 | Python | UTF-8 | Python | false | false | 11,415 | py | #!/usr/bin/python
# coding: utf-8
import sys, os
import pcap
from struct import pack, unpack
## Constants
# Reference: http://tools.ietf.org/html/rfc3748
ETHERTYPE_PAE = 0x888e
PAE_GROUP_ADDR = "\x01\x80\xc2\x00\x00\x03"
BROADCAST_ADDR = "\xff\xff\xff\xff\xff\xff"
VERSION_INFO = "\x06\x07bjQ7SE8BZ3MqHhs3clMregcDY3Y=... | [
"lhfcws@163.com"
] | lhfcws@163.com |
b9a48a3fa6173aaf6e71b3ae6f50b4791ceb6e34 | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础09/1-创建模块/msgnew.py | c70f8f258a39e5f8bc8e8298c973427f1890cdb5 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 142 | py | __all__ = ["test2","Test"]
def test1():
print("---test1---")
def test2():
print("---test2---")
class Test(object):
pass
num = 100
| [
"cdtaogang@163.com"
] | cdtaogang@163.com |
638e2f86d3995c89fc433784cef5fc013f7b773b | 3a7078b0ffd439c0908970963f13720d7e6425b9 | /core/migrations/0003_auto_20200524_1142.py | b1612890f22ed64bb3b4211b2fb2383641c0b0a2 | [] | no_license | Praneeth021/HMS | 8628d8919414d3d38a768b1da8d63ad424216a64 | b321659dfd03936160dfa3b8eee6b99f2223226a | refs/heads/master | 2023-08-02T07:38:36.168487 | 2021-03-31T08:36:45 | 2021-03-31T08:36:45 | 266,320,584 | 0 | 3 | null | 2021-09-22T19:04:52 | 2020-05-23T11:16:52 | CSS | UTF-8 | Python | false | false | 1,143 | py | # Generated by Django 3.0.5 on 2020-05-24 06:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20200523_1946'),
]
operations = [
migrations.CreateModel(
name='Appointment',... | [
"kadampallypraneeth987@gmail.com"
] | kadampallypraneeth987@gmail.com |
673d88e4c0b9fb482f27a8ccb3f5c29cb4fa93de | 99e35a026c233097ebe4544ef205fbc906e4dae6 | /juanig/1/atom_test.py | be586fa8a80d44279e8ab158a68583762385e8b2 | [] | no_license | juanigp/IPDI | eec7816ba6b2b2171f1193ac805b4d6b513fa7db | 5a97851a74a204f2b42f508e113edfa623cc9eeb | refs/heads/master | 2021-07-07T00:25:01.981279 | 2017-09-29T13:21:46 | 2017-09-29T13:21:46 | 103,134,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print('asdasd')
| [
"noreply@github.com"
] | noreply@github.com |
2faa1a2aaf34ff00d50c35afead93ace9bc949fb | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/test/condorSub/dict_Summer20UL16APV_gjets_dr0p4.py | 817994fbf5c7ee0aa69b211e2a51ecb254f23838 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 446 | py | flist = {
"scenario": "Summer20UL16APV",
"args": "emerging=True",
"samples": [
['Summer20UL16APV.GJets_DR-0p4_HT-100To200_TuneCP5_13TeV-madgraphMLM-pythia8'],
['Summer20UL16APV.GJets_DR-0p4_HT-200To400_TuneCP5_13TeV-madgraphMLM-pythia8'],
['Summer20UL16APV.GJets_DR-0p4_HT-400To600_TuneCP... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
075fa61d2c147605f99584861c7e42e275ed3ee6 | d79175dd8ebe14b32f73bbe6c4ed5096778e0e83 | /src/webcrawler/webcrawler.py | 7ae38231a07101e185d1c6aa737c82f198b928d8 | [] | no_license | buben19/prey | 6d1b4ef57aabe831979209af8d8499aa13be1f59 | 42362a737ee5f573692c6dc3cef46df209fb3d0f | refs/heads/master | 2016-09-06T05:35:11.003719 | 2013-10-14T22:51:34 | 2013-10-14T22:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,899 | py | from __future__ import unicode_literals
from .. import process
from .. import url
from ..services import ServiceProvider
from .. import error
from ..config import Config
from .. import repository
from .. import data
from .. import shedule
from _visitedurl import _VisitedUrl
from queue import WebCrawlerQueue
from ..http... | [
"ivo.slanina@gmail.com"
] | ivo.slanina@gmail.com |
74fe562eef236246fb912f94ff99a59075f7bede | 1680f7d32a3ecc4a4b1eb49c931e801315e220a0 | /Chat-Room-server/chat_server.py | d4f39858c8b9c7b3132072c2cbacb7d77aa79f27 | [] | no_license | Tanishq-181500751/chat | 71dafb13d19c9a9036d4ba4563db8bdf3e348afa | 3ef338b3311d230676687c8f8b722c642f497373 | refs/heads/main | 2023-01-24T22:23:10.176865 | 2020-11-24T04:29:09 | 2020-11-24T04:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | import socket
import select
#from _thread import start_new_thread
from _thread import *
import sys
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
"""
the first argument AF_INET is the address domain of the socket. This is used when we have an Internet Domain
with any two hosts
The second argument is the t... | [
"noreply@github.com"
] | noreply@github.com |
59e28a9b68bea9919ede0539111e0ca41e81ae47 | affa330082413701489d0f7bc6d3e9c2c2f9475e | /src/applications/maps/views/lugares.py | 251d39ac411f0c4debef8ad22d012026e4ea63cf | [] | no_license | pixelead0/comida.chingona | e12583d75b4692d391b6f2cfb9df25c4a5bfc057 | 2dc2225f63c0f1c3bd45c8cda9f5ab9e62e7bc2b | refs/heads/devel | 2020-04-25T23:47:32.553925 | 2019-05-08T18:11:30 | 2019-05-08T18:11:30 | 173,157,158 | 6 | 5 | null | 2019-05-08T17:35:41 | 2019-02-28T17:32:33 | Python | UTF-8 | Python | false | false | 579 | py |
# Django
from django.shortcuts import render
from django.views import View
# Rest framework
from rest_framework import viewsets
# Models
from applications.maps.models import FoodLocation
# Serializers
from applications.maps.serializers import FoodLocationSerializer
class Lugares(View):
def get(self, request):... | [
"emmanueloctaviomc@gmail.com"
] | emmanueloctaviomc@gmail.com |
d5b6772f84bf179d349a4fe7da02286d7a904d48 | 3d9162cc7cbc52363288d48d67e8c26df8b978d8 | /R.1.3.py | 2ed284470da0806b59d087e95b89f70527fa89dc | [] | no_license | Kadekraiii/E1E119030_KADEK-RAI-RIESKA-JANWARDA | 36938b0edc47322779ed3d3ad1c33d7eb5ed0749 | 7030b01b4b2c9bc982525468a8f64de85e0ba339 | refs/heads/main | 2023-05-09T11:17:28.514324 | 2021-05-31T14:32:13 | 2021-05-31T14:32:13 | 372,514,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def minmax(data):
largest = data[0]
smallest = data[0]
for item in data:
if item > largest:
largest = item
elif item < smallest:
smallest = item
return smallest, largest
alpha = [2, 2, 3, 4, 5, 6, 7, 8, 99]
print(minmax(alpha))
| [
"noreply@github.com"
] | noreply@github.com |
967d83ce11529cb1c9991e6649f585da2cde4f67 | c43c926da105fcb2374e330c45898edeff704524 | /recognize_picture.py | 6edac2b6c2d658c1fdaaf5ccf63745e853d9b646 | [] | no_license | Julietchy/face_rec | b001de4a17376e03d7cca96a4fe3b87b2c27cb3d | babd2ade920a3d4cbf98952e17654bfb6fefb434 | refs/heads/master | 2020-09-13T09:08:52.380988 | 2019-11-21T04:44:54 | 2019-11-21T04:44:54 | 222,720,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | import numpy as np
import argparse
import imutils
import pickle
import cv2
import os
# parse the arguments
image_name = input('Type image name with extension: \n')
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", default='images/' + image_name,
help="path to input image")
ap.add_argument("-... | [
"noreply@github.com"
] | noreply@github.com |
2cc4d13aa189b09f88a81b8c31e9a26b9171d9d5 | 8e6789fc0ad3c0def5b82c109b2cb45458c128ee | /chemical_factors.py | 35d73437794a45609d88311a7f451050977427dc | [] | no_license | harrigon/wine_data_analysis | 8d1957c185e82b73e21ad4b74796142af4dd5d6f | 65306b7edc582535925f263b1f0aeaf665837a21 | refs/heads/master | 2020-04-26T15:40:57.641069 | 2019-03-04T01:42:30 | 2019-03-04T01:42:30 | 173,654,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import pandas as pd
import statsmodels.api as sm
def red_wine_analysis():
pd.set_option('display.expand_frame_repr', False)
df = pd.read_csv('winequality-red.csv', delimiter=';')
print_data(df)
Y = df[['quality']]
X = df[['fixed acidity', 'volatile acidity', 'citric acid', 'residual s... | [
"noreply@github.com"
] | noreply@github.com |
9d58305a2fb6d900057396f8c2a933b4826793aa | d0242cb753f810c075ea16613be321a2fe3f0e45 | /handle/orderHandle.py | a9f81e73f0e99701c513932b55c14dd695d13766 | [] | no_license | GEOAL1/webzebra | 3462dd6e4b7369ae102e5b54747a7d6e68aa50ab | 96bbd285aaa16a7e5acb3bf138ee95fa2eeb3c59 | refs/heads/master | 2021-01-22T13:02:52.469759 | 2015-06-18T01:21:56 | 2015-06-18T01:21:56 | 36,656,788 | 0 | 0 | null | 2015-06-01T11:35:58 | 2015-06-01T11:35:54 | Python | UTF-8 | Python | false | false | 3,983 | py | #/usr/bin/python
#coding: utf-8
import tornado
from tornado.web import authenticated
from tornado import gen
from error.zebraError import *
from handle.baseHandle import BaseHandler
from model.jsonTemplate import JsonTemplate
from utils.Constants import SessionUserID
class OrderBikeHandler(BaseHandler):
@tornado... | [
"3163504123@163.com"
] | 3163504123@163.com |
bbe5414c16b319441c787441bfb51b49cf034eb6 | fb2ba31068de059c1c67299ea9104435fc08061d | /phones/migrations/0001_initial.py | e898c3024e250d0b1c602f26a12e2d423be6c3f3 | [] | no_license | bustabg/phones-shop | 5a66d75ab0ec1a71ea63a799a5d817d5e5d51ed5 | d2b5b3f7ff35468818a0f26ac54ca0bc73900d69 | refs/heads/master | 2020-05-18T17:06:32.299822 | 2019-05-24T19:22:42 | 2019-05-24T19:22:42 | 184,545,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # Generated by Django 2.2.1 on 2019-05-04 09:37
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '__first__'),
]
operations = [
migrations.Crea... | [
"jovanotybg@gmail.com"
] | jovanotybg@gmail.com |
7f808f375196070fa7c9f4d27ff1895e87836d02 | d78c933c6040d5bc77c0f594b919714a8f47330b | /Crawling with selenium/manage.py | 80b9764c69947d12683a6162260292d6048ace84 | [] | no_license | man-007/Django | 27751f71a477249d900d96e7ab3296cd0848fe36 | d1b2f96bf956f601d2c4262f3d933e894464386b | refs/heads/main | 2023-07-18T18:07:56.588512 | 2021-09-23T05:57:48 | 2021-09-23T05:57:48 | 371,322,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HighBreed_Development.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't impor... | [
"manastaunk2021@gmail.com"
] | manastaunk2021@gmail.com |
10901f0c1bed95c01db04a8642c7e41972431fd7 | dd5c2c9384d16557c956b05dc27a7c192eae133f | /core/src/parsers/csgo/tradeskinsfast.py | b9f693346ab0289e6373f4d810564fca49be0910 | [] | no_license | yuriizinets/tradehub | d351ccae47d6bf2f889da71327bac5478bfc6121 | 6231f4169f0d2a1672ec5f2c20540960a3d2995f | refs/heads/master | 2022-03-05T22:03:13.019451 | 2018-05-23T14:03:07 | 2018-05-23T14:03:07 | 123,582,618 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import json
def tradeskinsfast(wrapper_kwargs, scraper):
# Headers for request
headers = {
"X-Requested-With": "XMLHttpRequest",
"Referer": "https://tradeskinsfast.com/",
}
# Get data
resp = scraper.get('https://tradeskinsfast.com/ajax/botsinventory', headers=headers)
r_items = jso... | [
"yura.zinets@gmail.com"
] | yura.zinets@gmail.com |
88343b3c7fb481f048cb6b5c6bfecd78aa72b015 | 7bf471faff78ba34aaf7b33470e12999a876a141 | /trpycore/thread/result.py | b3c73ef96806b9cc71f8947d5e0e417e66fcf0df | [] | no_license | techresidents/trpycore | dfadf7c172b7843ec3dab205b5db364088a530d2 | af243f342bc46ba0cd2ec54f415d5ba526a036a6 | refs/heads/master | 2016-09-06T04:43:45.706574 | 2013-10-09T15:29:30 | 2013-10-09T15:29:30 | 19,194,308 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | import threading
class AsyncResult(object):
"""AsyncResult is a convenience class for async methods.
It is intended as an alternative to passing callbacks to async methods
to be notified when an async operation completes. Instead, async methods
can return this object which the caller can use to wait f... | [
"jmullins@techresidents.com"
] | jmullins@techresidents.com |
b69becbe7fb0346b0b14a5bb4f78f85817d62142 | 1779b7bb2e7d6039011888a7d2a46717e9626993 | /matasano crypto/1-1.py | 8dec616f66ae3a1a96bc6e0e2d214eab70e8b7e0 | [] | no_license | zastari/Worked_Solutions | 2908b15344a65025af78afde369590209b520733 | cb31a52e61913a349de167ffca37afb2f7f8fa75 | refs/heads/master | 2020-06-02T09:36:54.274839 | 2016-01-11T09:07:39 | 2016-01-11T09:07:39 | 39,709,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import byte_conversions
string = byte_conversions.change_format("49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d", "hex2bin")
print "%s" % byte_conversions.change_format(string, "bin2base64")
| [
"zastari@gmail.com"
] | zastari@gmail.com |
190d1b1092d241c85f0feb82ec4fbde905277a25 | 871e1b0295c0fbbfca8191236d674866cf62ff01 | /TrainB5_NAR1_imagenet_64.py | 532b33d65353507986ad9cfe7bb6f9818cee5de2 | [] | no_license | Peckkie/USAI_ABnormal_Screening | ce31a813e9303a7d43def912ab731cc633268cb7 | 82cd63ac9ab72fbe68eae254c15c7bf7ef906022 | refs/heads/master | 2023-02-16T13:32:33.678500 | 2021-01-07T02:36:35 | 2021-01-07T02:36:35 | 277,981,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | import PIL
from keras import models
from keras import layers
from tensorflow.keras import optimizers
import os
import glob
import shutil
import sys
import numpy as np
from skimage.io import imread
import matplotlib.pyplot as plt
import os
from tensorflow.keras import callbacks
import pandas as pd
from keras.utils impor... | [
"w_yupaporn@kkumail.com"
] | w_yupaporn@kkumail.com |
4c838533a9661266c01b231b2bed4bf43930a1d2 | e18505ec608ca04f71a46879ec58c26e77949204 | /games/easy_game/config.py | afc979b1ebd65b145802b50022b04b3979cba29b | [] | no_license | Diane-Su/MLGame | 241c1c97a95ca72daba4f50f6daca0c5a6a8c766 | 871c46c5d3588bc1b08699f5f0ba8a79dd626682 | refs/heads/master | 2023-07-11T18:06:36.515574 | 2021-08-12T08:10:14 | 2021-08-12T08:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py |
from os import path
from mlgame.utils.parse_config import read_json_file, parse_config
from .src.game import EasyGame
config_file = path.join(path.dirname(__file__), "game_config.json")
config_data = read_json_file(config_file)
GAME_VERSION = config_data["version"]
GAME_PARAMS = parse_config(config_data)
# will b... | [
"kylingithubdev@gmail.com"
] | kylingithubdev@gmail.com |
93a5137d1fb60cc5728e3a2a00b8b96d62ddf263 | bb0966136bad11e65939c24b91d3816eda71516f | /chat/models.py | 0b12da74960183840c124894f319563784837cc7 | [] | no_license | Vasu9/anonymous-chat | e56b459438be05a53951b997c3c7183f19d9aa18 | edacd4054c35322db72c4c1d38ca1e6a5d6d7852 | refs/heads/master | 2021-01-16T20:48:17.708856 | 2016-01-05T10:20:45 | 2016-01-05T10:20:45 | 47,538,938 | 0 | 0 | null | 2015-12-07T08:24:15 | 2015-12-07T08:24:15 | null | UTF-8 | Python | false | false | 173 | py | from django.db import models
# Create your models here.
class ChatRoom(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
| [
"vasusweety.81@gmail.com"
] | vasusweety.81@gmail.com |
9d11070b2ef693e53d7a4f827969804573048d8f | 67e3e44f2df1386c2bc205e35682651f8b17f3bb | /bsr/specgram_utils.py | db24ade153480871774e7d3eb6e2101972c1a9e4 | [] | no_license | vlampreia/birdsong-recognition | fa4a04cb8ba25f324fe9bc64076d3eea4a7efc53 | ac593eb36e3f7cc87cfdcc3a715ab5e99c8b9606 | refs/heads/master | 2021-03-22T03:16:10.421029 | 2018-06-16T12:07:27 | 2018-06-16T12:07:27 | 71,348,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | from utils import *
import cv2
import numpy as np
import matplotlib
import pylab
import os
import sys
import pickle
def load_specgram(path):
sgram = cv2.imread(''.join([path, '.png']), 0)
with open(''.join([path, '.pkl']), 'r') as f:
freqs = pickle.load(f)
times = pickle.load(f)
return ... | [
"victorlampreia@gmail.com"
] | victorlampreia@gmail.com |
0cf90ec6fed77677ef55bca4273fa9bad7239d2b | 680dc72f3acd99351f208c79b4bce9efb9e394e9 | /databay/planners/aps_planner.py | 927219d250d104f497e3b2c4b691028a9834af40 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nkaramesinis/databay | cfeef2c72614f1994dfe25df1a652bf9d531c266 | 02d46a661f57d4e96c394b26b1d40366ccacf981 | refs/heads/master | 2023-01-01T13:20:00.023715 | 2020-09-29T08:47:39 | 2020-09-29T08:47:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,288 | py | """
.. seealso::
* :ref:`Scheduling <scheduling>` to learn more about scheduling in Databay.
* :any:`BasePlanner` for the remaining interface of this planner.
"""
import logging
from typing import Union, List
from apscheduler.events import EVENT_JOB_ERROR
from apscheduler.executors.pool import ThreadPoolExecu... | [
"voy1982@yahoo.co.uk"
] | voy1982@yahoo.co.uk |
41346c47ed5fde38216d1de0cb5984e9e0bdfd96 | 0b9c9d401adecad7c777147cc3b68cbbd83b775b | /List_type.py | 1a599e2e7705d252551c4c30f13fb79590f374c4 | [] | no_license | parveez1shariff/Python-Testing | c984f62ec457c995b6793bdb7ec3b2f978e573f8 | 422b0860c64695bcce9a3a3f4628a92bb65a709c | refs/heads/master | 2022-10-02T19:52:58.659005 | 2020-05-27T14:42:25 | 2020-05-27T14:42:25 | 266,270,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py |
rain = [10, 23.4, "Temp", [5, 10] ]
print(rain)
print(type(rain)) | [
"parveez1shariff@gmail.com"
] | parveez1shariff@gmail.com |
88e99bd05a923040575e84609ce7c0e0b942c2b6 | be48055029a750d24e1f0867bf449b423748b67b | /blog/models.py | 2ec1d5e9d767ed7dde3f6ef60ddba8269b54f79a | [] | no_license | jennifersite/jennifersite.github.io | 9350bfde3803fe8ec749a372b27ff3bbdf153348 | 6c9cf83e76f80c11d566060953c8cf3df04be978 | refs/heads/master | 2021-07-19T21:35:35.443862 | 2017-10-28T07:55:16 | 2017-10-28T07:55:16 | 108,629,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django import template
# Create your models here.
from django.template.defaultfilters import slugify
from django.urls import reverse
from ckeditor_uploader.fields import RichTextUploadingField
class Author(models.Model)... | [
"jmh.chen@hotmail.com"
] | jmh.chen@hotmail.com |
52cd05812653c943e8f1a443b6fe1d471d4c7408 | 2cae3866749236714c23a75a95665b5cb8c8346a | /darwin/security/suuid.py | 6aae944f1f543a1797844010e2ad2c3f38345161 | [] | no_license | janiltonmaciel/darwin | 16b1892dd3f965239c61833feeb46b76e64e9448 | 6222cbef6692dd7725dca452b30d3b214894bb65 | refs/heads/master | 2020-05-30T19:04:44.895779 | 2015-09-22T12:53:17 | 2015-09-22T12:53:17 | 41,773,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # -*- coding:utf-8 -*-
# Import system
import uuid
class SecurityUUID(object):
@staticmethod
def generate_uuid():
return str(uuid.uuid4())
| [
"janilton@corp.globo.com"
] | janilton@corp.globo.com |
cbe5b32fcc5a779da56b87e8a719be482b7c0046 | 68924396783fb6044f726d3625cde0685fd9c37c | /core/game/effects/punisher.py | 90c38de6c98b9977f146dfab81bd014b08ddfee6 | [] | no_license | Ukkotakken/OMGame | 4508e45dbc940fe9d936987874251b170d268866 | dad564923cd56567850f0f49a39190364775446b | refs/heads/master | 2020-04-06T04:03:39.329931 | 2017-04-08T23:16:28 | 2017-04-08T23:16:28 | 83,063,231 | 0 | 0 | null | 2017-04-08T23:09:14 | 2017-02-24T16:52:54 | Python | UTF-8 | Python | false | false | 3,034 | py | from core.game.action.common import Action
from core.game.characters.common import Character
from core.game.common import GuiltyDegree, TurnType, DamageType
from core.game.effects.common import CharacterEffect, pipe_argument, TimedCharacterEffect
from core.game.effects.priorities import EffectPriority
from core.game.ev... | [
"ukkotakken@yandex.ru"
] | ukkotakken@yandex.ru |
852abf45fb49e074f8d68f60d388aeea483fc335 | 865d8dd74328a53d003a01185315ae07c794a513 | /testing_req.py | a4522aed0a9ba72ec0ef353641e98eee82cbd61e | [] | no_license | Lekhman-vold/Crypto-Analyzer | 4acc8083c2da5b6ad154fbc486fcff53ded3ef1e | 8e6b11727081f8838fab116b7501739e828a2036 | refs/heads/master | 2023-04-17T21:41:23.753240 | 2021-04-21T20:06:45 | 2021-04-21T20:06:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # import requests
#
# response = requests.get('https://www.engineerspock.com/')
# github_response = requests.get('https://api.github.com/')
#
# print(github_response.headers, end='\n')
# print(response)
import requests
def get_prices():
coins = ["DOGE", "ETH", "DASH", "LTC"]
crypto_data = requests.get(
... | [
"volodya.l@yahoo.com"
] | volodya.l@yahoo.com |
fdd59d240a4c0bb10c89d75d4e9a62b0b1c7f939 | 2e990ff03f23c3f82e1f3fb7acee1ddd8fb72e0e | /whoislive.py | 450d38b0d33cacce38abf02fe08ffd66a715315d | [] | no_license | HeNine/ekimbot_plugins | e25bd5326b13603a8671d4089317185bb7a7821c | 354978cc8a632aec57ef79d2948ada21dc2502cd | refs/heads/master | 2021-01-24T18:26:28.146480 | 2017-03-06T17:37:11 | 2017-03-06T17:37:11 | 84,441,447 | 0 | 0 | null | 2017-03-09T12:47:12 | 2017-03-09T12:47:12 | null | UTF-8 | Python | false | false | 4,547 | py |
import functools
import itertools
import gevent
import gtools
import requests
import twitch
from ekimbot.botplugin import ClientPlugin
from ekimbot.commands import CommandHandler
from ekimbot.utils import reply_target
def encode_recursive(o, encoding='utf-8'):
if isinstance(o, unicode):
return o.encode(encoding... | [
"mikelang3000@gmail.com"
] | mikelang3000@gmail.com |
e59bab95d23b7a34c1fe950e44065ce754a0826e | 91a357833d29642431c2b20517131dd8c4939b2c | /week 7/souvikghosh_a7.py | de795d626ebac46c94054579c22b28eba0d302c3 | [] | no_license | souvik119/157152-Introduction-to-Programming | c1c8b10c0c202029175054ca9b3d4c0a012c1ced | 901b5ab71df722d95fa209ada63bfc30c2a695c1 | refs/heads/main | 2023-07-19T08:16:11.719848 | 2021-08-17T21:20:03 | 2021-08-17T21:20:03 | 386,095,465 | 0 | 0 | null | 2021-08-17T21:20:03 | 2021-07-14T22:49:20 | Python | UTF-8 | Python | false | false | 1,785 | py | # File statistics
# Reads a file based on the user input for the file name
# Display each line to the screen with a line number
# Prints statistics like Line Count and Character Count at the end of the program
# Program continues until user quits
def get_file_name():
'''
Prompts user to input file name to be r... | [
"Sayali1@"
] | Sayali1@ |
9589158dfe27c7aca382fc3c25aba6b61418e832 | 23a3d0433bd53f1fd69a8397ee310913038980ea | /04_lesson_3/quiz/relativeSize.py | 644f9ff61948a1667d81c9007f8388dd3e5e0aeb | [] | no_license | lisalisadong/cs-101 | 3ce2f151386a153770de266624f47879f7796fd3 | 6a001aa27100ce76e7dfa5e6a3528607d3280121 | refs/heads/master | 2020-05-19T23:00:25.857863 | 2015-01-06T06:24:01 | 2015-01-06T06:24:01 | 26,845,527 | 16 | 15 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Given the variable countries defined as:
# Name Capital Populations (millions)
countries = [['China','Beijing',1350],
['India','Delhi',1210],
['Romania','Bucharest',21],
['United States','Washington',307]]
# What multiple of Romania's population is the popul... | [
"qingxiao.dong@gmail.com"
] | qingxiao.dong@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.