hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
e9bbe67d03e2ea6ef30f458c7fed4a9454811fef
2,041
exs
Elixir
test/mastani_server/accounts/fans_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
1
2019-05-07T15:03:54.000Z
2019-05-07T15:03:54.000Z
test/mastani_server/accounts/fans_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
test/mastani_server/accounts/fans_test.exs
DavidAlphaFox/coderplanets_server
3fd47bf3bba6cc04c9a34698201a60ad2f3e8254
[ "Apache-2.0" ]
null
null
null
defmodule MastaniServer.Test.Accounts.Fans do use MastaniServer.TestTools alias Helper.ORM alias MastaniServer.Accounts setup do {:ok, user} = db_insert(:user) {:ok, ~m(user)a} end describe "[user fans]" do alias Accounts.User test "user can follow other user", ~m(user)a do {:ok, ...
31.4
84
0.613425
e9bc58ebd74a066d383d94bcbd89af4a90c39cea
1,330
ex
Elixir
clients/pub_sub/lib/google_api/pub_sub/v1/model/seek_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/seek_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
clients/pub_sub/lib/google_api/pub_sub/v1/model/seek_response.ex
mocknen/elixir-google-api
dac4877b5da2694eca6a0b07b3bd0e179e5f3b70
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.930233
77
0.753383
e9bc65785997f529fb3a8223007580ded4aa42bb
872
ex
Elixir
clients/dns/lib/google_api/dns/v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/dns/lib/google_api/dns/v1/metadata.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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, s...
32.296296
74
0.755734
e9bc6cb791ccda2a6f7c76ac375cfd1033a77833
31,239
ex
Elixir
lib/elixir/lib/calendar/naive_datetime.ex
ReefTrip/elixir
43a4dca94ab605a0a5795d43e43e5671f4a49071
[ "Apache-2.0" ]
1
2018-11-12T22:34:19.000Z
2018-11-12T22:34:19.000Z
lib/elixir/lib/calendar/naive_datetime.ex
ReefTrip/elixir
43a4dca94ab605a0a5795d43e43e5671f4a49071
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/calendar/naive_datetime.ex
ReefTrip/elixir
43a4dca94ab605a0a5795d43e43e5671f4a49071
[ "Apache-2.0" ]
null
null
null
defmodule NaiveDateTime do @moduledoc """ A NaiveDateTime struct (without a time zone) and functions. The NaiveDateTime struct contains the fields year, month, day, hour, minute, second, microsecond and calendar. New naive datetimes can be built with the `new/2` and `new/8` functions or using the `~N` (see...
31.682556
110
0.630046
e9bc7c511fe7663491aca700498344cfeebf6f11
4,214
ex
Elixir
lib/davis.ex
jquadrino/davis
28b405725855303b7e78ed5db22ded223dfb2dc8
[ "Apache-2.0" ]
1
2019-08-01T22:51:17.000Z
2019-08-01T22:51:17.000Z
lib/davis.ex
jquadrino/davis
28b405725855303b7e78ed5db22ded223dfb2dc8
[ "Apache-2.0" ]
null
null
null
lib/davis.ex
jquadrino/davis
28b405725855303b7e78ed5db22ded223dfb2dc8
[ "Apache-2.0" ]
null
null
null
defmodule Davis do def name, do: "Davis" def start_link(options) do pid = spawn_link(__MODULE__, :init, [options]) {:ok, pid} end def init(options) do {:ok, socket} = Ahab.init_ack :inet.setopts(socket, active: :once) socket_mode = :gen_tcp receive do {_, ^socket, bin} -> ...
31.924242
119
0.621025
e9bc91e7f49c5e66c7dc4b8c840c6813457929ad
6,093
ex
Elixir
lib/probe/runner.ex
scohen/instruments
6162bd3280795b544d052fce871acd9975aee542
[ "MIT" ]
99
2020-04-05T13:33:21.000Z
2022-03-31T21:53:08.000Z
lib/probe/runner.ex
Seanpm2001-Discord/instruments
4e8a34655d5b469567be69ccf3cf2dcdeba798f6
[ "MIT" ]
7
2020-05-13T15:16:08.000Z
2022-03-03T01:39:56.000Z
lib/probe/runner.ex
Seanpm2001-Discord/instruments
4e8a34655d5b469567be69ccf3cf2dcdeba798f6
[ "MIT" ]
16
2021-01-18T23:59:48.000Z
2022-03-25T12:48:34.000Z
defmodule Instruments.Probe.Runner do @moduledoc false # A module tasked with running probes. # This module is a controller process for running module-based probes. # It periodically exectues callback functions on the probes, and reports their # results to statix. defmodule State do @moduledoc false ...
30.313433
97
0.649434
e9bc9882ca98ade8a8bf66eee51b2c3c62c7c0ce
6,683
ex
Elixir
lib/bolt_sips/query.ex
kristofka/bolt_sips
2471f35862b6031bb14626c941f3bc04b1949066
[ "Apache-2.0" ]
242
2016-09-09T22:32:00.000Z
2022-02-20T18:50:29.000Z
lib/bolt_sips/query.ex
kristofka/bolt_sips
2471f35862b6031bb14626c941f3bc04b1949066
[ "Apache-2.0" ]
100
2016-10-18T04:19:09.000Z
2021-11-15T19:14:47.000Z
lib/bolt_sips/query.ex
kristofka/bolt_sips
2471f35862b6031bb14626c941f3bc04b1949066
[ "Apache-2.0" ]
51
2016-10-31T20:05:52.000Z
2022-01-20T11:45:49.000Z
defmodule Bolt.Sips.Query do @moduledoc """ Provides a simple Query DSL. You can run simple Cypher queries with or w/o parameters, for example: {:ok, row} = Bolt.Sips.query(conn, "match (n:Person {bolt_sips: true}) return n.name as Name limit 5") assert List.first(row)["Name"] == "Patrick Rothfuss" ...
36.71978
178
0.623073
e9bcbc8c4b26c6aa07f2c0a27297eaf6c03ac78d
1,926
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/editors.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/sheets/lib/google_api/sheets/v4/model/editors.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/editors.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 ...
35.666667
141
0.711319
e9bcc354444b334eb7938ac6e13abbce5f3a5113
1,146
ex
Elixir
backend/test/support/conn_case.ex
Szetty/seven_wonders
77f6f4ff015a8fc481c7edfc87e3cd77b61bc79b
[ "MIT" ]
1
2020-05-28T15:51:47.000Z
2020-05-28T15:51:47.000Z
backend/test/support/conn_case.ex
Szetty/seven_wonders
77f6f4ff015a8fc481c7edfc87e3cd77b61bc79b
[ "MIT" ]
35
2020-05-23T17:33:56.000Z
2022-02-14T00:53:06.000Z
backend/test/support/conn_case.ex
Szetty/seven_wonders
77f6f4ff015a8fc481c7edfc87e3cd77b61bc79b
[ "MIT" ]
null
null
null
defmodule BackendWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if th...
27.285714
61
0.722513
e9bd13a0e39c0b7a450d81378198a7df58390f5f
1,068
ex
Elixir
lib/sanbase/cache/rehydrating_cache/supervisor.ex
santiment/sanbase2
9ef6e2dd1e377744a6d2bba570ea6bd477a1db31
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase/cache/rehydrating_cache/supervisor.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase/cache/rehydrating_cache/supervisor.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule Sanbase.Cache.RehydratingCache.Supervisor do use Supervisor alias Sanbase.Cache.RehydratingCache.Store def child_spec(opts) do %{ id: :__rehydrating_cache_supervisor__id__, start: {__MODULE__, :start_link, [opts]} } end def start_link(opts) do Supervisor.start_link(__MODUL...
24.837209
84
0.668539
e9bd3056623ef9efd9b5773d1494d73e80f0a2ed
547
ex
Elixir
graphql-elixir/lib/graphql_sample_web/views/error_view.ex
ma2gedev/graphql-samples
f6e8efba22777ed27aee0fa597d23f991987ca6b
[ "MIT" ]
1
2019-04-14T04:19:37.000Z
2019-04-14T04:19:37.000Z
graphql-elixir/lib/graphql_sample_web/views/error_view.ex
ma2gedev/graphql-samples
f6e8efba22777ed27aee0fa597d23f991987ca6b
[ "MIT" ]
null
null
null
graphql-elixir/lib/graphql_sample_web/views/error_view.ex
ma2gedev/graphql-samples
f6e8efba22777ed27aee0fa597d23f991987ca6b
[ "MIT" ]
null
null
null
defmodule GraphqlSampleWeb.ErrorView do use GraphqlSampleWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.json", _assigns) do # %{errors: %{detail: "Internal Server Error"}} # end # By default, Phoenix returns the status ...
32.176471
83
0.725777
e9bd3f5dcb17c86d059a29057c301b5fdfe93f85
51,819
ex
Elixir
lib/aws/generated/dynamodb.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/dynamodb.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
lib/aws/generated/dynamodb.ex
onno-vos-dev/aws-elixir
00f02c2bce689b932948b6a4d603fd44bb5fc0e9
[ "Apache-2.0" ]
null
null
null
# WARNING: DO NOT EDIT, AUTO-GENERATED CODE! # See https://github.com/aws-beam/aws-codegen for more details. defmodule AWS.DynamoDB do @moduledoc """ Amazon DynamoDB Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. DynamoDB ...
43.766047
185
0.752967
e9bd52815c41feaf6c493657596566e7642ca216
704
ex
Elixir
web/gettext.ex
noobiehacker/phoenixFilter
42d913cc0b76b58ccbddf0a37b8f21dc6c639a3d
[ "Apache-2.0" ]
null
null
null
web/gettext.ex
noobiehacker/phoenixFilter
42d913cc0b76b58ccbddf0a37b8f21dc6c639a3d
[ "Apache-2.0" ]
null
null
null
web/gettext.ex
noobiehacker/phoenixFilter
42d913cc0b76b58ccbddf0a37b8f21dc6c639a3d
[ "Apache-2.0" ]
null
null
null
defmodule BluntApi.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import BluntApi.Gettext # Simple translation gettext "Here is the st...
28.16
71
0.678977
e9bd7b824eea6e69126fff3188d6c49126bda20f
877
ex
Elixir
lib/type_check/builtin/non_neg_integer.ex
0urobor0s/elixir-type_check
6bac178f4a55798034b12c1dcfb219eabcfb35c0
[ "MIT" ]
null
null
null
lib/type_check/builtin/non_neg_integer.ex
0urobor0s/elixir-type_check
6bac178f4a55798034b12c1dcfb219eabcfb35c0
[ "MIT" ]
null
null
null
lib/type_check/builtin/non_neg_integer.ex
0urobor0s/elixir-type_check
6bac178f4a55798034b12c1dcfb219eabcfb35c0
[ "MIT" ]
null
null
null
defmodule TypeCheck.Builtin.NonNegInteger do defstruct [] use TypeCheck @type! t :: %__MODULE__{} @type! problem_tuple :: {t(), :no_match, %{}, any()} defimpl TypeCheck.Protocols.ToCheck do def to_check(s, param) do quote generated: true, location: :keep do case unquote(param) do ...
23.078947
80
0.597491
e9bdb662b7722f6db295a518cecbfd67f45cf4a5
51,895
exs
Elixir
test/ecto/query/planner_test.exs
ruudk/ecto
0ec66882b68aad4b0e4fadda59bebfdc9a20ff81
[ "Apache-2.0" ]
null
null
null
test/ecto/query/planner_test.exs
ruudk/ecto
0ec66882b68aad4b0e4fadda59bebfdc9a20ff81
[ "Apache-2.0" ]
null
null
null
test/ecto/query/planner_test.exs
ruudk/ecto
0ec66882b68aad4b0e4fadda59bebfdc9a20ff81
[ "Apache-2.0" ]
null
null
null
Code.require_file "../../../integration_test/support/types.exs", __DIR__ defmodule Ecto.Query.PlannerTest do use ExUnit.Case, async: true import Ecto.Query alias Ecto.Query.Planner alias Ecto.Query.JoinExpr defmodule Comment do use Ecto.Schema schema "comments" do field :text, :string ...
41.783414
193
0.591656
e9bdd36b9ab6be8a264f31e1d80ee0f6d62dbccd
1,598
exs
Elixir
apps/pipeline/mix.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/pipeline/mix.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/pipeline/mix.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule Pipeline.MixProject do use Mix.Project def project do [ app: :pipeline, version: "0.1.6", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.10", start_permanent: Mix.en...
26.196721
68
0.508761
e9be1aa9415cd642f022faa7f37538936f28d63b
1,668
ex
Elixir
debian/manpage.1.ex
jnidzwetzki/saslpolicyd
ee8fb3e91158105eafe23ecf7d745a88b60957a2
[ "Apache-2.0" ]
2
2018-03-02T12:05:30.000Z
2021-04-20T19:15:16.000Z
debian/manpage.1.ex
jnidzwetzki/saslpolicyd
ee8fb3e91158105eafe23ecf7d745a88b60957a2
[ "Apache-2.0" ]
null
null
null
debian/manpage.1.ex
jnidzwetzki/saslpolicyd
ee8fb3e91158105eafe23ecf7d745a88b60957a2
[ "Apache-2.0" ]
null
null
null
.\" Hey, EMACS: -*- nroff -*- .\" (C) Copyright 2013 Jan Kristof Nidzwetzki <kristof@elch.linux.de>, .\" .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH SASLPOLIC...
29.263158
70
0.668465
e9be27bc715f4a83291f44cb0689ea78c39a2425
578
ex
Elixir
lib/findmy_personal_web/views/api/member_view.ex
carlosviana/find_mypersonal
6fadea6135b074a296c6f2a501a694b5222ec6db
[ "MIT" ]
null
null
null
lib/findmy_personal_web/views/api/member_view.ex
carlosviana/find_mypersonal
6fadea6135b074a296c6f2a501a694b5222ec6db
[ "MIT" ]
6
2021-07-06T17:41:35.000Z
2021-07-10T10:26:30.000Z
lib/findmy_personal_web/views/api/member_view.ex
carlosviana/find_mypersonal
6fadea6135b074a296c6f2a501a694b5222ec6db
[ "MIT" ]
null
null
null
defmodule FindmyPersonalWeb.Api.MemberView do use FindmyPersonalWeb, :view def render("index.json", %{members: members}) do %{data: render_many(members, __MODULE__, "member.json")} end def render("show.json", %{member: member}) do %{data: render_one(member, __MODULE__, "member.json")} end def ren...
24.083333
60
0.648789
e9be3474b1bc221cc77b49f8cf194d5932dde89c
1,251
exs
Elixir
config/dev.exs
nelsonblaha/yonder
6ab708d742e967dec63146b27b30e570ae21911f
[ "CC0-1.0" ]
null
null
null
config/dev.exs
nelsonblaha/yonder
6ab708d742e967dec63146b27b30e570ae21911f
[ "CC0-1.0" ]
null
null
null
config/dev.exs
nelsonblaha/yonder
6ab708d742e967dec63146b27b30e570ae21911f
[ "CC0-1.0" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :yonder, Yonder.Endpoint, http: [port: 4000], ...
29.093023
74
0.716227
e9be49fa1eaf531538322492ce030bc564dbd5b2
69
ex
Elixir
geolocate/lib/geolocate/repo.ex
gregoryterlecki/geolocateproject
c283b9f589fbd8046b82a1a027fd5a56f250a8f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
geolocate/lib/geolocate/repo.ex
gregoryterlecki/geolocateproject
c283b9f589fbd8046b82a1a027fd5a56f250a8f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
geolocate/lib/geolocate/repo.ex
gregoryterlecki/geolocateproject
c283b9f589fbd8046b82a1a027fd5a56f250a8f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
defmodule Geolocate.Repo do use Ecto.Repo, otp_app: :geolocate end
17.25
36
0.782609
e9be5eb5bd026082d38d57cefbcdc38fdcb4840a
1,389
exs
Elixir
integration_test/pg/types_test.exs
liveforeverx/ecto
42a812b765762f62cc260a994897a95492ffae28
[ "Apache-2.0" ]
null
null
null
integration_test/pg/types_test.exs
liveforeverx/ecto
42a812b765762f62cc260a994897a95492ffae28
[ "Apache-2.0" ]
null
null
null
integration_test/pg/types_test.exs
liveforeverx/ecto
42a812b765762f62cc260a994897a95492ffae28
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Integration.TypesTest do use Ecto.Integration.Postgres.Case test "datetime type" do now = %Ecto.DateTime{year: 2013, month: 8, day: 1, hour: 14, min: 28, sec: 0} c = TestRepo.insert(%Comment{posted: now}) assert %Comment{posted: ^now} = TestRepo.get(Comment, c.id) end test "date ty...
28.346939
86
0.640749
e9bec8d0971e5851a706b3ed32fb24fee38387d0
1,597
ex
Elixir
clients/jobs/lib/google_api/jobs/v3/model/create_client_event_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v3/model/create_client_event_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/jobs/lib/google_api/jobs/v3/model/create_client_event_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
33.270833
170
0.748278
e9bef177e8fb50c2696b0e62ffdd0682d88aa46c
843
exs
Elixir
priv/repo/migrations/1200_create_contributions.exs
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
92
2019-01-03T11:46:23.000Z
2022-02-19T21:28:44.000Z
priv/repo/migrations/1200_create_contributions.exs
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
350
2019-04-11T07:55:51.000Z
2021-08-03T11:19:05.000Z
priv/repo/migrations/1200_create_contributions.exs
bhtabor/radiator
39c137a18d36d6f418f9d1ffb7aa2c99011d66cf
[ "MIT" ]
10
2019-04-18T12:47:27.000Z
2022-01-25T20:49:15.000Z
defmodule Radiator.Repo.Migrations.CreateAudioContributions do use Ecto.Migration def change do create table(:audio_contributions) do add :position, :float add :person_id, references(:people, on_delete: :delete_all) add :audio_id, references(:audios, on_delete: :delete_all) add :role_id...
33.72
94
0.711744
e9bf16200b19c83da59d9c52cf8c2e5fe89678f5
2,477
exs
Elixir
test/webchat/chat/messages_test.exs
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
null
null
null
test/webchat/chat/messages_test.exs
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
1
2020-08-04T19:50:09.000Z
2020-08-04T19:50:09.000Z
test/webchat/chat/messages_test.exs
Bwuak/webchat
b6668be508481a1ff480303affaebdaf28604f41
[ "MIT" ]
null
null
null
defmodule Webchat.Chat.MessagesTest do use Webchat.DataCase, async: true alias Webchat.Chat.Models.Message alias Webchat.Chat.Messages @valid_attrs %{content: "some message"} @invalid_attrs %{content: " "} test "add_message/3 creates a message with a valid user, chatroom and content" do...
29.488095
83
0.699637
e9bf1cb58267995258ad1b34f2a40af5504d47b1
5,016
exs
Elixir
test/event/upcaster_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
1
2022-02-20T10:42:07.000Z
2022-02-20T10:42:07.000Z
test/event/upcaster_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
null
null
null
test/event/upcaster_test.exs
jccf091/commanded
5d68a2b1b7a222b6f204c48d886f3d2c9670f26a
[ "MIT" ]
null
null
null
defmodule Event.UpcasterTest do use ExUnit.Case alias Commanded.Aggregates.Aggregate alias Commanded.{DefaultApp, EventStore} alias Commanded.EventStore.{EventData, RecordedEvent} alias Commanded.Event.Upcast.Events.{EventFive, EventFour, EventOne, EventThree, EventTwo, Stop} alias Commanded.Event.Upcast.U...
28.662857
98
0.655502
e9bf1f4d2d7298f74f463295edce76eabc9e66e3
2,802
exs
Elixir
test/surgex/data_pipe/follower_sync_test.exs
surgeventures/surgex
b3acdd6a9a010c26f0081b9cb23aeb072459be30
[ "MIT" ]
10
2017-09-15T08:55:48.000Z
2021-07-08T09:26:24.000Z
test/surgex/data_pipe/follower_sync_test.exs
surgeventures/surgex
b3acdd6a9a010c26f0081b9cb23aeb072459be30
[ "MIT" ]
17
2017-07-24T11:27:22.000Z
2022-01-24T22:28:18.000Z
test/surgex/data_pipe/follower_sync_test.exs
surgeventures/surgex
b3acdd6a9a010c26f0081b9cb23aeb072459be30
[ "MIT" ]
2
2018-04-12T15:01:00.000Z
2018-05-27T12:14:34.000Z
defmodule Surgex.DataPipe.FollowerSyncTest.RepoMock do def query!("SELECT pg_last_xlog_replay_location()::varchar") do %{rows: [["0/00000001"]]} end def query!("SELECT version()") do %{rows: [["PostgreSQL 9.6.2"]]} end end defmodule Surgex.DataPipe.FollowerSyncTest.RepoWithUsingMock do use Surgex.Da...
25.944444
99
0.661313
e9bf36eabe224b21d831c0840ebe0caaecbd4099
8,054
ex
Elixir
lib/ecto/repo/backend.ex
yrashk/ecto
1462d5ad4cbb7bf74c292ec405852bc196808daf
[ "Apache-2.0" ]
1
2016-08-15T21:23:28.000Z
2016-08-15T21:23:28.000Z
lib/ecto/repo/backend.ex
yrashk/ecto
1462d5ad4cbb7bf74c292ec405852bc196808daf
[ "Apache-2.0" ]
null
null
null
lib/ecto/repo/backend.ex
yrashk/ecto
1462d5ad4cbb7bf74c292ec405852bc196808daf
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Repo.Backend do # The backend invoked by user defined repos. @moduledoc false alias Ecto.Queryable alias Ecto.Query.Builder alias Ecto.Query.Planner alias Ecto.Model.Callbacks require Ecto.Query ## Pool related def start_link(repo, adapter) do adapter.start_link(repo, repo.conf)...
29.82963
103
0.638192
e9bf5ab9af78b65365ea641e8b45d4ec255ca387
1,542
ex
Elixir
test/support/data_case.ex
franknfjr/dashboard
68ff963d4cd51b1b3d92373e84b606fccedb7d89
[ "MIT" ]
1
2021-01-27T17:44:38.000Z
2021-01-27T17:44:38.000Z
test/support/data_case.ex
franknfjr/dashboard
68ff963d4cd51b1b3d92373e84b606fccedb7d89
[ "MIT" ]
null
null
null
test/support/data_case.ex
franknfjr/dashboard
68ff963d4cd51b1b3d92373e84b606fccedb7d89
[ "MIT" ]
null
null
null
defmodule Dashboard.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to...
27.052632
77
0.690013
e9bfbb8f448f667d301c3ca14c8b3305bfeeb20e
123
ex
Elixir
redis_cache/lib/redis_cache/client_cluster.ex
cabol/nebulex_examples
21bd2673eecfc0b5c7a2807a3a47488d99a7d725
[ "MIT" ]
25
2017-07-30T01:27:54.000Z
2021-12-10T16:41:03.000Z
redis_cache/lib/redis_cache/client_cluster.ex
cabol/nebulex_examples
21bd2673eecfc0b5c7a2807a3a47488d99a7d725
[ "MIT" ]
2
2019-11-12T09:41:26.000Z
2021-11-08T13:51:24.000Z
redis_cache/lib/redis_cache/client_cluster.ex
cabol/nebulex_examples
21bd2673eecfc0b5c7a2807a3a47488d99a7d725
[ "MIT" ]
1
2019-01-08T19:06:54.000Z
2019-01-08T19:06:54.000Z
defmodule RedisCache.ClientCluster do use Nebulex.Cache, otp_app: :redis_cache, adapter: NebulexRedisAdapter end
20.5
37
0.780488
e9bfbfb595ccefa1d380e1ce5afba122719da7f0
2,737
ex
Elixir
clients/network_management/lib/google_api/network_management/v1/model/route_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/network_management/lib/google_api/network_management/v1/model/route_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/network_management/lib/google_api/network_management/v1/model/route_info.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # 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, s...
38.549296
224
0.671173
e9bfe34327f0e3b421e94d3d396648289d24c087
594
exs
Elixir
cards/mix.exs
lucasmfir/elixir-course
490d19c9f199a72b4c552de6304b15b42049e14e
[ "MIT" ]
null
null
null
cards/mix.exs
lucasmfir/elixir-course
490d19c9f199a72b4c552de6304b15b42049e14e
[ "MIT" ]
null
null
null
cards/mix.exs
lucasmfir/elixir-course
490d19c9f199a72b4c552de6304b15b42049e14e
[ "MIT" ]
null
null
null
defmodule Cards.MixProject do use Mix.Project def project do [ app: :cards, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applica...
19.8
87
0.56229
e9c02d0806b2b8629160f3dd144c995f004a9df5
73
ex
Elixir
lib/bitcoin_simulator_web/commanders/param_commander.ex
sidharth-shridhar/Bitcoin-Miner-Simulation
2789dc8fe5f65269789540f675fac682e431e518
[ "MIT" ]
1
2021-12-16T08:31:24.000Z
2021-12-16T08:31:24.000Z
lib/bitcoin_simulator_web/commanders/param_commander.ex
hojason117/BitcoinSimulator
f85e623eec1923a2c0d418388f440cc06b6a5283
[ "MIT" ]
null
null
null
lib/bitcoin_simulator_web/commanders/param_commander.ex
hojason117/BitcoinSimulator
f85e623eec1923a2c0d418388f440cc06b6a5283
[ "MIT" ]
null
null
null
defmodule BitcoinSimulatorWeb.ParamCommander do use Drab.Commander end
18.25
47
0.863014
e9c05498d92d296c1ebcceee78fb2aca6d91545a
279
exs
Elixir
test/describe_account_limits_test.exs
jesseshieh/ex_aws_auto_scaling
019be2f7f11e88c6301cc05b4be661ffe0fce208
[ "MIT" ]
1
2020-01-12T03:28:18.000Z
2020-01-12T03:28:18.000Z
test/describe_account_limits_test.exs
jesseshieh/ex_aws_auto_scaling
019be2f7f11e88c6301cc05b4be661ffe0fce208
[ "MIT" ]
1
2020-05-29T01:51:59.000Z
2020-05-29T01:51:59.000Z
test/describe_account_limits_test.exs
jesseshieh/ex_aws_auto_scaling
019be2f7f11e88c6301cc05b4be661ffe0fce208
[ "MIT" ]
2
2019-11-15T21:56:51.000Z
2020-05-01T21:21:43.000Z
defmodule DescribeAccountLimitsTest do use ExUnit.Case test "simple describe" do op = ExAws.AutoScaling.describe_account_limits() assert op.params == %{ "Version" => "2011-01-01", "Action" => "DescribeAccountLimits" } end end
21.461538
52
0.616487
e9c083e9412366db609cf38d53c594590b0e1846
1,964
exs
Elixir
config/config.exs
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
14
2017-01-08T14:51:25.000Z
2022-03-14T09:23:17.000Z
config/config.exs
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
654
2017-05-23T22:55:21.000Z
2022-03-30T09:02:25.000Z
config/config.exs
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
4
2019-07-10T23:09:25.000Z
2020-02-09T12:14:00.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :atom_tweaks, code_with_heart: [ nam...
31.677419
86
0.770876
e9c09e66bf0afb47b5f8c2dfca1f8030f75b8c76
4,861
ex
Elixir
lib/coherence/plugs/authentication/token.ex
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
8
2019-01-15T08:57:07.000Z
2020-08-26T13:43:01.000Z
lib/coherence/plugs/authentication/token.ex
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
2
2019-05-29T17:49:10.000Z
2019-06-18T21:39:22.000Z
lib/coherence/plugs/authentication/token.ex
thefuture2092/coherence
377d91ff01622773b5a9ec39fadf1f8c27328879
[ "MIT" ]
22
2018-12-10T02:15:18.000Z
2020-10-06T08:42:22.000Z
defmodule Coherence.Authentication.Token do @moduledoc """ Implements token based authentication. To use add plug Coherence.Authentication.Token, source: :params, param: "auth_token" or plug Coherence.Authentication.Token, source: :session, param: "auth_token" or plug Coherence.Auth...
29.822086
92
0.672084
e9c0b11a178a618fd7c7cd66fed11f5f29320026
6,616
exs
Elixir
test/gnat_test.exs
unkmas/nats.ex
1610eed899322d4706ef1f0aa76214fd2f7cf90b
[ "MIT" ]
null
null
null
test/gnat_test.exs
unkmas/nats.ex
1610eed899322d4706ef1f0aa76214fd2f7cf90b
[ "MIT" ]
null
null
null
test/gnat_test.exs
unkmas/nats.ex
1610eed899322d4706ef1f0aa76214fd2f7cf90b
[ "MIT" ]
null
null
null
defmodule GnatTest do use ExUnit.Case, async: true doctest Gnat setup context do CheckForExpectedNatsServers.check(Map.keys(context)) :ok end test "connect to a server" do {:ok, pid} = Gnat.start_link() assert Process.alive?(pid) :ok = Gnat.stop(pid) end @tag :multi_server test "c...
32.915423
110
0.61714
e9c0b397c49129f32c48fe513c6a84e1620cea89
18,810
exs
Elixir
lib/logger/test/logger_test.exs
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
lib/logger/test/logger_test.exs
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
lib/logger/test/logger_test.exs
voltone/elixir
e208e1066e484c46726e4d931c18e54aba036f6e
[ "Apache-2.0" ]
null
null
null
defmodule LoggerTest do use Logger.Case require Logger setup_all do Logger.configure_backend(:console, metadata: [:application, :module]) on_exit(fn -> Logger.configure_backend(:console, metadata: []) end) end defmodule MyBackend do @behaviour :gen_event def init({MyBackend, :hello}) do ...
30.9375
96
0.611909
e9c0be40bc27964c4f31cbd890e597441a756ab9
342
exs
Elixir
test/club/brands/commands/rename_brand_test.exs
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
test/club/brands/commands/rename_brand_test.exs
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
34
2019-11-10T11:31:37.000Z
2019-11-27T21:26:48.000Z
test/club/brands/commands/rename_brand_test.exs
vheathen/club.wallprint.pro
d58d2409d8879d23ed4d60fe3b9c2e1bd82e924d
[ "MIT" ]
null
null
null
defmodule Club.Brands.Commands.RenameBrandTest do use Club.CommandCase, command: Club.Brands.Commands.RenameBrand, factory: :rename_brand required_fields([ :brand_uuid, :name ]) fields( :string, [ :name ] ) fields( Ecto.UUID, [ :brand_uuid ] ) basi...
12.666667
49
0.608187
e9c0da671e8d610b84960e3dac1a7b3b04b1091d
6,687
ex
Elixir
apps/mishka_content/lib/blog/tag.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/blog/tag.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
apps/mishka_content/lib/blog/tag.ex
mojtaba-naseri/mishka-cms
1fb35b49177b9b27f5e68c1b0bf9d72dc0ff9935
[ "Apache-2.0" ]
null
null
null
defmodule MishkaContent.Blog.Tag do alias MishkaDatabase.Schema.MishkaContent.BlogTag alias MishkaDatabase.Schema.MishkaContent.Blog.Post import Ecto.Query use MishkaDeveloperTools.DB.CRUD, module: BlogTag, error_atom: :blog_tag, repo: MishkaDatabase.Repo @type data_uuid() :: E...
33.10396
131
0.654554
e9c0f98d3a68b9f69017ad230465a86a35bc29f4
6,314
exs
Elixir
test/tracer/probe_test.exs
gabiz/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
125
2017-09-08T06:33:28.000Z
2022-03-09T10:48:04.000Z
test/tracer/probe_test.exs
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
3
2017-09-21T01:56:24.000Z
2020-10-29T13:27:44.000Z
test/tracer/probe_test.exs
Gazler/tracer
4659bf3cc9e0cc86e653794b800e9eb5bbe9f0a2
[ "MIT" ]
6
2017-09-08T21:41:32.000Z
2019-11-16T10:39:16.000Z
defmodule Tracer.Probe.Test do use ExUnit.Case alias Tracer.Probe alias Tracer.Clause import Tracer.Matcher test "new returns an error if does not include type argument" do assert Probe.new(param: :foo) == {:error, :missing_type} end test "new returns an error if receives an invalid type" do ass...
31.257426
82
0.625277
e9c108a968a10a070ccdc81a20516fe43eb2e24a
5,746
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/policy.ex
kyleVsteger/elixir-google-api
3a0dd498af066a4361b5b0fd66ffc04a57539488
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
108.415094
1,997
0.752523
e9c124c26dbf9eab67662667fc3e59b5229930dd
353
ex
Elixir
hackerrank/functional-programming/solve-me-first.ex
el-cardu/challenges
836453415e08b04e08d4e10d2f69257052551fa6
[ "Unlicense" ]
null
null
null
hackerrank/functional-programming/solve-me-first.ex
el-cardu/challenges
836453415e08b04e08d4e10d2f69257052551fa6
[ "Unlicense" ]
null
null
null
hackerrank/functional-programming/solve-me-first.ex
el-cardu/challenges
836453415e08b04e08d4e10d2f69257052551fa6
[ "Unlicense" ]
null
null
null
defmodule Solution do def getInteger() do input = IO.gets "" {integer, _} = Integer.parse input integer end def println(str) do IO.puts str end def sum(a, b) do a + b end end first = Solution.getInteger second = Solution.getInteger Solution.sum(f...
16.045455
47
0.592068
e9c1437a37f4a41ab1dbe52442d56e10448e83d9
2,551
ex
Elixir
clients/container_analysis/lib/google_api/container_analysis/v1/model/source_context.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/source_context.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/container_analysis/lib/google_api/container_analysis/v1/model/source_context.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
45.553571
182
0.741278
e9c1a095aef10a6a5da37efe29bf6758ef2cacdf
697
ex
Elixir
lib/tune/auth.ex
wojtekmach/tune
8b38bc629eeafb35aae920ac59b986323de800eb
[ "MIT" ]
206
2020-08-23T17:50:03.000Z
2022-03-28T04:39:01.000Z
lib/tune/auth.ex
wojtekmach/tune
8b38bc629eeafb35aae920ac59b986323de800eb
[ "MIT" ]
112
2020-08-21T08:26:38.000Z
2022-03-31T06:11:06.000Z
lib/tune/auth.ex
wojtekmach/tune
8b38bc629eeafb35aae920ac59b986323de800eb
[ "MIT" ]
15
2020-08-25T02:30:23.000Z
2021-12-16T14:19:35.000Z
defmodule Tune.Auth do @moduledoc """ Includes functions used to perform authentication. """ alias Tune.Spotify.{Schema.User, Session} @type http_session :: map() @spec load_user(http_session()) :: {:authenticated, Session.id(), User.t()} | {:error, term()} def load_user(%{"spotify_id" => session_id, "s...
29.041667
96
0.685796
e9c1cd549c51eca0bdaf3de28cd992c9803b94a1
185
exs
Elixir
priv/repo/migrations/20210228181756_remove_card_refill_ref_from_payments.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20210228181756_remove_card_refill_ref_from_payments.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
priv/repo/migrations/20210228181756_remove_card_refill_ref_from_payments.exs
jfcloutier/freegiving
2ab3821595996fc295c5b55515d6f60cbce05181
[ "Unlicense" ]
null
null
null
defmodule Freegiving.Repo.Migrations.RemoveCardRefillRefFromPayments do use Ecto.Migration def change do alter table("payments") do remove :card_refill end end end
18.5
71
0.751351
e9c1e86639433498878c973e38427c0f316e6366
409
exs
Elixir
test/books_web/views/error_view_test.exs
nickagliano/books
eec595ed4add9d678278785d9ab10106e1e426d1
[ "MIT" ]
null
null
null
test/books_web/views/error_view_test.exs
nickagliano/books
eec595ed4add9d678278785d9ab10106e1e426d1
[ "MIT" ]
null
null
null
test/books_web/views/error_view_test.exs
nickagliano/books
eec595ed4add9d678278785d9ab10106e1e426d1
[ "MIT" ]
null
null
null
defmodule BooksWeb.ErrorViewTest do use BooksWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(BooksWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do assert r...
27.266667
90
0.728606
e9c1f37f2c37fbcb83b2c2bb74cc7adac695966c
31
ex
Elixir
code examples/example-6-5.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
8
2016-08-14T12:35:16.000Z
2021-01-26T04:05:31.000Z
code examples/example-6-5.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
null
null
null
code examples/example-6-5.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
5
2016-08-18T22:12:19.000Z
2020-02-17T18:52:41.000Z
:lists.map(double,[1,2,3,4,5])
15.5
30
0.612903
e9c1fccfe7e2ad1969df68472ab4c29962787e3b
1,585
ex
Elixir
clients/game_services/lib/google_api/game_services/v1/model/fleet_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1/model/fleet_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/game_services/lib/google_api/game_services/v1/model/fleet_config.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
31.7
145
0.715457
e9c2093f218b9936e649849969a519aa221e1234
387
ex
Elixir
apps/cb_web/lib/cb_web.ex
CultivateHQ/cultivatarmobile
09148467d8569138e9b692a7b726b7090b2af5d6
[ "MIT" ]
16
2016-09-14T16:57:33.000Z
2017-11-11T16:31:14.000Z
apps/cb_web/lib/cb_web.ex
CultivateHQ/cultivatarmobile
09148467d8569138e9b692a7b726b7090b2af5d6
[ "MIT" ]
5
2016-09-08T07:14:44.000Z
2018-11-09T12:34:19.000Z
apps/cb_web/lib/cb_web.ex
CultivateHQ/cultivatarmobile
09148467d8569138e9b692a7b726b7090b2af5d6
[ "MIT" ]
null
null
null
defmodule CbWeb do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ worker(CbWeb.Router, []) ] opts = [strategy: :one_for_one, name: CbW...
22.764706
66
0.697674
e9c214c7accf5cc56ce5f002b6ae4b73e70b941f
956
ex
Elixir
apps/buzzcms/lib/buzzcms/schema/entry_type.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
apps/buzzcms/lib/buzzcms/schema/entry_type.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
41
2020-02-12T07:53:14.000Z
2020-03-30T02:18:14.000Z
apps/buzzcms/lib/buzzcms/schema/entry_type.ex
buzzcms/buzzcms
8ca8e6dea381350f94cc4a666448b5dba6676520
[ "Apache-2.0" ]
null
null
null
defmodule Buzzcms.Schema.EntryType do use Ecto.Schema import Ecto.Changeset @required_fields [:code, :display_name] @optional_fields [:is_product] schema "entry_type" do field :code, :string field :display_name, :string field :is_product, :boolean, default: false embeds_one :config, Buzzcms....
29.875
90
0.715481
e9c22d21c7f4141af97e14544d788686bdd76414
560
exs
Elixir
webrtc/videoroom_advanced/config/config.exs
membraneframework/membrane_demo
09143134d12a8307519a0a151498d5dfc869811f
[ "Apache-2.0" ]
84
2020-08-01T14:57:29.000Z
2022-03-27T13:28:23.000Z
webrtc/videoroom_advanced/config/config.exs
membraneframework/membrane_demo
09143134d12a8307519a0a151498d5dfc869811f
[ "Apache-2.0" ]
75
2020-08-24T08:01:53.000Z
2022-03-17T10:41:22.000Z
webrtc/videoroom_advanced/config/config.exs
membraneframework/membrane_demo
09143134d12a8307519a0a151498d5dfc869811f
[ "Apache-2.0" ]
17
2020-09-15T21:04:23.000Z
2022-03-31T07:43:48.000Z
import Config config :phoenix, :json_library, Jason config :membrane_videoroom_demo, VideoRoomWeb.Endpoint, pubsub_server: VideoRoom.PubSub config :membrane_videoroom_demo, version: System.get_env("VERSION", "unknown") config :logger, compile_time_purge_matching: [ [level_lower_than: :info], # Silence irr...
29.473684
91
0.764286
e9c23f7d7e27e525022b525bb7a56891391c1dc1
3,817
exs
Elixir
test/lib/timber/context_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/context_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
test/lib/timber/context_test.exs
montebrown/timber-elixir
1e177cc426422be3617479143038f5882037752f
[ "0BSD" ]
null
null
null
defmodule Timber.ContextTest do use Timber.TestCase alias Timber.Context describe "Timber.Context.add/2" do test "keyword list" do result = Context.add(%{}, key1: %{value1: "value"}, key2: %{value2: "value"}) assert result == %{custom: %{key1: %{value1: "value"}, key2: %{value2: "value"}}} e...
38.94898
98
0.642913
e9c28fda76da4eac733c7ad37504c33e014d63b9
2,816
exs
Elixir
test/utils_test.exs
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
486
2019-05-30T09:19:59.000Z
2021-04-28T07:51:31.000Z
test/utils_test.exs
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
131
2019-06-29T12:43:24.000Z
2021-04-24T19:40:07.000Z
test/utils_test.exs
m4hi2/crawly
b9e1bfffcc97e978023924e7aad53fc8a223aebf
[ "Apache-2.0" ]
52
2019-06-24T10:13:41.000Z
2021-03-28T07:36:42.000Z
defmodule UtilsTest do use ExUnit.Case setup do on_exit(fn -> :meck.unload() end) :ok end test "Request from url" do requests = Crawly.Utils.request_from_url("https://test.com") assert requests == expected_request("https://test.com") end test "Requests from urls" do requests = ...
22
77
0.572088
e9c29325c1c99c7f52cf0e6af6002dba9636f659
1,959
ex
Elixir
lib/gen_socket_client/serializer.ex
alboratech/phoenix_gen_socket_client
6d8176bb8d163b8047a41afb75f9b3d984753a4c
[ "MIT" ]
null
null
null
lib/gen_socket_client/serializer.ex
alboratech/phoenix_gen_socket_client
6d8176bb8d163b8047a41afb75f9b3d984753a4c
[ "MIT" ]
null
null
null
lib/gen_socket_client/serializer.ex
alboratech/phoenix_gen_socket_client
6d8176bb8d163b8047a41afb75f9b3d984753a4c
[ "MIT" ]
null
null
null
defmodule Phoenix.Channels.GenSocketClient.Serializer do @moduledoc """ Describes the serializer interface used in `Phoenix.Channels.GenSocketClient` to encode/decode messages. """ @doc "Invoked to decode the raw message." @callback decode_message(Phoenix.Channels.GenSocketClient.encoded_message(), Keyword...
33.20339
97
0.622256
e9c293392b21674d2565c5129ea986cc332b5108
2,821
ex
Elixir
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_block.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_block.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_block.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
38.643836
212
0.757887
e9c2d15ba919a7b78a95605f0242d91c32b5fb47
323
exs
Elixir
hippo-backend/priv/repo/migrations/20190116081153_create_projects.exs
Tmw/Hippo
6b100f4eb43c74dffff38dd974a00266f3dc99a2
[ "MIT" ]
8
2019-05-18T10:14:06.000Z
2021-07-31T20:58:55.000Z
hippo-backend/priv/repo/migrations/20190116081153_create_projects.exs
Tmw/Hippo
6b100f4eb43c74dffff38dd974a00266f3dc99a2
[ "MIT" ]
7
2019-07-20T17:48:03.000Z
2022-02-26T10:41:56.000Z
hippo-backend/priv/repo/migrations/20190116081153_create_projects.exs
Tmw/Hippo
6b100f4eb43c74dffff38dd974a00266f3dc99a2
[ "MIT" ]
1
2019-07-04T02:30:09.000Z
2019-07-04T02:30:09.000Z
defmodule Hippo.Repo.Migrations.CreateProjects do @moduledoc false use Ecto.Migration def change do create table(:projects, primary_key: false) do add :id, :binary_id, null: false, primary_key: true add :title, :string add :description, :string, size: 500 timestamps() end end e...
21.533333
57
0.681115
e9c3082e0c57bfc0154b6b11a5fd185a0b02f804
1,928
ex
Elixir
lib/cldr/backend/compiler.ex
elixir-cldr/cldr
36bfda460e0e9fd7cc1f935dd89df88a746b0c8f
[ "Apache-2.0" ]
179
2019-06-16T09:16:00.000Z
2022-03-30T04:04:55.000Z
lib/cldr/backend/compiler.ex
elixir-cldr/cldr
36bfda460e0e9fd7cc1f935dd89df88a746b0c8f
[ "Apache-2.0" ]
46
2019-06-09T02:35:58.000Z
2022-03-08T10:39:08.000Z
lib/cldr/backend/compiler.ex
elixir-cldr/cldr
36bfda460e0e9fd7cc1f935dd89df88a746b0c8f
[ "Apache-2.0" ]
14
2020-03-03T16:35:50.000Z
2022-02-27T14:01:40.000Z
defmodule Cldr.Backend.Compiler do @moduledoc false @doc false defmacro __before_compile__(env) do Cldr.Config.maybe_deprecate_global_config!() config = Module.get_attribute(env.module, :cldr_opts) |> Keyword.put(:backend, env.module) |> Cldr.Config.config_from_opts() |> Cldr.Con...
35.703704
96
0.707469
e9c30c616de481fee69e2d2da2093081f5ffc63c
2,648
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/affine_transform.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/slides/lib/google_api/slides/v1/model/affine_transform.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/slides/lib/google_api/slides/v1/model/affine_transform.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
34.38961
96
0.66503
e9c343b40156dfc0afb697ca8aba8996d053045d
823
exs
Elixir
config/test.exs
gcbeltramini/bors-ng
c51708a3f679a9e24a903b2a76e90cf38576974a
[ "Apache-2.0" ]
2
2022-03-14T03:44:28.000Z
2022-03-14T03:48:02.000Z
config/test.exs
seanpm2001/bors-ng
2482df1c2f4680b33534620571f04075b6b4390a
[ "Apache-2.0" ]
null
null
null
config/test.exs
seanpm2001/bors-ng
2482df1c2f4680b33534620571f04075b6b4390a
[ "Apache-2.0" ]
null
null
null
import Config config :bors, BorsNG.Database.RepoMysql, adapter: Ecto.Adapters.MyXQL, username: "root", password: "", database: "bors_test", hostname: {:system, "MYSQL_HOST", "localhost"}, pool: Ecto.Adapters.SQL.Sandbox, priv: "priv/repo" config :bors, BorsNG.Database.RepoPostgres, adapter: Ecto.Adapt...
28.37931
96
0.73147
e9c350ba3b0f1dd48881c85b233635b283a3a4fd
734
ex
Elixir
lib/kwerk/posting/schedule.ex
johndavedecano/kwerk
a9e5928c2c5eb7a9a8dfaba30450627c257832a3
[ "MIT" ]
2
2018-09-23T08:45:07.000Z
2020-01-20T15:47:45.000Z
lib/kwerk/posting/schedule.ex
johndavedecano/kwerk
a9e5928c2c5eb7a9a8dfaba30450627c257832a3
[ "MIT" ]
null
null
null
lib/kwerk/posting/schedule.ex
johndavedecano/kwerk
a9e5928c2c5eb7a9a8dfaba30450627c257832a3
[ "MIT" ]
null
null
null
defmodule Kwerk.Posting.PostSchedule do use Ecto.Schema import Ecto.Changeset alias Kwerk.Posting.Post schema "schedules" do field :mon, :boolean, default: false field :tue, :boolean, default: false field :wed, :boolean, default: false field :thu, :boolean, default: false field :fri, :bool...
28.230769
78
0.663488
e9c35bf369f63d63e56138375b72802f6d78b0b6
183
ex
Elixir
lib/plenario_web/plugs/field_plugs.ex
vforgione/plenario2
001526e5c60a1d32794a18f3fd65ead6cade1a29
[ "Apache-2.0" ]
13
2017-12-11T13:59:42.000Z
2020-11-16T21:52:31.000Z
lib/plenario_web/plugs/field_plugs.ex
vforgione/plenario2
001526e5c60a1d32794a18f3fd65ead6cade1a29
[ "Apache-2.0" ]
310
2017-11-13T22:52:26.000Z
2018-11-19T17:49:30.000Z
lib/plenario_web/plugs/field_plugs.ex
vforgione/plenario2
001526e5c60a1d32794a18f3fd65ead6cade1a29
[ "Apache-2.0" ]
3
2017-12-05T00:36:12.000Z
2020-03-10T15:15:29.000Z
defmodule PlenarioWeb.FieldPlugs do import Plug.Conn alias Plug.Conn def assign_dsid(%Conn{params: %{"data_set_id" => dsid}} = conn, _opts), do: assign(conn, :dsid, dsid) end
22.875
103
0.710383
e9c373d1f87476b6ea8c7d9cd71966498ed3a605
1,996
exs
Elixir
test/ex_okex/ws_test.exs
acuityinnovations/ex_okex
52acf16e8d00446ca32607ccb2cd75add0acaceb
[ "MIT" ]
null
null
null
test/ex_okex/ws_test.exs
acuityinnovations/ex_okex
52acf16e8d00446ca32607ccb2cd75add0acaceb
[ "MIT" ]
4
2019-04-12T17:13:00.000Z
2020-04-06T07:28:47.000Z
test/ex_okex/ws_test.exs
acuityinnovations/ex_okex
52acf16e8d00446ca32607ccb2cd75add0acaceb
[ "MIT" ]
5
2019-04-10T00:41:17.000Z
2021-12-23T14:49:02.000Z
defmodule WsWrapper do @moduledoc false require Logger use ExOkex.Ws end defmodule ExOkex.WsTest do @moduledoc false use ExUnit.Case, async: false import ExUnit.CaptureLog setup do channels = ["futures/trade:BTC-USD-190904"] {:ok, socket} = WsWrapper.start_link(%{ channels: cha...
25.922078
93
0.609719
e9c3a169c6b0fd77b2026edcee85e8dc4644975f
985
ex
Elixir
test_server/lib/test_server.ex
xaptum-eng/phoenix-channel-client
6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495
[ "MIT" ]
2
2020-10-22T14:54:39.000Z
2020-11-04T21:52:06.000Z
test_server/lib/test_server.ex
xaptum-eng/phoenix-channel-client
6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495
[ "MIT" ]
null
null
null
test_server/lib/test_server.ex
xaptum-eng/phoenix-channel-client
6adcfe3cd18c867bbf9c6a7aa6a3ceb5e0b77495
[ "MIT" ]
null
null
null
defmodule TestServer do use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint when...
32.833333
88
0.724873
e9c3bf3855f165f9deaccb6fdbf0c7a25cb46a7c
1,728
ex
Elixir
clients/health_care/lib/google_api/health_care/v1beta1/model/import_messages_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-10-01T09:20:41.000Z
2021-10-01T09:20:41.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/import_messages_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/health_care/lib/google_api/health_care/v1beta1/model/import_messages_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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, s...
36.765957
281
0.762153
e9c3f119eea535c1b78f8ceb4512f74460ec4d93
2,617
exs
Elixir
test/nostrum/cache/user_cache_test.exs
mckethanor/nostrum
13a3927c872c1540266e9f1ba4bcad4182baa9bf
[ "MIT" ]
637
2017-03-07T11:25:35.000Z
2022-03-31T13:37:51.000Z
test/nostrum/cache/user_cache_test.exs
mckethanor/nostrum
13a3927c872c1540266e9f1ba4bcad4182baa9bf
[ "MIT" ]
372
2017-03-07T20:42:03.000Z
2022-03-30T22:46:46.000Z
test/nostrum/cache/user_cache_test.exs
mckethanor/nostrum
13a3927c872c1540266e9f1ba4bcad4182baa9bf
[ "MIT" ]
149
2017-03-07T12:11:58.000Z
2022-03-19T22:11:51.000Z
defmodule Nostrum.Cache.UserCacheTest do use ExUnit.Case, async: true @cache_modules [ # Implementations Nostrum.Cache.UserCache.ETS ] for cache <- @cache_modules do defmodule :"#{cache}Test" do alias Nostrum.Struct.User use ExUnit.Case # this is needed because otherwise we cann...
26.979381
87
0.583875
e9c412b4601fef23eb897475a605f78cd932e0e2
135
ex
Elixir
web/queries/base_query.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
web/queries/base_query.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
web/queries/base_query.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
defmodule Caravan.BaseQuery do defmacro __using__(_opts) do quote do import Ecto import Ecto.Query end end end
15
30
0.681481
e9c42724daaadc6b7b6263b2b0fcf6927859df38
1,565
ex
Elixir
apps/memo_web/lib/memo_web.ex
michaeljbishop/memo_app
58a2a547a6e40eb518ea8b193514fea368e80704
[ "MIT" ]
null
null
null
apps/memo_web/lib/memo_web.ex
michaeljbishop/memo_app
58a2a547a6e40eb518ea8b193514fea368e80704
[ "MIT" ]
null
null
null
apps/memo_web/lib/memo_web.ex
michaeljbishop/memo_app
58a2a547a6e40eb518ea8b193514fea368e80704
[ "MIT" ]
null
null
null
defmodule MemoWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use MemoWeb, :controller use MemoWeb, :view The definitions below will be executed for every view, controller, etc, so k...
23.014706
69
0.679233
e9c441eafe42dc538ec356b5b51c8f961eac5923
932
ex
Elixir
test/support/test_helpers.ex
rayrrr/fameliphotos
cc928abdc6d761d76113067432e9d6d0fcb2507b
[ "MIT" ]
6
2019-10-08T01:30:08.000Z
2020-10-01T04:49:33.000Z
test/support/test_helpers.ex
rayrrr/fameliphotos
cc928abdc6d761d76113067432e9d6d0fcb2507b
[ "MIT" ]
null
null
null
test/support/test_helpers.ex
rayrrr/fameliphotos
cc928abdc6d761d76113067432e9d6d0fcb2507b
[ "MIT" ]
1
2019-11-08T22:58:31.000Z
2019-11-08T22:58:31.000Z
defmodule PhotoGallery.TestHelpers do alias PhotoGallery.{Repo, Users.User, Gallery.Photo} def user_fixture(attrs \\ %{}) do params = attrs |> Enum.into(%{ email: "bob#{System.unique_integer([:positive])}@example.com", password: "abcdefghijk", confirm_password: "abcdefghijk"...
22.731707
70
0.563305
e9c444b4c8a75749074c909db1453e0490bd4557
1,742
ex
Elixir
identicon/lib/identicon.ex
brunomenezes/elixir-projects
1bc365131bf0f4d10fc99d14813a94fc7178b1e5
[ "Apache-2.0" ]
null
null
null
identicon/lib/identicon.ex
brunomenezes/elixir-projects
1bc365131bf0f4d10fc99d14813a94fc7178b1e5
[ "Apache-2.0" ]
null
null
null
identicon/lib/identicon.ex
brunomenezes/elixir-projects
1bc365131bf0f4d10fc99d14813a94fc7178b1e5
[ "Apache-2.0" ]
null
null
null
defmodule Identicon do def main(input) do input |> hash_input |> pick_color |> build_grid |> filter_odd_squares |> build_pixel_map |> draw_image |> save_image(input) end def save_image(image, input) do File.write("#{input}.png", image) end def draw_image(%Id...
23.863014
73
0.619403
e9c44536b8a4e5dca523dd35bf9a754c76487842
726
exs
Elixir
test/renderer_test.exs
zkwentz/mobiledoc-text-renderer-elixir
5aff1c32108439b966918c96de7c9c8bf7dfdd00
[ "MIT" ]
null
null
null
test/renderer_test.exs
zkwentz/mobiledoc-text-renderer-elixir
5aff1c32108439b966918c96de7c9c8bf7dfdd00
[ "MIT" ]
null
null
null
test/renderer_test.exs
zkwentz/mobiledoc-text-renderer-elixir
5aff1c32108439b966918c96de7c9c8bf7dfdd00
[ "MIT" ]
null
null
null
defmodule MobileDoc.Text.RendererTest do use ExUnit.Case import MobileDoc.Text.Renderer test "renders a v0.3.0 mobiledoc as text" do mobiledoc = %{ "version" => "0.3.0", "atoms" => [], "cards" => [], "markups" => [], "sections" => [ [1, "P", [ [0, [], 0, "hello...
19.621622
46
0.453168
e9c4bd1ffe1e5acbffb941df2b2185cf531bdbac
148
ex
Elixir
lib/mailer/renderer.ex
szTheory/mailer
fb791115d43f31bf2a056d3c970b21865db29c57
[ "Apache-2.0" ]
44
2015-01-08T15:23:39.000Z
2020-01-13T20:41:05.000Z
lib/mailer/renderer.ex
szTheory/mailer
fb791115d43f31bf2a056d3c970b21865db29c57
[ "Apache-2.0" ]
24
2015-01-03T09:50:31.000Z
2017-11-03T14:31:14.000Z
lib/mailer/renderer.ex
szTheory/mailer
fb791115d43f31bf2a056d3c970b21865db29c57
[ "Apache-2.0" ]
25
2015-01-03T09:51:56.000Z
2020-03-03T18:06:31.000Z
defmodule Mail.Renderer do def render(template, data) do {:ok, file} = File.read(template) EEx.eval_string(file, assigns: data) end end
21.142857
40
0.695946
e9c4d08889eb0d4c58894740a54d87160fb36844
2,136
ex
Elixir
lib/core/last_value.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
lib/core/last_value.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
lib/core/last_value.ex
andersonmcook/prom_ex
4913b15be186db29ee9fe800bf6baf6807e1902d
[ "MIT" ]
null
null
null
defmodule PromEx.TelemetryMetricsPrometheus.Core.LastValue do @moduledoc false alias Telemetry.Metrics alias PromEx.TelemetryMetricsPrometheus.Core.EventHandler @type config :: %{ keep: Metrics.keep(), measurement: atom(), metric_name: String.t(), name: Metrics.normaliz...
30.514286
88
0.582397
e9c4ee610fadb6ddd3d111c4101cb19f8bb19530
1,739
exs
Elixir
test/integration/test_helper.exs
PhilNorman2/valkyrie
4f733965492e9a746a4dae217215b7270c24d0c0
[ "Apache-2.0" ]
null
null
null
test/integration/test_helper.exs
PhilNorman2/valkyrie
4f733965492e9a746a4dae217215b7270c24d0c0
[ "Apache-2.0" ]
null
null
null
test/integration/test_helper.exs
PhilNorman2/valkyrie
4f733965492e9a746a4dae217215b7270c24d0c0
[ "Apache-2.0" ]
null
null
null
ExUnit.start() defmodule TestHelpers do require Elsa.Message require Logger alias SmartCity.TestDataGenerator, as: TDG def clear_timing(%SmartCity.Data{} = data_message) do Map.update!(data_message, :operational, fn _ -> %{timing: []} end) end def get_dlq_messages_from_kafka(topic, endpoints) do ...
23.186667
70
0.645773
e9c50cbe3cf816fcf41298ea4b9b2dfb5c8b23ec
1,841
exs
Elixir
rel/config.exs
Youthink/short_url
b42450e8ea4ef8ea387291a73e3435eaa8fbfccd
[ "MIT" ]
170
2018-02-06T05:04:25.000Z
2021-01-27T07:45:25.000Z
rel/config.exs
imfycc/short_url
b42450e8ea4ef8ea387291a73e3435eaa8fbfccd
[ "MIT" ]
3
2021-03-09T01:06:36.000Z
2022-02-09T22:57:27.000Z
rel/config.exs
Youthink/short_url
b42450e8ea4ef8ea387291a73e3435eaa8fbfccd
[ "MIT" ]
26
2018-02-26T06:53:10.000Z
2020-11-08T23:02:13.000Z
# Import all plugins from `rel/plugins` # They can then be used by adding `plugin MyPlugin` to # either an environment, or release definition, where # `MyPlugin` is the name of the plugin module. ~w(rel plugins *.exs) |> Path.join() |> Path.wildcard() |> Enum.map(&Code.eval_file(&1)) use Distillery.Releases.Config, ...
32.875
81
0.740359
e9c514eae61f3f1af98439a87337fd0dab534371
414
ex
Elixir
lib/liveman_web/views/v1/survey_view.ex
nimblehq/liveman-demo-api
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
null
null
null
lib/liveman_web/views/v1/survey_view.ex
nimblehq/liveman-demo-api
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
19
2021-07-02T08:14:52.000Z
2021-07-30T09:33:12.000Z
lib/liveman_web/views/v1/survey_view.ex
nimblehq/liveman
e184349983f949c8434b8651f9223db597ef1025
[ "MIT" ]
null
null
null
defmodule LivemanWeb.V1.SurveyView do use JSONAPI.View, type: "survey" def fields do [ :id, :title, :description, :type, :thank_email_above_threshold, :thank_email_below_threshold, :is_active, :cover_image_url, :created_at, :active_at, :inactive...
17.25
43
0.623188
e9c52409a7df8ffecbb7940c9fda3dea4715dad0
685
exs
Elixir
ch7/weather3.exs
rafanoronha/prog_elixir_1_6
5ae2137da4ffdb6de1c9b164812ed6e43c0922d3
[ "MIT" ]
null
null
null
ch7/weather3.exs
rafanoronha/prog_elixir_1_6
5ae2137da4ffdb6de1c9b164812ed6e43c0922d3
[ "MIT" ]
null
null
null
ch7/weather3.exs
rafanoronha/prog_elixir_1_6
5ae2137da4ffdb6de1c9b164812ed6e43c0922d3
[ "MIT" ]
null
null
null
defmodule WeatherHistory do def for_location([], _target_loc) do [] end def for_location([ head = [_, target_loc, _, _] | tail ], target_loc) do [ [ head ] | for_location(tail, target_loc) ] end def for_location([ _ | tail ], target_loc) do for_location(tail, target_loc) end def test_data do...
25.37037
74
0.572263
e9c525132cb612ddf7f1c49360b1ae360cea9d45
1,143
ex
Elixir
lib/kube/configuration_overlay.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
lib/kube/configuration_overlay.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
lib/kube/configuration_overlay.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule Kube.ConfigurationOverlay do use Kazan.Model defmodule OverlayUpdate do use Kazan.Model defmodel "OverlayUpdate", "platform.plural.sh", "v1alpha1" do property :path, "path", {:array, :string} end end defmodule Spec do use Kazan.Model defmodel "ConfigurationOverlaySpec", "...
29.307692
97
0.643045
e9c5780f6debb6525bdbc38f67009d701e45c5ca
709
ex
Elixir
web/gettext.ex
utkr98jais/phoenix-battleship
53b43d44a69c5acb4b452b793cce64980a0302df
[ "MIT" ]
569
2016-04-21T09:25:49.000Z
2022-03-13T22:56:18.000Z
web/gettext.ex
utkr98jais/phoenix-battleship
53b43d44a69c5acb4b452b793cce64980a0302df
[ "MIT" ]
10
2016-04-22T05:33:43.000Z
2018-04-19T21:51:27.000Z
web/gettext.ex
utkr98jais/phoenix-battleship
53b43d44a69c5acb4b452b793cce64980a0302df
[ "MIT" ]
80
2016-04-21T18:53:25.000Z
2020-12-01T13:32:17.000Z
defmodule Battleship.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](http://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import Battleship.Gettext # Simple translation gettext "Here is th...
28.36
71
0.681241
e9c58b1d42e9037265b0220e77d0cf4ff5948b6d
3,267
exs
Elixir
test/ex_pix_brcode/payments_test.exs
joaogularte/ex-pix-brcode
2cd0d67db06cb5a250fa42cf5b4921ed84559b3e
[ "Apache-2.0" ]
17
2020-11-27T14:58:17.000Z
2021-12-17T12:52:19.000Z
test/ex_pix_brcode/payments_test.exs
joaogularte/ex-pix-brcode
2cd0d67db06cb5a250fa42cf5b4921ed84559b3e
[ "Apache-2.0" ]
2
2020-11-28T18:33:03.000Z
2022-01-06T17:10:00.000Z
test/ex_pix_brcode/payments_test.exs
joaogularte/ex-pix-brcode
2cd0d67db06cb5a250fa42cf5b4921ed84559b3e
[ "Apache-2.0" ]
6
2020-11-28T07:10:51.000Z
2021-12-16T16:39:28.000Z
defmodule ExPixBRCode.PaymentTest do use ExUnit.Case, async: true alias ExPixBRCode.BRCodes.Decoder alias ExPixBRCode.BRCodes.Models.BRCode alias ExPixBRCode.Payments alias ExPixBRCode.Payments.Models.StaticPixPayment describe "from_brcode/2 for static payments" do test "successfully cast static payme...
37.551724
156
0.555556
e9c5b607e26e4522b64c9ac513aacdafe23ad01f
1,655
exs
Elixir
test/phoenix_html/safe_test.exs
programisti/phoenix_html
082c785f0487098d6099ae254c502c5e7a6187e3
[ "MIT" ]
310
2015-05-03T13:08:41.000Z
2022-03-11T14:53:20.000Z
test/phoenix_html/safe_test.exs
richardkmichael/phoenix_html
4c7781d00307d1eb95c68edf80bfb65733f47a95
[ "MIT" ]
347
2015-05-03T19:01:00.000Z
2022-02-22T11:56:17.000Z
test/phoenix_html/safe_test.exs
richardkmichael/phoenix_html
4c7781d00307d1eb95c68edf80bfb65733f47a95
[ "MIT" ]
268
2015-05-03T18:53:32.000Z
2022-03-22T14:15:54.000Z
defmodule Phoenix.HTML.SafeTest do use ExUnit.Case, async: true alias Phoenix.HTML.Safe test "impl for binaries" do assert Safe.to_iodata("<foo>") == [[[] | "&lt;"], "foo" | "&gt;"] end test "impl for io data" do assert Safe.to_iodata('<foo>') == ["&lt;", 102, 111, 111, "&gt;"] assert Safe.to_i...
25.461538
73
0.56435
e9c5bffb11d9065832498b794eb6de6203b3d78e
2,082
exs
Elixir
installer/test/phx_new_web_test.exs
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
1
2020-07-23T18:03:42.000Z
2020-07-23T18:03:42.000Z
installer/test/phx_new_web_test.exs
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
1
2020-05-26T19:38:18.000Z
2020-05-26T19:38:18.000Z
installer/test/phx_new_web_test.exs
matthewp/phoenix
af86b95db365faada58d326e98de65c811690bc7
[ "MIT" ]
1
2020-08-31T15:29:31.000Z
2020-08-31T15:29:31.000Z
Code.require_file "mix_helper.exs", __DIR__ defmodule Mix.Tasks.Phx.New.WebTest do use ExUnit.Case import MixHelper import ExUnit.CaptureIO @app_name "phx_web" setup do # The shell asks to install deps. # We will politely say not. send self(), {:mix_shell_input, :yes?, false} :ok end t...
31.074627
105
0.632085
e9c5d0466f916ae34d7116b89d794aeaf50c3008
734
exs
Elixir
test/tradehub/tx/withdraw_delegator_rewards_test.exs
anhmv/tradehub-api-elixir
6ec87c2b07188d4140506011e2b28db4d372ac6d
[ "MIT" ]
5
2021-05-04T16:54:25.000Z
2021-12-15T06:53:24.000Z
test/tradehub/tx/withdraw_delegator_rewards_test.exs
anhmv/tradehub-api-elixir
6ec87c2b07188d4140506011e2b28db4d372ac6d
[ "MIT" ]
5
2021-05-19T04:49:00.000Z
2021-06-01T13:36:50.000Z
test/tradehub/tx/withdraw_delegator_rewards_test.exs
anhmv/tradehub-elixir
6ec87c2b07188d4140506011e2b28db4d372ac6d
[ "MIT" ]
null
null
null
defmodule TradehubTest.Tx.WithdrawDelegatorRewardsTest do use ExUnit.Case, async: true alias Tradehub.Tx.MsgInvalid alias Tradehub.Tx.WithdrawDelegatorRewards import Tradehub.Tx.WithdrawDelegatorRewards setup do { :ok, payload: %WithdrawDelegatorRewards{ delegator_address: "a", ...
26.214286
87
0.701635
e9c60af568120c2d5ce7be201cd79d12825c9aef
4,914
ex
Elixir
lib/zam/search/search.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
11
2019-05-27T23:43:46.000Z
2021-08-24T06:37:23.000Z
lib/zam/search/search.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
1
2020-05-17T04:51:52.000Z
2021-03-25T15:38:33.000Z
lib/zam/search/search.ex
praxis-of-nines/zam-search
d58261f35a22b7fd84df83674e74d59c925461f5
[ "MIT" ]
2
2019-05-27T23:43:52.000Z
2020-10-15T09:09:58.000Z
defmodule Zam.Search do @moduledoc """ Search the index using basic defaults """ alias Giza.SphinxQL alias Giza.Structs.SphinxqlResponse #alias SimpleStatEx, as: SSX @page_size 20 @image_page_size 33 @doc """ The basic search among indexed webpages. Note if blank search requested the search is ...
29.076923
122
0.598291
e9c61a1fc950b0caa2864c9fda663b47d7714aeb
953
ex
Elixir
gallows/lib/gallows/application.ex
wronfim/hangman_game
c4dc4b9f122e773fe87ac4dc88206b792c1b239e
[ "MIT" ]
null
null
null
gallows/lib/gallows/application.ex
wronfim/hangman_game
c4dc4b9f122e773fe87ac4dc88206b792c1b239e
[ "MIT" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
dave-course/hangman_proj/gallows/lib/gallows/application.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
defmodule Gallows.Application do use Application # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec # Define workers and child supervisors to be supervised children = [ # Start the endpoint when the ap...
31.766667
85
0.720881
e9c621aa63436e30beabd7f5d1c864efb480b862
1,114
ex
Elixir
test/support/conn_case.ex
rdiego26/elixir-web-hello-world
c584699a7266414d5a6229f977dcb21282061e3a
[ "MIT" ]
null
null
null
test/support/conn_case.ex
rdiego26/elixir-web-hello-world
c584699a7266414d5a6229f977dcb21282061e3a
[ "MIT" ]
null
null
null
test/support/conn_case.ex
rdiego26/elixir-web-hello-world
c584699a7266414d5a6229f977dcb21282061e3a
[ "MIT" ]
null
null
null
defmodule HelloWorld.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build and query models. Finally, if the test case interacts with the ...
24.755556
72
0.709156
e9c628479e32581855091b3f87dfd0731796da2c
849
ex
Elixir
lib/keriex/verifier.ex
m00sey/keriex
cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8
[ "Apache-2.0" ]
null
null
null
lib/keriex/verifier.ex
m00sey/keriex
cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8
[ "Apache-2.0" ]
null
null
null
lib/keriex/verifier.ex
m00sey/keriex
cb1442b5793f2c3e2ea381eeb1cab9dea14c39a8
[ "Apache-2.0" ]
null
null
null
defmodule Keriex.Verifier do @moduledoc """ A verifier is an entity or component that cryptographically verifies the signature(s) on an event message. In order to verify a signature, a verifier must first determine which set of keys are or were the controlling set for an identifier when an event was issue...
56.6
125
0.784452
e9c682ffe2d53bc486f9493306b9e68808cd9722
73
exs
Elixir
test/lib/code_corps_web/views/layout_view_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
275
2015-06-23T00:20:51.000Z
2021-08-19T16:17:37.000Z
test/lib/code_corps_web/views/layout_view_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
1,304
2015-06-26T02:11:54.000Z
2019-12-12T21:08:00.000Z
test/lib/code_corps_web/views/layout_view_test.exs
fikape/code-corps-api
c21674b0b2a19fa26945c94268db8894420ca181
[ "MIT" ]
140
2016-01-01T18:19:47.000Z
2020-11-22T06:24:47.000Z
defmodule CodeCorpsWeb.LayoutViewTest do use CodeCorpsWeb.ViewCase end
18.25
40
0.863014
e9c687f15d669ba180d38a945790fbf56aa94053
1,097
ex
Elixir
lib/nudge_api_web/schema/video_call_type.ex
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
lib/nudge_api_web/schema/video_call_type.ex
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
lib/nudge_api_web/schema/video_call_type.ex
feelja-tech/feelja-api
03ce15430460cf2dac24a7740242c7e5ac5c5804
[ "MIT" ]
null
null
null
defmodule NudgeApiWeb.Schema.VideoCallType do use Absinthe.Schema.Notation import Ecto.Query alias NudgeApi.Repo alias NudgeApi.Matches.{UserMeeting, Meeting} alias NudgeApiWeb.Resolvers.Queries object :video_call do field :id, :id, resolve: fn parent, _, _ -> {:ok, parent.video_call_id} end fie...
29.648649
97
0.643573
e9c6a4f3f23a71b8cc1bc8aa744bcecc57a88f1d
2,439
ex
Elixir
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/location.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/location.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/cloud_kms/lib/google_api/cloud_kms/v1/model/location.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
40.65
204
0.710947
e9c6a9efa4fdbaed7e8b3bd2874d62f7d92aa210
304
ex
Elixir
TheLittleElixir/lib/ex2.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
TheLittleElixir/lib/ex2.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
TheLittleElixir/lib/ex2.ex
enilsen16/elixir
b4d1d45858a25e4beb39e07de8685f3d93d6a520
[ "MIT" ]
null
null
null
defmodule EX2 do def ping do receive do {sender, :ping} -> send(sender ,{self, :pong}) _ -> IO.puts "Errors!" end end def pong do receive do {sender, :pong} -> send(sender, {self, :ping}) _ -> IO.puts "Errors!" end end end
15.2
35
0.483553
e9c6c33a18fe36addd7ff5c8d8a21a81e471d943
445
exs
Elixir
test/pages_test.exs
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
5
2018-04-30T09:48:17.000Z
2020-05-01T10:20:15.000Z
test/pages_test.exs
BalalaikaIndustries/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
7
2018-04-28T06:39:10.000Z
2018-04-28T07:31:59.000Z
test/pages_test.exs
ayrat-playground/balalaika_bear
bcccdd4a0caf075e133ef4f162eb13e3d28b2d65
[ "MIT" ]
2
2018-04-27T19:42:04.000Z
2020-05-01T10:20:02.000Z
defmodule BalalaikaBear.PagesTest do use ExUnit.Case use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney test "gets pages info" do use_cassette "pages_get" do params = %{ access_token: "40853ffcf747a94c186344d51c72097855f8d39cb0ce5f31827f48e7261274640856c3547b2f4c7c5b933", owner_id...
24.722222
98
0.694382
e9c70a87cab48970f7363bda4b713911d178feaa
133
exs
Elixir
config/test.exs
uavaustin/flight-status
8ccc3c21f7135aa2a2d600a4e66fc8f2995ac241
[ "MIT" ]
null
null
null
config/test.exs
uavaustin/flight-status
8ccc3c21f7135aa2a2d600a4e66fc8f2995ac241
[ "MIT" ]
null
null
null
config/test.exs
uavaustin/flight-status
8ccc3c21f7135aa2a2d600a4e66fc8f2995ac241
[ "MIT" ]
null
null
null
use Mix.Config config :flight_status, FlightStatusWeb.Endpoint, http: [port: 4001], server: false config :logger, level: :warn
16.625
48
0.736842
e9c7137f2b112d47b6c0cc2bcc8459a2d7d3829b
6,285
ex
Elixir
test/helper/udp.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
90
2017-09-26T12:20:06.000Z
2022-01-30T17:58:11.000Z
test/helper/udp.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
39
2017-01-20T08:54:13.000Z
2017-09-13T11:30:14.000Z
test/helper/udp.ex
glassechidna/MongooseICE
c2ea99f47460fd7293b51eaa72fbce122a60affe
[ "Apache-2.0" ]
13
2018-03-29T07:03:25.000Z
2022-03-06T10:21:45.000Z
defmodule Helper.UDP do use ExUnit.Case use Helper.Macros alias Jerboa.Params alias Jerboa.ChannelData alias Jerboa.Format alias Jerboa.Format.Body.Attribute.{Username, RequestedTransport, XORPeerAddress, ChannelNumber} @recv_timeout 5_000 @default_user "user" ...
27.207792
84
0.640414
e9c720b2b13a86d24751eb0f56ffad25cae3d6e0
516
ex
Elixir
lib/hologram/compiler/transformers/relaxed_boolean_not_operator_transformer.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
40
2022-01-19T20:27:36.000Z
2022-03-31T18:17:41.000Z
lib/hologram/compiler/transformers/relaxed_boolean_not_operator_transformer.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
42
2022-02-03T22:52:43.000Z
2022-03-26T20:57:32.000Z
lib/hologram/compiler/transformers/relaxed_boolean_not_operator_transformer.ex
gregjohnsonsaltaire/hologram
aa8e9ea0d599def864c263cc37cc8ee31f02ac4a
[ "MIT" ]
3
2022-02-10T04:00:37.000Z
2022-03-08T22:07:45.000Z
defmodule Hologram.Compiler.RelaxedBooleanNotOperatorTransformer do alias Hologram.Compiler.{Context, Transformer} alias Hologram.Compiler.IR.RelaxedBooleanNotOperator def transform({:__block__, _, [{:!, _, [value]}]}, %Context{} = context) do build_ir(value, context) end def transform({:!, _, [value]},...
27.157895
77
0.713178
e9c721aa974dfad9425cd4953a414717055bf01b
843
ex
Elixir
spec/arkenston/helpers/graphql_helper.ex
dolfinus/diamantum-backend
efa9da3835befa58bbcd5f3965ce4431ed8c912f
[ "MIT" ]
1
2019-04-29T18:07:08.000Z
2019-04-29T18:07:08.000Z
spec/arkenston/helpers/graphql_helper.ex
dolfinus/diamantum-backend
efa9da3835befa58bbcd5f3965ce4431ed8c912f
[ "MIT" ]
126
2020-12-03T15:39:31.000Z
2022-03-30T22:02:23.000Z
spec/arkenston/helpers/graphql_helper.ex
dolfinus/arkenston-backend
258880936dce673eb15db0c4b52e68d3d40c58ff
[ "MIT" ]
null
null
null
defmodule GraphqlHelper do import Plug.Conn import Phoenix.ConnTest import Indifferent.Sigils @endpoint ArkenstonWeb.Endpoint defmacro __using__(_opts) do current = __MODULE__ quote do import Plug.Conn import Phoenix.ConnTest import unquote(current) end end def make_query(co...
21.075
64
0.640569
e9c72fd72606c50547981f59072352b9b1ef2a9b
2,628
ex
Elixir
lib/raxx/router.ex
NineFX/raxx
620f3ee0cb0925e6dad225c63e32379b647846a1
[ "Apache-2.0" ]
null
null
null
lib/raxx/router.ex
NineFX/raxx
620f3ee0cb0925e6dad225c63e32379b647846a1
[ "Apache-2.0" ]
null
null
null
lib/raxx/router.ex
NineFX/raxx
620f3ee0cb0925e6dad225c63e32379b647846a1
[ "Apache-2.0" ]
1
2021-01-12T09:57:58.000Z
2021-01-12T09:57:58.000Z
defmodule Raxx.Router do @moduledoc """ Simple router for Raxx applications. A router is a list of associations between a request pattern and controller module. `Raxx.Router` needs to be used after `Raxx.Server`, it is an extension to a standard Raxx.Server. Each controller module that is passed requests ...
33.692308
112
0.646119
e9c7597d2686868186b293e477141493a246ab12
3,783
exs
Elixir
test/epicenter_web/forms/demographic_form_test.exs
geometricservices/epi-viewpoin
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
5
2021-02-25T18:43:09.000Z
2021-02-27T06:00:35.000Z
test/epicenter_web/forms/demographic_form_test.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
3
2021-12-13T17:52:47.000Z
2021-12-17T01:35:31.000Z
test/epicenter_web/forms/demographic_form_test.exs
geometricservices/epi-viewpoint
ecb5316ea0f3f7299d5ff63e2de588539005ac1c
[ "Apache-2.0" ]
1
2022-01-27T23:26:38.000Z
2022-01-27T23:26:38.000Z
defmodule EpicenterWeb.Forms.DemographicFormTest do use Epicenter.DataCase, async: true alias Epicenter.Cases.Demographic alias Epicenter.Cases.Person alias Epicenter.Test alias EpicenterWeb.Forms.DemographicForm describe "model_to_form_changeset" do setup :persist_admin setup do {attrs, _a...
38.212121
127
0.555644
e9c7a501ced3fbf4655b1597ecc17e556e06b69f
417
ex
Elixir
lib/magnemite_web/controllers/api/v1/user_controller/sign_up_params.ex
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
lib/magnemite_web/controllers/api/v1/user_controller/sign_up_params.ex
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
lib/magnemite_web/controllers/api/v1/user_controller/sign_up_params.ex
andsleonardo/magnemite
2a06c1520defeb193d718313ad3fc6a50349bc8d
[ "MIT" ]
null
null
null
defmodule MagnemiteWeb.Api.V1.UserController.SignUpParams do @moduledoc false use Magnemite.{Changeset, Schema} @permitted_params [ :username, :password ] @required_params @permitted_params embedded_schema do field :username field :password end def changeset(params) do %__MODULE...
17.375
60
0.714628
e9c7a7ee0b060109df80b91f725a1e8f87399832
274
ex
Elixir
lib/crit_web/views/task_helpers.ex
jesseshieh/crit19
0bba407fea09afed72cbb90ca579ba34c537edef
[ "MIT" ]
6
2019-07-16T19:31:23.000Z
2021-06-05T19:01:05.000Z
lib/crit_web/views/task_helpers.ex
jesseshieh/crit19
0bba407fea09afed72cbb90ca579ba34c537edef
[ "MIT" ]
null
null
null
lib/crit_web/views/task_helpers.ex
jesseshieh/crit19
0bba407fea09afed72cbb90ca579ba34c537edef
[ "MIT" ]
3
2020-02-24T23:38:27.000Z
2020-08-01T23:50:17.000Z
defmodule CritWeb.TaskHelpers do @moduledoc """ Help with user tasks """ use Phoenix.HTML def task_header(state), do: MapX.just!(state, :task_header) def hidden_task_id(form, state), do: hidden_input form, :task_id, value: MapX.just!(state, :task_id) end
22.833333
71
0.70438
e9c7b2000e91ddd2d8fb0ebcb7435bc94853e8b0
1,244
ex
Elixir
lib/crawler/parser/link_parser.ex
rhnonose/crawler
e0ba256cb4f81e6edfa405febcbc5741ac007f27
[ "MIT" ]
1
2018-08-15T13:26:19.000Z
2018-08-15T13:26:19.000Z
lib/crawler/parser/link_parser.ex
rhnonose/crawler
e0ba256cb4f81e6edfa405febcbc5741ac007f27
[ "MIT" ]
null
null
null
lib/crawler/parser/link_parser.ex
rhnonose/crawler
e0ba256cb4f81e6edfa405febcbc5741ac007f27
[ "MIT" ]
null
null
null
defmodule Crawler.Parser.LinkParser do @moduledoc """ Parses links and transforms them if necessary. """ alias __MODULE__.LinkExpander @tag_attr %{ "a" => "href", "link" => "href", "script" => "src", "img" => "src", } @doc """ Parses links and transforms them if necessary. ...
24.392157
78
0.518489